aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/auth/flows
diff options
context:
space:
mode:
authorbexnoss <82064510+bexnoss@users.noreply.github.com>2022-01-12 14:26:02 +0100
committerbexnoss <82064510+bexnoss@users.noreply.github.com>2022-01-12 14:26:02 +0100
commita1ff3b1ee34c302ba52d773816207d30badab1eb (patch)
treeac4fbbddfab2ffbd9b1949d5b51857a528c69035 /launcher/minecraft/auth/flows
parentd4b522b6cb5281df02da54cd9e0f6445770e7ec7 (diff)
downloadPrismLauncher-a1ff3b1ee34c302ba52d773816207d30badab1eb.tar.gz
PrismLauncher-a1ff3b1ee34c302ba52d773816207d30badab1eb.tar.bz2
PrismLauncher-a1ff3b1ee34c302ba52d773816207d30badab1eb.zip
Add offline mode support
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
+ );
+};