Application.h cleanup (#4502)

This commit is contained in:
Alexandru Ionut Tripon 2026-02-11 15:44:19 +00:00 committed by GitHub
commit 157ae6fb72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 46 additions and 12 deletions

View file

@ -37,6 +37,8 @@
#pragma once
#include <memory>
#include <QApplication>
#include <QDateTime>
#include <QDebug>
@ -44,12 +46,10 @@
#include <QIcon>
#include <QMutex>
#include <QUrl>
#include <memory>
#include <BaseInstance.h>
#include "QObjectPtr.h"
#include "launch/LogModel.h"
#include "minecraft/launch/MinecraftTarget.h"
#include "minecraft/auth/MinecraftAccount.h"
class LaunchController;
class LocalPeer;
@ -74,6 +74,12 @@ class ITheme;
class MCEditTool;
class ThemeManager;
class IconTheme;
class BaseInstance;
class LogModel;
struct MinecraftTarget;
class MinecraftAccount;
namespace Meta {
class Index;
@ -212,8 +218,8 @@ class Application : public QApplication {
bool launch(BaseInstance* instance,
bool online = true,
bool demo = false,
MinecraftTarget::Ptr targetToJoin = nullptr,
MinecraftAccountPtr accountToUse = nullptr,
std::shared_ptr<MinecraftTarget> targetToJoin = nullptr,
shared_qobject_ptr<MinecraftAccount> accountToUse = nullptr,
const QString& offlineName = QString());
bool kill(BaseInstance* instance);
void closeCurrentWindow();