Implement loading accounts from list.

This commit is contained in:
Andrew
2013-11-18 12:58:03 -06:00
parent cdca530139
commit a9a0b65358
7 changed files with 141 additions and 7 deletions

View File

@ -80,6 +80,20 @@ public:
*/
virtual MojangAccountPtr findAccount(const QString &username);
/*!
* \brief Loads the account list from the given file path.
* If the given file is an empty string (default), will load from the default account list file.
* \return True if successful, otherwise false.
*/
virtual bool loadList(const QString& file="");
/*!
* \brief Saves the account list to the given file.
* If the given file is an empty string (default), will save from the default account list file.
* \return True if successful, otherwise false.
*/
virtual bool saveList(const QString& file="");
signals:
/*!
* Signal emitted to indicate that the account list has changed.