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 void OnTimeOut ()
IMPORT_C void SetDeviceFriendlyName ( TDesC16 *)
IMPORT_C TInt SetDeviceGUID ( TDesC8 &)
IMPORT_C void SocketAccepted ( TRequestStatus &)
IMPORT_C void StopTransport ()
Private Member Functions
CPTPIPController ()
void BuildInitAckL ()
void BuildInitFailL ( TInitFailReason )
void CheckAndHandleErrorL ( TInt )
void CheckInitFailL ( TInt )
TInt CheckMTPConnection ()
TBool CompareHost ( RSocket &)
void ConstructL ()
void DoCancel ()
TInt EnableSocketTransfer ()
TInt ParseEvtPacket ()
TInt ParseInitPacketL ()
TInt PublishSocketNamePair ()
void Reset ()
TInt RunError ( TInt )
void RunL ()
void Schedule ()
void StartTimer ( TInt )
TBool Validate ()
Private Member Enumerations
enum TPTPIPControllerStates {
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()

void BuildInitAckL ( ) [private]

BuildInitFailL(TInitFailReason)

void BuildInitFailL ( TInitFailReason aReason ) [private]

Parameters

TInitFailReason aReason

CheckAndHandleErrorL(TInt)

void CheckAndHandleErrorL ( TInt aError ) [private]

Parameters

TInt aError

CheckInitFailL(TInt)

void CheckInitFailL ( TInt aError ) [private]

Parameters

TInt aError

CheckMTPConnection()

TInt CheckMTPConnection ( ) [private]

CompareHost(RSocket &)

TBool CompareHost ( RSocket & aSocket ) [private]

Parameters

RSocket & aSocket

ConstructL()

void ConstructL ( ) [private]

DoCancel()

void DoCancel ( ) [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 void OnTimeOut ( )

ParseEvtPacket()

TInt ParseEvtPacket ( ) [private]

ParseInitPacketL()

TInt ParseInitPacketL ( ) [private]

PublishSocketNamePair()

TInt PublishSocketNamePair ( ) [private]

Reset()

void Reset ( ) [private]

RunError(TInt)

TInt RunError ( TInt aErr ) [private]

Parameters

TInt aErr

RunL()

void RunL ( ) [private]

Schedule()

void Schedule ( ) [private]

Schedules the next request phase or event.

SetDeviceFriendlyName(TDesC16 *)

IMPORT_C void SetDeviceFriendlyName ( TDesC16 * aDeviceFriendlyName ) [virtual]

Parameters

TDesC16 * aDeviceFriendlyName

SetDeviceGUID(TDesC8 &)

IMPORT_C TInt SetDeviceGUID ( TDesC8 & aDeviceGUID ) [virtual]

Parameters

TDesC8 & aDeviceGUID

SocketAccepted(TRequestStatus &)

IMPORT_C void SocketAccepted ( TRequestStatus & aStatus ) [virtual]

Parameters

TRequestStatus & aStatus

StartTimer(TInt)

void StartTimer ( TInt aSecond ) [private]

Parameters

TInt aSecond

StopTransport()

IMPORT_C void StopTransport ( ) [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]