aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/Component.h
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-02 18:35:35 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2023-08-02 18:35:35 +0200
commit1d468ac35ad88d8c77cc83f25e3704d9bd7df01b (patch)
tree8644b1574c947a1a87c5c7b2567f746cfe17882f /launcher/minecraft/Component.h
parentce2ca1381519a2e261d7f76dffa874d559d979c2 (diff)
downloadPrismLauncher-1d468ac35ad88d8c77cc83f25e3704d9bd7df01b.tar.gz
PrismLauncher-1d468ac35ad88d8c77cc83f25e3704d9bd7df01b.tar.bz2
PrismLauncher-1d468ac35ad88d8c77cc83f25e3704d9bd7df01b.zip
chore: reformat
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/minecraft/Component.h')
-rw-r--r--launcher/minecraft/Component.h45
1 files changed, 21 insertions, 24 deletions
diff --git a/launcher/minecraft/Component.h b/launcher/minecraft/Component.h
index ef7c9947..00a912d6 100644
--- a/launcher/minecraft/Component.h
+++ b/launcher/minecraft/Component.h
@@ -1,37 +1,35 @@
#pragma once
-#include <memory>
-#include <QList>
-#include <QJsonDocument>
#include <QDateTime>
-#include "meta/JsonFormat.h"
+#include <QJsonDocument>
+#include <QList>
+#include <memory>
#include "ProblemProvider.h"
#include "QObjectPtr.h"
+#include "meta/JsonFormat.h"
class PackProfile;
class LaunchProfile;
-namespace Meta
-{
- class Version;
- class VersionList;
-}
+namespace Meta {
+class Version;
+class VersionList;
+} // namespace Meta
class VersionFile;
-class Component : public QObject, public ProblemProvider
-{
-Q_OBJECT
-public:
- Component(PackProfile * parent, const QString &uid);
+class Component : public QObject, public ProblemProvider {
+ Q_OBJECT
+ public:
+ Component(PackProfile* parent, const QString& uid);
// DEPRECATED: remove these constructors?
- Component(PackProfile * parent, std::shared_ptr<Meta::Version> version);
- Component(PackProfile * parent, const QString & uid, std::shared_ptr<VersionFile> file);
+ Component(PackProfile* parent, std::shared_ptr<Meta::Version> version);
+ Component(PackProfile* parent, const QString& uid, std::shared_ptr<VersionFile> file);
virtual ~Component(){};
- void applyTo(LaunchProfile *profile);
+ void applyTo(LaunchProfile* profile);
bool isEnabled();
- bool setEnabled (bool state);
+ bool setEnabled(bool state);
bool canBeDisabled();
bool isMoveable();
@@ -56,23 +54,22 @@ public:
std::shared_ptr<class VersionFile> getVersionFile() const;
std::shared_ptr<class Meta::VersionList> getVersionList() const;
- void setImportant (bool state);
-
+ void setImportant(bool state);
const QList<PatchProblem> getProblems() const override;
ProblemSeverity getProblemSeverity() const override;
- void setVersion(const QString & version);
+ void setVersion(const QString& version);
bool customize();
bool revert();
void updateCachedData();
-signals:
+ signals:
void dataChanged();
-public: /* data */
- PackProfile * m_parent;
+ public: /* data */
+ PackProfile* m_parent;
// BEGIN: persistent component list properties
/// ID of the component