#include <Profile.h>
◆ LoginState
| Enumerator |
|---|
| NotLoggedIn | |
| LoggingIn | |
| LoggedIn | |
| LoginFailed | |
◆ Profile()
| resource_managers::Profile::Profile |
( |
const std::filesystem::path & |
mainDbPath, |
|
|
const std::filesystem::path & |
dbPath, |
|
|
const QMap< QString, qml_components::ThemeFamily > & |
themeFamilies, |
|
|
QList< QString > |
assetsPaths, |
|
|
QNetworkAccessManager * |
networkManager, |
|
|
SongAssetStore * |
songAssetStore, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
Creates a profile object living in the given database.
If the profile doesn't exist, it will be created.
- Parameters
-
| mainDbPath | Path to the main song database file. Has to exist. |
| dbPath | Path to the profile's database file. Doesn't have to exist. |
| themeFamilies | The available theme families. |
| assetsPaths | Paths to the avatar folders. |
| networkManager | The network manager to use for online operations. |
| parent | QObject parent. |
◆ ~Profile()
| resource_managers::Profile::~Profile |
( |
| ) |
|
|
override |
◆ beginImportOp()
Create and publish a new import operation.
Must only be called on the main thread, before starting the worker.
◆ beginScoreImportOp()
◆ credentialKey()
| auto resource_managers::Profile::credentialKey |
( |
const QString & |
guid | ) |
-> QString |
|
static |
◆ downloadScores()
| auto resource_managers::Profile::downloadScores |
( |
| ) |
|
Download scores from the server that are missing locally.
Compares server GUIDs to local storage and downloads each missing score individually. Returns a ScoreSyncOperation that reports progress and per-score errors.
◆ getDb()
◆ getGuid()
| auto resource_managers::Profile::getGuid |
( |
| ) |
const -> QString |
◆ getLoginState()
| auto resource_managers::Profile::getLoginState |
( |
| ) |
const -> LoginState |
◆ getOnlineUserData()
| auto resource_managers::Profile::getOnlineUserData |
( |
| ) |
const -> QVariant |
◆ getOnlineUserDataValue()
| auto resource_managers::Profile::getOnlineUserDataValue |
( |
| ) |
const -> std::optional<OnlineUserData> |
◆ getPath()
| auto resource_managers::Profile::getPath |
( |
| ) |
const -> std::filesystem::path |
◆ getPathQString()
| auto resource_managers::Profile::getPathQString |
( |
| ) |
const -> QString |
◆ getReplayImportOperation()
◆ getScoreDb()
◆ getScoreImportOperation()
◆ getTachiData()
| auto resource_managers::Profile::getTachiData |
( |
| ) |
const -> QVariant |
◆ getTachiLoginState()
| auto resource_managers::Profile::getTachiLoginState |
( |
| ) |
const -> LoginState |
◆ getThemeConfig()
| auto resource_managers::Profile::getThemeConfig |
( |
| ) |
const -> QQmlPropertyMap* |
◆ getVars()
| auto resource_managers::Profile::getVars |
( |
| ) |
-> Vars* |
◆ importBokutachiScores()
| auto resource_managers::Profile::importBokutachiScores |
( |
| ) |
|
◆ importReplays()
| void resource_managers::Profile::importReplays |
( |
const QString & |
folderPath | ) |
|
Start importing replay files from a folder.
Runs in the background. Progress is tracked via the replayImportOperation property.
◆ importScores()
| void resource_managers::Profile::importScores |
( |
const QString & |
databasePath | ) |
|
Import best scores from an LR2 or beatoraja score database.
◆ login()
| void resource_managers::Profile::login |
( |
const QString & |
email, |
|
|
const QString & |
password |
|
) |
| |
◆ loginStateChanged
| void resource_managers::Profile::loginStateChanged |
( |
| ) |
|
|
signal |
◆ logout()
| void resource_managers::Profile::logout |
( |
| ) |
|
◆ onlineUserDataChanged
| void resource_managers::Profile::onlineUserDataChanged |
( |
| ) |
|
|
signal |
◆ replayImportOperationChanged
| void resource_managers::Profile::replayImportOperationChanged |
( |
| ) |
|
|
signal |
◆ requestArenaTicket()
◆ scoreImportOperationChanged
| void resource_managers::Profile::scoreImportOperationChanged |
( |
| ) |
|
|
signal |
◆ submitScore()
◆ tachiDataChanged
| void resource_managers::Profile::tachiDataChanged |
( |
| ) |
|
|
signal |
◆ tachiLoginStateChanged
| void resource_managers::Profile::tachiLoginStateChanged |
( |
| ) |
|
|
signal |
◆ uploadScores()
| auto resource_managers::Profile::uploadScores |
( |
| ) |
|
Upload local scores to the server.
Compares local GUIDs to the server and uploads each missing score individually. Returns a ScoreSyncOperation that reports progress and per-score errors.
◆ ProfileTestAccess
| friend struct ProfileTestAccess |
|
friend |
◆ keychainService
| const QString resource_managers::Profile::keychainService = "RhythmGame" |
|
inlinestatic |
◆ getLoginState
◆ getReplayImportOperation
◆ getScoreImportOperation
◆ getTachiLoginState
◆ guid
| QString resource_managers::Profile::guid |
|
read |
The unique identifier of the profile.
◆ onlineUserData
| QVariant resource_managers::Profile::onlineUserData |
|
read |
◆ path
| QString resource_managers::Profile::path |
|
read |
◆ scoreDb
The object used for querying the score database of the profile.
◆ tachiData
| QVariant resource_managers::Profile::tachiData |
|
read |
◆ themeConfig
| QQmlPropertyMap * resource_managers::Profile::themeConfig |
|
read |
The themes selected for this profile.
◆ vars
The persistent configuration variables of this profile.
The documentation for this class was generated from the following files: