diff options
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); +}; |