1#ifndef RHYTHMGAME_BACKBEATCATALOG_H
2#define RHYTHMGAME_BACKBEATCATALOG_H
5#include <QFutureWatcher>
28 const std::filesystem::path& databasePath,
31 QObject* parent =
nullptr);
33 void refresh(
bool force =
false);
38 auto synchronize(std::optional<qint64> previousRevision = {}) -> Update;
42 void updated(
const QList<resource_managers::Table>& collections);
47 std::shared_ptr<BackbeatSource> source;
48 std::filesystem::path databasePath;
51 std::atomic_bool cancelled =
false;
52 QThreadPool threadPool;
55 std::optional<qint64> revision;
56 bool pendingRefresh =
false;
Definition QtArenaRoundLoader.h:29
Database wrapper for SQLiteCpp.
Definition SqliteCppDb.h:30
Definition BackbeatCatalog.h:14
void busyChanged(bool busy)
void updated(const QList< resource_managers::Table > &collections)
void refresh(bool force=false)
Definition BackbeatCatalog.cpp:61
~BackbeatCatalog() override
Definition BackbeatCatalog.cpp:54
void errorChanged(const QString &error)
auto synchronize(std::optional< qint64 > previousRevision={}) -> Update
Definition BackbeatCatalog.cpp:80
Classes and functions related to loading and managing resources such as charts, sounds,...
Definition ProfileArenaIdentityProvider.h:12
Definition BackbeatCatalog.h:19
QList< Table > collections
Definition BackbeatCatalog.h:20
int added
Definition BackbeatCatalog.h:23
QString error
Definition BackbeatCatalog.h:21
std::optional< qint64 > revision
Definition BackbeatCatalog.h:22
int removed
Definition BackbeatCatalog.h:24