Files
GUI/src/json/cmdhelper.h
2022-01-14 10:05:30 +08:00

29 lines
516 B
C++

#ifndef CMDHELPER_H
#define CMDHELPER_H
#include <QObject>
#include <QString>
class cmdHelper : public QObject
{
Q_OBJECT
public:
static cmdHelper* Instance()
{
static cmdHelper obj;
return &obj;
}
bool getDiskSize(double& size);
bool getDiskUsed(double& used);
QString getLinuxVersion();
QString getDCMTKVersion();
private:
bool exec(const char* cmd, std::string& result);
bool exec2(const char* cmd, std::string& result);
explicit cmdHelper(QObject* parent = nullptr);
};
#endif // CMDHEPLER_H