usbmgmt/usbmgr/usbman/extensionplugin/public/MUsbManExtensionPluginObserver.h
changeset 49 93c0009bd947
parent 0 c9bc50fca66e
equal deleted inserted replaced
48:21625e5de155 49:93c0009bd947
    24 
    24 
    25 #ifndef USBMANEXTENSIONPLUGINOBSERVER_H
    25 #ifndef USBMANEXTENSIONPLUGINOBSERVER_H
    26 #define USBMANEXTENSIONPLUGINOBSERVER_H
    26 #define USBMANEXTENSIONPLUGINOBSERVER_H
    27 
    27 
    28 #include <e32base.h>
    28 #include <e32base.h>
    29 #include <d32usbc.h>
       
    30 
    29 
    31 class MUsbDeviceNotify;
    30 class MUsbDeviceNotify;
       
    31 #ifdef SYMBIAN_USB_BATTERYCHARGING_V1_1	
       
    32 class MUsbChargingNotify;
       
    33 #endif
       
    34 class RDevUsbcClient;
    32 
    35 
    33 class MUsbmanExtensionPluginObserver
    36 class MUsbmanExtensionPluginObserver
    34 	{
    37 	{
    35 
    38 
    36 public:
    39 public:
    43 	/**
    46 	/**
    44 	Called by the plugin to register for device/service state changes from its owner
    47 	Called by the plugin to register for device/service state changes from its owner
    45 	@param aObserver The observer to register for state changes
    48 	@param aObserver The observer to register for state changes
    46 	*/
    49 	*/
    47 	IMPORT_C void RegisterStateObserverL(MUsbDeviceNotify& aObserver);
    50 	IMPORT_C void RegisterStateObserverL(MUsbDeviceNotify& aObserver);
       
    51 #ifdef SYMBIAN_USB_BATTERYCHARGING_V1_1		
       
    52 	IMPORT_C void RegisterChargingObserverL(MUsbChargingNotify& aObserver);
       
    53 #endif
    48 
    54 
    49 private:
    55 private:
    50 	/**
    56 	/**
    51 	@see DevUsbcClient.
    57 	@see DevUsbcClient.
    52 	*/
    58 	*/
    54 
    60 
    55 	/**
    61 	/**
    56 	@see RegisterStateObserverL.
    62 	@see RegisterStateObserverL.
    57 	*/
    63 	*/
    58 	virtual void MuepoDoRegisterStateObserverL(MUsbDeviceNotify& aObserver) = 0;
    64 	virtual void MuepoDoRegisterStateObserverL(MUsbDeviceNotify& aObserver) = 0;
       
    65 
       
    66 	/**
       
    67 	@see RegisterChargingObserverL.
       
    68 	*/
       
    69 #ifdef SYMBIAN_USB_BATTERYCHARGING_V1_1	
       
    70 	virtual void MuepoDoRegisterChargingObserverL(MUsbChargingNotify& aObserver) = 0;	
       
    71 #endif
    59 	};
    72 	};
    60 
    73 
    61 #endif // USBMANEXTENSIONPLUGINOBSERVER_H
    74 #endif // USBMANEXTENSIONPLUGINOBSERVER_H