CObexTransportControllerBase Class Reference
class CObexTransportControllerBase : public CBase |
Inherits from
- CObexTransportControllerBase
Constructor & Destructor Documentation
CObexTransportControllerBase()
IMPORT_C | CObexTransportControllerBase | ( | ) | [protected] |
~CObexTransportControllerBase()
IMPORT_C | ~CObexTransportControllerBase | ( | ) | |
Member Functions Documentation
AcceptConnectionL()
IMPORT_C void | AcceptConnectionL | ( | ) | |
Calls accept connection on the connector
BaseConstructL()
void | BaseConstructL | ( | ) | [private] |
This function is a place holder for future use. If iFuture1 variable is used it will need this function for any allocation required. This function is called from CObexTransportControllerBase::NewL.
BringTransportDown()
IMPORT_C TBool | BringTransportDown | ( | ) | |
Calls on the constructor to take down the transport
CancelAccept()
IMPORT_C void | CancelAccept | ( | ) | |
CancelConnect()
IMPORT_C void | CancelConnect | ( | ) | |
CancelTransfers()
IMPORT_C void | CancelTransfers | ( | ) | |
Cancels outstanding reads or writes
ConnectL()
Calls ConnectL on the connector
ConstructPacketsL()
void | ConstructPacketsL | ( | ) | [private] |
DeleteTransport()
void | DeleteTransport | ( | ) | [private] |
DoError(TInt)
IMPORT_C void | DoError | ( | TInt | aError | ) | [protected, virtual] |
Reports and error to the owner
DoIsTransportRestartable()
TBool
| DoIsTransportRestartable | ( | ) | const [private, pure virtual] |
DoProcess(CObexPacket &)
IMPORT_C void | DoProcess | ( | CObexPacket & | aPacket | ) | [protected, virtual] |
Process a Packet. Upcall to the owner
DoRemoteAddr(TSockAddr &)
void | DoRemoteAddr | ( | TSockAddr & | aAddr | ) | [private, pure virtual] |
DoSignalPacketProcessEvent(TObexPacketProcessEvent)
Signals that an event related to processing the packet has occurred.
DoTransportUp(TObexConnectionInfo &)
Create the transport objects and reports that the transport is up to the owner
ExtractRemoteConnectInfo(CObexPacket &, TUint8 &, TUint8 &)
Extract the local information from the received packet
GetInterface(TUid)
IMPORT_C TAny * | GetInterface | ( | TUid | aUid | ) | [protected, virtual] |
This function is part of the extension pattern and must be implemented by all derived instantiable classes. By default this returns null. Any derived class that is required to extend its interface and that of this base class returns its new interface in the form of an M class, that it extends, if and only if the corresponding TUid, aUid, is received. Otherwise the function calls the base class implementation, returning NULL.
Parameters
TUid aUid | The uid associated with the M Class that is being implemented |
GetReceivePacketDataLimit()
TUint16
| GetReceivePacketDataLimit | ( | ) | [private, pure virtual] |
InitialiseTransportL(TObexConnectionInfo &)
InsertLocalConnectInfo(CObexPacket &, TUint8, TUint8)
Insert local Connection info with the received, aVersion, aFlags and from iReceivePacket into the receive packet, aPacket
IsTransportRestartable()
IMPORT_C TBool | IsTransportRestartable | ( | ) | const |
Returns true if the derived transport can re-connect when an obex connection is re-connected This is used to determine whether to take the transport down when an obex connection has been disconnected
DoIsTransportRestartable
IsWriteActive()
IMPORT_C TBool | IsWriteActive | ( | ) | const |
Is there a write outstanding
NewL(TObexTransportInfo &)
Constructs a CObexTransportControllerBase PlugIn object.
-
panic
- TransCTBase EInvalidNumberOfTransportImplementations if there is more than one implementation for a given interface uid and transport name (equal to the default data in the plugin resource file
NewTransportL(TObexConnectionInfo &)
Receive()
Ask activer reader to do a read
ReceivePacket()
Returns the packet received
RemoteAddr(TSockAddr &)
Gets the socket associated with the connector and asks the socket for its remote name. This can be cast to the appropriate TSockAddr-derived class TIrdaSockAddr for IrDA.
Send()
Ask active writer to do a send
Send(TObexOpcode)
Init the send packet wtih the received, aOpcode, set final to true, and send the packet
SetOwner(MObexNotifyExtend &)
Sets the owner information from the received aOwner
SignalTransportError()
IMPORT_C void | SignalTransportError | ( | ) | |
Calls signal transport error on the connector
TransportInfo()
Returns a pointer to the transport info being used by the transport. This may be cast to the transport info type associated with the known concrete transport controller.
TransportUpError(TInt)
void | TransportUpError | ( | TInt | aError | ) | [private] |
Member Data Documentation
CObexActiveRW * iActiveReader
CObexActiveRW * iActiveWriter
TObexConnectionInfo
iConnectionInfo
CObexConnector * iConnector
MObexNotifyExtend * iOwner
TUid
iPrivateEComUID
TUid
| iPrivateEComUID | [private] |
CObexPacket * iReceivePacket
CObexPacket * iSendPacket
TObexTransportInfo * iTransportInfo
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.