|
#include <CFtpDS.h>

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. | |
Class CFtpDS allows to browse the list of files on FTP server. It returns a dataset with file names, sizes, modification times etc.
| sptk::CFtpDS::CFtpDS | ( | ) | [inline] |
Internal callback to indicate the progress on open().
Default Constructor
| 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.