Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: tranp.h
Link against: irtranp.lib

Class CTranpSession

CTranpSession

Support

Supported from 6.0

Description

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

Derivation

CBaseBase class for all classes to be instantiated on the heap
CTranpSessionEncapsulates 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()


Construction and destruction


NewL()

static CTranpSession* NewL(MTranpNotification& aNotifier);

Description

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

Parameters

MTranpNotification& aNotifier

An implementation of the picture transmission callback interface.

Return value

CTranpSession*

A pointer to the new picture transmission session.


~CTranpSession()

~CTranpSession();

Description

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

[Top]


Establishing a connection with a peer device


Connect()

void Connect();

Description

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.

See also:


Disconnect()

void Disconnect();

Description

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.

See also:


Abort()

void Abort();

Description

Aborts any transmission in progress.

[Top]


Query capabilities of peer


Query()

void Query(TTranP aWhat);

Description

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().

Parameters

TTranP aWhat

The specific type of information required from the peer device.

See also:

[Top]


Receive & send a picture


Get()

void Get(TTranpPicture& aPicture);

Description

Receives a picture from a peer device.

The following sequence of events is expected:

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.

Parameters

TTranpPicture& aPicture

The picture object

See also:


Put()

void Put(const TTranpPicture& aPicture);

Description

Sends a picture to a peer device.

The following sequence of events is expected:

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.

Parameters

const TTranpPicture& aPicture

The picture object

See also:

[Top]


Configuration parameters


Config()

void Config(const TTranpConfig& aConfig);

Description

Sets the configuration parameters.

Parameters

const TTranpConfig& aConfig

The configuration parameters


Config()

TTranpConfig Config() const;

Description

Returns the configuration parameters.

Return value

TTranpConfig

The configuration parameters.

[Top]


Enumerations


Enum TTranP

TTranP

Description

The type of information required from a peer device.

EReqImageInfo

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.