summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Badea <catalin.badea392@gmail.com>2012-06-27 12:02:47 (GMT)
committerCatalin Badea <catalin.badea392@gmail.com>2012-06-27 12:02:47 (GMT)
commit0998d6a8f138e0fd00245fc3c1efc8878fa7b888 (patch)
treed728ad825753ec227ee190a2953db4315cf85d88 /Swift/Controllers/HistoryController.h
parentad7d00c25b74d212457fa599861c5583e79e7c13 (diff)
downloadswift-contrib-0998d6a8f138e0fd00245fc3c1efc8878fa7b888.zip
swift-contrib-0998d6a8f138e0fd00245fc3c1efc8878fa7b888.tar.bz2
Log messages to the sqlite db and dump all messages in the history viewer
Diffstat (limited to 'Swift/Controllers/HistoryController.h')
-rw-r--r--Swift/Controllers/HistoryController.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Swift/Controllers/HistoryController.h b/Swift/Controllers/HistoryController.h
index 9949c19..6ead3f1 100644
--- a/Swift/Controllers/HistoryController.h
+++ b/Swift/Controllers/HistoryController.h
@@ -8,9 +8,11 @@
#include <Swiften/JID/JID.h>
#include <boost/date_time/posix_time/posix_time.hpp>
+#include <vector>
namespace Swift {
class HistoryManager;
+ class HistoryMessage;
class JID;
class HistoryController {
@@ -18,7 +20,8 @@ namespace Swift {
HistoryController();
~HistoryController();
- void addMessage(const JID& baseJID, const JID& fromJID, const JID& toJID, std::string messageBody, boost::posix_time::ptime timeStamp);
+ void addMessage(const JID& baseJID, const JID& fromJID, const std::string& displayNick, const std::string& messageBody, boost::posix_time::ptime timeStamp);
+ std::vector<HistoryMessage> getMessages() const;
private:
HistoryManager* localHistory_;