usbuis/usbuinotif/inc/usbuinotifotgerror.h
changeset 25 8c311f9acc5e
parent 8 7e15987c4500
child 63 ef2686f7597e
equal deleted inserted replaced
8:7e15987c4500 25:8c311f9acc5e
    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 
       
    28 #define KUsbUiNotifOtgGeneralQueryGranularity 3
    26 #define KUsbUiNotifOtgGeneralQueryGranularity 3
    29 // CLASS DECLARATION
    27 // CLASS DECLARATION
    30 
    28 
    31 /**
    29 /**
    32  *  This class is used to show general USB query.
    30  *  This class is used to show general USB query.
    33  *  Asynchronous call is required.
    31  *  Asynchronous call is required.
    34  *
    32  *
    35  *  @lib
    33  *  @lib
    36  */
    34  */
    37 NONSHARABLE_CLASS(CUsbUiNotifOtgError) : public CUSBUINotifierBase, public MDialerNotifier
    35 NONSHARABLE_CLASS(CUsbUiNotifOtgError) : public CUSBUINotifierBase
    38     {
    36     {
    39 public:
    37 public:
    40     // Constructors and destructor
    38     // Constructors and destructor
    41 
    39 
    42     /**
    40     /**
    85      * @param aReplySlot A reply slot.
    83      * @param aReplySlot A reply slot.
    86      * @param aMessage Should be completed when the notifier is deactivated.
    84      * @param aMessage Should be completed when the notifier is deactivated.
    87      */
    85      */
    88     void GetParamsL(const TDesC8& aBuffer, TInt aReplySlot,
    86     void GetParamsL(const TDesC8& aBuffer, TInt aReplySlot,
    89             const RMessagePtr2& aMessage);
    87             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();
       
   107 
    88 
   108 private:
    89 private:
   109 
    90 
   110     /**
    91     /**
   111      *  C++ default constructor.
    92      *  C++ default constructor.
   128      *  Not own, destroys self when lauched.
   109      *  Not own, destroys self when lauched.
   129      */
   110      */
   130     CAknQueryDialog* iQuery; 
   111     CAknQueryDialog* iQuery; 
   131     RArray<TInt> iStringIds;
   112     RArray<TInt> iStringIds;
   132     TInt iErrorId;
   113     TInt iErrorId;
   133     /**
       
   134      * Dialer watcher 
       
   135      * Own.
       
   136      */
       
   137     CUsbuinotifDialerWatcher* iDialerWatcher;
       
   138     /**
       
   139      * Dialog is dismissed. 
       
   140      */
       
   141     TBool iDismissed;
       
   142     };
   114     };
   143 #endif // USBUINOTIFOTGERROR_H
   115 #endif // USBUINOTIFOTGERROR_H