phoneapp/phoneuistates/inc/cphoneerrormessageshandler.h
branchRCL_3
changeset 62 5266b1f337bd
parent 61 41a7f70b3818
child 69 8baf28733c3d
equal deleted inserted replaced
61:41a7f70b3818 62:5266b1f337bd
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description: 
    14 * Description: 
    15 *       Class that does processing for Phone Engine messages that are common
    15 * 		Class that does processing for Phone Engine messages that are common
    16 *       for all GSM states. Most of the GSM states are intressed of these 
    16 *		for all GSM states. Most of the GSM states are intressed of these 
    17 *       messages but due to the class architecture they don't have any single
    17 *		messages but due to the class architecture they don't have any single
    18 *       state class to be put into. This class exists to minimize duplicate
    18 *		state class to be put into. This class exists to minimize duplicate
    19 *       code so that not every GSM class need to implement these same handlings
    19 *		code so that not every GSM class need to implement these same handlings
    20 *       for the same messages.
    20 *		for the same messages.
    21 *
    21 *
    22 */
    22 */
    23 
    23 
    24 
    24 
    25 #ifndef __CPHONEERRORMESSAGESHANDLER_H
    25 #ifndef __CPHONEERRORMESSAGESHANDLER_H
    40 * Class that does processing for Phone Engine error messages that are common
    40 * Class that does processing for Phone Engine error messages that are common
    41 * for all protocols.
    41 * for all protocols.
    42 *
    42 *
    43 */
    43 */
    44 class CPhoneErrorMessagesHandler : public CBase, 
    44 class CPhoneErrorMessagesHandler : public CBase, 
    45                                    public MPhoneErrorMessagesHandler
    45 								   public MPhoneErrorMessagesHandler
    46     {
    46     {
    47     public:
    47     public:
    48         /**
    48     	/**
    49         * Creates the error handler instance
    49         * Creates the error handler instance
    50         * @return an instance of class CPhoneErrorMessagesHandler
    50         * @return an instance of class CPhoneErrorMessagesHandler
    51         */
    51         */
    52         static CPhoneErrorMessagesHandler* NewL( 
    52         static CPhoneErrorMessagesHandler* NewL( 
    53                 MPhoneViewCommandHandle* aViewCommandHandle,
    53         		MPhoneViewCommandHandle* aViewCommandHandle,
    54                 MPhoneStateMachine* aStateMachine ); 
    54         		MPhoneStateMachine* aStateMachine ); 
    55     
    55     
    56     public: //From MPhoneErrorMessagesHandler
    56     public: //From MPhoneErrorMessagesHandler
    57         /**
    57         /**
    58         * Destructor.
    58         * Destructor.
    59         */
    59         */
    64         * related to the given error.
    64         * related to the given error.
    65         * @param aErrorInfo - Error info from Phone Engine
    65         * @param aErrorInfo - Error info from Phone Engine
    66         */
    66         */
    67         IMPORT_C void ShowErrorSpecificNoteL( const TPEErrorInfo& aErrorInfo );
    67         IMPORT_C void ShowErrorSpecificNoteL( const TPEErrorInfo& aErrorInfo );
    68         
    68         
    69     protected:      
    69     protected:		
    70         /**
    70         /**
    71         * By default EPOC constructor is private.
    71         * By default EPOC constructor is private.
    72         */
    72         */
    73         IMPORT_C CPhoneErrorMessagesHandler( 
    73         IMPORT_C CPhoneErrorMessagesHandler( 
    74                     MPhoneViewCommandHandle* aViewCommandHandle,
    74         			MPhoneViewCommandHandle* aViewCommandHandle,
    75                     MPhoneStateMachine* aStateMachine );
    75         			MPhoneStateMachine* aStateMachine );
    76                 
    76         		
    77         /**
    77         /**
    78         * Two phase construction - Second phase.
    78         * Two phase construction - Second phase.
    79         * @return None
    79         * @return None
    80         */
    80         */
    81         void ConstructL();
    81         void ConstructL();
    82     
    82 	
    83         /**
    83         /**
    84         * Show global InfoNote
    84         * Show global InfoNote
    85         * @param aResourceId resource id to be resolved
    85         * @param aResourceId resource id to be resolved
    86         */
    86         */
    87         IMPORT_C void SendGlobalInfoNoteL( TInt aResourceId, 
    87 		IMPORT_C void SendGlobalInfoNoteL( TInt aResourceId );
    88                                            TBool aNotificationDialog = EFalse );
       
    89  
    88  
    90         /**
    89         /**
    91         * Show global ErrorNote
    90         * Show global ErrorNote
    92         * @param aResourceId resource id to be resolved
    91         * @param aResourceId resource id to be resolved
    93         */
    92         */
    94         IMPORT_C void SendGlobalErrorNoteL( TInt aResourceId,
    93         IMPORT_C void SendGlobalErrorNoteL( TInt aResourceId );
    95                                             TBool aNotificationDialog = EFalse );
       
    96 
    94 
    97         /**
    95         /**
    98         * Show global WarningNote
    96         * Show global WarningNote
    99         * @param aResourceId resource id to be resolved
    97         * @param aResourceId resource id to be resolved
   100         */        
    98         */        
   101         IMPORT_C void SendGlobalWarningNoteL( 
    99         IMPORT_C void SendGlobalWarningNoteL( TInt aResourceId );
   102                 TInt aResourceId,
       
   103                 TBool aNotificationDialog = EFalse );
       
   104         
   100         
   105 
   101 
   106     private:        
   102 	private:        
   107         /**
   103         /**
   108         * Return SimState.
   104         * Return SimState.
   109         */
   105         */
   110         TPESimState SimState() const;
   106         TPESimState SimState() const;
   111         
   107         
   116         
   112         
   117         /**
   113         /**
   118         * Return ETrue if voice call.
   114         * Return ETrue if voice call.
   119         */
   115         */
   120         TBool IsVoiceCall( const TInt aCallId ) const;
   116         TBool IsVoiceCall( const TInt aCallId ) const;
   121 
   117  
   122         /**
       
   123         * Gets cause code and resource id.
       
   124         */
       
   125         TBool GetCauseCode( TInt &aCauseCode, 
       
   126                 TInt &aResourceId, TBool &aNotification ) const; 
       
   127 				
       
   128     protected:
   118     protected:
   129         
   119 		
   130         /**
   120 		/**
   131         * Handle for sending view commands.
   121 		* Handle for sending view commands.
   132         */
   122 		*/
   133         MPhoneViewCommandHandle* iViewCommandHandle;
   123 		MPhoneViewCommandHandle* iViewCommandHandle;
   134         
   124 		
   135         MPhoneStateMachine* iStateMachine;
   125 		MPhoneStateMachine* iStateMachine;
   136         
   126 	          
   137         TBool iCauseCodeVariation;
       
   138         
       
   139         TInt iCallId;
       
   140               
       
   141     };
   127     };
   142 
   128 
   143 #endif // __CPHONEERRORMESSAGESHANDLER_H
   129 #endif // __CPHONEERRORMESSAGESHANDLER_H
   144             
   130             
   145 // End of File
   131 // End of File