phoneapp/phoneuicontrol/inc/mphonestatemachine.h
branchRCL_3
changeset 61 41a7f70b3818
parent 17 38529f706030
child 62 5266b1f337bd
equal deleted inserted replaced
58:40a3f856b14d 61:41a7f70b3818
    28 // CLASS DECLARATION
    28 // CLASS DECLARATION
    29 class MPhoneState;
    29 class MPhoneState;
    30 class MPEPhoneModel;
    30 class MPEPhoneModel;
    31 class MPEEngineInfo;
    31 class MPEEngineInfo;
    32 class CSpdiaControl;
    32 class CSpdiaControl;
    33 class MPhoneSecurityMessageHandler;
    33 class MPhoneStorage;
    34 class MPhoneSecurityModeObserver;
       
    35 
    34 
    36 /**
    35 /**
    37 *  Describes the interface for setting and getting active state
    36 *  Describes the interface for setting and getting active state
    38 */
    37 */
    39 
    38 
    85         /**
    84         /**
    86         * Sets callId to Phone Engine Info
    85         * Sets callId to Phone Engine Info
    87         * @param aCallId
    86         * @param aCallId
    88         */    
    87         */    
    89         virtual void SetCallId( TInt aCallId ) = 0;
    88         virtual void SetCallId( TInt aCallId ) = 0;
    90     
       
    91         /**
       
    92          * Getter for security mode observer interface.
       
    93          * 
       
    94          * @return Pointer to security mode interface.
       
    95          */
       
    96         virtual MPhoneSecurityModeObserver* SecurityMode() = 0;
       
    97         
       
    98 		/**
       
    99 		 * Sets security mode observer. Doesn't transfer ownership.
       
   100 		 *
       
   101 		 * @param aObserver Pointer to observer instance.
       
   102 		 */
       
   103 		virtual void SetSecurityModeObserver( MPhoneSecurityModeObserver* aObserver ) = 0;
       
   104 		
       
   105 		/**
       
   106 		 * Set security message handler for security message observations.
       
   107 		 * 
       
   108 		 * @param aHandler Pointer to handler instance. 
       
   109 		 */
       
   110 		virtual void SetSecurityMessageHandler( MPhoneSecurityMessageHandler* aHandler ) = 0;
       
   111 		
       
   112         /**
       
   113          * Handle phone engine message.
       
   114          * 
       
   115          * @param aMessage Message
       
   116          * @param aCallId Call id
       
   117          */
       
   118         virtual void HandlePhoneEngineMessageL(const TInt aMessage, 
       
   119         	TInt aCallId ) = 0;
       
   120         
    89         
   121         /**
    90         /**
   122          * This function is called when there is property value change.
    91         * Phone's Storage
   123          * @param aCategory Category of the property
    92         */
   124          * @param aKey Property key that is changed
    93         virtual MPhoneStorage* PhoneStorage() = 0;        
   125          * @param aValue New property value
       
   126          */
       
   127         virtual void HandlePropertyChangedL(const TUid& aCategory,
       
   128         	const TUint aKey,
       
   129         	const TInt aValue ) = 0;
       
   130 
    94 
   131     };
    95     };
   132 
    96 
   133 #endif // MPHONESTATEMACHINE_H
    97 #endif // MPHONESTATEMACHINE_H
   134 
    98