|
RhythmGame 1.4.3
|
The list of local profiles. More...
#include <ProfileList.h>


Signals | |
| void | mainProfileChanged () |
| void | profilesChanged () |
| void | battleActiveChanged () |
| void | battleAllowedChanged () |
Public Member Functions | |
| ProfileList (std::filesystem::path mainDbPath, db::SqliteCppDb *songDb, const QMap< QString, ThemeFamily > &themeFamilies, std::filesystem::path profilesFolder, QList< QString > assetsPaths, QNetworkAccessManager *networkAccessManager, resource_managers::SongAssetStore *songAssetStore, QObject *parent=nullptr) | |
| auto | getProfiles () -> const QList< resource_managers::Profile * > & |
| Q_INVOKABLE resource_managers::Profile * | at (int index) const |
| Q_INVOKABLE resource_managers::Profile * | createProfile () |
| Q_INVOKABLE void | removeProfile (resource_managers::Profile *profile) |
| Remove the selected profile, completely deleting it. | |
| void | setMainProfile (resource_managers::Profile *profile) |
| auto | getMainProfile () const -> resource_managers::Profile * |
| auto | getBattleProfiles () -> BattleProfiles * |
| auto | getBattleActive () const -> bool |
| void | setBattleActive (bool active) |
| auto | getBattleAllowed () const -> bool |
| void | setBattleAllowed (bool allowed) |
Properties | |
| resource_managers::Profile * | mainProfile {} |
| The profile that is used to select themes and theme settings. Never null. | |
| qml_components::BattleProfiles *battleProfiles READ | getBattleProfiles |
| The profiles used in battle mode. | |
| QList< resource_managers::Profile * > | profiles |
| The list of all available profiles. | |
| bool | battleActive {} |
| Launch SP charts in battle mode with two profiles. | |
| bool | battleAllowed { true } |
The list of local profiles.
Besides listing all local profiles, this class also contains the list of active profiles (for battle mode) and the main profile, used to select themes and theme settings.
|
explicit |
| auto qml_components::ProfileList::at | ( | int | index | ) | const |
|
signal |
|
signal |
| auto qml_components::ProfileList::createProfile | ( | ) |
| auto qml_components::ProfileList::getBattleActive | ( | ) | const -> bool |
| auto qml_components::ProfileList::getBattleAllowed | ( | ) | const -> bool |
| auto qml_components::ProfileList::getBattleProfiles | ( | ) | -> BattleProfiles * |
| auto qml_components::ProfileList::getMainProfile | ( | ) | const -> resource_managers::Profile* |
| auto qml_components::ProfileList::getProfiles | ( | ) | -> const QList<resource_managers::Profile*>& |
|
signal |
|
signal |
| void qml_components::ProfileList::removeProfile | ( | resource_managers::Profile * | profile | ) |
Remove the selected profile, completely deleting it.
| void qml_components::ProfileList::setBattleActive | ( | bool | active | ) |
| void qml_components::ProfileList::setBattleAllowed | ( | bool | allowed | ) |
| void qml_components::ProfileList::setMainProfile | ( | resource_managers::Profile * | profile | ) |
|
readwrite |
Launch SP charts in battle mode with two profiles.
Both battleProfiles.player1Profile and battleProfiles.player2Profile must be set before enabling battle.
|
read |
| auto qml_components::ProfileList::getBattleProfiles |
The profiles used in battle mode.
|
read |
The profile that is used to select themes and theme settings. Never null.
It also specifies the shared settings in battle mode. The main profile does not need to be assigned to P1 or P2.
|
read |
The list of all available profiles.