summaryrefslogtreecommitdiffstats
path: root/logic/URNResolver.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-05-05 00:10:59 +0200
committerPetr Mrázek <peterix@gmail.com>2014-06-09 01:38:29 +0200
commit4c3bd416c65ec887209fa06b0a5634099b77f322 (patch)
treef656031d147aba8f8dd621de2bd452ea1bfd86b4 /logic/URNResolver.h
parentaade36860c373268857ca821c14a13f38c880b1a (diff)
downloadMultiMC-4c3bd416c65ec887209fa06b0a5634099b77f322.tar
MultiMC-4c3bd416c65ec887209fa06b0a5634099b77f322.tar.gz
MultiMC-4c3bd416c65ec887209fa06b0a5634099b77f322.tar.lz
MultiMC-4c3bd416c65ec887209fa06b0a5634099b77f322.tar.xz
MultiMC-4c3bd416c65ec887209fa06b0a5634099b77f322.zip
Much change, very jarmod.
Diffstat (limited to 'logic/URNResolver.h')
-rw-r--r--logic/URNResolver.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/logic/URNResolver.h b/logic/URNResolver.h
new file mode 100644
index 00000000..dfc7f5eb
--- /dev/null
+++ b/logic/URNResolver.h
@@ -0,0 +1,18 @@
+#pragma once
+#include <QString>
+#include <QMap>
+#include <memory>
+#include <QVariant>
+
+class URNResolver;
+typedef std::shared_ptr<URNResolver> URNResolverPtr;
+
+class URNResolver
+{
+public:
+ URNResolver();
+ QVariant resolve (QString URN);
+ static bool parse (const QString &URN, QString &NID, QString &NSS);
+private:
+ QVariant resolveV1 (QStringList parts);
+};