equal
deleted
inserted
replaced
22 #include <e32base.h> |
22 #include <e32base.h> |
23 |
23 |
24 // forward declaration |
24 // forward declaration |
25 class CUsbNotifier; |
25 class CUsbNotifier; |
26 class CUsbIndicatorNotifier; |
26 class CUsbIndicatorNotifier; |
|
27 class CUsbOtgWatcher; |
27 |
28 |
28 // pause warning is visible for (ms) |
29 // pause warning is visible for (ms) |
29 const TUint KPauseForWarnings = 1000000; // 1 sec |
30 const TUint KPauseForWarnings = 1000000; // 1 sec |
30 |
31 |
31 /** |
32 /** |
114 |
115 |
115 public: |
116 public: |
116 |
117 |
117 /** |
118 /** |
118 * 2phase construction |
119 * 2phase construction |
|
120 * @param aOtgWatcher OtgWatcher is a parent class |
119 */ |
121 */ |
120 static CUsbNotifManager* NewL(); |
122 static CUsbNotifManager* NewL(CUsbOtgWatcher* aOtgWatcher); |
121 |
123 |
122 /** |
124 /** |
123 * Destructor |
125 * Destructor |
124 */ |
126 */ |
125 virtual ~CUsbNotifManager(); |
127 virtual ~CUsbNotifManager(); |
130 * @param aNotifId notifier id |
132 * @param aNotifId notifier id |
131 * @param aObserver will receive notifications |
133 * @param aObserver will receive notifications |
132 */ |
134 */ |
133 void ShowNotifierL(TUid aCat, TUint aNotifId, |
135 void ShowNotifierL(TUid aCat, TUint aNotifId, |
134 MWaitNotifierObserver* aObserver = NULL); |
136 MWaitNotifierObserver* aObserver = NULL); |
135 |
|
136 /** |
|
137 * Changes USB indicator to blink or not |
|
138 * @param aBlinking ETrue if want to make it blinking, EFalse otherwise |
|
139 */ |
|
140 void BlinkIndicatorL(TBool aBlinking); |
|
141 |
|
142 /** |
|
143 * Shows or hides usb indicator |
|
144 * @param aVisible ETRue is show, EFalse id hide |
|
145 */ |
|
146 void ShowIndicatorL(TBool aVisible); |
|
147 |
137 |
148 /** |
138 /** |
149 * Closes and deletes all the notifiers |
139 * Closes and deletes all the notifiers |
150 */ |
140 */ |
151 void CloseAllNotifiers(); |
141 void CloseAllNotifiers(); |
161 |
151 |
162 private: |
152 private: |
163 |
153 |
164 /** |
154 /** |
165 * Default construction |
155 * Default construction |
|
156 * @param aOtgWatcher otg watcher (parent class) |
166 */ |
157 */ |
167 CUsbNotifManager(); |
158 CUsbNotifManager(); |
168 |
159 |
169 /** |
160 /** |
170 * Second phase construction |
161 * Second phase construction |
171 */ |
162 */ |
172 void ConstructL(); |
163 void ConstructL(CUsbOtgWatcher* aOtgWatcher); |
173 |
164 |
174 private: |
165 private: |
175 // data |
166 // data |
176 |
167 |
177 /** |
168 /** |
184 */ |
175 */ |
185 RPointerArray<CWaitNotifierInfo> iWaitNotifiers; |
176 RPointerArray<CWaitNotifierInfo> iWaitNotifiers; |
186 |
177 |
187 /** |
178 /** |
188 * Own |
179 * Own |
189 * Notifier for showing or blinking Usb indicator |
180 * USB indicator |
190 */ |
181 */ |
191 CUsbIndicatorNotifier* iIndicatorNotifier; |
182 CUsbIndicatorNotifier* iIndicatorNotifier; |
192 }; |
183 }; |
193 |
184 |
194 #endif // C_USBNOTIFMANAGER_H |
185 #endif // C_USBNOTIFMANAGER_H |