diff options
Diffstat (limited to 'Swift/Controllers')
-rw-r--r-- | Swift/Controllers/HistoryController.cpp | 4 | ||||
-rw-r--r-- | Swift/Controllers/HistoryController.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Swift/Controllers/HistoryController.cpp b/Swift/Controllers/HistoryController.cpp index fe54e79..d52e2b2 100644 --- a/Swift/Controllers/HistoryController.cpp +++ b/Swift/Controllers/HistoryController.cpp @@ -29,8 +29,8 @@ std::vector<HistoryMessage> HistoryController::getMessages(const JID& selfJID, c return localHistory_->getMessages(selfJID, contactJID, type); } -std::set<JID> HistoryController::getContacts(const JID& selfJID, HistoryMessage::Type type) const { - return localHistory_->getContacts(selfJID, type); +std::set<JID> HistoryController::getContacts(const JID& selfJID, HistoryMessage::Type type, const std::string& keyword) const { + return localHistory_->getContacts(selfJID, type, keyword); } } diff --git a/Swift/Controllers/HistoryController.h b/Swift/Controllers/HistoryController.h index c08e112..ef832c9 100644 --- a/Swift/Controllers/HistoryController.h +++ b/Swift/Controllers/HistoryController.h @@ -24,7 +24,7 @@ namespace Swift { void addMessage(const std::string& message, const JID& fromJID, const JID& toJID, HistoryMessage::Type type, const boost::posix_time::ptime& timeStamp); std::vector<HistoryMessage> getMessages(const JID& selfJID, const JID& contactJID, HistoryMessage::Type type) const; - std::set<JID> getContacts(const JID& selfJID, HistoryMessage::Type type) const; + std::set<JID> getContacts(const JID& selfJID, HistoryMessage::Type type, const std::string& keyword = std::string()) const; boost::signal<void (const HistoryMessage&)> onNewMessage; |