phoneapp/phoneuicontrol/inc/cphonestatemachine.h
branchRCL_3
changeset 61 41a7f70b3818
parent 58 40a3f856b14d
child 62 5266b1f337bd
equal deleted inserted replaced
58:40a3f856b14d 61:41a7f70b3818
    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;
    33 class MPhoneStorage;
    34 class MPhoneSecurityMessageHandler;
       
    35 
    34 
    36 // CLASS DECLARATION
    35 // CLASS DECLARATION
    37 
    36 
    38 /**
    37 /**
    39 *  Class for handling states and their transitions
    38 *  Class for handling states and their transitions
   100         * Set callId to phoneEngineinfo
    99         * Set callId to phoneEngineinfo
   101         * @param aCallId
   100         * @param aCallId
   102         */    
   101         */    
   103         IMPORT_C void SetCallId( const TInt aCallId );
   102         IMPORT_C void SetCallId( const TInt aCallId );
   104 
   103 
   105    
   104        
   106         /**
   105         /**
   107          * Getter for security mode observer interface.
   106         * Instantiates phone storage.
   108          * 
   107         * @return storage instance    
   109          * @return Pointer to security mode interface.
   108         */    
   110          */
   109         IMPORT_C MPhoneStorage* PhoneStorage();        
   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          
       
   146          /**
       
   147            * Getter for CEikonEnv to avoid use of static system calls
       
   148            * @return CEikonEnv handle
       
   149            */
       
   150           IMPORT_C CEikonEnv* EikonEnv() const;
       
   151          
       
   152 
   110 
   153     protected:
   111     protected:
   154 
   112 
   155         /**
   113         /**
   156         * By default EPOC constructor is private.
   114         * By default EPOC constructor is private.
   185         */
   143         */
   186         MPEPhoneModel* iPhoneEngine;
   144         MPEPhoneModel* iPhoneEngine;
   187 
   145 
   188         // Idle state which is hold in memory all the time
   146         // Idle state which is hold in memory all the time
   189         MPhoneState* iIdleState;
   147         MPhoneState* iIdleState;
   190         
   148 
   191         /**
   149         // Phone's storage
   192          * Security mode state
   150         MPhoneStorage* iPhoneStorage;
   193          * Not own.
       
   194          */
       
   195         MPhoneSecurityModeObserver* iSecurityModeObserver;
       
   196         
       
   197         /**
       
   198          * Security message handling interface.
       
   199          * Not own.
       
   200          */
       
   201         MPhoneSecurityMessageHandler* iSecurityMessageHandler;
       
   202         
       
   203         /** Internal variable for EikonEnv to avoid use of static system calls
       
   204          * Not own.
       
   205          */
       
   206         CEikonEnv* iEnv;
       
   207         
       
   208     };
   151     };
   209 
   152 
   210 #endif      // CPHONESTATEMACHINE_H
   153 #endif      // CPHONESTATEMACHINE_H
   211             
   154             
   212 // End of File
   155 // End of File