2020-02-15 23:36:20 +01:00
|
|
|
|
#pragma once
|
2018-03-17 02:17:27 -04:00
|
|
|
|
|
2020-02-15 23:36:20 +01:00
|
|
|
|
#include <string>
|
2018-03-17 02:17:27 -04:00
|
|
|
|
|
|
|
|
|
|
// Do not confuse this with the "user" in Emu/System.h.
|
|
|
|
|
|
// That user is read from config.yml, and it only represents the currently "logged in" user.
|
|
|
|
|
|
// The UserAccount class will represent all users in the home directory for the User Manager dialog.
|
|
|
|
|
|
// Selecting a user account in this dialog and saving writes it to config.yml.
|
|
|
|
|
|
class UserAccount
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
2018-06-20 06:44:43 +02:00
|
|
|
|
explicit UserAccount(const std::string& user_id = "00000001");
|
2018-03-17 02:17:27 -04:00
|
|
|
|
|
2019-05-11 10:14:56 +02:00
|
|
|
|
std::string GetUserId() { return m_user_id; }
|
|
|
|
|
|
std::string GetUserDir() { return m_user_dir; }
|
|
|
|
|
|
std::string GetUsername() { return m_username; }
|
2018-03-17 02:17:27 -04:00
|
|
|
|
~UserAccount();
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
2018-06-20 02:11:50 +02:00
|
|
|
|
std::string m_user_id;
|
|
|
|
|
|
std::string m_user_dir;
|
|
|
|
|
|
std::string m_username;
|
2018-03-17 02:17:27 -04:00
|
|
|
|
};
|