aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LDesktopUtils.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-11-07 14:21:08 -0500
committerKen Moore <ken@ixsystems.com>2016-11-07 14:21:08 -0500
commit1fa6c08c45c07da3d1c0d369d58db31ef8fb9361 (patch)
treecd9e82fc2de32664da482ecce71c0c0f70ebecf6 /src-qt5/core/libLumina/LDesktopUtils.h
parentFix up the pkg-plist for the new libLumina depreciation. (diff)
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-1fa6c08c45c07da3d1c0d369d58db31ef8fb9361.tar.gz
lumina-1fa6c08c45c07da3d1c0d369d58db31ef8fb9361.tar.bz2
lumina-1fa6c08c45c07da3d1c0d369d58db31ef8fb9361.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core/libLumina/LDesktopUtils.h')
-rw-r--r--src-qt5/core/libLumina/LDesktopUtils.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/LDesktopUtils.h b/src-qt5/core/libLumina/LDesktopUtils.h
new file mode 100644
index 00000000..dbad8757
--- /dev/null
+++ b/src-qt5/core/libLumina/LDesktopUtils.h
@@ -0,0 +1,49 @@
+//===========================================
+// Lumina-DE source code
+// Copyright (c) 2012-2016, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+#ifndef _LUMINA_LIBRARY_DESKTOP_UTILS_H
+#define _LUMINA_LIBRARY_DESKTOP_UTILS_H
+
+#include <QString>
+#include <QStringList>
+#include <QFile>
+#include <QDir>
+#include <QDateTime>
+
+//Other classes needed
+#include <LUtils.h>
+#include <LuminaXDG.h>
+#include <LuminaOS.h>
+
+class LDesktopUtils{
+public:
+ //Get the current version/build of the Lumina desktop
+ static QString LuminaDesktopVersion();
+ static QString LuminaDesktopBuildDate();
+
+ //Various function for finding valid QtQuick plugins on the system
+ static bool validQuickPlugin(QString ID);
+ static QString findQuickPluginFile(QString ID);
+ static QStringList listQuickPlugins(); //List of valid ID's
+ static QStringList infoQuickPlugin(QString ID); //Returns: [Name, Description, Icon]
+
+ //Various functions for the favorites sub-system
+ // Formatting Note: "<name>::::[dir/app/<mimetype>]::::<path>"
+ // the <name> field might not be used for "app" flagged entries
+ static QStringList listFavorites();
+ static bool saveFavorites(QStringList);
+ static bool isFavorite(QString path);
+ static bool addFavorite(QString path, QString name = "");
+ static void removeFavorite(QString path);
+ static void upgradeFavorites(int fromoldversionnumber);
+
+ //Load the default setup for the system
+ static void LoadSystemDefaults(bool skipOS = false);
+ static bool checkUserFiles(QString lastversion); //returns true if something changed
+ static int VersionStringToNumber(QString version); //convert the lumina version string to a number for comparisons
+};
+
+#endif
bgstack15