CTranpSession Class Reference

class CTranpSession : public CBase

Encapsulates the behaviour for sending a picture to a peer device and for receiving a picture from a peer device.

Inherits from

Constructor & Destructor Documentation

CTranpSession()

CTranpSession()[private]

Constructor

~CTranpSession()

IMPORT_C~CTranpSession()

Frees all resources owned by the object, prior to its destruction.

Member Functions Documentation

Abort()

IMPORT_C voidAbort()

Aborts any transmission in progress.

Config(const TTranpConfig &)

IMPORT_C voidConfig(const TTranpConfig &aConfig)

No Longer used.

irda client libraries left in to avoid breaks

Parameters

const TTranpConfig & aConfig

Config()

IMPORT_C TTranpConfigConfig()const

No Longer used.

irda client libraries left in to avoid breaks

Connect()

IMPORT_C voidConnect()

No Longer used.

irda client libraries left in to avoid breaks

ConstructL(MTranpNotification &)

voidConstructL(MTranpNotification &aNotifier)[private]

Parameters

MTranpNotification & aNotifier

Disconnect()

IMPORT_C voidDisconnect()

No Longer used.

irda client libraries left in to avoid breaks

Get(TTranpPicture &)

IMPORT_C voidGet(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()

Parameters

TTranpPicture & aPictureThe picture object

NewL(MTranpNotification &)

IMPORT_C CTranpSession *NewL(MTranpNotification &aNotifier)[static]

Constructs and returns a pointer to a new picture transmission session.

Parameters

MTranpNotification & aNotifierAn implementation of the picture transmission callback interface.

Put(const TTranpPicture &)

IMPORT_C voidPut(const TTranpPicture &aPicture)

No Longer used.

irda client libraries left in to avoid breaks

Parameters

const TTranpPicture & aPicture

Query(TTranP)

IMPORT_C voidQuery(TTranPaWhat)

No Longer used.

irda client libraries left in to avoid breaks

Parameters

TTranP aWhat

Member Enumerations Documentation

Enum TTranP

The type of information required from a peer device.

Enumerators

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.

Member Data Documentation

TTranpConfig iConfig

TTranpConfig iConfig[private]

CTranpProtocol * iTranpProtocol

CTranpProtocol *iTranpProtocol[private]