![]()  | 
  
    SLProject
    4.2.000
    
   A platform independent 3D computer graphics framework for desktop OS,  Android,  iOS and online in web browsers 
   | 
 
FtpUtils provides networking functionality via the FTP protocol. More...
Functions | |
| bool | uploadFileLatestVersion (const string &fileDir, const string &fileName, const string &ftpHost, const string &ftpUser, const string &ftpPwd, const string &ftpDir, string &errorMsg) | 
| Uploads the file to the ftp server. Checks if the filename already exists and adds a version number.  More... | |
| bool | downloadFileLatestVersion (const string &fileDir, const string &fileName, const string &ftpHost, const string &ftpUser, const string &ftpPwd, const string &ftpDir, string &errorMsg) | 
| Download the file from the ftp server which has the latest version and store it as fileName locally.  More... | |
| bool | uploadFile (const string &fileDir, const string &fileName, const string &ftpHost, const string &ftpUser, const string &ftpPwd, const string &ftpDir, string &errorMsg) | 
| Uploads file to the ftp server.  More... | |
| bool | downloadFile (const string &fileDir, const string &fileName, const string &ftpHost, const string &ftpUser, const string &ftpPwd, const string &ftpDir, string &errorMsg) | 
| Download file from the ftp server.  More... | |
| bool | downloadAllFilesFromDir (const string &fileDir, const string &ftpHost, const string &ftpUser, const string &ftpPwd, const string &ftpDir, const string &searchFileTag, string &errorMsg) | 
| bool | getAllFileNamesWithTag (ftplib &ftp, const string &localDir, const string &searchFileTag, vector< string > &retrievedFileNames, string &errorMsg) | 
| Get a list of all filenames with given search file tag in remote directory.  More... | |
| string | getLatestFilename (ftplib &ftp, const string &fileDir, const string &fileName) | 
| Returns the latest fileName of the same fullPathAndFilename.  More... | |
| int | getVersionInFilename (const string &filename) | 
| Returns the version number at the end of the fileName.  More... | |
FtpUtils provides networking functionality via the FTP protocol.
| bool FtpUtils::downloadAllFilesFromDir | ( | const string & | fileDir, | 
| const string & | ftpHost, | ||
| const string & | ftpUser, | ||
| const string & | ftpPwd, | ||
| const string & | ftpDir, | ||
| const string & | searchFileTag, | ||
| string & | errorMsg | ||
| ) | 
| fileDir | |
| ftpHost | |
| ftpUser | |
| ftpPwd | |
| ftpDir | |
| searchFileTag | |
| errorMsg | 
Definition at line 342 of file FtpUtils.cpp.
| bool FtpUtils::downloadFile | ( | const string & | fileDir, | 
| const string & | fileName, | ||
| const string & | ftpHost, | ||
| const string & | ftpUser, | ||
| const string & | ftpPwd, | ||
| const string & | ftpDir, | ||
| string & | errorMsg | ||
| ) | 
Download file from the ftp server.
| fileDir | |
| fileName | |
| ftpHost | |
| ftpUser | |
| ftpPwd | |
| ftpDir | |
| errorMsg | 
Definition at line 267 of file FtpUtils.cpp.
| bool FtpUtils::downloadFileLatestVersion | ( | const string & | fileDir, | 
| const string & | fileName, | ||
| const string & | ftpHost, | ||
| const string & | ftpUser, | ||
| const string & | ftpPwd, | ||
| const string & | ftpDir, | ||
| string & | errorMsg | ||
| ) | 
Download the file from the ftp server which has the latest version and store it as fileName locally.
| fileDir | |
| fileName | |
| ftpHost | |
| ftpUser | |
| ftpPwd | |
| ftpDir | |
| errorMsg | 
Definition at line 121 of file FtpUtils.cpp.
| bool FtpUtils::getAllFileNamesWithTag | ( | ftplib & | ftp, | 
| const string & | localDir, | ||
| const string & | searchFileTag, | ||
| vector< string > & | retrievedFileNames, | ||
| string & | errorMsg | ||
| ) | 
Get a list of all filenames with given search file tag in remote directory.
| ftp | |
| localDir | |
| searchFileTag | |
| retrievedFileNames | |
| errorMsg | 
Definition at line 422 of file FtpUtils.cpp.
| string FtpUtils::getLatestFilename | ( | ftplib & | ftp, | 
| const string & | fileDir, | ||
| const string & | fileName | ||
| ) | 
Returns the latest fileName of the same fullPathAndFilename.
| ftp | |
| fileDir | |
| fileName | 
Definition at line 513 of file FtpUtils.cpp.
| int FtpUtils::getVersionInFilename | ( | const string & | filename | ) | 
Returns the version number at the end of the fileName.
| filename | Filename on ftp server with an ending *(#).ext | 
Definition at line 564 of file FtpUtils.cpp.
| bool FtpUtils::uploadFile | ( | const string & | fileDir, | 
| const string & | fileName, | ||
| const string & | ftpHost, | ||
| const string & | ftpUser, | ||
| const string & | ftpPwd, | ||
| const string & | ftpDir, | ||
| string & | errorMsg | ||
| ) | 
Uploads file to the ftp server.
| fileDir | |
| fileName | |
| ftpHost | |
| ftpUser | |
| ftpPwd | |
| ftpDir | |
| errorMsg | 
Definition at line 198 of file FtpUtils.cpp.
| bool FtpUtils::uploadFileLatestVersion | ( | const string & | fileDir, | 
| const string & | fileName, | ||
| const string & | ftpHost, | ||
| const string & | ftpUser, | ||
| const string & | ftpPwd, | ||
| const string & | ftpDir, | ||
| string & | errorMsg | ||
| ) | 
Uploads the file to the ftp server. Checks if the filename already exists and adds a version number.
| fileDir | |
| fileName | |
| ftpHost | |
| ftpUser | |
| ftpPwd | |
| ftpDir | |
| errorMsg | 
Definition at line 34 of file FtpUtils.cpp.