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 |
|
94 */ |
93 */ |
95 void SendGlobalInfoNoteL( TInt aResourceId, |
94 void SendGlobalInfoNoteL( TInt aResourceId ); |
96 TBool aNotificationDialog = EFalse ); |
95 |
97 |
|
98 /** |
96 /** |
99 * Shows divert indication or sets internal divert flag |
97 * Shows divert indication or sets internal divert flag |
100 * depending in which order we receive Incoming and |
98 * depending in which order we receive Incoming and |
101 * CallForwarded messages. |
99 * CallForwarded messages. |
102 */ |
100 */ |
103 void HandleIncomingCallForwardedL(); |
101 void HandleIncomingCallForwardedL(); |
104 |
102 |
105 /** |
103 /** |
|
104 * Shows software version note |
|
105 */ |
|
106 void HandleShowVersionL(); |
|
107 |
|
108 /** |
106 * Show global ErrorNote |
109 * Show global ErrorNote |
107 * @param aResourceId resource id to be resolved |
110 * @param aResourceId resource id to be resolved |
108 * @param aNotificationDialog ETrue if notification dialog should be used |
|
109 */ |
111 */ |
110 void SendGlobalErrorNoteL( TInt aResourceId, |
112 void SendGlobalErrorNoteL( TInt aResourceId ); |
111 TBool aNotificationDialog = EFalse ); |
|
112 |
113 |
113 |
114 |
114 private: |
115 private: |
115 |
116 |
116 /** |
117 /** |
117 * Currently active state. |
118 * Currently active state. |
118 */ |
119 */ |
119 MPhoneStateMachine& iStateMachine; |
120 MPhoneStateMachine& iStateMachine; |
120 |
121 |
121 /** |
122 /** |
122 * Handle for sending view commands. |
123 * Handle for sending view commands. |
123 */ |
124 */ |
124 MPhoneViewCommandHandle& iViewCommandHandle; |
125 MPhoneViewCommandHandle& iViewCommandHandle; |
125 |
126 |
126 /** |
127 /** |
127 * Currently active state object. |
128 * Currently active state object. |
128 */ |
129 */ |
129 MPhoneState& iActiveState; |
130 MPhoneState& iActiveState; |
130 |
131 |
131 }; |
132 }; |
132 |
133 |
133 #endif // CPHONEGENERALGSMMESSAGESHANDLER_H |
134 #endif // CPHONEGENERALGSMMESSAGESHANDLER_H |
134 |
135 |