usbengines/usbotgwatcher/inc/cusbotgwatcher.h
branchRCL_3
changeset 64 8ecef05bbada
parent 1 705ec7b86991
child 20 a15c582fbf97
equal deleted inserted replaced
8:7e15987c4500 64:8ecef05bbada
   347      */
   347      */
   348     CUsbNotifManager* NotifManager();
   348     CUsbNotifManager* NotifManager();
   349     /**
   349     /**
   350      * @return Handle state 
   350      * @return Handle state 
   351      */
   351      */
   352     CUsbStateHostHandle* HostHandle() const;
   352     CUsbStateHostHandle* HostHandle(TUsbStateIds aStateId) const;
   353 
   353 
   354     /**
   354     /**
   355      * Handles problems in host functioning
   355      * Handles problems in host functioning
   356      * @param aWhatKindOf problem Id to be handled
   356      * @param aWhatKindOf problem Id to be handled
   357      */
   357      */
   358     void HandleHostProblemL(TInt aWhatKindOf);
   358     void HandleHostProblemL(TInt aWhatKindOf, TUsbStateIds aInState);
   359     
   359     
   360     /**
   360     /**
   361      * Add observer to USb Otg state machine
   361      * Add observer to USb Otg state machine
   362      * @param aObserver Observer
   362      * @param aObserver Observer
   363      */
   363      */
   364     void SubscribeL(MUsbOtgWatcherStateObserver* aObserver);
   364     void SubscribeL(MUsbOtgWatcherStateObserver& aObserver);
   365 
   365 
   366     /**
   366     /**
   367      * Remove observer from UsbOtg state observer
   367      * Remove observer from UsbOtg state observer
   368      * @param aObserver Observer
   368      * @param aObserver Observer
   369      */
   369      */
   370     void UnsubscribeL(MUsbOtgWatcherStateObserver* aObserver);
   370     void UnsubscribeL(MUsbOtgWatcherStateObserver& aObserver);
   371 
   371 
   372     /**
   372     /**
   373      * Used for test purposes
   373      * Used for test purposes
   374      */
   374      */
   375     void PrintStateToLog();
   375     void PrintStateToLog();