phoneapp/phoneuiutils/inc/tphonecmdparamtranseffect.h
branchRCL_3
changeset 25 5266b1f337bd
parent 24 41a7f70b3818
child 26 8baf28733c3d
equal deleted inserted replaced
24:41a7f70b3818 25:5266b1f337bd
    35 * EPhoneTransitionEffectStop - TBD 
    35 * EPhoneTransitionEffectStop - TBD 
    36 */
    36 */
    37 enum TPhoneTransEffectType
    37 enum TPhoneTransEffectType
    38     {
    38     {
    39     EPhoneTransEffectNone,
    39     EPhoneTransEffectNone,
       
    40     EPhoneTransEffectCallUiAppear,
       
    41     EPhoneTransEffectCallUiDisappear,
       
    42     // These 3 effect types can be used only when dialer is
       
    43     // opened/closed when some other app than phone is visible 
       
    44     // on the foreground/in the background.
       
    45     // These cannot be used for internal transitions (=call ui<->dialer).
    40     EPhoneTransEffectDialerOpen,
    46     EPhoneTransEffectDialerOpen,
    41     EPhoneTransEffectDialerClose,
    47     EPhoneTransEffectDialerClose,
    42     EPhoneTransEffectDialerCreate,
    48     EPhoneTransEffectDialerCreate,
       
    49     // For applying effect to external app launch done from dialer.
       
    50     // Effects triggered by App FW don't work properly.
       
    51     EPhoneTransEffectAppStartFromDialer,
    43     EPhoneTransEffectStop
    52     EPhoneTransEffectStop
    44     };
    53     };
    45 
    54 
    46 // CLASS DECLARATION
    55 // CLASS DECLARATION
    47 
    56 
    48 /**
    57 /**
    49 *  A parameter class for note dialog information.
    58 *  A parameter class for transition effect information.
    50 */
    59 */
    51 class TPhoneCmdParamTransEffect : public TPhoneUICommandParam
    60 class TPhoneCmdParamTransEffect : public TPhoneUICommandParam
    52     {   
    61     {   
    53    
    62 
    54     
       
    55     public: 
    63     public: 
    56            
    64            
    57         /**
    65         /**
    58         * C++ default constructor.
    66         * C++ default constructor.
    59         */
    67         */
    65         * Sets the effect type
    73         * Sets the effect type
    66         * @param aType is the effect type
    74         * @param aType is the effect type
    67         */
    75         */
    68         IMPORT_C void SetType( TPhoneTransEffectType aType );
    76         IMPORT_C void SetType( TPhoneTransEffectType aType );
    69 
    77 
    70  
    78         /**
       
    79         * Sets application uid associated with the effect.
       
    80         * @param    aAppUid, Id of app.
       
    81         * @return   None.
       
    82         */
       
    83         IMPORT_C void SetAppUid( const TUid& aAppUid );
       
    84 
    71         /**
    85         /**
    72         * Returns the effect type
    86         * Returns the effect type
    73         * @return Returns the type
    87         * @return Returns the type
    74         */
    88         */
    75         IMPORT_C TPhoneTransEffectType Type() const;
    89         IMPORT_C TPhoneTransEffectType Type() const;
    76    
    90 
       
    91         /**
       
    92         * Returns App uid associated with the effect.
       
    93         * @param    None.
       
    94         * @return   iAppUid.
       
    95         */
       
    96         IMPORT_C TUid AppUid() const;
       
    97 
    77     private:    
    98     private:    
    78         
    99         
    79         /**
   100         /**
    80         * Note type
   101         * Effect type
    81         */
   102         */
    82         TPhoneTransEffectType iType;
   103         TPhoneTransEffectType iType;
       
   104         
       
   105         /**
       
   106         * App UID
       
   107         */
       
   108         TUid iAppUid;
    83 
   109 
    84     };
   110     };
    85 
   111 
    86 #endif // __TPHONECMDPARAMTRANSEFFECT_H   
   112 #endif // __TPHONECMDPARAMTRANSEFFECT_H   
    87             
   113