Location:
tranp.h
Link against: irtranp.lib
class CTranpSession : public CBase;
Encapsulates the behaviour for sending a picture to a peer device and for receiving a picture from a peer device.
CBase
- Base class for all classes to be instantiated on the heap
CTranpSession
- Encapsulates the behaviour for sending a picture to a peer device and for receiving a picture from a peer device
Defined in CTranpSession
:
Abort()
, Config()
, Config()
, Connect()
, Disconnect()
, EReqCommands
, EReqImageInfo
, EReqStatus
, Get()
, NewL()
, Put()
, Query()
, TTranP
, ~CTranpSession()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
static IMPORT_C CTranpSession *NewL(MTranpNotification &aNotifier);
Constructs and returns a pointer to a new picture transmission session.
|
|
IMPORT_C ~CTranpSession();
Frees all resources owned by the object, prior to its destruction.
IMPORT_C void Connect();
Establishes a connection with a peer device. This function is called before sending a picture.
The callback function Connect()
is called when the connection has been successfully established.
IMPORT_C void Disconnect();
Breaks the connection with a peer device. This function is called after sending a picture.
The callback function Disconnected() is called when the connection has been broken.
IMPORT_C void Query(TTranP aWhat);
Requests information on the processing ability of the peer device. Typically, this is called before sending a picture to that peer device. The information is returned through the callback function QueryComplete().
|
IMPORT_C void Get(TTranpPicture &aPicture);
Receives a picture from a peer device.
The following sequence of events is expected:
A peer device connects successfully, resulting in a call to the Connect()
callback function.
The peer device sends picture data, resulting in successive calls to the ProgressIndication() callback function indicating how much of the picture data has been received.
Reception of picture data is complete, resulting in a call to the GetComplete() call back function.
Disconnection from the peer device, resulting in a call the Disconnected() callback function.
If the connection with the peer device is dropped at any stage in the transmission, then this results in a call to the Error() callback function.
|
MTranpNotification::Connected()
MTranpNotification::ProgressIndication()
MTranpNotification::GetComplete()
MTranpNotification::Disconnected()
MTranpNotification::Error()
IMPORT_C void Put(const TTranpPicture &aPicture);
Sends a picture to a peer device.
The following sequence of events is expected:
This device sends picture data to the peer device, resulting in successive calls to the ProgressIndication() callback function indicating how much of the picture data has been received.
Transmission of picture data is complete, resulting in a call to the GetComplete() callback function.
If the connection with the peer device is dropped at any stage in the transmission, then this results in a call to the Error() callback function.
|
MTranpNotification::ProgressIndication()
MTranpNotification::GetComplete()
MTranpNotification::Error()
IMPORT_C void Config(const TTranpConfig &aConfig);
Sets the configuration parameters.
|
IMPORT_C TTranpConfig Config() const;
Returns the configuration parameters.
|
TTranP
The type of information required from a peer device.
|