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