aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/auth/flows
diff options
context:
space:
mode:
authorswirl <swurl@swurl.xyz>2022-02-03 13:59:25 -0500
committerswirl <swurl@swurl.xyz>2022-02-03 13:59:25 -0500
commit2c62a34c2f47961e343b8aae37cd76ed7520593e (patch)
treedfa09fc140c9757b52ceffff9a61c19accd22036 /launcher/minecraft/auth/flows
parente8a4902a3dddd08d65bd1284951ae5954439d1f5 (diff)
parent2177aa2a6b248088f76b463c43d04c65126195bf (diff)
downloadPrismLauncher-2c62a34c2f47961e343b8aae37cd76ed7520593e.tar.gz
PrismLauncher-2c62a34c2f47961e343b8aae37cd76ed7520593e.tar.bz2
PrismLauncher-2c62a34c2f47961e343b8aae37cd76ed7520593e.zip
Merge branch 'feature/offline_mode' into develop
Diffstat (limited to 'launcher/minecraft/auth/flows')
-rw-r--r--launcher/minecraft/auth/flows/Offline.cpp17
-rw-r--r--launcher/minecraft/auth/flows/Offline.h22
2 files changed, 39 insertions, 0 deletions
diff --git a/launcher/minecraft/auth/flows/Offline.cpp b/launcher/minecraft/auth/flows/Offline.cpp
new file mode 100644
index 00000000..fc614a8c
--- /dev/null
+++ b/launcher/minecraft/auth/flows/Offline.cpp
@@ -0,0 +1,17 @@
+#include "Offline.h"
+
+#include "minecraft/auth/steps/OfflineStep.h"
+
+OfflineRefresh::OfflineRefresh(
+ AccountData *data,
+ QObject *parent
+) : AuthFlow(data, parent) {
+ m_steps.append(new OfflineStep(m_data));
+}
+
+OfflineLogin::OfflineLogin(
+ AccountData *data,
+ QObject *parent
+) : AuthFlow(data, parent) {
+ m_steps.append(new OfflineStep(m_data));
+}
diff --git a/launcher/minecraft/auth/flows/Offline.h b/launcher/minecraft/auth/flows/Offline.h
new file mode 100644
index 00000000..5d1f83a4
--- /dev/null
+++ b/launcher/minecraft/auth/flows/Offline.h
@@ -0,0 +1,22 @@
+#pragma once
+#include "AuthFlow.h"
+
+class OfflineRefresh : public AuthFlow
+{
+ Q_OBJECT
+public:
+ explicit OfflineRefresh(
+ AccountData *data,
+ QObject *parent = 0
+ );
+};
+
+class OfflineLogin : public AuthFlow
+{
+ Q_OBJECT
+public:
+ explicit OfflineLogin(
+ AccountData *data,
+ QObject *parent = 0
+ );
+};