--- a/usbuis/usbuinotif/inc/usbuinotifmsmmerror.h Fri Jun 11 14:38:00 2010 +0300
+++ b/usbuis/usbuinotif/inc/usbuinotifmsmmerror.h Wed Jun 23 19:20:39 2010 +0300
@@ -21,9 +21,9 @@
// INCLUDES
#include <hb/hbwidgets/hbdevicemessageboxsymbian.h>
+#include <hb/hbwidgets/hbdevicenotificationdialogsymbian.h>
#include "usbnotifier.h" // Base class
-#define KUsbUiNotifOtgGeneralQueryGranularity 3
// CLASS DECLARATION
@@ -34,7 +34,8 @@
* @lib
*/
NONSHARABLE_CLASS(CUsbUiNotifMSMMError) : public CUSBUINotifierBase,
- public MHbDeviceMessageBoxObserver
+ public MHbDeviceMessageBoxObserver,
+ public MHbDeviceNotificationDialogObserver
{
public:
@@ -45,7 +46,9 @@
{
EUsbMSMMGeneralError,
EUsbMSMMUnknownFileSystem,
- EUsbMSMMOutOfMemory
+ EUsbMSMMOutOfMemory,
+ EUsbMSMMSafeToRemove,
+ EUsbMSMMUnableToEject
};
// Constructors and destructor
@@ -110,11 +113,21 @@
CUsbUiNotifMSMMError();
private:
- // New functions
+ // functions from MHbDeviceNotificationDialogObserver
+ /**
+ * Callback function which is called when the dialog is tapped
+ */
+ void NotificationDialogActivated(const CHbDeviceNotificationDialogSymbian* aDialog);
+ /**
+ * Callback function which is called when the dialog is closed
+ */
+ void NotificationDialogClosed(const CHbDeviceNotificationDialogSymbian* aDialog,
+ TInt aCompletionCode);
private:
// Data
CHbDeviceMessageBoxSymbian* iQuery;
+ CHbDeviceNotificationDialogSymbian* iDiscreet;
CDesCArrayFlat* iStringIds;
};
#endif // USBUINOTIFMSMMERROR_H