sptk2 logo
SPTK Home Page

sptk::CFtpDS Class Reference
[GUI Classes]

FTP datasource. More...

#include <CFtpDS.h>

Inheritance diagram for sptk::CFtpDS:

sptk::CMemoryDS sptk::CDataSource

List of all members.

Public Member Functions

 CFtpDS ()
 Internal callback to indicate the progress on open().
virtual ~CFtpDS ()
 Destructor.
int showPolicy () const
 Returns current show policy, see CFtpShowPolicy.
void showPolicy (char type)
 Defines current show policy, see CFtpShowPolicy.
void host (std::string host_name)
 FTP host name.
std::string host () const
 FTP host name.
void port (int p)
 FTP port number.
int port () const
 FTP port number.
void user (std::string usr)
 FTP user name.
std::string user () const
 FTP user name.
void password (std::string pwd)
 FTP user password.
std::string password () const
 FTP user password.
void folder (std::string d)
 FTP folder name.
const std::string & folder () const
 FTP folder name.
virtual bool open ()
void callback (CProgressCallback cb)
 Sets the callback for the open() progression.


Detailed Description

FTP datasource.

Class CFtpDS allows to browse the list of files on FTP server. It returns a dataset with file names, sizes, modification times etc.


Constructor & Destructor Documentation

sptk::CFtpDS::CFtpDS (  )  [inline]

Internal callback to indicate the progress on open().

Default Constructor


Member Function Documentation

virtual bool sptk::CFtpDS::open (  )  [virtual]

Establishes the connection with FTP host, selects the FTP folder(), reads the list of files and directories, closes the FTP connection

Reimplemented from sptk::CMemoryDS.


The documentation for this class was generated from the following file:

Mon Mar 5 11:56:05 2012: SPTK 3.5.7