diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-05-05 00:10:59 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-06-09 01:38:29 +0200 |
commit | 4c3bd416c65ec887209fa06b0a5634099b77f322 (patch) | |
tree | f656031d147aba8f8dd621de2bd452ea1bfd86b4 /logic/URNResolver.h | |
parent | aade36860c373268857ca821c14a13f38c880b1a (diff) | |
download | MultiMC-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.h | 18 |
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); +}; |