diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-06-27 17:53:07 (GMT) |
---|---|---|
committer | Cătălin Badea <catalin.badea392@gmail.com> | 2012-08-11 15:52:57 (GMT) |
commit | f9b22479a43e95ecee326be3da719397b87fe6eb (patch) | |
tree | 306f03e404da6cbaa39e58e5d1ed83a647effc59 /Swiften/History/SQLiteHistoryManager.h | |
parent | fc40104bf6e6d915561f95015e0b5617d97880e4 (diff) | |
download | swift-contrib-f9b22479a43e95ecee326be3da719397b87fe6eb.zip swift-contrib-f9b22479a43e95ecee326be3da719397b87fe6eb.tar.bz2 |
Display conversations by using roster selection
Diffstat (limited to 'Swiften/History/SQLiteHistoryManager.h')
-rw-r--r-- | Swiften/History/SQLiteHistoryManager.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Swiften/History/SQLiteHistoryManager.h b/Swiften/History/SQLiteHistoryManager.h index ffd9492..ff82f5e 100644 --- a/Swiften/History/SQLiteHistoryManager.h +++ b/Swiften/History/SQLiteHistoryManager.h @@ -18,16 +18,18 @@ namespace Swift { SQLiteHistoryManager(const std::string& file); ~SQLiteHistoryManager(); - virtual void addMessage(const HistoryMessage& message); - virtual std::vector<HistoryMessage> getMessages() const; + void addMessage(const HistoryMessage& message); + std::vector<HistoryMessage> getMessages(const JID&) const; + std::vector<JID> getAllContacts() const; + private: int getIDForJID(const JID&); int addJID(const JID&); + void updateConversation(const HistoryMessage& message); boost::optional<JID> getJIDFromID(int id) const; boost::optional<int> getIDFromJID(const JID& jid) const; - private: sqlite3* db_; }; } |