usbengines/usbotgwatcher/inc/cusbindicatornotifier.h
branchRCL_3
changeset 67 56303587e92f
parent 65 a44cdf4b4bf0
child 58 c3241a5ac9ff
child 63 ef2686f7597e
child 79 25fce757be94
equal deleted inserted replaced
66:3cb82e326395 67:56303587e92f
    20 
    20 
    21 #include <e32base.h>
    21 #include <e32base.h>
    22 #include <AknNotifyStd.h>       // SAknSmallIndicatorParams
    22 #include <AknNotifyStd.h>       // SAknSmallIndicatorParams
    23 #include <AknNotifySignature.h> // SAknNotifierPackage
    23 #include <AknNotifySignature.h> // SAknNotifierPackage
    24 #include <avkon.hrh>            // EAknIndicatorUSBConnection
    24 #include <avkon.hrh>            // EAknIndicatorUSBConnection
    25 #include "cusbtimer.h"
    25 
    26 #include "cusbnotifier.h"
    26 #include "cusbnotifier.h"
    27 #include "cusbvbusobserver.h"
    27 #include "cusbvbusobserver.h"
    28 #include "cusbotgwatcher.h"
    28 #include "cusbotgwatcher.h"
    29 
    29 
    30 /**
    30 /**
    31  * Class implements functionality of showing/blinking usb indicator
    31  * Class implements functionality of showing/blinking usb indicator
    32  * Class does not provide method to get response from the user
    32  * Class does not provide method to get response from the user
    33  */
    33  */
    34 NONSHARABLE_CLASS( CUsbIndicatorNotifier ): public CUsbNotifier, MUsbTimerObserver, MUsbOtgWatcherStateObserver, MUsbVBusObserver
    34 NONSHARABLE_CLASS( CUsbIndicatorNotifier ): public CUsbNotifier, MUsbOtgWatcherStateObserver, MUsbVBusObserver
    35     {
    35     {
    36 public:
    36 public:
    37     /**
    37     /**
    38      * Two-phased constructor.
    38      * Two-phased constructor.
    39      * @param aNotifManager parent
    39      * @param aNotifManager parent
    77 
    77 
    78     /**
    78     /**
    79      * Stop showing notifier
    79      * Stop showing notifier
    80      */
    80      */
    81     virtual void Close();
    81     virtual void Close();
    82 
       
    83     // From MUsbTimerObserver
       
    84     /**
       
    85      * Timer elapsed
       
    86      * @param Timer id
       
    87      */
       
    88     void TimerElapsedL(TUsbTimerId aTimerId);
       
    89 
    82 
    90 private:
    83 private:
    91 
    84 
    92     /**
    85     /**
    93      * Default constructor.
    86      * Default constructor.
   133      * not own
   126      * not own
   134      */
   127      */
   135     CUsbOtgWatcher& iOtgWatcher;
   128     CUsbOtgWatcher& iOtgWatcher;
   136 
   129 
   137     /**
   130     /**
   138      * Switch timer for showing/hiding the usb indicator interleavingly for 
       
   139      * animating the indicator. 
       
   140      * Own
       
   141      */
       
   142     CUsbTimer* iIconBlinkingTimer;
       
   143 
       
   144     /**
       
   145      * Current indicator state
   131      * Current indicator state
   146      */
   132      */
   147     TInt iIndicatorState;
   133     TInt iIndicatorState;
   148 
   134 
   149     };
   135     };