Qx v0.5.7
Qt Extensions Library
Loading...
Searching...
No Matches
qx-system.h
Go to the documentation of this file.
1#ifndef QX_SYSTEM_H
2#define QX_SYSTEM_H
3
4// Shared Lib Support
5#include "qx/core/qx_core_export.h"
6
7// Qt Includes
8#include <QString>
9#ifdef __linux
10#include <QSettings>
11#endif
12
13// Inner-component Includes
14#include "qx/core/qx-systemerror.h"
15
16namespace Qx
17{
18
19//-Namespace Functions-------------------------------------------------------------------------------------------------------------
20QX_CORE_EXPORT quint32 processId(QString processName);
21QX_CORE_EXPORT QString processName(quint32 processId);
22QX_CORE_EXPORT QList<quint32> processChildren(quint32 processId, bool recursive = false);
23
24QX_CORE_EXPORT bool processIsRunning(QString processName);
25QX_CORE_EXPORT bool processIsRunning(quint32 processId);
26
27QX_CORE_EXPORT SystemError cleanKillProcess(quint32 processId);
28QX_CORE_EXPORT SystemError forceKillProcess(quint32 processId);
29
30QX_CORE_EXPORT bool enforceSingleInstance(QString uniqueAppId);
31
32QX_CORE_EXPORT bool setDefaultProtocolHandler(const QString& scheme, const QString& name, const QString& path = {}, const QStringList& args = {});
33QX_CORE_EXPORT bool isDefaultProtocolHandler(const QString& scheme, const QString& path = {});
34QX_CORE_EXPORT bool removeDefaultProtocolHandler(const QString& scheme, const QString& path = {});
35
36#ifdef __linux__
37// Temporary means to and end, will replace with full parser eventually
40#endif
41}
42
43#endif // QX_SYSTEM_H
The Qx namespace is the main namespace through which all non-global functionality of the Qx library i...
Definition qx-processwaiter.cpp:5
bool isDefaultProtocolHandler(const QString &scheme, const QString &path)
Definition qx-system.cpp:190
QSettings::Format xdgSettingsFormat()
Definition qx-system_linux.cpp:590
bool processIsRunning(QString processName)
Definition qx-system.cpp:62
QSettings::Format xdgDesktopSettingsFormat()
Definition qx-system_linux.cpp:608
SystemError forceKillProcess(quint32 processId)
Definition qx-system_linux.cpp:480
bool removeDefaultProtocolHandler(const QString &scheme, const QString &path)
Definition qx-system.cpp:219
QString processName(quint32 processId)
Definition qx-system_linux.cpp:434
bool enforceSingleInstance(QString uniqueAppId)
Definition qx-system_linux.cpp:486
QList< quint32 > processChildren(quint32 processId, bool recursive)
Definition qx-system_linux.cpp:444
bool setDefaultProtocolHandler(const QString &scheme, const QString &name, const QString &path, const QStringList &args)
Definition qx-system.cpp:167
quint32 processId(QString processName)
Definition qx-system_linux.cpp:415
SystemError cleanKillProcess(quint32 processId)
Definition qx-system_linux.cpp:474