aboutsummaryrefslogtreecommitdiff
path: root/libLumina/LuminaXDG.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-07-22 13:31:50 -0400
committerKen Moore <moorekou@gmail.com>2015-07-22 13:31:50 -0400
commit13659175f2f99f91373c26f4c1bbbdce2f6ea4be (patch)
tree386977220862e21c71296be4af8d81c269429f5c /libLumina/LuminaXDG.h
parentMake sure that all the interface elements in lumina-desktop actively re-load ... (diff)
downloadlumina-13659175f2f99f91373c26f4c1bbbdce2f6ea4be.tar.gz
lumina-13659175f2f99f91373c26f4c1bbbdce2f6ea4be.tar.bz2
lumina-13659175f2f99f91373c26f4c1bbbdce2f6ea4be.zip
Add support into libLumina for additional "Actions" listed in *.desktop files.
Diffstat (limited to 'libLumina/LuminaXDG.h')
-rw-r--r--libLumina/LuminaXDG.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libLumina/LuminaXDG.h b/libLumina/LuminaXDG.h
index 1361ba7c..879d905a 100644
--- a/libLumina/LuminaXDG.h
+++ b/libLumina/LuminaXDG.h
@@ -30,11 +30,20 @@
#include <QDateTime>
#include <QDebug>
+class XDGDesktopAction{
+public:
+ //Admin variables
+ QString ID; //The ID name for this action (should correspond to an entry in the "actionList" for the XDGDesktop below)
+ //General Variables
+ QString name, icon, exec;
+};
+
class XDGDesktop{
public:
enum XDGDesktopType { BAD, APP, LINK, DIR };
//Admin variables
QString filePath; //which file this structure contains the information for (absolute path)
+ QDateTime lastRead; //when this structure was created from the file
XDGDesktopType type;
//General variables
QString name, genericName, comment, icon;
@@ -44,6 +53,7 @@ public:
QString exec, tryexec, path, startupWM;
QStringList actionList, mimeList, catList, keyList;
bool useTerminal, startupNotify;
+ QList<XDGDesktopAction> actions;
//Type 2 (LINK) variables
QString url;
bgstack15