summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Badea <catalin.badea392@gmail.com>2012-07-19 09:04:58 (GMT)
committerCătălin Badea <catalin.badea392@gmail.com>2012-08-11 15:59:12 (GMT)
commitca345562f5dee77024c661832eeaa9368737be2c (patch)
tree707c8bf3bab3e420f1652f194f8d7642f8beabcc /Swift/Controllers/HistoryController.h
parent3af84bc87419831e26a85321c1c970aecd18d2c7 (diff)
downloadswift-contrib-ca345562f5dee77024c661832eeaa9368737be2c.zip
swift-contrib-ca345562f5dee77024c661832eeaa9368737be2c.tar.bz2
Retrieve messages from last matching day
Diffstat (limited to 'Swift/Controllers/HistoryController.h')
-rw-r--r--Swift/Controllers/HistoryController.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Swift/Controllers/HistoryController.h b/Swift/Controllers/HistoryController.h
index ef832c9..53260a1 100644
--- a/Swift/Controllers/HistoryController.h
+++ b/Swift/Controllers/HistoryController.h
@@ -12,9 +12,9 @@
#include <set>
#include <Swiften/Base/boost_bsignals.h>
#include <Swiften/History/HistoryMessage.h>
+#include <Swiften/History/HistoryManager.h>
namespace Swift {
- class HistoryManager;
class JID;
class HistoryController {
@@ -23,8 +23,8 @@ namespace Swift {
~HistoryController();
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::string& keyword = std::string()) const;
+ std::vector<HistoryMessage> getMessages(const JID& selfJID, const JID& contactJID, HistoryMessage::Type type, const boost::gregorian::date& date) const;
+ ContactsMap getContacts(const JID& selfJID, HistoryMessage::Type type, const std::string& keyword = std::string()) const;
boost::signal<void (const HistoryMessage&)> onNewMessage;