usbuis/usbuinotif/inc/usbuinotifmsmmerror.h
changeset 8 7e15987c4500
parent 3 47c263f7e521
child 25 8c311f9acc5e
child 79 25fce757be94
equal deleted inserted replaced
3:47c263f7e521 8:7e15987c4500
    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(CUsbUiNotifMSMMError) : public CUSBUINotifierBase
    37 NONSHARABLE_CLASS(CUsbUiNotifMSMMError) : public CUSBUINotifierBase, public MDialerNotifier
    36     {
    38     {
    37 public:
    39 public:
    38 
    40 
    39 /**
    41 /**
    40  * Possible parameter values for KUsbUiNotifMSMMError
    42  * Possible parameter values for KUsbUiNotifMSMMError
    93      * @param aReplySlot A reply slot.
    95      * @param aReplySlot A reply slot.
    94      * @param aMessage Should be completed when the notifier is deactivated.
    96      * @param aMessage Should be completed when the notifier is deactivated.
    95      */
    97      */
    96     void GetParamsL(const TDesC8& aBuffer, TInt aReplySlot,
    98     void GetParamsL(const TDesC8& aBuffer, TInt aReplySlot,
    97             const RMessagePtr2& aMessage);
    99             const RMessagePtr2& aMessage);
       
   100     
       
   101 private:
       
   102     
       
   103     /**
       
   104      * From MDialerNotifier     
       
   105      * The function to be when Dialaer is activated
       
   106      *          
       
   107      */
       
   108     void DialerActivated();
       
   109     
       
   110     /**
       
   111      * From MDialerNotifier     
       
   112      * The function to be when Dialaer is deactivated
       
   113      * and note can be shown again
       
   114      *          
       
   115      */
       
   116     void ReActivateDialog();
    98 
   117 
    99 private:
   118 private:
   100 
   119 
   101     /**
   120     /**
   102      *  C++ default constructor.
   121      *  C++ default constructor.
   119      *  Not own, destroys self when lauched.
   138      *  Not own, destroys self when lauched.
   120      */
   139      */
   121     CAknQueryDialog* iQuery; 
   140     CAknQueryDialog* iQuery; 
   122     RArray<TInt> iStringIds;
   141     RArray<TInt> iStringIds;
   123     TInt iErrorId;
   142     TInt iErrorId;
       
   143     /**
       
   144      * Dialer watcher 
       
   145      * Own.
       
   146      */
       
   147     CUsbuinotifDialerWatcher* iDialerWatcher;
       
   148     /**
       
   149      * Dialog is dismissed. 
       
   150      */
       
   151     TBool iDismissed;
   124     };
   152     };
   125 #endif // USBUINOTIFMSMMERROR_H
   153 #endif // USBUINOTIFMSMMERROR_H