phoneapp/phoneuistates/inc/cphonegeneralgsmmessageshandler.h
branchRCL_3
changeset 61 41a7f70b3818
parent 0 5f000ab63145
child 62 5266b1f337bd
equal deleted inserted replaced
58:40a3f856b14d 61:41a7f70b3818
    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 CPHONEGENERALGSMMESSAGESHANDLER_H
    25 #ifndef CPHONEGENERALGSMMESSAGESHANDLER_H
    73             const TInt aMessage, 
    73             const TInt aMessage, 
    74             TInt aCallId );  
    74             TInt aCallId );  
    75          
    75          
    76 
    76 
    77     private:
    77     private:
    78 		
    78         
    79         /**
    79         /**
    80         * By default EPOC constructor is private.
    80         * By default EPOC constructor is private.
    81         */
    81         */
    82         CPhoneGeneralGsmMessagesHandler( 
    82         CPhoneGeneralGsmMessagesHandler( 
    83             MPhoneStateMachine& aStateMachine, 
    83             MPhoneStateMachine& aStateMachine, 
    84             MPhoneViewCommandHandle& aViewCommandHandle,
    84             MPhoneViewCommandHandle& aViewCommandHandle,
    85             MPhoneState& aActiveState );
    85             MPhoneState& aActiveState );
    86 
    86 
    87 
    87 
    88 	private:
    88     private:
    89 	
    89     
    90         /**
    90         /**
    91         * Show global InfoNote
    91         * Show global InfoNote
    92         * @param aResourceId resource id to be resolved
    92         * @param aResourceId resource id to be resolved
       
    93         * @param aNotificationDialog ETrue if notification dialog should be used
    93         */
    94         */
    94 		void SendGlobalInfoNoteL( TInt aResourceId );
    95         void SendGlobalInfoNoteL( TInt aResourceId, 
    95 	    
    96                 TBool aNotificationDialog = EFalse );
       
    97         
    96         /**
    98         /**
    97         * Shows divert indication or sets internal divert flag
    99         * Shows divert indication or sets internal divert flag
    98         * depending in which order we receive Incoming and 
   100         * depending in which order we receive Incoming and 
    99         * CallForwarded messages.
   101         * CallForwarded messages.
   100         */
   102         */
   101         void HandleIncomingCallForwardedL();
   103         void HandleIncomingCallForwardedL();
   102 
   104 
   103         /**
   105         /**
   104         * Shows software version note
       
   105         */
       
   106         void HandleShowVersionL();
       
   107         
       
   108         /**
       
   109         * Show global ErrorNote
   106         * Show global ErrorNote
   110         * @param aResourceId resource id to be resolved
   107         * @param aResourceId resource id to be resolved
       
   108         * @param aNotificationDialog ETrue if notification dialog should be used
   111         */
   109         */
   112         void SendGlobalErrorNoteL( TInt aResourceId );
   110         void SendGlobalErrorNoteL( TInt aResourceId,
       
   111                 TBool aNotificationDialog = EFalse );
   113 
   112 
   114 
   113 
   115     private:
   114     private:
   116 
   115 
   117 		/**
   116         /**
   118 		* Currently active state.
   117         * Currently active state.
   119 		*/    
   118         */    
   120 		MPhoneStateMachine& iStateMachine;
   119         MPhoneStateMachine& iStateMachine;
   121 		
   120         
   122 		/**
   121         /**
   123 		* Handle for sending view commands.
   122         * Handle for sending view commands.
   124 		*/
   123         */
   125 		MPhoneViewCommandHandle& iViewCommandHandle;
   124         MPhoneViewCommandHandle& iViewCommandHandle;
   126 		
   125         
   127 		/**
   126         /**
   128 		* Currently active state object.
   127         * Currently active state object.
   129 		*/
   128         */
   130 		MPhoneState& iActiveState; 
   129         MPhoneState& iActiveState; 
   131            
   130            
   132     };
   131     };
   133 
   132 
   134 #endif // CPHONEGENERALGSMMESSAGESHANDLER_H
   133 #endif // CPHONEGENERALGSMMESSAGESHANDLER_H
   135             
   134