X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fmessage.h;h=c1b8e625491e2bd1128a8101f765d78860617dcf;hp=1d366a2eee32ea56ca711461ea46c242af19016f;hb=946e79e0243dda74433016060f12abc65883f243;hpb=af456476e906a564d9faf3381b8bc3111fdb2bbd diff --git a/src/common/message.h b/src/common/message.h index 1d366a2e..c1b8e625 100644 --- a/src/common/message.h +++ b/src/common/message.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -74,9 +74,10 @@ public: inline QString sender() const { return _sender; } inline Type type() const { return _type; } inline Flags flags() const { return _flags; } + inline void setFlags(Flags flags) { _flags = flags; } inline QDateTime timestamp() const { return _timestamp; } - void setFlags(Flags flags); + inline bool isValid() const { return _msgId.isValid(); } inline bool operator<(const Message &other) const { return _msgId < other._msgId; } @@ -89,8 +90,6 @@ private: Type _type; Flags _flags; - QString _formattedTimestamp, _formattedSender, _formattedText; // cache - friend QDataStream &operator>>(QDataStream &in, Message &msg); };