Location:
tranp.h
Link against: irtranp.lib
CTranpSession
Supported from 6.0
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()
, Connect()
, Disconnect()
, EReqCommands
, EReqImageInfo
, EReqStatus
, Get()
, NewL()
, Put()
, Query()
, TTranP
, ~CTranpSession()
Inherited from CBase
:
operator new()
static CTranpSession* NewL(MTranpNotification& aNotifier);
Constructs and returns a pointer to a new picture transmission session.
|
|
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.
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.
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().
|
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()
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() call back 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()
void Config(const TTranpConfig& aConfig);
Sets the configuration parameters.
|
TTranpConfig Config() const;
Returns the configuration parameters.
|
TTranP
The type of information required from a peer device.
|