CDpsUsbNotifier Class Reference

class CDpsUsbNotifier : public CActive

Class for monitoring the usb personality change and cable connection/disconnectin

Inherits from

Constructor & Destructor Documentation

CDpsUsbNotifier(CDpsEngine *)

CDpsUsbNotifier(CDpsEngine *aEngine)[private]

Default constructor

Parameters

CDpsEngine * aEnginethe pointer to the dps engine

~CDpsUsbNotifier()

~CDpsUsbNotifier()

Destructor

Member Functions Documentation

CancelPrinterNotify()

voidCancelPrinterNotify()

Cancels the request for printer connection notification

ConnectNotify()

voidConnectNotify()

Issues the request for printer connect/disconnect notification

ConnectState()

TInt ConnectState()[private]

Updates the current device state

ConstructL()

voidConstructL()[private]

Second phase constructor

DisconnectNotify(TUsbDeviceState)

voidDisconnectNotify(TUsbDeviceStateaState)[private]

Called by ConnectNotifier to indeicate the cable disconnect

Parameters

TUsbDeviceState aState

DoCancel()

voidDoCancel()[private, virtual]

IsConfigured()

TBool IsConfigured()const

IsSetPrintModeIssued()

TBool IsSetPrintModeIssued()

NewL(CDpsEngine *)

CDpsUsbNotifier *NewL(CDpsEngine *aEngine)[static]

Two phase constructor

Parameters

CDpsEngine * aEnginethe pointer to the dps engine object

PersonalityChanged()

voidPersonalityChanged()[private]

PtpNotify(TInt)

voidPtpNotify(TIntaErr)[private]

Called by PtpNotifier to indicate a ptp printer/pc is connected

Parameters

TInt aErr

Rollback()

voidRollback()[private]

Changes back to the previous personality

RunError(TInt)

TInt RunError(TIntaErr)[private, virtual]

Parameters

TInt aErr

RunL()

voidRunL()[private, virtual]

WaitForPrinterNotify()

voidWaitForPrinterNotify()

Issues the request for printer connection notification

Member Data Documentation

TBool iConfigured

TBool iConfigured[private]

CDpsConnectNotifier * iConnectP

CDpsConnectNotifier *iConnectP[private]

TUsbDeviceState iConnectState

TUsbDeviceState iConnectState[private]

CDpsEngine::TConnectionStatus iConnection

CDpsEngine::TConnectionStatus iConnection[private]

CDpsEngine * iEngine

CDpsEngine *iEngine[private]

TInt iPersonality

TInt iPersonality[private]

CDpsPersonalityWatcher * iPersonalityWatcher

CDpsPersonalityWatcher *iPersonalityWatcher[private]

CDpsPtpNotifier * iPtpP

CDpsPtpNotifier *iPtpP[private]

TBool iRollback

TBool iRollback[private]

RUsb iUsbM

RUsb iUsbM[private]

RUsbWatcher iUsbW

RUsbWatcher iUsbW[private]