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 |
88 |
89 /** |
89 /** |
90 * Show global ErrorNote |
90 * Show global ErrorNote |
91 * @param aResourceId resource id to be resolved |
91 * @param aResourceId resource id to be resolved |
92 */ |
92 */ |
109 * Return ETrue if video call. |
109 * Return ETrue if video call. |
110 */ |
110 */ |
111 TBool IsVideoCall( const TInt aCallId ) const; |
111 TBool IsVideoCall( const TInt aCallId ) const; |
112 |
112 |
113 protected: |
113 protected: |
114 |
114 |
115 /** |
115 /** |
116 * Handle for sending view commands. |
116 * Handle for sending view commands. |
117 */ |
117 */ |
118 MPhoneViewCommandHandle* iViewCommandHandle; |
118 MPhoneViewCommandHandle* iViewCommandHandle; |
119 |
119 |
120 MPhoneStateMachine* iStateMachine; |
120 MPhoneStateMachine* iStateMachine; |
121 |
121 |
122 }; |
122 }; |
123 |
123 |
124 #endif // __CPHONEERRORMESSAGESHANDLER_H |
124 #endif // __CPHONEERRORMESSAGESHANDLER_H |
125 |
125 |
126 // End of File |
126 // End of File |