Serial Framework C++ Edition
Public Member Functions | Protected Member Functions | List of all members
CwclObexFtpClient Class Reference

The data processor implements the OBEX File Transfer Profile (FTP) client. More...

#include <wclObex.h>

Inheritance diagram for CwclObexFtpClient:
CwclObexFileClient CwclCustomObexClient CwclCustomClientDataProcessor CwclCustomDataProcessor

Public Member Functions

 CwclObexFtpClient (CwclClientDataConnection *const Connection)
 Creates new OBEX File Transfer Profile Client Data Processor.
 
virtual ~CwclObexFtpClient ()
 Frees the data processor.
 
int Connect (const unsigned short PacketSize=0xFFFF)
 Connects to an OBEX server.
 
int ChangeDir (const tstring &Name)
 Changes current directory to the child directory.
 
int Delete (const tstring &Name)
 Deletes the object with given name.
 
int Dir ()
 Requests the files listing for the current directory.
 
int Get (const tstring &Name, CwclStream *const Stream)
 Requests an object from a server.
 
int MkDir (const tstring &Name)
 Creates new directory.
 
int Put (const tstring &Name, const tstring &Description, CwclStream *const Stream)
 Sends one object from the client to the server.
 
__event void OnChangeDirComplete (void *Sender, const int Error, const tstring &Description)
 The event fires when the change directory operation has been completed.
 
__event void OnDeleteComplete (void *Sender, const int Error, const tstring &Description)
 The event fires when the delete operation has been completed.
 
__event void OnDirComplete (void *Sender, const int Error, const tstring &Description, const wclObexFileObjects &Dirs)
 The event fires when directory listing has been completed.
 
__event void OnMakeDirComplete (void *Sender, const int Error, const tstring &Description)
 The event fires when the creating directory operation has been completed.
 
- Public Member Functions inherited from CwclObexFileClient
 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.
 
CwclClientDataConnectionGetConnection () 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
 The method called when the OBEX GET operation has been completed.
 
virtual void DoPutComplete (const int Error, const tstring &Description, CwclStream *const Stream) override
 The method called when the OBEX PUT operation has been completed.
 
virtual void DoSetPathComplete (const int Error, const tstring &Description) override
 The method called when the OBEX SET_PATH operation has been completed.
 
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.
 

Detailed Description

The data processor implements the OBEX File Transfer Profile (FTP) client.

See also
CwclObexFileClient