CPTPIPController Class Reference

class CPTPIPController : public MPTPIPController

Inherits from

Public Member Functions
~CPTPIPController()
IMPORT_C CPTPIPController *NewL()
IMPORT_C CPTPIPController *NewLC()
IMPORT_C RSocket &NewSocketL()
IMPORT_C voidOnTimeOut()
IMPORT_C voidSetDeviceFriendlyName(TDesC16 *)
IMPORT_C TIntSetDeviceGUID(TDesC8 &)
IMPORT_C voidSocketAccepted(TRequestStatus &)
IMPORT_C voidStopTransport()
Private Member Functions
CPTPIPController()
voidBuildInitAckL()
voidBuildInitFailL(TInitFailReason)
voidCheckAndHandleErrorL(TInt)
voidCheckInitFailL(TInt)
TInt CheckMTPConnection()
TBool CompareHost(RSocket &)
voidConstructL()
voidDoCancel()
TInt EnableSocketTransfer()
TInt ParseEvtPacket()
TInt ParseInitPacketL()
TInt PublishSocketNamePair()
voidReset()
TInt RunError(TInt)
voidRunL()
voidSchedule()
voidStartTimer(TInt)
TBool Validate()
Private Member Enumerations
enumTPTPIPControllerStates {
EIdle, EInitCommandAwaited, EInitCommandRead, EFilterConsentAwaited, EWaitForInitFail, EWaitForInitCommandAck, EInitEvtAwaited, EInitEventRead, EPTPIPConnected
}
Private Attributes
__FLOG_DECLARATION_MEMBER
TRequestStatus *iCallerStatus
TInt iCounter
TPTPIPControllerStates iCtrlState
HBufC16 *iDeviceFriendlyName
TMTPTypeUint128 iDeviceGUID
RSocket iDummySocket
CPTPIPSocketHandler *iEvtHandler
CPTPIPHostFilterInterface *iFilter
TDesC *iHostFriendlyName
TMTPTypeUint128 iHostGUID
CPTPIPInitCmdAck *iInitCmdAck
CPTPIPInitCmdRequest *iInitCmdReq
TPTPIPInitEvtRequest iInitEvtReq
TPTPIPInitFailed iInitFailed
TBool iIsConnectedToMTP
RMTPClient iMTP
RProperty iProperty
CRepository *iRepository
CPTPIPTimer *iTimer
TUid iTransportId

Constructor & Destructor Documentation

CPTPIPController()

CPTPIPController()[private]

~CPTPIPController()

IMPORT_C~CPTPIPController()

Member Functions Documentation

BuildInitAckL()

voidBuildInitAckL()[private]

BuildInitFailL(TInitFailReason)

voidBuildInitFailL(TInitFailReasonaReason)[private]

Parameters

TInitFailReason aReason

CheckAndHandleErrorL(TInt)

voidCheckAndHandleErrorL(TIntaError)[private]

Parameters

TInt aError

CheckInitFailL(TInt)

voidCheckInitFailL(TIntaError)[private]

Parameters

TInt aError

CheckMTPConnection()

TInt CheckMTPConnection()[private]

CompareHost(RSocket &)

TBool CompareHost(RSocket &aSocket)[private]

Parameters

RSocket & aSocket

ConstructL()

voidConstructL()[private]

DoCancel()

voidDoCancel()[private]

EnableSocketTransfer()

TInt EnableSocketTransfer()[private]

NewL()

IMPORT_C CPTPIPController *NewL()[static]

NewLC()

IMPORT_C CPTPIPController *NewLC()[static]

NewSocketL()

IMPORT_C RSocket &NewSocketL()[virtual]

OnTimeOut()

IMPORT_C voidOnTimeOut()

ParseEvtPacket()

TInt ParseEvtPacket()[private]

ParseInitPacketL()

TInt ParseInitPacketL()[private]

PublishSocketNamePair()

TInt PublishSocketNamePair()[private]

Reset()

voidReset()[private]

RunError(TInt)

TInt RunError(TIntaErr)[private]

Parameters

TInt aErr

RunL()

voidRunL()[private]

Schedule()

voidSchedule()[private]

Schedules the next request phase or event.

SetDeviceFriendlyName(TDesC16 *)

IMPORT_C voidSetDeviceFriendlyName(TDesC16 *aDeviceFriendlyName)[virtual]

Parameters

TDesC16 * aDeviceFriendlyName

SetDeviceGUID(TDesC8 &)

IMPORT_C TIntSetDeviceGUID(TDesC8 &aDeviceGUID)[virtual]

Parameters

TDesC8 & aDeviceGUID

SocketAccepted(TRequestStatus &)

IMPORT_C voidSocketAccepted(TRequestStatus &aStatus)[virtual]

Parameters

TRequestStatus & aStatus

StartTimer(TInt)

voidStartTimer(TIntaSecond)[private]

Parameters

TInt aSecond

StopTransport()

IMPORT_C voidStopTransport()[virtual]

Validate()

TBool Validate()[private]

Member Enumerations Documentation

Enum TPTPIPControllerStates

Enumerators

EIdle
EInitCommandAwaited
EInitCommandRead
EFilterConsentAwaited
EWaitForInitFail
EWaitForInitCommandAck
EInitEvtAwaited
EInitEventRead
EPTPIPConnected

Member Data Documentation

__FLOG_DECLARATION_MEMBER

__FLOG_DECLARATION_MEMBER[private]

FLOGGER debug trace member variable.

TRequestStatus * iCallerStatus

TRequestStatus *iCallerStatus[private]

TInt iCounter

TInt iCounter[private]

TPTPIPControllerStates iCtrlState

TPTPIPControllerStates iCtrlState[private]

HBufC16 * iDeviceFriendlyName

HBufC16 *iDeviceFriendlyName[private]

TMTPTypeUint128 iDeviceGUID

TMTPTypeUint128 iDeviceGUID[private]

RSocket iDummySocket

RSocket iDummySocket[private]

CPTPIPSocketHandler * iEvtHandler

CPTPIPSocketHandler *iEvtHandler[private]

CPTPIPHostFilterInterface * iFilter

CPTPIPHostFilterInterface *iFilter[private]

TDesC * iHostFriendlyName

TDesC *iHostFriendlyName[private]

TMTPTypeUint128 iHostGUID

TMTPTypeUint128 iHostGUID[private]

CPTPIPInitCmdAck * iInitCmdAck

CPTPIPInitCmdAck *iInitCmdAck[private]

CPTPIPInitCmdRequest * iInitCmdReq

CPTPIPInitCmdRequest *iInitCmdReq[private]

TPTPIPInitEvtRequest iInitEvtReq

TPTPIPInitEvtRequest iInitEvtReq[private]

TPTPIPInitFailed iInitFailed

TPTPIPInitFailed iInitFailed[private]

TBool iIsConnectedToMTP

TBool iIsConnectedToMTP[private]

RMTPClient iMTP

RMTPClient iMTP[private]

RProperty iProperty

RProperty iProperty[private]

CRepository * iRepository

CRepository *iRepository[private]

CPTPIPTimer * iTimer

CPTPIPTimer *iTimer[private]

TUid iTransportId

TUid iTransportId[private]