diff options
Diffstat (limited to 'Swiften/FileTransfer/FileTransfer.h')
-rw-r--r-- | Swiften/FileTransfer/FileTransfer.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Swiften/FileTransfer/FileTransfer.h b/Swiften/FileTransfer/FileTransfer.h index afb3f7b..ab8e806 100644 --- a/Swiften/FileTransfer/FileTransfer.h +++ b/Swiften/FileTransfer/FileTransfer.h @@ -66,6 +66,10 @@ namespace Swift { return state_; } + const std::string& getDescription() const { + return description_; + } + public: boost::signal<void (size_t /* proccessedBytes */)> onProcessedBytes; boost::signal<void (const State&)> onStateChanged; @@ -73,11 +77,12 @@ namespace Swift { protected: void setState(const State& state); - void setFileInfo(const std::string& name, boost::uintmax_t size); + void setFileInfo(const std::string& name, boost::uintmax_t size, const std::string& description); private: boost::uintmax_t fileSizeInBytes_; std::string filename_; + std::string description_; State state_; }; } |