mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-14 19:12:04 +08:00
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
#ifndef MAINWINDOW_H
|
||
#define MAINWINDOW_H
|
||
|
||
#include <QMap>
|
||
#include <QDir>
|
||
#include <QCoreApplication>
|
||
|
||
class MainWindow
|
||
{
|
||
|
||
public:
|
||
MainWindow();
|
||
~MainWindow();
|
||
void CheckWine();
|
||
QString get_home();
|
||
QString readtxt(QString path);
|
||
void write_txt(QString path, QByteArray things);
|
||
QByteArray readtxtByte(QString path);
|
||
QString GetCommandResult(QString command);
|
||
|
||
private:
|
||
QString homePath = QDir::homePath();
|
||
QString programPath = QCoreApplication::applicationDirPath();
|
||
QMap<QString, QString> wine;
|
||
QStringList untipsWine = {"使用 Flatpak 安装的 Wine", "基于 exagear 的 deepin-wine6-stable", "基于 UOS box86 的 deepin-wine6-stable", "基于 UOS exagear 的 deepin-wine6-stable", "基于 linglong 的 deepin-wine6-stable(不推荐)"};
|
||
QStringList canUseWine = {};
|
||
QStringList qemuBottleList = {};
|
||
QString qemuPath = homePath + "/.deepin-wine-runner-ubuntu-images";
|
||
QStringList shellHistory;
|
||
QStringList findExeHistory;
|
||
QStringList wineBottonHistory;
|
||
QStringList isoPath;
|
||
QStringList isoPathFound;
|
||
QMap<QString, QString> setting;
|
||
|
||
|
||
};
|
||
#endif // MAINWINDOW_H
|