CUsbCMHandler Class Reference

class CUsbCMHandler : public CBase

All USB control message handlers plugins must implement this interface. ECOM framework is used here. Class is inherited from CBase , to have an access to virtual destructor NewL is not provided, due to class is not intended for instantiation

Since
S60 5.0

Inherits from

Constructor & Destructor Documentation

~CUsbCMHandler()

~CUsbCMHandler ( ) [inline, virtual]

Destruction

Member Functions Documentation

Handle(const RBuf8 &, RBuf8 &)

TInt Handle ( const RBuf8 & aSetupPacket,
RBuf8 & aData
) [pure virtual]

Handler

Since
S60 v.5.0

Parameters

const RBuf8 & aSetupPacket Request to be handled
RBuf8 & aData Either data for request, or result of request handling

Initialize(RDevUsbcClient &, RUsbWatcher &, RUsb &)

void Initialize ( RDevUsbcClient & aUsbcClient,
RUsbWatcher & aUsbWatcher,
RUsb & aUsbManager
) [pure virtual]

Provides handlers with links to USB services

Since
S60 v.5.0

Parameters

RDevUsbcClient & aUsbcClient Link to LDD services
RUsbWatcher & aUsbWatcher Link to USB Watcher services
RUsb & aUsbManager Link to USB Manager services

Member Data Documentation

TUid iPrivateEComUID

TUid iPrivateEComUID

UID given to us by ECOM when the instance is created. Used when the instance is destroyed. The class member is public one, due to when instantiate the plugin, there is need access to this member by _FOFF macro This member is not intended for initialization, modification, or any else type of use