summaryrefslogtreecommitdiffstats
path: root/src/client/util/room.h
diff options
context:
space:
mode:
authorChristian Klinger2016-05-10 17:30:37 +0200
committerChristian Klinger2016-05-10 17:30:37 +0200
commit93cd9571c534bb48af3707e1dc6c8bab28461df7 (patch)
tree6e50373bf46d27071ea100229ced7f1c244caa12 /src/client/util/room.h
parentPriorities for rooms. (diff)
downloadpvs2-93cd9571c534bb48af3707e1dc6c8bab28461df7.tar.gz
pvs2-93cd9571c534bb48af3707e1dc6c8bab28461df7.tar.xz
pvs2-93cd9571c534bb48af3707e1dc6c8bab28461df7.zip
first new version of the connect window; needs some polish though.
Diffstat (limited to 'src/client/util/room.h')
-rw-r--r--src/client/util/room.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/client/util/room.h b/src/client/util/room.h
new file mode 100644
index 0000000..bfc70d0
--- /dev/null
+++ b/src/client/util/room.h
@@ -0,0 +1,23 @@
+#ifndef ROOM_H
+#define ROOM_H
+
+struct Room {
+ QString mgr;
+ QString name;
+ int priority;
+ Room (QString _name, QString _mgr, int _priority) {
+ mgr = _mgr;
+ name = _name;
+ priority = _priority;
+ };
+};
+
+inline QDebug operator<<(QDebug debug, const Room& r) {
+ debug << r.name << "{mgr=" << r.mgr << ",prio=" << r.priority << "}";
+ return debug;
+}
+
+inline bool operator<(const Room& a, const Room& b) {
+ return a.priority < b.priority;
+}
+#endif