/* * Copyright (c) 2012 Catalin Badea * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ #pragma once #include #include #include namespace Swift { class HistoryManager; class HistoryMessage; class JID; class HistoryController { public: HistoryController(); ~HistoryController(); void addMessage(const JID& baseJID, const JID& fromJID, const std::string& displayNick, const std::string& messageBody, boost::posix_time::ptime timeStamp); std::vector getMessages(const JID& baseJID) const; std::vector getAllContacts() const; private: HistoryManager* localHistory_; bool remoteArchiveSupported_; }; }