Serial Framework C++ Edition

◆ Get()

int Get ( const tstring &  aType,
CwclStream *const  Stream 
)

The function reads the default object with given type from an OBEX Push server.

Parameters
aTypeThe object's type.
StreamThe object's data stream.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

This function can be used to pull (request) the default business card (vCard) from a target device. To do that the aType parameter must be "text/x-vCard" string.

An application must pass a valid Stream object to the method and the stream object must be valid until OnGetComplete event fires. An application can destroy the stream object passed as the Stream parameter only after OnGetComplete event fired.

During execution of the Get operation the OnProgress event may (or may not) fire indicating the operation progress.

See also
CwclStream