aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/src-cpp/plugins-screensaver.h
diff options
context:
space:
mode:
authorZackaryWelch <welch.zackary@gmail.com>2018-01-02 12:46:46 -0500
committerZackaryWelch <welch.zackary@gmail.com>2018-01-02 12:46:46 -0500
commitf85701602031a8eb522576ba6486b28559427ec4 (patch)
tree4efe9cc18e3720a3edfdd57cc5fb4f38b1ab0671 /src-qt5/src-cpp/plugins-screensaver.h
parentFinished transitioning from QPrintPreviewWidget to QGraphicsView (diff)
downloadlumina-f85701602031a8eb522576ba6486b28559427ec4.tar.gz
lumina-f85701602031a8eb522576ba6486b28559427ec4.tar.bz2
lumina-f85701602031a8eb522576ba6486b28559427ec4.zip
Improved some of the code in the screensaver plugins file
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