phoneapp/phoneuicontrol/inc/mphonestatemachine.h
branchRCL_3
changeset 62 5266b1f337bd
parent 61 41a7f70b3818
equal deleted inserted replaced
61:41a7f70b3818 62:5266b1f337bd
    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 MPhoneStorage;
    33 class MPhoneSecurityMessageHandler;
       
    34 class MPhoneSecurityModeObserver;
    34 
    35 
    35 /**
    36 /**
    36 *  Describes the interface for setting and getting active state
    37 *  Describes the interface for setting and getting active state
    37 */
    38 */
    38 
    39 
    84         /**
    85         /**
    85         * Sets callId to Phone Engine Info
    86         * Sets callId to Phone Engine Info
    86         * @param aCallId
    87         * @param aCallId
    87         */    
    88         */    
    88         virtual void SetCallId( TInt aCallId ) = 0;
    89         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;
    89         
   120         
    90         /**
   121         /**
    91         * Phone's Storage
   122          * This function is called when there is property value change.
    92         */
   123          * @param aCategory Category of the property
    93         virtual MPhoneStorage* PhoneStorage() = 0;        
   124          * @param aKey Property key that is changed
       
   125          * @param aValue New property value
       
   126          */
       
   127         virtual void HandlePropertyChangedL(const TUid& aCategory,
       
   128         	const TUint aKey,
       
   129         	const TInt aValue ) = 0;
    94 
   130 
    95     };
   131     };
    96 
   132 
    97 #endif // MPHONESTATEMACHINE_H
   133 #endif // MPHONESTATEMACHINE_H
    98 
   134