diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-01 20:13:27 (GMT) |
---|---|---|
committer | Cătălin Badea <catalin.badea392@gmail.com> | 2012-08-11 15:52:57 (GMT) |
commit | 5b030224c25dcb7e0f8dabe9ba80cc6d6397320b (patch) | |
tree | 71aa4e7d4ddeaa172fe233b096d4c354cc9ecb6f /Swiften/History/HistoryMessage.h | |
parent | dd28860d46fb873bd9ff221f0ef639c932c22bb8 (diff) | |
download | swift-contrib-5b030224c25dcb7e0f8dabe9ba80cc6d6397320b.zip swift-contrib-5b030224c25dcb7e0f8dabe9ba80cc6d6397320b.tar.bz2 |
Dump message logs using new db structure. Avatars not working
Diffstat (limited to 'Swiften/History/HistoryMessage.h')
-rw-r--r-- | Swiften/History/HistoryMessage.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Swiften/History/HistoryMessage.h b/Swiften/History/HistoryMessage.h index 0bcff99..021d6b9 100644 --- a/Swiften/History/HistoryMessage.h +++ b/Swiften/History/HistoryMessage.h @@ -16,10 +16,12 @@ namespace Swift { const std::string& message, const JID& fromJID, const JID& toJID, + bool isGroupChat, const boost::posix_time::ptime& time) : message_(message), fromJID_(fromJID), toJID_(toJID), + isGroupChat_(isGroupChat), time_(time) { } @@ -35,18 +37,23 @@ namespace Swift { return toJID_; } + bool isGroupChat() const { + return isGroupChat_; + } + boost::posix_time::ptime getTime() const { return time_; } bool operator==(const HistoryMessage& o) const { - return message_ == o.message_ && fromJID_ == o.fromJID_ && toJID_ == o.toJID_ && time_ == o.time_; + return message_ == o.message_ && fromJID_ == o.fromJID_ && toJID_ == o.toJID_ && isGroupChat_ == o.isGroupChat_ && time_ == o.time_; } private: std::string message_; JID fromJID_; JID toJID_; + bool isGroupChat_; // TODO: <- maybe use Message::Type ? boost::posix_time::ptime time_; }; } |