diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-03-05 13:39:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 13:39:00 +0100 |
commit | f3f0652d2ba06d567c02ec2f0b85bfa97d465d98 (patch) | |
tree | 6bf189684cd1ae1db6ddac90cabdb42cbb14668a /libraries/qdcss/include | |
parent | aae60334d1d7a9dbc26bca634d1b34257c7b9566 (diff) | |
parent | 01c4ed232e67c1b980a0c091c4c277722811d3dc (diff) | |
download | PrismLauncher-f3f0652d2ba06d567c02ec2f0b85bfa97d465d98.tar.gz PrismLauncher-f3f0652d2ba06d567c02ec2f0b85bfa97d465d98.tar.bz2 PrismLauncher-f3f0652d2ba06d567c02ec2f0b85bfa97d465d98.zip |
Merge pull request #853 from kumquat-ir/nil
NilLoader mod metadata support
Diffstat (limited to 'libraries/qdcss/include')
-rw-r--r-- | libraries/qdcss/include/qdcss.h | 25 |
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 |