aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LuminaXDG.h
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2016-09-22 06:15:56 +0000
committerWeblate <noreply@weblate.org>2016-09-22 06:15:56 +0000
commit1cb4c470898f18255302e77729b1ace1be9028a7 (patch)
treec3a4c60bac948f8950abc4cd072bb79e7b9c685c /src-qt5/core/libLumina/LuminaXDG.h
parentTranslated using Weblate (lumina_OPEN@ru (generated)) (diff)
parentTranslated using Weblate (l_TE@ru (generated)) (diff)
downloadlumina-1cb4c470898f18255302e77729b1ace1be9028a7.tar.gz
lumina-1cb4c470898f18255302e77729b1ace1be9028a7.tar.bz2
lumina-1cb4c470898f18255302e77729b1ace1be9028a7.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core/libLumina/LuminaXDG.h')
-rw-r--r--src-qt5/core/libLumina/LuminaXDG.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/src-qt5/core/libLumina/LuminaXDG.h b/src-qt5/core/libLumina/LuminaXDG.h
index 996e5a20..5c012b9a 100644
--- a/src-qt5/core/libLumina/LuminaXDG.h
+++ b/src-qt5/core/libLumina/LuminaXDG.h
@@ -35,8 +35,8 @@
// ======================
// FreeDesktop Desktop Actions Framework (data structure)
// ======================
-class XDGDesktopAction{
-public:
+struct 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
@@ -46,9 +46,10 @@ public:
// ======================
// FreeDesktop Desktop Entry Framework (data structure)
// ======================
-class XDGDesktop{
-public:
+struct 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
@@ -64,10 +65,15 @@ public:
QList<XDGDesktopAction> actions;
//Type 2 (LINK) variables
QString url;
-
+
//Constructor/destructor
XDGDesktop(){}
- ~XDGDesktop(){}
+ ~XDGDesktop(){
+ actions.clear();
+ showInList.clear(); notShowInList.clear(); actionList.clear(); mimeList.clear(); catList.clear(); keyList.clear();
+ name.clear(); genericName.clear(); comment.clear(); icon.clear();
+ exec.clear(); tryexec.clear(); path.clear(); startupWM.clear(); url.clear();
+ }
};
// ========================
@@ -93,6 +99,7 @@ public slots:
private:
QFileSystemWatcher *watcher;
QTimer *synctimer;
+ bool keepsynced;
private slots:
void watcherChanged();
bgstack15