diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-20 12:22:40 (GMT) |
---|---|---|
committer | Cătălin Badea <catalin.badea392@gmail.com> | 2012-08-11 15:59:12 (GMT) |
commit | 461ddac4c336524e2d3ecdb95ae23d5219b5304c (patch) | |
tree | dea7f0d8678623aee7693e89198b8e13b64d0981 /Swiften/History/SQLiteHistoryManager.h | |
parent | ca345562f5dee77024c661832eeaa9368737be2c (diff) | |
download | swift-contrib-461ddac4c336524e2d3ecdb95ae23d5219b5304c.zip swift-contrib-461ddac4c336524e2d3ecdb95ae23d5219b5304c.tar.bz2 |
continous scroll between dates.
Diffstat (limited to 'Swiften/History/SQLiteHistoryManager.h')
-rw-r--r-- | Swiften/History/SQLiteHistoryManager.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Swiften/History/SQLiteHistoryManager.h b/Swiften/History/SQLiteHistoryManager.h index 638d73f..8b08e6b 100644 --- a/Swiften/History/SQLiteHistoryManager.h +++ b/Swiften/History/SQLiteHistoryManager.h @@ -20,9 +20,12 @@ namespace Swift { void addMessage(const HistoryMessage& message); ContactsMap getContacts(const JID& selfJID, HistoryMessage::Type type, const std::string& keyword) const; - std::vector<HistoryMessage> getMessages(const JID& selfJID, const JID& contactJID, HistoryMessage::Type type, const boost::gregorian::date& date) const; + std::vector<HistoryMessage> getMessagesFromDate(const JID& selfJID, const JID& contactJID, HistoryMessage::Type type, const boost::gregorian::date& date) const; + std::vector<HistoryMessage> getMessagesFromNextDate(const JID& selfJID, const JID& contactJID, HistoryMessage::Type type, const boost::gregorian::date& date) const; + std::vector<HistoryMessage> getMessagesFromPreviousDate(const JID& selfJID, const JID& contactJID, HistoryMessage::Type type, const boost::gregorian::date& date) const; private: + boost::gregorian::date getNextDateWithLogs(const JID& selfJID, const JID& contactJID, HistoryMessage::Type type, const boost::gregorian::date& date, bool reverseOrder) const; int getIDForJID(const JID&); int addJID(const JID&); |