Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [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 how much of the information has been 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 different desired picture size, aspect ratio by setting the appropriate variables in the TTranpPicture Object.