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 * aEngine the pointer to the dps engine

~CDpsUsbNotifier()

~CDpsUsbNotifier ( )

Destructor

Member Functions Documentation

CancelPrinterNotify()

void CancelPrinterNotify ( )

Cancels the request for printer connection notification

ConnectNotify()

void ConnectNotify ( )

Issues the request for printer connect/disconnect notification

ConnectState()

TInt ConnectState ( ) [private]

Updates the current device state

ConstructL()

void ConstructL ( ) [private]

Second phase constructor

DisconnectNotify(TUsbDeviceState)

void DisconnectNotify ( TUsbDeviceState aState ) [private]

Called by ConnectNotifier to indeicate the cable disconnect

Parameters

TUsbDeviceState aState

DoCancel()

void DoCancel ( ) [private, virtual]

IsConfigured()

TBool IsConfigured ( ) const

IsSetPrintModeIssued()

TBool IsSetPrintModeIssued ( )

NewL(CDpsEngine *)

CDpsUsbNotifier * NewL ( CDpsEngine * aEngine ) [static]

Two phase constructor

Parameters

CDpsEngine * aEngine the pointer to the dps engine object

PersonalityChanged()

void PersonalityChanged ( ) [private]

PtpNotify(TInt)

void PtpNotify ( TInt aErr ) [private]

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

Parameters

TInt aErr

Rollback()

void Rollback ( ) [private]

Changes back to the previous personality

RunError(TInt)

TInt RunError ( TInt aErr ) [private, virtual]

Parameters

TInt aErr

RunL()

void RunL ( ) [private, virtual]

WaitForPrinterNotify()

void WaitForPrinterNotify ( )

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]