equal
deleted
inserted
replaced
21 |
21 |
22 // INCLUDES |
22 // INCLUDES |
23 |
23 |
24 #include "usbnotifier.h" // Base class |
24 #include "usbnotifier.h" // Base class |
25 #include <AknQueryDialog.h> // AVKON component |
25 #include <AknQueryDialog.h> // AVKON component |
|
26 #include "usbuinotifdialerwatcher.h" |
|
27 |
26 #define KUsbUiNotifOtgGeneralQueryGranularity 3 |
28 #define KUsbUiNotifOtgGeneralQueryGranularity 3 |
27 // CLASS DECLARATION |
29 // CLASS DECLARATION |
28 |
30 |
29 /** |
31 /** |
30 * This class is used to show general USB query. |
32 * This class is used to show general USB query. |
31 * Asynchronous call is required. |
33 * Asynchronous call is required. |
32 * |
34 * |
33 * @lib |
35 * @lib |
34 */ |
36 */ |
35 NONSHARABLE_CLASS(CUsbUiNotifOtgError) : public CUSBUINotifierBase |
37 NONSHARABLE_CLASS(CUsbUiNotifOtgError) : public CUSBUINotifierBase, public MDialerNotifier |
36 { |
38 { |
37 public: |
39 public: |
38 // Constructors and destructor |
40 // Constructors and destructor |
39 |
41 |
40 /** |
42 /** |
83 * @param aReplySlot A reply slot. |
85 * @param aReplySlot A reply slot. |
84 * @param aMessage Should be completed when the notifier is deactivated. |
86 * @param aMessage Should be completed when the notifier is deactivated. |
85 */ |
87 */ |
86 void GetParamsL(const TDesC8& aBuffer, TInt aReplySlot, |
88 void GetParamsL(const TDesC8& aBuffer, TInt aReplySlot, |
87 const RMessagePtr2& aMessage); |
89 const RMessagePtr2& aMessage); |
|
90 |
|
91 private: |
|
92 |
|
93 /** |
|
94 * From MDialerNotifier |
|
95 * The function to be when Dialaer is activated |
|
96 * |
|
97 */ |
|
98 void DialerActivated(); |
|
99 |
|
100 /** |
|
101 * From MDialerNotifier |
|
102 * The function to be when Dialaer is deactivated |
|
103 * and note can be shown again |
|
104 * |
|
105 */ |
|
106 void ReActivateDialog(); |
88 |
107 |
89 private: |
108 private: |
90 |
109 |
91 /** |
110 /** |
92 * C++ default constructor. |
111 * C++ default constructor. |
109 * Not own, destroys self when lauched. |
128 * Not own, destroys self when lauched. |
110 */ |
129 */ |
111 CAknQueryDialog* iQuery; |
130 CAknQueryDialog* iQuery; |
112 RArray<TInt> iStringIds; |
131 RArray<TInt> iStringIds; |
113 TInt iErrorId; |
132 TInt iErrorId; |
|
133 /** |
|
134 * Dialer watcher |
|
135 * Own. |
|
136 */ |
|
137 CUsbuinotifDialerWatcher* iDialerWatcher; |
|
138 /** |
|
139 * Dialog is dismissed. |
|
140 */ |
|
141 TBool iDismissed; |
114 }; |
142 }; |
115 #endif // USBUINOTIFOTGERROR_H |
143 #endif // USBUINOTIFOTGERROR_H |