| 1 |
#ifndef SFTPCLIENTDATA_HPP |
| 2 |
#define SFTPCLIENTDATA_HPP |
| 3 |
|
| 4 |
#include <codelite_exports.h> |
| 5 |
#include <wx/clntdata.h> |
| 6 |
#include <wx/string.h> |
| 7 |
|
| 8 |
class WXDLLIMPEXP_CL SFTPClientData : public wxClientData |
| 9 |
{ |
| 10 |
wxString localPath; |
| 11 |
wxString remotePath; |
| 12 |
size_t permissions = 0; |
| 13 |
int lineNumber = wxNOT_FOUND; |
| 14 |
wxString accountName; |
| 15 |
|
| 16 |
public: |
| 17 |
SFTPClientData(); |
| 18 |
virtual ~SFTPClientData(); |
| 19 |
|
| 20 |
void SetLocalPath(const wxString& localPath) { this->localPath = localPath; } |
| 21 |
void SetRemotePath(const wxString& remotePath) { this->remotePath = remotePath; } |
| 22 |
const wxString& GetLocalPath() const { return localPath; } |
| 23 |
const wxString& GetRemotePath() const { return remotePath; } |
| 24 |
void SetPermissions(size_t permissions) { this->permissions = permissions; } |
| 25 |
size_t GetPermissions() const { return permissions; } |
| 26 |
void SetLineNumber(int lineNumber) { this->lineNumber = lineNumber; } |
| 27 |
int GetLineNumber() const { return lineNumber; } |
| 28 |
void SetAccountName(const wxString& accountName) { this->accountName = accountName; } |
| 29 |
const wxString& GetAccountName() const { return accountName; } |
| 30 |
}; |
| 31 |
|
| 32 |
#endif // SFTPCLIENTDATA_HPP |