refactor: resync with qbqt baseline and restore genre browser
Some checks failed
Build for Windows / build-windows (push) Has been cancelled
Some checks failed
Build for Windows / build-windows (push) Has been cancelled
This commit is contained in:
@@ -28,12 +28,13 @@ public:
|
||||
|
||||
// --- catalog ---
|
||||
void search(const QString &query, quint32 offset = 0, quint32 limit = 20);
|
||||
void mostPopularSearch(const QString &query, quint32 limit = 30);
|
||||
void getAlbum(const QString &albumId);
|
||||
void getArtist(qint64 artistId);
|
||||
void getArtistReleases(qint64 artistId, const QString &releaseType, quint32 limit = 50, quint32 offset = 0);
|
||||
void getAlbumsTracks(const QStringList &albumIds);
|
||||
void getPlaylist(qint64 playlistId, quint32 offset = 0, quint32 limit = 500);
|
||||
void getGenres();
|
||||
void getFeaturedAlbums(qint64 genreId, const QString &kind, quint32 limit = 50, quint32 offset = 0);
|
||||
|
||||
// --- favorites ---
|
||||
void getFavTracks(quint32 offset = 0, quint32 limit = 500);
|
||||
@@ -82,11 +83,12 @@ signals:
|
||||
|
||||
// catalog
|
||||
void searchResult(const QJsonObject &result);
|
||||
void mostPopularResult(const QJsonObject &result);
|
||||
void albumLoaded(const QJsonObject &album);
|
||||
void artistLoaded(const QJsonObject &artist);
|
||||
void artistReleasesLoaded(const QString &releaseType, const QJsonArray &items, bool hasMore, int offset);
|
||||
void deepShuffleTracksLoaded(const QJsonArray &tracks);
|
||||
void genresLoaded(const QJsonObject &result);
|
||||
void featuredAlbumsLoaded(const QJsonObject &result);
|
||||
void playlistLoaded(const QJsonObject &playlist);
|
||||
void playlistCreated(const QJsonObject &playlist);
|
||||
void playlistDeleted(const QJsonObject &result);
|
||||
@@ -112,6 +114,11 @@ private slots:
|
||||
Q_INVOKABLE void onEvent(int eventType, const QString &json);
|
||||
void onPositionTick();
|
||||
|
||||
public:
|
||||
void manuallyEmitTrackChanged(const QJsonObject &track) {
|
||||
emit trackChanged(track);
|
||||
}
|
||||
|
||||
private:
|
||||
QobuzBackendOpaque *m_backend = nullptr;
|
||||
QTimer *m_positionTimer = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user