Location:
obexclient.h
Link against: obex.lib
class CObexClient : public CObex;
Client side functionality. Connection based. Supports ...
Opening IrDA TTP sockets for the OBEX session.
Opening an OBEX session over a connected socket
Standard OBEX (spec. version 1.2) operations.
This class is not designed for user derivation.
MObexNotify
- No description.
CBase
- Base class for all classes to be instantiated on the heap
CObex
- This class is the common base class for
CObexClient
- Client side functionality
Defined in CObexClient
:
Abort()
, Connect()
, Connect()
, ConnectL()
, ConnectL()
, ConstructL()
, Disconnect()
, ExtensionInterface()
, Get()
, GetPutFinalResponseHeaders()
, LastServerResponseCode()
, NewL()
, NewL()
, NewL()
, OnError()
, OnPacketReceive()
, OnTransportDown()
, OnTransportUp()
, ParseConnectPacket()
, Put()
, SetCommandTimeOut()
, SetFinalPacketObserver()
, SetPath()
, UserPasswordL()
, ~CObexClient()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Inherited from CObex
:
ConnectState()
,
EChallConnChallIssued
,
EChallConnRequested
,
EConnChallRxed
,
EConnIdle
,
EConnObex
,
EConnTransport
,
EDropLink
,
EFinalChallRxed
,
EFinalResponseReceived
,
EObexNoSuppressedAuthElements
,
EObexSuppressAllAuthElements
,
EObexSuppressChallengeOptionsAuthElement
,
EObexSuppressRealmAuthElement
,
EOpAbort
,
EOpAbortNoFBit
,
EOpConnect
,
EOpDisconnect
,
EOpGet
,
EOpGetResponse
,
EOpIdle
,
EOpPut
,
EOpSetPath
,
ESimpleConnChallIssued
,
ESimpleConnRequest
,
EWaitForFinalResponse
,
EWaitForUserInput
,
IsAuthenticating()
,
IsConnected()
,
IsStrictPeer()
,
LocalInfo()
,
RemoteAddr()
,
RemoteInfo()
,
SetCallBack()
,
SetLocalWho()
,
SuppressAuthenticationHeaderElements()
,
TConnectState
,
TObexSuppressedAuthElements
,
TOperation
,
TSetPathInfo
,
iAuthEngine
,
iCallBack
,
iChallPassword
,
iChallenge
,
iConnectState
,
iCurrentOperation
,
iIncomingChallResp
,
iIncomingNonce
,
iIncomingRequestDigest
,
iLocalInfo
,
iNotifyHandler
,
iOutgoingChallResp
,
iOutgoingNonce
,
iRemoteInfo
,
iRemoteRealm
,
iRemoteUID
,
iReserved
,
iRespPassword
,
iRxChallenge
,
iSuppressedObexAuthElements
,
iTransportController
,
iUserIDRequested
Capability: | WriteDeviceData | Conditional on: KObexIrTTPProtocolV3
|
static IMPORT_C CObexClient *NewL(TObexProtocolInfo &aObexProtocolInfoPtr);
Allocates and constructs a new OBEX client object.
The received protocol information object, aObexProtocolInfoPtr, specifies the transport protocol to use: For the standard
transports the following are used, TObexIrProtocolInfo
for IrDA, TObexBluetoothProtocolInfo
for Bluetooth, TObexUsbProtocolInfo
for USB.
|
|
static IMPORT_C CObexClient *NewL(TObexProtocolInfo &aObexProtocolInfoPtr, TObexProtocolPolicy &aObexProtocolPolicy);
Allocates and constructs a new OBEX client object with packet sizing information.
The received protocol information object, aObexProtocolInfoPtr, specifies the transport protocol to use: For the standard
transports the following are used, TObexIrProtocolInfo
for IrDA, TObexBluetoothProtocolInfo
for Bluetooth, TObexUsbProtocolInfo
for USB.
The aObexProtocolPolicy parameter specifies the packet sizing policy for this OBEX object.
|
|
Capability: | WriteDeviceData | If the |
static IMPORT_C CObexClient *NewL(TObexTransportInfo &aObexTransportInfo);
Allocates and constructs a new OBEX client object with packet sizing information.
The received transport information object, aObexTransportInfo, specifies the transport protocol packet sizes to use: For the
standard transports the following are used, TObexIrProtocolInfo
for IrDA, TObexBluetoothProtocolInfo
for Bluetooth, TObexUsbProtocolInfo
for USB.
|
|
private: virtual void ConstructL(TObexTransportInfo &aObexTransportInfo);
|
IMPORT_C void Connect(TRequestStatus &aStatus);
OBEX CONNECT operation to any available remote machine.
|
IMPORT_C void Connect(CObexBaseObject &aObject, TRequestStatus &aStatus);
OBEX CONNECT operation to any available remote machine, specifying an object to pass.
|
IMPORT_C void ConnectL(CObexBaseObject &aObject, const TDesC &aPassword, TRequestStatus &aStatus);
OBEX CONNECT operation to any available remote machine, specifying an object to pass and a password.
|
IMPORT_C void ConnectL(const TDesC &aPassword, TRequestStatus &aStatus);
OBEX CONNECT operation to any available remote machine, specifying a password.
|
IMPORT_C void Disconnect(TRequestStatus &aStatus);
OBEX DISCONNECT operation.
This terminates the OBEX connection, and closes the transport on receiving any response from the server.
|
IMPORT_C void Put(CObexBaseObject &aObject, TRequestStatus &aStatus);
OBEX PUT operation.
Any valid header that is also present in aObject’s header mask will be sent to the server, along with the object body specified by the implementation of aObject.
|
IMPORT_C void Get(CObexBaseObject &aObject, TRequestStatus &aStatus);
OBEX GET operation.
The caller specifies in aObject the headers to send to the server to specify the object to get: normally just a name is expected.
If the server can serve the request, the object it returns will be loaded into aObject on completion. All headers returned
by the server that are also allowed by the object’s header mask will be loaded into the relevant attributes of aObject. Any
object body is stored according to the implementation type of the CObexBaseObject
passed.
|
IMPORT_C void SetPath(TSetPathInfo &aPathInfo, TRequestStatus &aStatus);
OBEX SETPATH operation.
This changes the remote device's current path.
|
IMPORT_C void Abort();
OBEX ABORT operation.
The function sends the OBEX abort command to the remote machine if a multi-packet operation (i.e. PUT or GET) is in progress. An operation in progress will complete with KErrAbort.
virtual IMPORT_C void UserPasswordL(const TDesC &aPassword);
A call back from the the service with the password required for use with generating the challenge response.
|
|
IMPORT_C const CObexHeaderSet &GetPutFinalResponseHeaders();
This function can be called following the successful completion of a Put, and will return a reference to a CObexHeaderSet
containing all the headers that were contained in the final Put response packet returned from the peer Obex server.
The headers in the header set will be deleted by any subsequent call to CObexClient functions that trigger Obex commands (ie. Connect, Disconnect, Put, Get, SetPath).
The reference should not be retained beyond the end of the lifetime of the CObexClient object.
|
IMPORT_C void SetFinalPacketObserver(MObexFinalPacketObserver *aObserver);
Sets a final packet observer.
This replaces any previous observer. The observer will receive a callback when a final packet for a put or get request begins to be sent and another when the send completes. Although the start and finish callbacks are guaranteed to be in order, no guarantees are made about the ordering with respect to the completion of the put or get request.
This does not transfer ownership.
|
IMPORT_C TObexResponse LastServerResponseCode() const;
Get last server response code This method returns the last received OBEX response code. The method must not be called prior to a response notification being received by the client application. If the method is called a panic will be raised.
|
|
IMPORT_C void SetCommandTimeOut(TTimeIntervalMicroSeconds32 aTimeOut);
Sets the Command Idle Time-out.
This function sets the timer period to be observed during the progress of all OBEX commands. If the OBEX server does not respond within the set period the current OBEX command will be completed with an error of KErrIrObexRespTimedOut and the transport will be disconnected.
Setting a time-out value of 0, all OBEX commands will be allowed to continue indefinitely.
|
IMPORT_C TAny *ExtensionInterface(TUid aUid);
Provides additional interfaces for CObexClient.
|
|
private: virtual void OnPacketReceive(CObexPacket &aPacket);
|
private: virtual TInt ParseConnectPacket(CObexPacket &aPacket);
|
|