summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Badea <catalin.badea392@gmail.com>2012-06-27 17:53:07 (GMT)
committerCătălin Badea <catalin.badea392@gmail.com>2012-08-11 15:52:57 (GMT)
commitf9b22479a43e95ecee326be3da719397b87fe6eb (patch)
tree306f03e404da6cbaa39e58e5d1ed83a647effc59 /Swiften/History/SQLiteHistoryManager.h
parentfc40104bf6e6d915561f95015e0b5617d97880e4 (diff)
downloadswift-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.h8
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_;
};
}