diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-06-27 12:02:47 (GMT) |
---|---|---|
committer | Cătălin Badea <catalin.badea392@gmail.com> | 2012-08-11 15:52:56 (GMT) |
commit | fc40104bf6e6d915561f95015e0b5617d97880e4 (patch) | |
tree | bbe91142e4c4dfcdaf32d4041694a8834a6683d8 /Swift/Controllers/HistoryController.h | |
parent | 9f11ec4954b7c860623c799827e73c40e73acfac (diff) | |
download | swift-contrib-fc40104bf6e6d915561f95015e0b5617d97880e4.zip swift-contrib-fc40104bf6e6d915561f95015e0b5617d97880e4.tar.bz2 |
Log messages to the sqlite db and dump all messages in the history viewer
Diffstat (limited to 'Swift/Controllers/HistoryController.h')
-rw-r--r-- | Swift/Controllers/HistoryController.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Swift/Controllers/HistoryController.h b/Swift/Controllers/HistoryController.h index 9949c19..6ead3f1 100644 --- a/Swift/Controllers/HistoryController.h +++ b/Swift/Controllers/HistoryController.h @@ -8,9 +8,11 @@ #include <Swiften/JID/JID.h> #include <boost/date_time/posix_time/posix_time.hpp> +#include <vector> namespace Swift { class HistoryManager; + class HistoryMessage; class JID; class HistoryController { @@ -18,7 +20,8 @@ namespace Swift { HistoryController(); ~HistoryController(); - void addMessage(const JID& baseJID, const JID& fromJID, const JID& toJID, std::string messageBody, boost::posix_time::ptime timeStamp); + void addMessage(const JID& baseJID, const JID& fromJID, const std::string& displayNick, const std::string& messageBody, boost::posix_time::ptime timeStamp); + std::vector<HistoryMessage> getMessages() const; private: HistoryManager* localHistory_; |