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 <hb/hbwidgets/hbdevicemessageboxsymbian.h> |
23 #include <dunutils.rsg> |
|
24 #include <AknGlobalConfirmationQuery.h> |
|
25 #include <data_caging_path_literals.hrh> |
24 #include "DunTransporter.h" |
26 #include "DunTransporter.h" |
25 |
27 |
26 /** |
28 /** |
27 * Class for managing note showing in UI |
29 * Class for managing note showing in UI |
28 * |
30 * |
29 * @lib dunutils.lib |
31 * @lib dunutils.lib |
30 * @since S60 v3.2 |
32 * @since S60 v3.2 |
31 */ |
33 */ |
32 NONSHARABLE_CLASS( CDunNoteHandler ) : public CBase, |
34 NONSHARABLE_CLASS( CDunNoteHandler ) : public CActive |
33 public MHbDeviceMessageBoxObserver |
|
34 { |
35 { |
35 |
36 |
36 public: |
37 public: |
37 |
38 |
38 /** |
39 /** |
90 * @since S60 3.2 |
91 * @since S60 3.2 |
91 * @return None |
92 * @return None |
92 */ |
93 */ |
93 void DoIssueRequestL(); |
94 void DoIssueRequestL(); |
94 |
95 |
95 // from base class MHbDeviceMessageBoxObserver |
96 /** |
|
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 ); |
96 |
105 |
97 // TODO: ADD DESCRIPTION HERE! |
106 // from base class CActive |
98 void MessageBoxClosed( const CHbDeviceMessageBoxSymbian* aMessageBox, |
107 |
99 CHbDeviceMessageBoxSymbian::TButtonId aButton ); |
108 /* |
|
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(); |
100 |
125 |
101 private: // data |
126 private: // data |
102 |
127 |
103 /** |
128 /** |
104 * Note to show |
129 * Note to show |
105 */ |
130 */ |
106 CHbDeviceMessageBoxSymbian* iNote; |
131 CAknGlobalConfirmationQuery* iNote; |
107 |
132 |
108 /** |
133 /** |
109 * Current state of note showing: active or inactive |
134 * Current state of note showing: active or inactive |
110 */ |
135 */ |
111 TDunState iNoteState; |
136 TDunState iNoteState; |