-
Notifications
You must be signed in to change notification settings - Fork 0
/
systemhelper.h
59 lines (43 loc) · 1.09 KB
/
systemhelper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef SYSTEMHELPER_H
#define SYSTEMHELPER_H
#include "f32file.h"
#include "e32const.h"
#include "paramshelper.h"
#include "SWInstApi.h"
#include "SWInstDefs.h"
#include "apgcli.h"
#include "logger.h"
#include <QString>
#include <QList>
#include <QObject>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QFileInfoList>
#include <QTextStream>
#include <QApplication>
#include <QWidget>
#include <QDesktopWidget>
#include <QRect>
#include <QDesktopServices>
#include <QMap>
#include <QProcess>
class SystemHelper : public QObject
{
Q_OBJECT
public:
SystemHelper();
static QMap<QString, uint> GetInstalledApps();
static QString GetInstallDir(uint AppUid);
void AppInstall(QString AppPath, QString InstallPath, bool Overwrite);
void UpdateInstall(QString UpdatePath);
void AppUninstall(uint AppUid);
static ulong GetStorageSpace(QString Path);
static QList<QString> GetAllStorages();
static void GetSystemInfo();
static QRect* GetScreenRect();
void WriteLog(QString LogString);
signals:
void done(bool IsError);
};
#endif // SYSTEMHELPER_H