summaryrefslogtreecommitdiffstats
path: root/gui/MainWindow.h
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-11-28 20:45:52 -0600
committerAndrew <forkk@forkk.net>2013-11-28 20:45:52 -0600
commitbfc9e1e5d598f354dd39e5c2eb51d5e51585359b (patch)
tree20d2dd60b8b053ac4a93eb916b5484090d375b67 /gui/MainWindow.h
parent1f150dcb7821fea19b40b9e1024fff5b594f03e9 (diff)
downloadMultiMC-bfc9e1e5d598f354dd39e5c2eb51d5e51585359b.tar
MultiMC-bfc9e1e5d598f354dd39e5c2eb51d5e51585359b.tar.gz
MultiMC-bfc9e1e5d598f354dd39e5c2eb51d5e51585359b.tar.lz
MultiMC-bfc9e1e5d598f354dd39e5c2eb51d5e51585359b.tar.xz
MultiMC-bfc9e1e5d598f354dd39e5c2eb51d5e51585359b.zip
Verify access tokens before launching Minecraft
Kind of an important thing to do... Heh...
Diffstat (limited to 'gui/MainWindow.h')
-rw-r--r--gui/MainWindow.h18
1 files changed, 17 insertions, 1 deletions
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.