phoneapp/phoneuicontrol/inc/cphonestateidle.h
branchRCL_3
changeset 20 3c221667e687
parent 9 91c2fb4b78df
child 22 94dc1107e8b2
equal deleted inserted replaced
14:b8d67d6176f5 20:3c221667e687
    44         EDialMethodMenuSelection    = 1,
    44         EDialMethodMenuSelection    = 1,
    45         /** Dial is initiated by send command. */
    45         /** Dial is initiated by send command. */
    46         EDialMethodSendCommand      = 2,
    46         EDialMethodSendCommand      = 2,
    47         /** Dial is initiated by one key dialing. */
    47         /** Dial is initiated by one key dialing. */
    48         EDialMethodOneKeyDialing    = 3
    48         EDialMethodOneKeyDialing    = 3
    49 
       
    50         };
    49         };
    51     
    50     
    52         /**
    51         /**
    53         * Destructor.
    52         * Destructor.
    54         */
    53         */
    78         * @param aMessage Message from Phone Engine
    77         * @param aMessage Message from Phone Engine
    79         * @param aCallId Call id the message concerns
    78         * @param aCallId Call id the message concerns
    80         */
    79         */
    81         IMPORT_C virtual void HandlePhoneEngineMessageL(
    80         IMPORT_C virtual void HandlePhoneEngineMessageL(
    82             const TInt aMessage, 
    81             const TInt aMessage, 
    83             TInt aCallId );       
    82             TInt aCallId );
    84             
    83             
    85         IMPORT_C virtual TBool HandleCommandL( TInt aCommand );
    84         IMPORT_C virtual TBool HandleCommandL( TInt aCommand );
    86         
    85         
    87         IMPORT_C virtual TBool ProcessCommandL( TInt aCommand );
    86         IMPORT_C virtual TBool ProcessCommandL( TInt aCommand );
    88 
    87 
    97         IMPORT_C virtual void HandlePhoneForegroundEventL();
    96         IMPORT_C virtual void HandlePhoneForegroundEventL();
    98 
    97 
    99         /**
    98         /**
   100         * Indicates when the Phone app has lost focus.
    99         * Indicates when the Phone app has lost focus.
   101         */
   100         */
   102 		IMPORT_C virtual void HandlePhoneFocusLostEventL();
   101         IMPORT_C virtual void HandlePhoneFocusLostEventL();
       
   102         
       
   103         /**
       
   104         * HandleError
       
   105         * Implements error handling framework
       
   106         * @param aErrorInfo: the error info
       
   107         */
       
   108         IMPORT_C virtual void HandleErrorL( 
       
   109                 const TPEErrorInfo& aErrorInfo );
   103 
   110 
   104     protected:
   111     protected:
   105 
   112 
   106         /** 
   113         /** 
   107         * Handle state-specific behaviour when number entry is cleared
   114         * Handle state-specific behaviour when number entry is cleared
   209         /**
   216         /**
   210         * Handles send command.
   217         * Handles send command.
   211         */
   218         */
   212         IMPORT_C virtual void HandleSendCommandL();
   219         IMPORT_C virtual void HandleSendCommandL();
   213         
   220         
       
   221     protected:
       
   222         
       
   223         /**
       
   224         * Sets iBubbleInitialized value.
       
   225         */
       
   226         void SetBubbleInitialized( TBool aValue );
       
   227          
       
   228         /**
       
   229         * Gets iBubbleInitialized value.
       
   230         */
       
   231         TBool IsBubbleInitialized();
       
   232         
   214     private: // New functions
   233     private: // New functions
   215 
   234         
   216         /**
   235         /**
   217         * A message handling function for EPEMessageIncoming
   236         * A message handling function for EPEMessageIncoming
   218         * @param aCallId: the call id of the call
   237         * @param aCallId: the call id of the call
   219         */
   238         */
   220         void HandleIncomingL( TInt aCallId );
   239         void HandleIncomingL( TInt aCallId );
   290 
   309 
   291          void HandleVoiceCallCommandL( TBool aSendKey );
   310          void HandleVoiceCallCommandL( TBool aSendKey );
   292 
   311 
   293          /**
   312          /**
   294           * Returns options menu id when number entry is visible.
   313           * Returns options menu id when number entry is visible.
   295 		  * If easydialing is in focus, id is asked from it.
   314           * If easydialing is in focus, id is asked from it.
   296           * @return Menu resource id.
   315           * @return Menu resource id.
   297           */   
   316           */   
   298          TInt GetNumberAcqMenuIdL();
   317          TInt GetNumberAcqMenuIdL();
   299          
   318          
       
   319          /**
       
   320           * Launches initializing call bubble.
       
   321           */
       
   322          void DisplayInitializingCallL( TInt aCallId );
       
   323          
       
   324          /**
       
   325           * Updates existing call bubble.
       
   326           */
       
   327          TBool UpdateCallBubbleL( TInt aCallId );
       
   328          
       
   329          /**
       
   330           * Handles initialized call error.
       
   331           */
       
   332          void HandleInitializingCallErrorL( TInt aCallId );
       
   333          
       
   334          /**
       
   335           * Changes state to aState and resets iBubbleInitialized
       
   336           * value to false.
       
   337           */
       
   338          void ChangeTo( TInt aState );
       
   339          
   300     private:
   340     private:
   301         // indicates that incomming call is arrived.
   341          // indicates that incomming call is arrived.
   302         TBool iIncommingCall;
   342          TBool iIncommingCall;
   303   
   343         
       
   344          // Indicates call bubble is already initiliazed.
       
   345          TBool iBubbleInitialized;
   304     };
   346     };
   305 
   347 
   306 #endif // CPHONESTATEIDLE
   348 #endif // CPHONESTATEIDLE
   307 
   349 
   308 // End of File
   350 // End of File