aboutsummaryrefslogtreecommitdiff
path: root/include/datatypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/datatypes.h')
-rw-r--r--include/datatypes.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/datatypes.h b/include/datatypes.h
index 2f03d39f..3289bd86 100644
--- a/include/datatypes.h
+++ b/include/datatypes.h
@@ -1,13 +1,25 @@
#ifndef DATATYPES_H
#define DATATYPES_H
+#include <QMap>
#include <QString>
+enum connection_type {
+ TCP,
+ WEBSOCKETS,
+};
+
+static QMap<QString, connection_type> to_connection_type = {
+ {"tcp", connection_type::TCP},
+ {"ws", connection_type::WEBSOCKETS}
+};
+
struct server_type {
QString name;
QString desc;
QString ip;
int port;
+ connection_type socket_type;
};
struct emote_type {