aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-config/LPlugins.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-04-25 13:08:12 -0400
committerKen Moore <moorekou@gmail.com>2016-04-25 13:08:12 -0400
commited5ecf7ea7a482b4649e66ecb35fbc60af680684 (patch)
treeacc0fa17d228259e847f55c678db9fb0a9b50f0c /src-qt5/core-utils/lumina-config/LPlugins.h
parentMerge branch 'master' of github.com:pcbsd/lumina (diff)
downloadlumina-ed5ecf7ea7a482b4649e66ecb35fbc60af680684.tar.gz
lumina-ed5ecf7ea7a482b4649e66ecb35fbc60af680684.tar.bz2
lumina-ed5ecf7ea7a482b4649e66ecb35fbc60af680684.zip
Rearrange the Lumina source tree quite a bit:
Now the utilites are arranged by category (core, core-utils, desktop-utils), so all the -utils may be excluded by a package system (or turned into separate packages) as needed.
Diffstat (limited to 'src-qt5/core-utils/lumina-config/LPlugins.h')
-rw-r--r--src-qt5/core-utils/lumina-config/LPlugins.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src-qt5/core-utils/lumina-config/LPlugins.h b/src-qt5/core-utils/lumina-config/LPlugins.h
new file mode 100644
index 00000000..53c26977
--- /dev/null
+++ b/src-qt5/core-utils/lumina-config/LPlugins.h
@@ -0,0 +1,46 @@
+//===========================================
+// Lumina-DE source code
+// Copyright (c) 2014, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+#ifndef _LUMINA_DESKTOP_CONFIG_PLUGINS_H
+#define _LUMINA_DESKTOP_CONFIG_PLUGINS_H
+
+#include <QObject>
+#include <QHash>
+#include <QString>
+#include <QStringList>
+
+// Lumina Plugin Info class
+class LPI{
+ public:
+ QString name, ID, description, icon;
+ LPI(){}
+ ~LPI(){}
+};
+
+// Utility class for getting information
+class LPlugins{
+public:
+ LPlugins();
+ ~LPlugins();
+ //Total lists of plugins
+ QStringList panelPlugins();
+ QStringList desktopPlugins();
+ QStringList menuPlugins();
+ QStringList colorItems();
+ //Information on individual plugins
+ LPI panelPluginInfo(QString);
+ LPI desktopPluginInfo(QString);
+ LPI menuPluginInfo(QString);
+ LPI colorInfo(QString);
+
+private:
+ QHash<QString, LPI> PANEL, DESKTOP, MENU, COLORS;
+ void LoadPanelPlugins();
+ void LoadDesktopPlugins();
+ void LoadMenuPlugins();
+ void LoadColorItems();
+};
+#endif
bgstack15