phoneapp/phoneuicontrol/inc/cphonestatestartup.h
branchRCL_3
changeset 24 41a7f70b3818
parent 5 2a26698d78ba
child 25 5266b1f337bd
equal deleted inserted replaced
23:40a3f856b14d 24:41a7f70b3818
     1 /*
     1 /*
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    52         /**
    52         /**
    53         * A message handling function for Phone Engine messages
    53         * A message handling function for Phone Engine messages
    54         * @param aMessage Message from Phone Engine
    54         * @param aMessage Message from Phone Engine
    55         * @param aCallId Call id the message concerns
    55         * @param aCallId Call id the message concerns
    56         */
    56         */
    57         IMPORT_C virtual void HandlePhoneEngineMessageL(
    57         IMPORT_C void HandlePhoneEngineMessageL(
    58             const TInt aMessage, 
    58             const TInt aMessage, 
    59             TInt aCallId );       
    59             TInt aCallId );       
    60             
    60             
    61         IMPORT_C void HandleKeyMessageL(
    61         IMPORT_C void HandleKeyMessageL(
    62             TPhoneKeyEventMessages aMessage,
    62             TPhoneKeyEventMessages aMessage,
    70         * Handles startup of the phone application 
    70         * Handles startup of the phone application 
    71         */
    71         */
    72         IMPORT_C virtual void HandlePhoneStartupL();
    72         IMPORT_C virtual void HandlePhoneStartupL();
    73 
    73 
    74         /**
    74         /**
    75         * A message handling function for message EPEMessagePEConstructionReady.
       
    76         * @param aCallId: the call id of the call
       
    77         */
       
    78         IMPORT_C void HandlePEConstructionReadyL( TInt aCallId );
       
    79         /**
       
    80          * Indicates when the Idle app is in the foreground.
    75          * Indicates when the Idle app is in the foreground.
    81          */
    76          */
    82         IMPORT_C virtual void HandleIdleForegroundEventL();
    77         IMPORT_C virtual void HandleIdleForegroundEventL();
    83 
    78 
    84 		protected:
    79         protected:
    85 
    80 
    86         /**
    81         /**
    87         * ConstructL()
    82         * ConstructL()
    88         */
    83         */
    89         IMPORT_C virtual void ConstructL();
    84         IMPORT_C virtual void ConstructL();
    98 
    93 
    99         
    94         
   100     private:
    95     private:
   101 
    96 
   102         /**
    97         /**
   103         * Passes create number entry command forward if NE can be created.
       
   104         */
       
   105         IMPORT_C void HandleCreateNumberEntryL( const TKeyEvent& aKeyEvent,
       
   106                 TEventCode aEventCode );
       
   107 
       
   108         /**
       
   109          * Plays DTMF tone for key event 
    98          * Plays DTMF tone for key event 
   110          * */
    99          * */
   111         IMPORT_C void HandleDtmfKeyToneL( const TKeyEvent& aKeyEvent,
   100         IMPORT_C void HandleDtmfKeyToneL( const TKeyEvent& aKeyEvent,
   112                 TEventCode aEventCode );
   101                 TEventCode aEventCode );
   113         
   102         
       
   103         /**
       
   104         * A message handling function for message EPEMessagePEConstructionReady.
       
   105         * @param aCallId: the call id of the call
       
   106         */
       
   107         void HandlePEConstructionReadyL( TInt aCallId );
   114         
   108         
   115         /**
   109         /**
   116         * Starts to shows note.
   110         * Starts to shows note.
   117         */
   111         */
   118         static TInt DoShowNoteL( TAny* aAny );
   112         static TInt DoShowNoteL( TAny* aAny );
   120         /**
   114         /**
   121         * Create and show appropriate note AFTER idle callback
   115         * Create and show appropriate note AFTER idle callback
   122         * if necessary.
   116         * if necessary.
   123         */
   117         */
   124         void CreateAndShowNoteAfterIdle();
   118         void CreateAndShowNoteAfterIdle();
   125         
       
   126         /**
       
   127         * Finishes phone application initialization
       
   128         */        
       
   129         void InitializationReadyL();
       
   130 
   119 
   131 
   120 
   132     protected: // Data
   121     protected: // Data
   133 
   122 
   134         // Provides phone engine startup status
   123         // Provides phone engine startup status
   135         TBool iPEReady;
   124         TBool iPEReady;
   136 
   125 
       
   126     private: // Data
   137 
   127 
   138         // Provides phone application startup status
   128         // Provides phone application startup status
   139         TBool iPhoneReady;
   129         TBool iPhoneReady;
   140     private: // Data
       
   141         
   130         
   142         // Ownded: idle object to create note.
   131         // Ownded: idle object to create note.
   143         CIdle* iCreateNote;
   132         CIdle* iCreateNote;
   144     };
   133     };
   145 
   134