aboutsummaryrefslogtreecommitdiff
path: root/launcher/dialogs/MSALoginDialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/dialogs/MSALoginDialog.h')
-rw-r--r--launcher/dialogs/MSALoginDialog.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/launcher/dialogs/MSALoginDialog.h b/launcher/dialogs/MSALoginDialog.h
index 402180ee..3d26a0dd 100644
--- a/launcher/dialogs/MSALoginDialog.h
+++ b/launcher/dialogs/MSALoginDialog.h
@@ -17,6 +17,7 @@
#include <QtWidgets/QDialog>
#include <QtCore/QEventLoop>
+#include <QTimer>
#include "minecraft/auth/MinecraftAccount.h"
@@ -46,10 +47,17 @@ slots:
void onTaskSucceeded();
void onTaskStatus(const QString &status);
void onTaskProgress(qint64 current, qint64 total);
+ void showVerificationUriAndCode(const QUrl &uri, const QString &code, int expiresIn);
+ void hideVerificationUriAndCode();
+
+ void externalLoginTick();
private:
Ui::MSALoginDialog *ui;
MinecraftAccountPtr m_account;
- std::shared_ptr<Task> m_loginTask;
+ std::shared_ptr<AccountTask> m_loginTask;
+ QTimer m_externalLoginTimer;
+ int m_externalLoginElapsed = 0;
+ int m_externalLoginTimeout = 0;
};