class CTranpSession : public CBase |
Encapsulates the behaviour for sending a picture to a peer device and for receiving a picture from a peer device.
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) |
Private Member Functions | |
---|---|
CTranpSession() | |
void | ConstructL(MTranpNotification &) |
Public Member Enumerations | |
---|---|
enum | TTranP { EReqImageInfo = 0, EReqStatus, EReqCommands } |
Private Attributes | |
---|---|
TTranpConfig | iConfig |
CTranpProtocol * | iTranpProtocol |
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
const TTranpConfig & aConfig |
IMPORT_C TTranpConfig | Config | ( | ) | const |
No Longer used.
irda client libraries left in to avoid breaks
void | ConstructL | ( | MTranpNotification & | aNotifier | ) | [private] |
MTranpNotification & aNotifier |
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.
MTranpNotification::Connected() MTranpNotification::ProgressIndication() MTranpNotification::GetComplete() MTranpNotification::Disconnected() MTranpNotification::Error()
TTranpPicture & aPicture | The picture object |
IMPORT_C CTranpSession * | NewL | ( | MTranpNotification & | aNotifier | ) | [static] |
Constructs and returns a pointer to a new picture transmission session.
MTranpNotification & aNotifier | An implementation of the picture transmission callback interface. |
IMPORT_C void | Put | ( | const TTranpPicture & | aPicture | ) |
No Longer used.
irda client libraries left in to avoid breaks
const TTranpPicture & aPicture |
IMPORT_C void | Query | ( | TTranP | aWhat | ) |
No Longer used.
irda client libraries left in to avoid breaks
TTranP aWhat |
The type of information required from a peer device.
EReqImageInfo = 0 |
Request still-information from the peer, e.g. resolution and size. |
EReqStatus |
Request information about the peer's battery status and free memory. |
EReqCommands |
Request how many commands can be executed in one SCEP session. |
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.