Serial Framework C++ Edition
|
The base class for OBEX file based clients: OPP, FTP, etc. More...
#include <wclObex.h>
Public Member Functions | |
CwclObexFileClient (CwclClientDataConnection *const Connection) | |
Creates new OBEX File Client Data Processor. | |
virtual | ~CwclObexFileClient () |
Frees the object. | |
int | Put (const tstring &Name, const tstring &Description, CwclStream *const Stream) |
Sends one object from the client to the server. | |
__event void | OnGetComplete (void *Sender, const int Error, const tstring &Description, CwclStream *const Stream) |
The event fires when the Get operation has been completed. | |
__event void | OnPutComplete (void *Sender, const int Error, const tstring &Description, CwclStream *const Stream) |
The event fires when the Put operation has been completed. | |
Public Member Functions inherited from CwclCustomObexClient | |
CwclCustomObexClient (CwclClientDataConnection *const Connection) | |
Creates new OBEX Client Data Processor. | |
virtual | ~CwclCustomObexClient () |
Frees the Data Processor. | |
virtual void | ProcessData (const void *const Data, const unsigned long Size) override |
The method called by the Connection when data has been received from a remote device. | |
int | Abort (const tstring &Description) |
Aborts current operation executing. | |
int | Disconnect (const tstring &Description) |
Disconnects from an OBEX server. | |
bool | GetConnected () const |
Gets the connected state. | |
__declspec (property(get=GetConnected)) bool Connected | |
Gets the connected state. | |
__event void | OnConnect (void *Sender, const int Error, const tstring &Description) |
The event fires when the Connect operation has been completed completed. | |
__event void | OnDisconnect (void *Sender, const int Error, const tstring &Description) |
The event fires when the Disconnect operation completed. | |
__event void | OnProgress (void *Sender, const unsigned long Length, const unsigned long Position) |
The event fires during sending or receiving an object to indicate operation progress. | |
Public Member Functions inherited from CwclCustomClientDataProcessor | |
CwclCustomClientDataProcessor (CwclClientDataConnection *const Connection) | |
Creates new Client Data Processor. | |
virtual | ~CwclCustomClientDataProcessor () |
Frees the Data Processor. | |
CwclClientDataConnection * | GetConnection () const |
Gets the connection object used to communicate with a remote device. | |
__declspec (property(get=GetConnection)) CwclClientDataConnection *Connection | |
Public Member Functions inherited from CwclCustomDataProcessor | |
CwclCustomDataProcessor () | |
Creates new Data Processor object. | |
virtual | ~CwclCustomDataProcessor () |
Frees the Data Processor object. | |
virtual void | ProcessData (const void *const Data, const unsigned long Size)=0 |
The method called by the Connection when data has been received from a remote device. | |
__event void | OnWrite (void *Sender, const void *const Data, const unsigned long Size, unsigned long &Written, int &WriteResult) |
The event fires when the Data Processor needs to write data to a connection but a connection is not assigned. | |
Protected Member Functions | |
virtual void | DoGetComplete (const int Error, const tstring &Description, CwclStream *const Stream) override |
Fires the OnGetComplete event. | |
virtual void | DoPutComplete (const int Error, const tstring &Description, CwclStream *const Stream) override |
Fires the OnPutComplete event. | |
Protected Member Functions inherited from CwclCustomObexClient | |
int | Connect (const GUID &Target, const GUID &Who, const tstring &Description, const unsigned short PacketSize) |
Connects to an OBEX server. | |
int | Get (const tstring &Name, const tstring &Mime, CwclStream *const Stream) |
Requests an object from a server. | |
int | Put (const tstring &Name, const tstring &Mime, const tstring &Description, CwclStream *const Stream, const unsigned char *const AppParams, const unsigned short AppParamsLength) |
Sends one object from the client to the server. | |
int | SetPath (const tstring &Dir, const bool Create) |
Changes the current directory on the server's side. | |
virtual void | DoConnect (const int Error, const tstring &Description) |
Fires the OnConnect event. | |
virtual void | DoDisconnect (const int Error, const tstring &Description) |
Fires the OnDisconnect event. | |
virtual void | DoGetComplete (const int Error, const tstring &Description, CwclStream *const Stream) |
The method called when the OBEX GET operation has been completed. | |
virtual void | DoProgress (const unsigned long Length, const unsigned long Position) |
Fires the OnProgress event. | |
virtual void | DoPutComplete (const int Error, const tstring &Description, CwclStream *const Stream) |
The method called when the OBEX PUT operation has been completed. | |
virtual void | DoSetPathComplete (const int Error, const tstring &Description) |
The method called when the OBEX SET_PATH operation has been completed. | |
Protected Member Functions inherited from CwclCustomClientDataProcessor | |
virtual int | WriteData (const void *const Data, const unsigned long Size, unsigned long &Written) override |
Writes data to the Client Connection. | |
Protected Member Functions inherited from CwclCustomDataProcessor | |
virtual void | DoWrite (const void *const Data, const unsigned long Size, unsigned long &Written, int &WriteResult) |
Fires the OnWrite event. | |
virtual int | WriteData (const void *const Data, const unsigned long Size, unsigned long &Written)=0 |
Implements a connection-dependent code that sends data to the connected device. | |
int | Write (const void *const Data, const unsigned long Size) |
Sends data to the connected device. | |
The base class for OBEX file based clients: OPP, FTP, etc.
The class provides some basic events and methods that are common for all file based OBEX clients.