mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
//===========================================
|
|
// PC-BSD source code
|
|
// Copyright (c) 2015, PC-BSD Software/iXsystems
|
|
// Available under the 3-clause BSD license
|
|
// See the LICENSE file for full details
|
|
//===========================================
|
|
#ifndef __PCBSD_LIB_UTILS_SYSMGMT_H
|
|
#define __PCBSD_LIB_UTILS_SYSMGMT_H
|
|
|
|
#include <QJsonObject>
|
|
#include "sysadm-global.h"
|
|
|
|
namespace sysadm{
|
|
|
|
class SysMgmt{
|
|
public:
|
|
static QJsonObject batteryInfo();
|
|
static QJsonObject cpuPercentage();
|
|
static QJsonObject cpuTemps();
|
|
static QJsonObject externalDevicePaths();
|
|
static QJsonObject killProc(QJsonObject);
|
|
static QJsonObject memoryStats();
|
|
static QJsonObject procInfo();
|
|
static QJsonObject setSysctl(QJsonObject);
|
|
static QJsonObject sysctlList();
|
|
static QJsonObject systemInfo();
|
|
static QJsonObject systemReboot();
|
|
static QJsonObject systemHalt();
|
|
// static void fetchPortsTree(QStringList &cmds, QStringList &dirs); // This is not ready yet
|
|
// static void fetchSourceTree(QString branch, QStringList &cmds, QStringList &dirs); // This is not ready yet
|
|
};
|
|
|
|
} //end of pcbsd namespace
|
|
|
|
#endif
|