|
||
class CTranpSession : public CBase;
Encapsulates the behaviour for sending a picture to a peer device and for receiving a picture from a peer device.
CBase
-
Base class for all classes to be instantiated on the heap.
CTranpSession
- Encapsulates the behaviour for sending a picture to a peer device and for receiv...
Defined in CTranpSession
:
Abort()
Aborts any transmission in progress. Config()const
Returns the configuration parameters.Config(const TTranpConfig &)
Sets the configuration parameters.Connect()
Establishes a connection with a peer device. This function is called before send...Disconnect()
Breaks the connection with a peer device. This function is called after sending ...EReqCommands
Request how many commands can be executed in one SCEP session. EReqImageInfo
Request still-information from the peer, e.g. resolution and size. EReqStatus
Request information about the peer's battery status and free memory. Get(TTranpPicture &)
Receives a picture from a peer device.NewL(MTranpNotification &)
Constructs and returns a pointer to a new picture transmission session.Put(const TTranpPicture &)
Sends a picture to a peer device.Query(TTranP)
Requests information on the processing ability of the peer device. Typically, th...TTranP
The type of information required from a peer device. ~CTranpSession()
Frees all resources owned by the object, prior to its destruction. Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...IMPORT_C static CTranpSession* NewL(MTranpNotification &aNotifier);
Constructs and returns a pointer to a new picture transmission session.
|
|
IMPORT_C ~CTranpSession();
Frees all resources owned by the object, prior to its destruction.
IMPORT_C void Connect();
Establishes a connection with a peer device. This function is called before sending a picture.
The callback function CTranpSession::Connect()
is called when the connection has been successfully established.
MTranpNotification::Connected()
This function is called when a peer device connects successfully to the host dev...IMPORT_C void Disconnect();
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.
MTranpNotification::Connected()
This function is called when a peer device connects successfully to the host dev...IMPORT_C void Query(TTranP aWhat);
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().
|
MTranpNotification::QueryComplete()
This function is called when an operation querying the processing ability of a p...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 CTranpSession::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()
This function is called when a peer device connects successfully to the host dev...MTranpNotification::ProgressIndication(TInt)
This function is called during the sending or receiving of picture data and indi...MTranpNotification::GetComplete()
This function is called when the reception of picture data is complete. MTranpNotification::Disconnected()
This function is called when a peer device disconnects or is disconnected from t...MTranpNotification::Error(TInt)
This function is called when the connection with the peer device drops during pi...IMPORT_C void Put(const TTranpPicture &aPicture);
Sends a picture to a peer device.
The following sequence of events is expected:
This device sends picture data to the peer device, resulting in successive calls to the ProgressIndication() callback function indicating how much of the picture data has been received.
Transmission of picture data is complete, resulting in a call to the GetComplete() 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::ProgressIndication(TInt)
This function is called during the sending or receiving of picture data and indi...MTranpNotification::GetComplete()
This function is called when the reception of picture data is complete. MTranpNotification::Error(TInt)
This function is called when the connection with the peer device drops during pi...IMPORT_C void Config(const TTranpConfig &aConfig);
Sets the configuration parameters.
|
IMPORT_C TTranpConfig Config() const;
Returns the configuration parameters.
|
TTranP
The type of information required from a peer device.
|