From bfc9e1e5d598f354dd39e5c2eb51d5e51585359b Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 28 Nov 2013 20:45:52 -0600 Subject: Verify access tokens before launching Minecraft Kind of an important thing to do... Heh... --- gui/MainWindow.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'gui/MainWindow.h') diff --git a/gui/MainWindow.h b/gui/MainWindow.h index 4191e590..650fdee2 100644 --- a/gui/MainWindow.h +++ b/gui/MainWindow.h @@ -106,7 +106,23 @@ slots: void on_actionEditInstNotes_triggered(); - void doLogin(const QString &errorMsg = ""); + /*! + * Launches the currently selected instance with the default account. + * If no default account is selected, prompts the user to pick an account. + */ + void doLaunch(); + + /*! + * Launches the given instance with the given account. + */ + void doLaunchInst(BaseInstance* instance, MojangAccountPtr account); + + /*! + * Opens an input dialog, allowing the user to input their password and refresh its access token. + * This function will execute the proper Yggdrasil task to refresh the access token. + * Returns true if successful. False if the user cancelled. + */ + bool doRefreshToken(MojangAccountPtr account, const QString& errorMsg=""); /*! * Launches the given instance with the given account. -- cgit v1.2.3