usbuis/usbuinotif/inc/usbuinotifmsmmerror.h
changeset 56 f45583a69686
parent 38 218231f2b3b3
child 63 ef2686f7597e
equal deleted inserted replaced
38:218231f2b3b3 56:f45583a69686
    19 #ifndef USBUINOTIFMSMMERROR_H
    19 #ifndef USBUINOTIFMSMMERROR_H
    20 #define USBUINOTIFMSMMERROR_H
    20 #define USBUINOTIFMSMMERROR_H
    21 
    21 
    22 // INCLUDES
    22 // INCLUDES
    23 #include <hb/hbwidgets/hbdevicemessageboxsymbian.h>
    23 #include <hb/hbwidgets/hbdevicemessageboxsymbian.h>
       
    24 #include <hb/hbwidgets/hbdevicenotificationdialogsymbian.h>
    24 #include "usbnotifier.h"      // Base class
    25 #include "usbnotifier.h"      // Base class
    25 
    26 
    26 #define KUsbUiNotifOtgGeneralQueryGranularity 3
       
    27 
    27 
    28 // CLASS DECLARATION
    28 // CLASS DECLARATION
    29 
    29 
    30 /**
    30 /**
    31  *  This class is used to show general USB query.
    31  *  This class is used to show general USB query.
    32  *  Asynchronous call is required.
    32  *  Asynchronous call is required.
    33  *
    33  *
    34  *  @lib
    34  *  @lib
    35  */
    35  */
    36 NONSHARABLE_CLASS(CUsbUiNotifMSMMError) : public CUSBUINotifierBase,
    36 NONSHARABLE_CLASS(CUsbUiNotifMSMMError) : public CUSBUINotifierBase,
    37                                           public MHbDeviceMessageBoxObserver
    37                                           public MHbDeviceMessageBoxObserver,
       
    38                                           public MHbDeviceNotificationDialogObserver
    38     {
    39     {
    39 public:
    40 public:
    40 
    41 
    41     /**
    42     /**
    42      * Indexes for the strings used in KUsbUiNotifMSMMError which are mapped to 5 errors.
    43      * Indexes for the strings used in KUsbUiNotifMSMMError which are mapped to 5 errors.
    43      */
    44      */
    44     enum TUsbUiNotifMSMMError
    45     enum TUsbUiNotifMSMMError
    45         {
    46         {
    46         EUsbMSMMGeneralError,	
    47         EUsbMSMMGeneralError,	
    47         EUsbMSMMUnknownFileSystem,
    48         EUsbMSMMUnknownFileSystem,
    48         EUsbMSMMOutOfMemory
    49         EUsbMSMMOutOfMemory,
       
    50         EUsbMSMMSafeToRemove,
       
    51         EUsbMSMMUnableToEject
    49         };
    52         };
    50 
    53 
    51     // Constructors and destructor
    54     // Constructors and destructor
    52 
    55 
    53     /**
    56     /**
   108      *  C++ default constructor.
   111      *  C++ default constructor.
   109      */
   112      */
   110     CUsbUiNotifMSMMError();
   113     CUsbUiNotifMSMMError();
   111 
   114 
   112 private:
   115 private:
   113     // New functions
   116     // functions from MHbDeviceNotificationDialogObserver
       
   117     /**
       
   118      * Callback function which is called when the dialog is tapped
       
   119      */
       
   120     void NotificationDialogActivated(const CHbDeviceNotificationDialogSymbian* aDialog);
       
   121     /**
       
   122      * Callback function which is called when the dialog is closed
       
   123      */
       
   124     void NotificationDialogClosed(const CHbDeviceNotificationDialogSymbian* aDialog,
       
   125             TInt aCompletionCode);
   114 
   126 
   115 private:
   127 private:
   116     // Data
   128     // Data
   117     CHbDeviceMessageBoxSymbian* iQuery;
   129     CHbDeviceMessageBoxSymbian* iQuery;
       
   130     CHbDeviceNotificationDialogSymbian* iDiscreet; 
   118     CDesCArrayFlat* iStringIds;
   131     CDesCArrayFlat* iStringIds;
   119      };
   132      };
   120 #endif // USBUINOTIFMSMMERROR_H
   133 #endif // USBUINOTIFMSMMERROR_H