equal
deleted
inserted
replaced
18 |
18 |
19 #ifndef C_CDUNNOTEHANDLER_H |
19 #ifndef C_CDUNNOTEHANDLER_H |
20 #define C_CDUNNOTEHANDLER_H |
20 #define C_CDUNNOTEHANDLER_H |
21 |
21 |
22 #include <e32base.h> |
22 #include <e32base.h> |
23 #include <dunutils.rsg> |
23 #include <hbdevicemessageboxsymbian.h> |
24 #include <AknGlobalConfirmationQuery.h> |
|
25 #include <data_caging_path_literals.hrh> |
|
26 #include "DunTransporter.h" |
24 #include "DunTransporter.h" |
27 |
25 |
28 /** |
26 /** |
29 * Class for managing note showing in UI |
27 * Class for managing note showing in UI |
30 * |
28 * |
31 * @lib dunutils.lib |
29 * @lib dunutils.lib |
32 * @since S60 v3.2 |
30 * @since S60 v3.2 |
33 */ |
31 */ |
34 NONSHARABLE_CLASS( CDunNoteHandler ) : public CActive |
32 NONSHARABLE_CLASS( CDunNoteHandler ) : public CBase, |
|
33 public MHbDeviceMessageBoxObserver |
35 { |
34 { |
36 |
35 |
37 public: |
36 public: |
38 |
37 |
39 /** |
38 /** |
91 * @since S60 3.2 |
90 * @since S60 3.2 |
92 * @return None |
91 * @return None |
93 */ |
92 */ |
94 void DoIssueRequestL(); |
93 void DoIssueRequestL(); |
95 |
94 |
96 /** |
95 // from base class MHbDeviceMessageBoxObserver |
97 * Reads resource text |
|
98 * |
|
99 * @since S60 3.2 |
|
100 * @param aResourceId Resource ID to read |
|
101 * @param aUnicode Buffer containing the note string to show |
|
102 * @return None |
|
103 */ |
|
104 void ReadResourceTextL( TInt aResourceId, HBufC16*& aUnicode ); |
|
105 |
96 |
106 // from base class CActive |
97 // TODO: ADD DESCRIPTION HERE! |
107 |
98 void MessageBoxClosed( const CHbDeviceMessageBoxSymbian* aMessageBox, |
108 /* |
99 CHbDeviceMessageBoxSymbian::TButtonId aButton ); |
109 * From CActive. |
|
110 * Gets called when UI note dismissed |
|
111 * |
|
112 * @since S60 3.2 |
|
113 * @return None |
|
114 */ |
|
115 void RunL(); |
|
116 |
|
117 /** |
|
118 * From CActive. |
|
119 * Gets called on cancel |
|
120 * |
|
121 * @since S60 3.2 |
|
122 * @return None |
|
123 */ |
|
124 void DoCancel(); |
|
125 |
100 |
126 private: // data |
101 private: // data |
127 |
102 |
128 /** |
103 /** |
129 * Note to show |
104 * Note to show |
130 */ |
105 */ |
131 CAknGlobalConfirmationQuery* iNote; |
106 CHbDeviceMessageBoxSymbian* iNote; |
132 |
107 |
133 /** |
108 /** |
134 * Current state of note showing: active or inactive |
109 * Current state of note showing: active or inactive |
135 */ |
110 */ |
136 TDunState iNoteState; |
111 TDunState iNoteState; |