projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The context menu "hide events" in the bufferviews are now working.
[quassel.git]
/
src
/
common
/
bufferinfo.h
diff --git
a/src/common/bufferinfo.h
b/src/common/bufferinfo.h
index
9a7292c
..
fd37329
100644
(file)
--- a/
src/common/bufferinfo.h
+++ b/
src/common/bufferinfo.h
@@
-36,6
+36,14
@@
public:
GroupBuffer = 0x08
};
GroupBuffer = 0x08
};
+ enum Activity {
+ NoActivity = 0x00,
+ OtherActivity = 0x01,
+ NewMessage = 0x02,
+ Highlight = 0x40
+ };
+ Q_DECLARE_FLAGS(ActivityLevel, Activity)
+
BufferInfo();
BufferInfo(BufferId id, NetworkId networkid, Type type, uint gid = 0, QString buf = QString());
BufferInfo();
BufferInfo(BufferId id, NetworkId networkid, Type type, uint gid = 0, QString buf = QString());
@@
-68,7
+76,8
@@
QDataStream &operator<<(QDataStream &out, const BufferInfo &bufferInfo);
QDataStream &operator>>(QDataStream &in, BufferInfo &bufferInfo);
QDebug operator<<(QDebug dbg, const BufferInfo &b);
QDataStream &operator>>(QDataStream &in, BufferInfo &bufferInfo);
QDebug operator<<(QDebug dbg, const BufferInfo &b);
-Q_DECLARE_METATYPE(BufferInfo);
+Q_DECLARE_METATYPE(BufferInfo)
+Q_DECLARE_OPERATORS_FOR_FLAGS(BufferInfo::ActivityLevel)
uint qHash(const BufferInfo &);
uint qHash(const BufferInfo &);