aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/auth/flows
diff options
context:
space:
mode:
authorswirl <swurl@swurl.xyz>2022-01-14 18:03:35 -0500
committerGitHub <noreply@github.com>2022-01-14 18:03:35 -0500
commitb4f750e7db40352111417ea89a9f375ae8c746ab (patch)
treed69c63d525c824f0c39803460896aa6ca719d66e /launcher/minecraft/auth/flows
parentb19e3156154ba0dd232a3d165b1759c57e2858f2 (diff)
parentcdaa397dcffb92ae6a9c659047a87d49286dee4f (diff)
downloadPrismLauncher-b4f750e7db40352111417ea89a9f375ae8c746ab.tar.gz
PrismLauncher-b4f750e7db40352111417ea89a9f375ae8c746ab.tar.bz2
PrismLauncher-b4f750e7db40352111417ea89a9f375ae8c746ab.zip
Merge pull request #50 from bexnoss/offline-mode
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
+ );
+};