diff options
author | Ken Moore <ken@ixsystems.com> | 2018-01-13 12:45:09 -0800 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2018-01-13 12:45:09 -0800 |
commit | 91e8877b9fe79f01518f89653a9dc157a79a2e83 (patch) | |
tree | 9fe6f1fc242086224f79354833607da930f06796 /src-qt5/src-cpp/framework-OSInterface.h | |
parent | Add an additional OS-specific network device type parser. (diff) | |
download | lumina-91e8877b9fe79f01518f89653a9dc157a79a2e83.tar.gz lumina-91e8877b9fe79f01518f89653a9dc157a79a2e83.tar.bz2 lumina-91e8877b9fe79f01518f89653a9dc157a79a2e83.zip |
Another large checkpoint commit for Lumina 2:
* Integrate the new window geometry manager class
* Get the new OSInterface framework tied in
* Start getting the various system monitoring solutions tied into the OSInterface
Diffstat (limited to 'src-qt5/src-cpp/framework-OSInterface.h')
-rw-r--r-- | src-qt5/src-cpp/framework-OSInterface.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src-qt5/src-cpp/framework-OSInterface.h b/src-qt5/src-cpp/framework-OSInterface.h index f367039e..3d64483d 100644 --- a/src-qt5/src-cpp/framework-OSInterface.h +++ b/src-qt5/src-cpp/framework-OSInterface.h @@ -18,6 +18,9 @@ #include <QVariant> #include <QHash> #include <QTimer> +#include <QFile> +#include <QDir> +#include <QVariant> #include <QIODevice> #include <QFileSystemWatcher> @@ -26,6 +29,11 @@ #include <QSslError> #include <QHostInfo> #include <QHostAddress> +#include <QNetworkConfiguration> +#include <QNetworkInterface> + +//Lumina Utils class +#include <LUtils.h> class OSInterface : public QObject{ Q_OBJECT @@ -81,7 +89,9 @@ public: Q_INVOKABLE QString networkHostname(); Q_INVOKABLE QHostAddress networkAddress(); // = Network Modification = - + Q_INVOKABLE bool hasNetworkManager(); + Q_INVOKABLE QString networkManagerUtility(); //binary name or *.desktop filename (if registered on the system) + // = Media Shortcuts = Q_INVOKABLE QStringList mediaDirectories(); //directory where XDG shortcuts are placed for interacting with media (local/remote) Q_INVOKABLE QStringList mediaShortcuts(); //List of currently-available XDG shortcut file paths @@ -126,6 +136,7 @@ private slots: // ================ // SEMI-VIRTUAL FUNCTIONS - NEED TO BE DEFINED IN THE OS-SPECIFIC FILES // ================ + //FileSystemWatcher slots void watcherFileChanged(QString); void watcherDirChanged(QString); @@ -173,6 +184,9 @@ private: void connectNetman(); //setup the internal connections *only* void connectTimer(); //setup the internal connections *only* + //Internal simplification routines + bool verifyAppOrBin(QString chk); + // External Media Management (if system uses *.desktop shortcuts only) void setupMediaWatcher(); bool handleMediaDirChange(QString dir); //returns true if directory was handled @@ -180,6 +194,11 @@ private: // Qt-based NetworkAccessManager usage void setupNetworkManager(); + //void setupBatteryMonitor(int update_ms); + //void setupUpdateMonitor(int update_ms); + //void setupBrightnessMonitor(int update_ms); + //void setupVolumeMonitor(int update_ms); + //void public: OSInterface(QObject *parent = 0); |