diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-03 13:17:51 (GMT) |
---|---|---|
committer | Cătălin Badea <catalin.badea392@gmail.com> | 2012-08-11 15:52:57 (GMT) |
commit | b9b59d265f44e3e5341635baaac160fe57a5685e (patch) | |
tree | 1e7d85f0b7daa0791c60a2434ee0d65a50bd36c5 /Swift/Controllers/HistoryController.h | |
parent | 80d2797f246e32edce4083ed7f86389a6c358d43 (diff) | |
download | swift-contrib-b9b59d265f44e3e5341635baaac160fe57a5685e.zip swift-contrib-b9b59d265f44e3e5341635baaac160fe57a5685e.tar.bz2 |
Added message type logging. Fixed handling new messages.
Diffstat (limited to 'Swift/Controllers/HistoryController.h')
-rw-r--r-- | Swift/Controllers/HistoryController.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Swift/Controllers/HistoryController.h b/Swift/Controllers/HistoryController.h index babda8a..c08e112 100644 --- a/Swift/Controllers/HistoryController.h +++ b/Swift/Controllers/HistoryController.h @@ -11,10 +11,10 @@ #include <vector> #include <set> #include <Swiften/Base/boost_bsignals.h> +#include <Swiften/History/HistoryMessage.h> namespace Swift { class HistoryManager; - class HistoryMessage; class JID; class HistoryController { @@ -22,9 +22,9 @@ namespace Swift { HistoryController(); ~HistoryController(); - void addMessage(const std::string& message, const JID& fromJID, const JID& toJID, bool isGroupChat, const boost::posix_time::ptime& timeStamp); - std::vector<HistoryMessage> getMessages(const JID& selfJID, const JID& contactJID, bool isGroupChat) const; - void getAllContacts(const JID& selfJID, std::set<JID>& mucs, std::set<JID>& contacts) const; + 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; boost::signal<void (const HistoryMessage&)> onNewMessage; |