CMTPSession Class Reference
class CMTPSession : public CBase
|
Implements the session level portion of the MTP communication model. It also implements the data provider layer MTP session interface (
MMTPSession
).
Constructor & Destructor Documentation
CMTPSession(TUint32, TUint)
Member Functions Documentation
CheckPendingEvent(const TMTPTypeRequest &)
CompletePendingRequest(TInt)
void
|
CompletePendingRequest
|
(
|
TInt
|
aErr
|
)
|
|
Completes the currently pending asynchronous request status with the specified completion code.
Parameters
TInt
aErr
|
The asynchronous request completion request.
|
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
ExpectedTransactionId()
TUint32
|
ExpectedTransactionId
|
(
|
)
|
const
|
Provides the next expected TransactionID. Transaction IDs are assigned in incremental sequence by the MTP initiator in the range 0x00000001 to 0xFFFFFFFE.
GetExtendedInterface(TUid)
TAny
*
|
GetExtendedInterface
|
(
|
TUid
|
aInterfaceUid
|
)
|
|
IncrementExpectedTransactionId()
void
|
IncrementExpectedTransactionId
|
(
|
)
|
|
Increments the next expected TransactionID to the next value in the sequence. TransactionIDs are assigned by the MTP initiator starting from 0x00000001. When the TransactionID increments to 0xFFFFFFFF it wraps back to 0x00000001.
RequestPending()
TBool
|
RequestPending
|
(
|
)
|
const
|
Indicates if an asynchronous request is currently pending.
RouteRequest(const TMTPTypeRequest &)
RouteRequestMatchOpCode(const TUint16 *, const TMTPTypeRequest &)
RouteRequestOrder(const TMTPTypeRequest &, const TMTPTypeRequest &)
RouteRequestRegisterL(const TMTPTypeRequest &, TInt)
RouteRequestRegistered(TUint16)
Indicates if a routing request is registered on the session with the specified MTP operation code.
Parameters
TUint16
aOpCode
|
The MTP operation code.
|
RouteRequestUnregister(const TMTPTypeRequest &)
SessionUniqueId()
TUint
|
SessionUniqueId
|
(
|
)
|
const
|
SetActiveRequestL(const TMTPTypeRequest &)
Sets or resets the session's active transaction request dataset. The active transaction request dataset should only be set at the start of the transaction (ERequestPhase), and reset and the end of the transaction (ECompletingPhase).
SetRequestPending(TRequestStatus &)
Set the status to complete for the currently pending asynchronous request.
SetTransactionPhase(TMTPTransactionPhase)
Sets the session's transaction phase state variable.
StorePendingEventL(const TMTPTypeEvent &)
TransactionPhase()
Provides the current MTP transaction state for the session.
Member Data Documentation
__FLOG_DECLARATION_MEMBER_MUTABLE
|
__FLOG_DECLARATION_MEMBER_MUTABLE
|
[private]
|
FLOGGER debug trace member variable.
TMTPTypeRequest
iActiveRequest
TUint32
iExpectedTransactionId
TUint32
|
iExpectedTransactionId
|
[private]
|
TAny * iExtendedInterface
TAny
*
|
iExtendedInterface
|
[private]
|
TUint
iIdUnique
TUint
|
iIdUnique
|
[private]
|
TMTPTypeEvent
iPendingEvent
TRequestStatus * iRequestStatus
RArray< TMTPTypeRequest > iRoutingRegistrations
TMTPTransactionPhase
iTransactionPhase
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.