Move a good chunk of the singleton objects into a new QApplication subclass.
This commit is contained in:
parent
3f30055afe
commit
6892c11e9f
32 changed files with 491 additions and 631 deletions
28
logic/InstanceLauncher.h
Normal file
28
logic/InstanceLauncher.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#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();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue