diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-01 20:13:27 (GMT) |
---|---|---|
committer | Cătălin Badea <catalin.badea392@gmail.com> | 2012-08-11 15:52:57 (GMT) |
commit | 5b030224c25dcb7e0f8dabe9ba80cc6d6397320b (patch) | |
tree | 71aa4e7d4ddeaa172fe233b096d4c354cc9ecb6f /Swift/Controllers/HistoryController.cpp | |
parent | dd28860d46fb873bd9ff221f0ef639c932c22bb8 (diff) | |
download | swift-contrib-5b030224c25dcb7e0f8dabe9ba80cc6d6397320b.zip swift-contrib-5b030224c25dcb7e0f8dabe9ba80cc6d6397320b.tar.bz2 |
Dump message logs using new db structure. Avatars not working
Diffstat (limited to 'Swift/Controllers/HistoryController.cpp')
-rw-r--r-- | Swift/Controllers/HistoryController.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Swift/Controllers/HistoryController.cpp b/Swift/Controllers/HistoryController.cpp index 7e3d1e4..a25c40f 100644 --- a/Swift/Controllers/HistoryController.cpp +++ b/Swift/Controllers/HistoryController.cpp @@ -19,17 +19,17 @@ HistoryController::~HistoryController() { delete localHistory_; } -void HistoryController::addMessage(const std::string& message, const JID& fromJID, const JID& toJID, const boost::posix_time::ptime& timeStamp) { - HistoryMessage historyMessage(message, fromJID, toJID, timeStamp); +void HistoryController::addMessage(const std::string& message, const JID& fromJID, const JID& toJID, bool isGroupChat, const boost::posix_time::ptime& timeStamp) { + HistoryMessage historyMessage(message, fromJID, toJID, isGroupChat, timeStamp); localHistory_->addMessage(historyMessage); } -std::vector<HistoryMessage> HistoryController::getMessages(const JID& selfJID, const JID& contactJID) const { - return localHistory_->getMessages(selfJID, contactJID); +std::vector<HistoryMessage> HistoryController::getMessages(const JID& selfJID, const JID& contactJID, bool isGroupChat) const { + return localHistory_->getMessages(selfJID, contactJID, isGroupChat); } -std::vector<JID> HistoryController::getAllContacts() const { - return localHistory_->getAllContacts(); +void HistoryController::getAllContacts(const JID& selfJID, std::set<JID>& mucs, std::set<JID>& contacts) const { + return localHistory_->getAllContacts(selfJID, mucs, contacts); } } |