diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-01 20:13:27 (GMT) |
---|---|---|
committer | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-01 20:13:27 (GMT) |
commit | 831075a8aeb15dc79c84d28d284b5cdbae2f60ea (patch) | |
tree | e51fa0ff00611e5ca4af7bca1fbfc38a75d640fd /Swiften/History/HistoryMessage.h | |
parent | 583809c9f96bbf35196c416a1b6e44539b5ceacc (diff) | |
download | swift-contrib-831075a8aeb15dc79c84d28d284b5cdbae2f60ea.zip swift-contrib-831075a8aeb15dc79c84d28d284b5cdbae2f60ea.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_; }; } |