Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


How to receive a picture

Use CTranpSession::Get() to receive pictures from a digital camera. This puts the module into a receive state.

void CTranpSession::Get(const TTranpPicture* aPicture);

If a peer device connects successfully, the MTranpNotification::Connected() function will be called, followed by timely calls to MTranpNotification::ProgressIndication() informing the client of the amount of data received. This will be followed by MTranpNotification::GetComplete() notification and then a disconnect message, MTranpNotification::Disconnected().

If the connection is dropped at any time in a transfer, MTranpNotifocation::Error() is called.

You can request a different desired picture size and aspect ratio by setting the appropriate variables in the TTranpPicture object.