RhythmGame 1.4.3
Loading...
Searching...
No Matches
ImportedScoreImporter.h
Go to the documentation of this file.
1#ifndef RHYTHMGAME_IMPORTEDSCOREIMPORTER_H
2#define RHYTHMGAME_IMPORTEDSCOREIMPORTER_H
3
4#include "db/SqliteCppDb.h"
5
6#include <QByteArray>
7#include <QString>
8
9#include <functional>
10
11namespace qml_components {
12
14{
15 std::function<void(int)> started;
16 std::function<void()> imported;
17 std::function<void()> skipped;
18 std::function<void(QString)> failed;
19};
20
21void
23 const QString& filePath,
24 const ScoreImportCallbacks& callbacks);
25
26[[nodiscard]] auto
28 const QByteArray& response) -> int;
29
30} // namespace qml_components
31
32#endif // RHYTHMGAME_IMPORTEDSCOREIMPORTER_H
Database wrapper for SQLiteCpp.
Definition SqliteCppDb.h:30
Contains classes that wrap some functionality for use in QML.
Definition ProfileArenaIdentityProvider.h:9
auto importBokutachiPersonalBests(db::SqliteCppDb &targetDb, const QByteArray &response) -> int
Definition ImportedScoreImporter.cpp:393
void importLocalScoreDatabase(db::SqliteCppDb &targetDb, const QString &filePath, const ScoreImportCallbacks &callbacks)
Definition ImportedScoreImporter.cpp:365
Definition ImportedScoreImporter.h:14
std::function< void()> skipped
Definition ImportedScoreImporter.h:17
std::function< void(QString)> failed
Definition ImportedScoreImporter.h:18
std::function< void()> imported
Definition ImportedScoreImporter.h:16
std::function< void(int)> started
Definition ImportedScoreImporter.h:15