mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 17:11:57 +00:00
29 lines
420 B
C
29 lines
420 B
C
|
#pragma once
|
||
|
|
||
|
#include <QObject>
|
||
|
|
||
|
class MinecraftProcess;
|
||
|
class ConsoleWindow;
|
||
|
|
||
|
// Commandline instance launcher
|
||
|
class InstanceLauncher : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
private:
|
||
|
QString instId;
|
||
|
MinecraftProcess *proc;
|
||
|
ConsoleWindow *console;
|
||
|
|
||
|
public:
|
||
|
InstanceLauncher(QString instId);
|
||
|
|
||
|
private slots:
|
||
|
void onTerminated();
|
||
|
void onLoginComplete();
|
||
|
void doLogin(const QString &errorMsg);
|
||
|
|
||
|
public:
|
||
|
int launch();
|
||
|
};
|