summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-11-30 08:02:15 (GMT)
committerSwift Review <review@swift.im>2015-12-17 18:41:04 (GMT)
commit523dbfb769069663eda19e381ad35f466b1ef27c (patch)
tree0fb00c1655274b8734de517bd1761931eddb5b49 /Swiften/FileTransfer/FileTransfer.h
parent359799239fe61fae51a3a005e588af03a18d8a10 (diff)
downloadswift-523dbfb769069663eda19e381ad35f466b1ef27c.zip
swift-523dbfb769069663eda19e381ad35f466b1ef27c.tar.bz2
Show file-transfer description if provided
Test-Information: Tested by transferring a file between two Swift instances. Tested in WebKit chat views and in plain chat views. Change-Id: Ie46cbd7bac8a36478f64b4557cf55926e6d4af37
Diffstat (limited to 'Swiften/FileTransfer/FileTransfer.h')
-rw-r--r--Swiften/FileTransfer/FileTransfer.h7
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_;
};
}