deep-wine-runner/VM-source/qemu.h

53 lines
1.5 KiB
C
Raw Normal View History

2023-04-05 16:09:58 +08:00
/*
2023-04-24 21:49:18 +08:00
* gfdgd xi
2023-04-05 16:09:58 +08:00
* GPLV3
*/
2023-03-26 21:53:03 +08:00
#ifndef QEMU_H
#define QEMU_H
#include <QString>
class qemu
{
public:
// 虚拟机信息
QString name;
QString managerPath;
QString vboxVersion;
qemu(QString name, QString managerPath="/usr/bin");
int Create(QString type="Windows7");
int CreateDisk(QString path, int size);
int CreateDiskControl(QString controlName="storage_controller_1");
int MountDisk(QString diskPath, QString controlName="storage_controller_1", int port=0, int device=0);
int MountISO(QString isoPath, QString controlName="storage_controller_1", int port=1, int device=0);
int BootFirst(QString bootDrive);
int SetNetBridge(QString netDriver);
2023-08-09 22:19:56 +08:00
int SetCPU(int number, int cpuNum, int coreNum);
2023-03-26 21:53:03 +08:00
int SetMemory(int memory);
int SetRemote(bool setting);
int SetRemoteConnectSetting(int port=5540);
int Start(bool unShown=false);
int Stop();
int Delete();
int SetDisplayMemory(int memory);
int InstallGuessAdditions(QString controlName="storage_controller_1", int port=1, int device=0);
int EnabledAudio();
int EnabledClipboardMode();
int EnabledDraganddrop();
int ShareFile(QString name, QString path);
int SetVBoxSVGA();
int SetMousePS2();
int SetKeyboardPS2();
int OpenUSB();
2023-08-09 22:19:56 +08:00
int EnabledUEFI(bool status);
2023-08-16 09:53:59 +08:00
int AutoInstall(QString iso);
2023-11-11 19:51:31 +08:00
int UseAarch64EFI();
int UseArmhfEFI();
int UseLoongarch64EFI();
int UseOtherEFI(QString fdFilePath);
2023-03-26 21:53:03 +08:00
private:
2023-08-09 22:57:14 +08:00
QString commandOption = "";
2023-03-26 21:53:03 +08:00
};
#endif // QEMU_H