X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmessage.h;h=9bb1c9c8851536ddf614e4cc349dc9ccd502093c;hb=fa4d0a5606f0c9ed49e196278611fce6b017fb0b;hp=797e28b755f7ad78a61ba8222777a681c7ef945d;hpb=dbdca302fc349d0e3d46aa0d8091c08b2df28af5;p=quassel.git diff --git a/src/common/message.h b/src/common/message.h index 797e28b7..9bb1c9c8 100644 --- a/src/common/message.h +++ b/src/common/message.h @@ -48,14 +48,16 @@ public: Error = 0x1000 }; + // DO NOT CHANGE without knowing what you do, some of these flags are stored in the database enum Flag { - None = 0, - Self = 1, - Highlight = 2, - Redirected = 4 + None = 0x00, + Self = 0x01, + Highlight = 0x02, + Redirected = 0x04, + Backlog = 0x80 }; Q_DECLARE_FLAGS(Flags, Flag) - + Message(const BufferInfo &bufferInfo = BufferInfo(), Type type = Plain, const QString &contents = "", const QString &sender = "", Flags flags = None); Message(const QDateTime &ts, const BufferInfo &buffer = BufferInfo(), Type type = Plain, @@ -72,19 +74,6 @@ public: inline QDateTime timestamp() const { return _timestamp; } void setFlags(Flags flags); - -#ifndef SPUTDEV - QString formattedTimestamp(); - QString formattedSender(); - QString formattedText(); - - //static QString formattedToHtml(const QString &); - - /** Convert mIRC control codes to our own */ - static QString mircToInternal(QString); - - void format(); -#endif private: QDateTime _timestamp;