summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Badea <catalin.badea392@gmail.com>2012-06-30 16:39:36 (GMT)
committerCătălin Badea <catalin.badea392@gmail.com>2012-08-11 15:52:57 (GMT)
commite117ec6c534e1b6bc3f1bcd18dadf2005672c38b (patch)
tree71b1ef76e57f37693cd60b13ac17e92faaa33ed4 /Swift/Controllers/HistoryController.cpp
parent3a13bbd772f549a3ea218fe9f3a8ca6c293989f9 (diff)
downloadswift-contrib-e117ec6c534e1b6bc3f1bcd18dadf2005672c38b.zip
swift-contrib-e117ec6c534e1b6bc3f1bcd18dadf2005672c38b.tar.bz2
Changed HistoryMessage structure back
Diffstat (limited to 'Swift/Controllers/HistoryController.cpp')
-rw-r--r--Swift/Controllers/HistoryController.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Swift/Controllers/HistoryController.cpp b/Swift/Controllers/HistoryController.cpp
index 63d4690..7e3d1e4 100644
--- a/Swift/Controllers/HistoryController.cpp
+++ b/Swift/Controllers/HistoryController.cpp
@@ -19,13 +19,13 @@ HistoryController::~HistoryController() {
delete localHistory_;
}
-void HistoryController::addMessage(const JID& baseJID, const JID& fromJID, const std::string& displayNick, const std::string& messageBody, boost::posix_time::ptime timeStamp) {
- HistoryMessage message(messageBody, baseJID, fromJID, displayNick, timeStamp);
- localHistory_->addMessage(message);
+void HistoryController::addMessage(const std::string& message, const JID& fromJID, const JID& toJID, const boost::posix_time::ptime& timeStamp) {
+ HistoryMessage historyMessage(message, fromJID, toJID, timeStamp);
+ localHistory_->addMessage(historyMessage);
}
-std::vector<HistoryMessage> HistoryController::getMessages(const JID& baseJID) const {
- return localHistory_->getMessages(baseJID);
+std::vector<HistoryMessage> HistoryController::getMessages(const JID& selfJID, const JID& contactJID) const {
+ return localHistory_->getMessages(selfJID, contactJID);
}
std::vector<JID> HistoryController::getAllContacts() const {