aboutsummaryrefslogtreecommitdiff
path: root/src/protocolsetup.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocolsetup.hpp')
-rw-r--r--src/protocolsetup.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/protocolsetup.hpp b/src/protocolsetup.hpp
new file mode 100644
index 0000000..3cf3ab1
--- /dev/null
+++ b/src/protocolsetup.hpp
@@ -0,0 +1,28 @@
+#ifndef PROTOCOLSETUP_HPP
+#define PROTOCOLSETUP_HPP
+
+#include <QSettings>
+
+#define PROTOCOLS(MAC) \
+ MAC(http) \
+ MAC(https) \
+ MAC(gopher) \
+ MAC(gemini) \
+ MAC(finger)
+
+struct ProtocolSetup
+{
+#define DECL(X) bool X;
+ PROTOCOLS(DECL)
+#undef DECL
+
+ ProtocolSetup();
+
+ void save(QSettings & settings) const;
+
+ void load(QSettings & settings);
+
+ bool isSchemeSupported(QString const & scheme) const;
+};
+
+#endif // PROTOCOLSETUP_HPP