#include "tranp.h"
class CTranpSession : public CBase |
Public Member Enumerations | |
---|---|
enum | TTranP { EReqImageInfo, EReqStatus, EReqCommands } |
Public Member Functions | |
---|---|
~CTranpSession() | |
IMPORT_C void | Abort() |
IMPORT_C void | Config(const TTranpConfig &) |
IMPORT_C TTranpConfig | Config() |
IMPORT_C void | Connect() |
IMPORT_C void | Disconnect() |
IMPORT_C void | Get(TTranpPicture &) |
IMPORT_C CTranpSession * | NewL(MTranpNotification &) |
IMPORT_C void | Put(const TTranpPicture &) |
IMPORT_C void | Query(TTranP) |
Encapsulates the behaviour for sending a picture to a peer device and for receiving a picture from a peer device.
IMPORT_C | ~CTranpSession | ( | ) |
Frees all resources owned by the object, prior to its destruction.
IMPORT_C void | Config | ( | const TTranpConfig & | aConfig | ) |
No Longer used.
irda client libraries left in to avoid breaks
IMPORT_C TTranpConfig | Config | ( | ) | const |
No Longer used.
irda client libraries left in to avoid breaks
IMPORT_C void | Disconnect | ( | ) |
No Longer used.
irda client libraries left in to avoid breaks
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.
See also: MTranpNotification::Connected() MTranpNotification::ProgressIndication() MTranpNotification::GetComplete() MTranpNotification::Disconnected() MTranpNotification::Error()
Parameter | Description |
---|---|
aPicture | The picture object |
IMPORT_C CTranpSession * | NewL | ( | MTranpNotification & | aNotifier | ) | [static] |
Constructs and returns a pointer to a new picture transmission session.
Parameter | Description |
---|---|
aNotifier | An implementation of the picture transmission callback interface. |
Returns: A pointer to the new picture transmission session.
IMPORT_C void | Put | ( | const TTranpPicture & | aPicture | ) |
No Longer used.
irda client libraries left in to avoid breaks
IMPORT_C void | Query | ( | TTranP | aWhat | ) |
No Longer used.
irda client libraries left in to avoid breaks