blob: a19e321342ba3c7bb851b985e4335fa24e3e3f5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
* Copyright (c) 2012 Catalin Badea
* Licensed under the simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
#include <Swift/Controllers/HistoryController.h>
#include <Swiften/History/SQLiteHistoryManager.h>
namespace Swift {
HistoryController::HistoryController() : remoteArchiveSupported_(false) {
std::string file("testDB.db");
localHistory_ = new SQLiteHistoryManager(file);
}
HistoryController::~HistoryController() {
delete localHistory_;
}
void HistoryController::addMessage(const JID& baseJID, const JID& fromJID, const JID& toJID, std::string messageBody, boost::posix_time::ptime timeStamp) {
std::cout << baseJID << " " << fromJID << " " << toJID << " " << messageBody << " " << to_simple_string(timeStamp);
}
}
|