diff options
author | Ken Moore <ken@ixsystems.com> | 2016-11-07 13:52:20 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-11-07 13:52:20 -0500 |
commit | 7ab900e41f5f15adccd573d459a80fe60cf6a044 (patch) | |
tree | 6effe3593f7b9f942fe7aaf5626ebe039262af3b /src-qt5/core/libLumina/LDesktopUtils.h | |
parent | Convert the ResizeMenu class into it's own files: (diff) | |
download | lumina-7ab900e41f5f15adccd573d459a80fe60cf6a044.tar.gz lumina-7ab900e41f5f15adccd573d459a80fe60cf6a044.tar.bz2 lumina-7ab900e41f5f15adccd573d459a80fe60cf6a044.zip |
LARGE UPDATE:
1) Dismantle the Lumina library completely.
2) Setup lots of small subproject files (.pri) for the individual classes within the old library.
3) Move all the Lumina binaries to use the new subproject files
4) Split up the LuminaUtils class/files into LUtils and LDesktopUtils (generic utilities, and desktop-specific utilities)
Diffstat (limited to 'src-qt5/core/libLumina/LDesktopUtils.h')
-rw-r--r-- | src-qt5/core/libLumina/LDesktopUtils.h | 49 |
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 |