CMTPConnectionMgr Class Reference
class CMTPConnectionMgr : public CBase
|
Implements the connection manager singleton. The connection manager is a container class responsible for loading, storing, and managing
CMTPTransportPlugin
instances. The connection manager uses the ECOM framework to load and unload transport plug-ins on demand.The connection manager is not responsible for controlling or scheduling transport connections, but is notified by the loaded transport plug-ins as
MMTPTransportConnection
instances are created. At which time it will create and bind a new
CMTPConnection
instance to the
MMTPTransportConnection
instance being registered.
Constructor & Destructor Documentation
CMTPConnectionMgr()
CMTPConnectionMgr
|
(
|
)
|
[private]
|
Member Functions Documentation
ClientSId()
TUid
|
ClientSId
|
(
|
)
|
[private]
|
ConnectionCloseComplete(const TUint &)
void
|
ConnectionCloseComplete
|
(
|
const
TUint
&
|
aConnUid
|
)
|
|
ConnectionClosed(MMTPTransportConnection &)
ConnectionCount()
TUint
|
ConnectionCount
|
(
|
)
|
const
|
Provides a count of the number of currently open connections.
ConnectionFind(TUint)
TInt
|
ConnectionFind
|
(
|
TUint
|
aConnectionId
|
)
|
const [private]
|
Provides the connections table index of the connection with the specified connection identifier.
ConnectionL(TUint)
Provides a reference to the connection with the specified connection identifier.
-
leave
-
KErrNotFound If a connection with the specified identifier does not exist.
Parameters
TUint
aConnectionId
|
The connection identifier.
|
ConnectionOpenedL(MMTPTransportConnection &)
ConnectionOrderCompare(const CMTPConnection &, const CMTPConnection &)
Determines the relative order of two
CMTPConnection
objects based on their connection IDs.
DoResumeSuspendedTransport(TAny *)
TInt
|
DoResumeSuspendedTransport
|
(
|
TAny
*
|
aSelf
|
)
|
[private, static]
|
Resume suspended transport
NewL()
CMTPConnectionMgr
factory method.
-
leave
-
If a failure occurs, one of the system wide error codes.
QueueTransportL(TUid, const TAny *)
IMPORT_C void
|
QueueTransportL
|
(
|
TUid
|
aTransport,
|
|
const
TAny
*
|
aParameter
|
|
)
|
|
Queue the transport to start when there is no running transport
-
leave
-
One of the system wide error codes, if the operation fails.
ResumeSuspendedTransport()
void
|
ResumeSuspendedTransport
|
(
|
)
|
[private]
|
Prepare to resume suspended transport
SetBTResumeParameter(const TBTDevAddr &, const TUint16 &)
IMPORT_C void
|
SetBTResumeParameter
|
(
|
const
TBTDevAddr
&
|
aBTAddr,
|
|
const
TUint16
&
|
aPSMPort
|
|
)
|
|
SetClientSId(TUid)
IMPORT_C void
|
SetClientSId
|
(
|
TUid
|
aSecureId
|
)
|
|
StartTransportL(TUid)
IMPORT_C void
|
StartTransportL
|
(
|
TUid
|
aTransport
|
)
|
|
StartTransportL(TUid, const TAny *)
IMPORT_C void
|
StartTransportL
|
(
|
TUid
|
aTransport,
|
|
const
TAny
*
|
aParameter
|
|
)
|
|
Loads and starts up the MTP transport plug-in with the specified
CMTPTransportPlugin
interface implementation UID. Only one MTP transport plug-in can be loaded at any given time.
-
leave
-
KErrNotSupported If an attempt is made to load a second MTP transport plug-in.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
StopTransport
StopTransport(TUid)
IMPORT_C void
|
StopTransport
|
(
|
TUid
|
aTransport
|
)
|
|
Shuts down and unloads the MTP transport plug-in with the specified
CMTPTransportPlugin
interface implementation UID.
StopTransport(TUid, TBool)
IMPORT_C void
|
StopTransport
|
(
|
TUid
|
aTransport,
|
|
TBool
|
aByBearer
|
|
)
|
|
Shuts down and unloads the MTP transport plug-in with the specified
CMTPTransportPlugin
interface implementation UID.
Parameters
TUid
aTransport
|
The CMTPTransportPlugin interface implementation UID.
|
TBool
aByBearer
|
If ETrue, it means the transport plugin is stopped because the bearer is turned off or not activated.
|
StopTransports()
IMPORT_C void
|
StopTransports
|
(
|
)
|
|
Shuts down and unloads all active MTP transport plug-ins.
SuspendTransportL(TUid)
void
|
SuspendTransportL
|
(
|
TUid
|
aTransport
|
)
|
[private]
|
Append the transport to the suspended transport list
-
leave
-
One of the system wide error codes, if the operation fails.
TransportCount()
IMPORT_C
TInt
|
TransportCount
|
(
|
)
|
const
|
Returns the number of active Transports.
TransportUid()
IMPORT_C
TUid
|
TransportUid
|
(
|
)
|
|
Returns the current transportID.
UnsuspendTransport(TUid)
void
|
UnsuspendTransport
|
(
|
TUid
|
aTransport
|
)
|
[private]
|
Remove transport from the suspended transports list
operator[](TInt)
Provide a non-const reference to the located at the specified position within the connection table.
Member Data Documentation
__FLOG_DECLARATION_MEMBER_MUTABLE
|
__FLOG_DECLARATION_MEMBER_MUTABLE
|
[private]
|
FLOGGER debug trace member variable.
TLinearOrder< CMTPConnection > iConnectionOrder
RPointerArray< CMTPConnection > iConnections
TMTPBTRemoteDevice
iRemoteDevice
It will store the bluetooth address of remote device.
TBool
iResumeCalled
TBool
|
iResumeCalled
|
[private]
|
Set ETrue when Resumetransport need to be called.
TInt
iShutdownConnectionIdx
TInt
|
iShutdownConnectionIdx
|
[private]
|
RArray< TUid > iSuspendedTransports
Array storing the UIDs of the suspended transport plugins
CMTPTransportPlugin * iTransport
TUint
iTransportCount
TUint
|
iTransportCount
|
[private]
|
CAsyncCallBack * iTransportTrigger
Active object which starts suspended transport asynchronously
TUid
iTransportUid
TUid
|
iTransportUid
|
[private]
|
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.