phoneapp/phoneuicontrol/inc/cphonestatemachine.h
branchRCL_3
changeset 17 38529f706030
parent 15 2a26698d78ba
child 58 40a3f856b14d
equal deleted inserted replaced
15:2a26698d78ba 17:38529f706030
    28 #include "mphonestate.h"
    28 #include "mphonestate.h"
    29 #include "mphoneviewcommandhandle.h"
    29 #include "mphoneviewcommandhandle.h"
    30 
    30 
    31 // FORWARD DECLARATIONS
    31 // FORWARD DECLARATIONS
    32 class MPhoneState;
    32 class MPhoneState;
       
    33 class MPhoneSecurityModeObserver;
       
    34 class MPhoneSecurityMessageHandler;
    33 
    35 
    34 // CLASS DECLARATION
    36 // CLASS DECLARATION
    35 
    37 
    36 /**
    38 /**
    37 *  Class for handling states and their transitions
    39 *  Class for handling states and their transitions
    98         * Set callId to phoneEngineinfo
   100         * Set callId to phoneEngineinfo
    99         * @param aCallId
   101         * @param aCallId
   100         */    
   102         */    
   101         IMPORT_C void SetCallId( const TInt aCallId );
   103         IMPORT_C void SetCallId( const TInt aCallId );
   102 
   104 
       
   105    
       
   106         /**
       
   107          * Getter for security mode observer interface.
       
   108          * 
       
   109          * @return Pointer to security mode interface.
       
   110          */
       
   111         IMPORT_C MPhoneSecurityModeObserver* SecurityMode();
       
   112         
       
   113 		/**
       
   114 		 * Setter for security mode observer interface.
       
   115 		 *
       
   116 		 * @param aObserver Pointer to observer interface.
       
   117 		 */
       
   118 		IMPORT_C void SetSecurityModeObserver( MPhoneSecurityModeObserver* aObserver );
       
   119 
       
   120 		/**
       
   121 		 * Set security message handler for security message observations.
       
   122 		 * 
       
   123 		 * @param aHandler Pointer to handler instance. 
       
   124 		 */
       
   125 		IMPORT_C void SetSecurityMessageHandler( MPhoneSecurityMessageHandler* aHandler );
       
   126 		
       
   127         /**
       
   128          * Handle phone engine message.
       
   129          * 
       
   130          * @param aMessage Message
       
   131          * @param aCallId Call id
       
   132          */
       
   133         IMPORT_C void HandlePhoneEngineMessageL(const TInt aMessage, 
       
   134              	TInt aCallId );
       
   135         
       
   136         /**
       
   137           * This function is called when there is property value change.
       
   138           * @param aCategory Category of the property
       
   139           * @param aKey Property key that is changed
       
   140           * @param aValue New property value
       
   141           */
       
   142          IMPORT_C void HandlePropertyChangedL(const TUid& aCategory,
       
   143          	const TUint aKey,
       
   144          	const TInt aValue );
       
   145 
   103     protected:
   146     protected:
   104 
   147 
   105         /**
   148         /**
   106         * By default EPOC constructor is private.
   149         * By default EPOC constructor is private.
   107         */
   150         */
   135         */
   178         */
   136         MPEPhoneModel* iPhoneEngine;
   179         MPEPhoneModel* iPhoneEngine;
   137 
   180 
   138         // Idle state which is hold in memory all the time
   181         // Idle state which is hold in memory all the time
   139         MPhoneState* iIdleState;
   182         MPhoneState* iIdleState;
       
   183         
       
   184         /**
       
   185          * Security mode state
       
   186          * Not own.
       
   187          */
       
   188         MPhoneSecurityModeObserver* iSecurityModeObserver;
       
   189         
       
   190         /**
       
   191          * Security message handling interface.
       
   192          * Not own.
       
   193          */
       
   194         MPhoneSecurityMessageHandler* iSecurityMessageHandler;
       
   195         
   140     };
   196     };
   141 
   197 
   142 #endif      // CPHONESTATEMACHINE_H
   198 #endif      // CPHONESTATEMACHINE_H
   143             
   199             
   144 // End of File
   200 // End of File