usbengines/usbotgwatcher/inc/cusbindicatornotifier.h
changeset 62 eadeea68c837
parent 58 c3241a5ac9ff
equal deleted inserted replaced
61:acbdfeb56752 62:eadeea68c837
    38   
    38   
    39 /**
    39 /**
    40  * Class implements functionality of showing/blinking usb indicator
    40  * Class implements functionality of showing/blinking usb indicator
    41  * Class does not provide method to get response from the user
    41  * Class does not provide method to get response from the user
    42  */
    42  */
    43 NONSHARABLE_CLASS( CUsbIndicatorNotifier ): public CUsbNotifier, MUsbOtgWatcherStateObserver, MUsbVBusObserver
    43 NONSHARABLE_CLASS( CUsbIndicatorNotifier ): public MUsbOtgWatcherStateObserver, MUsbVBusObserver
    44     {
    44     {
       
    45 
       
    46     friend class CtUsbOtgWatcher;
       
    47     
    45 public:
    48 public:
    46     /**
    49     /**
    47      * Two-phased constructor.
    50      * Two-phased constructor.
    48      * @param aNotifManager parent
    51      * @param aNotifManager parent
    49      * @param aOtgWatcher provides VBus observer and usb otg watcher state notifications
    52      * @param aOtgWatcher provides VBus observer and usb otg watcher state notifications
    76      * error handler
    79      * error handler
    77      * @param aError error code
    80      * @param aError error code
    78      */
    81      */
    79     virtual void VBusObserverErrorL(TInt aError);
    82     virtual void VBusObserverErrorL(TInt aError);
    80 
    83 
    81     // From base class CUsbNotifier
       
    82     /**
       
    83      * Start to show notifier
       
    84      */
       
    85     virtual void ShowL();
       
    86 
       
    87     /**
    84     /**
    88      * Stop showing notifier
    85      * Stop showing notifier
    89      */
    86      */
    90     virtual void Close();
    87     virtual void Close();
    91 
    88 
   102      * 2nd phase constructor.
    99      * 2nd phase constructor.
   103      */
   100      */
   104     void ConstructL();
   101     void ConstructL();
   105 
   102 
   106     /**
   103     /**
   107      * Set USB indicator On or Off
   104      * Set USB Connecting indicator On or Off
   108      * @param aState Indicator states 
   105      * @param aState Indicator states 
   109      */
   106      */
   110     void SetIndicatorState(const TInt aState);
   107     void ToggleConnectingIndicator(TBool aEnable);
   111 
       
   112     /**
       
   113      * Show/hide static icon of the indicator. 
       
   114      * If the indicator is blinking, stop blinking it and show/hide the static 
       
   115      * form of the indicator.
       
   116      * @param aVisible ETrue - Show the indicator, EFalse - Hide the indicator 
       
   117      */
       
   118     void ShowStatic(TBool aVisible);
       
   119 
       
   120     /**
       
   121      * Blinks indicator
       
   122      */
       
   123     void Blink();
       
   124 
   108 
   125     /**
   109     /**
   126      * Sets indicator accordingly
   110      * Sets indicator accordingly
   127      */
   111      */
   128     void SetIndicator();
   112     void SetIndicator();