aboutsummaryrefslogtreecommitdiff
path: root/libraries/qdcss/include/qdcss.h
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-03-18 14:02:05 +0000
committerGitHub <noreply@github.com>2023-03-18 14:02:05 +0000
commit1893871a99d26955e411b0b5dba4d2fe4368d96e (patch)
tree998873a40d3da6622854b3fb84d973f7b29d70a3 /libraries/qdcss/include/qdcss.h
parent8837f06e4e97ed966662b52db206facd7f91a489 (diff)
parent45b0367d14f38d40af5cc8603f7daab05d83af5f (diff)
downloadPrismLauncher-1893871a99d26955e411b0b5dba4d2fe4368d96e.tar.gz
PrismLauncher-1893871a99d26955e411b0b5dba4d2fe4368d96e.tar.bz2
PrismLauncher-1893871a99d26955e411b0b5dba4d2fe4368d96e.zip
Merge branch 'PrismLauncher:develop' into mrpack-export
Diffstat (limited to 'libraries/qdcss/include/qdcss.h')
-rw-r--r--libraries/qdcss/include/qdcss.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/libraries/qdcss/include/qdcss.h b/libraries/qdcss/include/qdcss.h
new file mode 100644
index 00000000..a7fac34e
--- /dev/null
+++ b/libraries/qdcss/include/qdcss.h
@@ -0,0 +1,25 @@
+// SPDX-FileCopyrightText: 2023 kumquat-ir 66188216+kumquat-ir@users.noreply.github.com
+//
+// SPDX-License-Identifier: LGPL-3.0-only
+
+#ifndef QDCSS_H
+#define QDCSS_H
+
+#include <QMap>
+#include <QString>
+#include <QStringList>
+#include <optional>
+
+class QDCSS {
+ // these are all we need to parse a couple string values out of a css string
+ // lots more in the original code, yet to be ported
+ // https://github.com/unascribed/NilLoader/blob/trunk/src/main/java/nilloader/api/lib/qdcss/QDCSS.java
+ public:
+ QDCSS(QString);
+ std::optional<QString>* get(QString);
+
+ private:
+ QMap<QString, QStringList> m_data;
+};
+
+#endif // QDCSS_H