5#ifndef RHYTHMGAME_PROFILELIST_H
6#define RHYTHMGAME_PROFILELIST_H
64 setMainProfile NOTIFY mainProfileChanged FINAL)
70 getBattleProfiles CONSTANT FINAL)
75 NOTIFY profilesChanged FINAL)
81 Q_PROPERTY(
bool battleActive READ getBattleActive WRITE setBattleActive
82 NOTIFY battleActiveChanged FINAL)
83 Q_PROPERTY(
bool battleAllowed READ getBattleAllowed NOTIFY
84 battleAllowedChanged FINAL)
86 std::filesystem::
path profilesFolder;
87 std::filesystem::
path mainDbPath;
89 db::SqliteCppDb* songDb;
94 bool battleAllowed{
true };
95 QList<QString> assetsPaths;
96 QNetworkAccessManager* networkAccessManager;
99 void saveMainProfile();
100 void saveActiveProfiles();
103 explicit ProfileList(std::filesystem::path mainDbPath,
105 const QMap<QString, ThemeFamily>& themeFamilies,
106 std::filesystem::path profilesFolder,
107 QList<QString> assetsPaths,
108 QNetworkAccessManager* networkAccessManager,
110 QObject* parent =
nullptr);
111 auto getProfiles() ->
const QList<resource_managers::Profile*>&;
125 auto getBattleActive() const ->
bool;
126 void setBattleActive(
bool active);
127 [[nodiscard]] auto getBattleAllowed() const ->
bool;
128 void setBattleAllowed(
bool allowed);
131 void mainProfileChanged();
132 void profilesChanged();
133 void battleActiveChanged();
134 void battleAllowedChanged();
QString path
Definition Lr2SkinParser.cpp:87
zip_uint64_t index
Definition SongAssetStore.cpp:436
Database wrapper for SQLiteCpp.
Definition SqliteCppDb.h:30
The profiles used in battle mode.
Definition ProfileList.h:23
void setPlayer2Profile(resource_managers::Profile *profile)
Definition ProfileList.cpp:317
void setPlayer1Profile(resource_managers::Profile *profile)
Definition ProfileList.cpp:301
auto getPlayer1Profile() const -> resource_managers::Profile *
Definition ProfileList.cpp:311
friend class ProfileList
Definition ProfileList.h:34
auto getPlayer2Profile() const -> resource_managers::Profile *
Definition ProfileList.cpp:328
void player1ProfileChanged()
void player2ProfileChanged()
resource_managers::Profile * player1Profile
Definition ProfileList.h:27
resource_managers::Profile * player2Profile
Definition ProfileList.h:29
The list of local profiles.
Definition ProfileList.h:55
Definition ThemeFamily.h:43
Definition SongAssetStore.h:28
Namespace for database related classes and functions.
Definition QtArenaRoundLoader.h:15
Contains classes that wrap some functionality for use in QML.
Definition ProfileArenaIdentityProvider.h:9
Classes and functions related to loading and managing resources such as charts, sounds,...
Definition ProfileArenaIdentityProvider.h:12