CUsbClassControllerBase Class Reference

class CUsbClassControllerBase : public CActive

Base class for Class Controllers.

Inherits from

Constructor & Destructor Documentation

CUsbClassControllerBase(MUsbClassControllerNotify &, TInt)

IMPORT_CCUsbClassControllerBase(MUsbClassControllerNotify &aOwner,
TIntaStartupPriority
)[protected]

Constructor Constructor.

Parameters

MUsbClassControllerNotify & aOwnerOwner and manager of this object
TInt aStartupPriorityThe priority of the Class Controller (the priorities of all present Class Controllers determines the order in which they are started).

~CUsbClassControllerBase()

IMPORT_C~CUsbClassControllerBase()[virtual]

Destructor

Destructor.

Member Functions Documentation

Compare(const CUsbClassControllerBase &, const CUsbClassControllerBase &)

IMPORT_C TIntCompare(const CUsbClassControllerBase &aFirst,
const CUsbClassControllerBase &aSecond
)[static]

Compare Static function to compare two class controllers on the basis of their startup priorities.

Parameters

const CUsbClassControllerBase & aFirstFirst class controller.
const CUsbClassControllerBase & aSecondSecond class controller.

DoCancel()

voidDoCancel()[pure virtual]

DoCancel Framework function.

GetDescriptorInfo(TUsbDescriptor &)

voidGetDescriptorInfo(TUsbDescriptor &aDescriptorInfo)const [pure virtual]

GetDescriptorInfo Returns information on the class controller's descriptors.

Parameters

TUsbDescriptor & aDescriptorInfoStructure to return information in.

Owner()

IMPORT_C MUsbClassControllerNotify &Owner()const

Owner Fetch the owner of the USB class controller.

RunError(TInt)

TInt RunError(TIntaError)[pure virtual]

RunError

Parameters

TInt aErrorThe error with which RunL left.

RunL()

voidRunL()[pure virtual]

RunL Framework function. Class controllers are Active Objects, and may if relevant use that to register interfaces asynchronously.

Start(TRequestStatus &)

voidStart(TRequestStatus &aStatus)[pure virtual]

Start Called by the server to get this class controller to register its interfaces.

Parameters

TRequestStatus & aStatusTRequestStatus to signal completion of the request.

StartupPriority()

IMPORT_C TIntStartupPriority()const

StartupPriority Get the startup priority of this USB class controller.

State()

IMPORT_C TUsbServiceStateState()const

State Get the state of this USB class controller.

Stop(TRequestStatus &)

voidStop(TRequestStatus &aStatus)[pure virtual]

Stop Called by the server to get this class controller to deregister its interfaces.

Parameters

TRequestStatus & aStatusTRequestStatus to signal completion of the request.

Member Data Documentation

MUsbClassControllerNotify & iOwner

MUsbClassControllerNotify &iOwner[protected]

Owner.

const TInt iStartupPriority

const TIntiStartupPriority[protected]

The relative priority of this class controller. The class controllers are sorted using their priorities to determine what order to start them in.

TUsbServiceState iState

TUsbServiceState iState[protected]

The current service state. This must be kept up-to-date depending on whether this class controller's interfaces are registered or not.