diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-17 11:05:23 (GMT) |
---|---|---|
committer | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-17 11:05:23 (GMT) |
commit | 6d7c3ed028d080c1b8ea2c233c61435afcaacbb6 (patch) | |
tree | 6087da331955e40264fba4934623c2aa55bd5467 /Swiften | |
parent | cc6459b1b5b4f8d7853623fe9d85817f0d14ca26 (diff) | |
download | swift-contrib-6d7c3ed028d080c1b8ea2c233c61435afcaacbb6.zip swift-contrib-6d7c3ed028d080c1b8ea2c233c61435afcaacbb6.tar.bz2 |
Added signal handlers in history window.
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/History/HistoryManager.h | 2 | ||||
-rw-r--r-- | Swiften/History/SQLiteHistoryManager.cpp | 2 | ||||
-rw-r--r-- | Swiften/History/SQLiteHistoryManager.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Swiften/History/HistoryManager.h b/Swiften/History/HistoryManager.h index bc1680b..51039e4 100644 --- a/Swiften/History/HistoryManager.h +++ b/Swiften/History/HistoryManager.h @@ -19,6 +19,6 @@ namespace Swift { virtual void addMessage(const HistoryMessage& message) = 0; virtual std::vector<HistoryMessage> getMessages(const JID& selfJID, const JID& contactJID, HistoryMessage::Type type) const = 0; - virtual std::set<JID> getContacts(const JID& selfJID, HistoryMessage::Type type) const = 0; + virtual std::set<JID> getContacts(const JID& selfJID, HistoryMessage::Type type, const std::string& keyword) const = 0; }; } diff --git a/Swiften/History/SQLiteHistoryManager.cpp b/Swiften/History/SQLiteHistoryManager.cpp index 3304a07..0a14b99 100644 --- a/Swiften/History/SQLiteHistoryManager.cpp +++ b/Swiften/History/SQLiteHistoryManager.cpp @@ -190,7 +190,7 @@ boost::optional<int> SQLiteHistoryManager::getIDFromJID(const JID& jid) const { return result; } -std::set<JID> SQLiteHistoryManager::getContacts(const JID& selfJID, HistoryMessage::Type type) const { +std::set<JID> SQLiteHistoryManager::getContacts(const JID& selfJID, HistoryMessage::Type type, const std::string& keyword) const { std::set<JID> result; sqlite3_stmt* selectStatement; diff --git a/Swiften/History/SQLiteHistoryManager.h b/Swiften/History/SQLiteHistoryManager.h index fce30f8..a02ecc3 100644 --- a/Swiften/History/SQLiteHistoryManager.h +++ b/Swiften/History/SQLiteHistoryManager.h @@ -20,7 +20,7 @@ namespace Swift { void addMessage(const HistoryMessage& message); 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) const; private: int getIDForJID(const JID&); |