diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-08-01 14:04:11 (GMT) |
---|---|---|
committer | Catalin Badea <catalin.badea392@gmail.com> | 2012-08-01 14:04:11 (GMT) |
commit | ad45dd54efd3fdd336f84f5af82dffcaf6dfbe4e (patch) | |
tree | 8a0e945d4031520054bb08e14a3228b21cef0eb2 /Swiften/History/HistoryMessage.h | |
parent | ddd4265b65c4a523d6f86abf6cad8fcda16be021 (diff) | |
download | swift-contrib-ad45dd54efd3fdd336f84f5af82dffcaf6dfbe4e.zip swift-contrib-ad45dd54efd3fdd336f84f5af82dffcaf6dfbe4e.tar.bz2 |
log utc offset.
Diffstat (limited to 'Swiften/History/HistoryMessage.h')
-rw-r--r-- | Swiften/History/HistoryMessage.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Swiften/History/HistoryMessage.h b/Swiften/History/HistoryMessage.h index d35474f..574cad4 100644 --- a/Swiften/History/HistoryMessage.h +++ b/Swiften/History/HistoryMessage.h @@ -23,12 +23,14 @@ namespace Swift { const JID& fromJID, const JID& toJID, Type type, - const boost::posix_time::ptime& time) : + const boost::posix_time::ptime& time, + int utcOffset = 0) : message_(message), fromJID_(fromJID), toJID_(toJID), type_(type), - time_(time) { + time_(time), + utcOffset_(utcOffset) { } const std::string& getMessage() const { @@ -51,6 +53,10 @@ namespace Swift { return time_; } + int getOffset() const { + return utcOffset_; + } + bool operator==(const HistoryMessage& o) const { return message_ == o.message_ && fromJID_ == o.fromJID_ && toJID_ == o.toJID_ && type_ == o.type_ && time_ == o.time_; } @@ -61,5 +67,6 @@ namespace Swift { JID toJID_; Type type_; boost::posix_time::ptime time_; + int utcOffset_; }; } |