aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/src-cpp/plugins-screensaver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/src-cpp/plugins-screensaver.h')
-rw-r--r--src-qt5/src-cpp/plugins-screensaver.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src-qt5/src-cpp/plugins-screensaver.h b/src-qt5/src-cpp/plugins-screensaver.h
index 9a7e98f5..08210147 100644
--- a/src-qt5/src-cpp/plugins-screensaver.h
+++ b/src-qt5/src-cpp/plugins-screensaver.h
@@ -23,20 +23,17 @@
class SSPlugin{
private:
QString currentfile;
-
-public:
QJsonObject data; //Hazardous to manually modify
+ bool containsDefault(QString obj) { return data.value(obj).toObject().contains("default"); }
+public:
SSPlugin();
~SSPlugin();
void loadFile(QString path);
bool isLoaded();
-
bool isValid();
-
- QString translatedName();
- QString translatedDescription();
+ QString translatedObject(QString obj);
QUrl scriptURL();
};
bgstack15