30 /** |
30 /** |
31 * Idle state |
31 * Idle state |
32 */ |
32 */ |
33 class CPhoneStateIdle : public CPhoneState |
33 class CPhoneStateIdle : public CPhoneState |
34 { |
34 { |
35 public: |
35 public: |
36 |
36 |
37 /** Dial initiation method. */ |
37 /** Dial initiation method. */ |
38 enum TDialInitiationMethod |
38 enum TDialInitiationMethod |
39 { |
39 { |
40 /** Dial initiation method unknown. */ |
40 /** Dial initiation method unknown. */ |
41 EDialMethodUnknown = 0, |
41 EDialMethodUnknown = 0, |
42 /** Dial is initiated by explicit call type selection from menu.*/ |
42 /** Dial is initiated by explicit call type selection from menu.*/ |
43 EDialMethodMenuSelection = 1, |
43 EDialMethodMenuSelection = 1, |
44 /** Dial is initiated by send command. */ |
44 /** Dial is initiated by send command. */ |
45 EDialMethodSendCommand = 2, |
45 EDialMethodSendCommand = 2, |
46 /** Dial is initiated by one key dialing. */ |
46 /** Dial is initiated by one key dialing. */ |
47 EDialMethodOneKeyDialing = 3 |
47 EDialMethodOneKeyDialing = 3 |
48 |
48 }; |
49 }; |
|
50 |
49 |
51 /** |
50 /** |
52 * Phone number types |
51 * Phone number types |
53 * |
52 * |
54 * EPhoneNumberTypeNotFound - phone number's type was not found |
53 * EPhoneNumberTypeNotFound - phone number's type was not found |
55 * EPhoneNumberTypeCS - CS call can be made to the phone number |
54 * EPhoneNumberTypeCS - CS call can be made to the phone number |
56 * EPhoneNumberTypeVideo - video call can be made to the phone number |
55 * EPhoneNumberTypeVideo - video call can be made to the phone number |
57 * EPhoneNumberTypeVoip - VoIP call can be made to the address. |
56 * EPhoneNumberTypeVoip - VoIP call can be made to the address. |
58 */ |
57 */ |
59 enum TPhoneNumberType |
58 enum TPhoneNumberType |
60 { |
59 { |
61 EPhoneNumberTypeNotFound = -1, |
60 EPhoneNumberTypeNotFound = -1, |
62 EPhoneNumberTypeCS = 0, |
61 EPhoneNumberTypeCS = 0, |
63 EPhoneNumberTypeVideo, |
62 EPhoneNumberTypeVideo, |
64 EPhoneNumberTypeVoip |
63 EPhoneNumberTypeVoip |
65 }; |
64 }; |
66 |
65 |
67 /** |
66 /** |
68 * Destructor. |
67 * Destructor. |
69 */ |
68 */ |
70 IMPORT_C virtual ~CPhoneStateIdle(); |
69 IMPORT_C virtual ~CPhoneStateIdle(); |
170 /** |
169 /** |
171 * Dial CS voice call |
170 * Dial CS voice call |
172 * @param None |
171 * @param None |
173 */ |
172 */ |
174 IMPORT_C void DialVoiceCallL(); |
173 IMPORT_C void DialVoiceCallL(); |
175 |
174 |
176 /** |
|
177 * Handles situation when hash key has been kept down long |
|
178 * (long keypress) and the hash character is the only character |
|
179 * in number entry. |
|
180 */ |
|
181 IMPORT_C virtual void OnlyHashInNumberEntryL(); |
|
182 |
|
183 /** |
175 /** |
184 * A message handling function for EPEMessageDialling |
176 * A message handling function for EPEMessageDialling |
185 * @param aCallId: the call id of the call |
177 * @param aCallId: the call id of the call |
186 */ |
178 */ |
187 IMPORT_C virtual void HandleDialingL( TInt aCallId ); |
179 IMPORT_C virtual void HandleDialingL( TInt aCallId ); |
224 /** |
216 /** |
225 * Handles end key press that was catched in HandleKeyMessageL |
217 * Handles end key press that was catched in HandleKeyMessageL |
226 * @param aMessage - key event message |
218 * @param aMessage - key event message |
227 */ |
219 */ |
228 void HandleEndKeyPressL( TPhoneKeyEventMessages aMessage ); |
220 void HandleEndKeyPressL( TPhoneKeyEventMessages aMessage ); |
229 |
|
230 /** |
|
231 * Changes manner mode. |
|
232 * Switches from any profile to the Silent profile or from the |
|
233 * Silent profile to the General profile. |
|
234 */ |
|
235 void ChangeMannerModeL(); |
|
236 |
221 |
237 /** |
222 /** |
238 * Checks if MC/PCSuite restore ongoing. |
223 * Checks if MC/PCSuite restore ongoing. |
239 * @param none. |
224 * @param none. |
240 * @return ETrue if ongoing. |
225 * @return ETrue if ongoing. |
241 */ |
226 */ |
242 TBool RestoreOngoing(); |
227 TBool RestoreOngoing(); |
243 |
|
244 |
228 |
245 void HandleVoiceCallCommandL(); |
229 void HandleVoiceCallCommandL(); |
246 |
230 |
247 private: |
231 private: |
248 |
232 |