diff options
Diffstat (limited to 'Swiften/History/HistoryMessage.h')
-rw-r--r-- | Swiften/History/HistoryMessage.h | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/Swiften/History/HistoryMessage.h b/Swiften/History/HistoryMessage.h index e07ef60..e910899 100644 --- a/Swiften/History/HistoryMessage.h +++ b/Swiften/History/HistoryMessage.h @@ -12,63 +12,63 @@ #include <Swiften/JID/JID.h> namespace Swift { - class SWIFTEN_API HistoryMessage { - public: - enum Type { - Chat = 0, - Groupchat = 1, - PrivateMessage = 2 - }; + class SWIFTEN_API HistoryMessage { + public: + enum Type { + Chat = 0, + Groupchat = 1, + PrivateMessage = 2 + }; - HistoryMessage( - const std::string& message, - const JID& fromJID, - const JID& toJID, - Type type, - const boost::posix_time::ptime& time, - int utcOffset = 0) : - message_(message), - fromJID_(fromJID), - toJID_(toJID), - type_(type), - time_(time), - utcOffset_(utcOffset) { - } + HistoryMessage( + const std::string& message, + const JID& fromJID, + const JID& toJID, + Type type, + const boost::posix_time::ptime& time, + int utcOffset = 0) : + message_(message), + fromJID_(fromJID), + toJID_(toJID), + type_(type), + time_(time), + utcOffset_(utcOffset) { + } - const std::string& getMessage() const { - return message_; - } + const std::string& getMessage() const { + return message_; + } - const JID& getFromJID() const { - return fromJID_; - } + const JID& getFromJID() const { + return fromJID_; + } - const JID& getToJID() const { - return toJID_; - } + const JID& getToJID() const { + return toJID_; + } - Type getType() const { - return type_; - } + Type getType() const { + return type_; + } - boost::posix_time::ptime getTime() const { - return time_; - } + boost::posix_time::ptime getTime() const { + return time_; + } - int getOffset() const { - return utcOffset_; - } + 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_; - } + bool operator==(const HistoryMessage& o) const { + return message_ == o.message_ && fromJID_ == o.fromJID_ && toJID_ == o.toJID_ && type_ == o.type_ && time_ == o.time_; + } - private: - std::string message_; - JID fromJID_; - JID toJID_; - Type type_; - boost::posix_time::ptime time_; - int utcOffset_; - }; + private: + std::string message_; + JID fromJID_; + JID toJID_; + Type type_; + boost::posix_time::ptime time_; + int utcOffset_; + }; } |