**Artist portrait**
- Fix CDN URL: images.portrait.{hash,format} →
https://static.qobuz.com/images/artists/covers/large/{hash}.{format}
**Section alignment**
- Qt::ToolButtonTextOnly on all section toggles so text is truly left-aligned
**Auth 401 race condition**
- qobuz_backend_set_token now uses blocking_lock() instead of spawning an
async task, guaranteeing the token is set before any subsequent API call
**Pagination (infinite scroll)**
- Release sections load 50 at a time (was 500)
- ArtistSection tracks has_more + loaded count; scrolling to the bottom
emits loadMoreRequested → ArtistView calls getArtistReleases(offset=N)
- AlbumListView gains addAlbums() for append; setReleases routes to
setAlbums (offset=0) or appendAlbums (offset>0)
**Back/Forward navigation**
- MainToolBar exposes Back/Forward QActions (go-previous/go-next icons)
- MainWindow keeps a NavPage vector + index; pushNav() on every album/artist
navigation; goBack/goForward re-navigate without pushing history
**Context menu on now-playing label**
- Right-click on track label in toolbar → "Go to Album" / "Go to Artist"
- MainToolBar stores current track; emits albumRequested/artistRequested
signals wired to MainWindow's existing handlers
**Artist favourites button**
- ♡ Favourite / ♥ Favourited toggle in artist header
- Calls new addFavArtist / removeFavArtist (Rust + Qt backend wiring)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
219 lines
8.0 KiB
C++
219 lines
8.0 KiB
C++
/****************************************************************************
|
|
** Meta object code from reading C++ file 'library.hpp'
|
|
**
|
|
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.10.2)
|
|
**
|
|
** WARNING! All changes made in this file will be lost!
|
|
*****************************************************************************/
|
|
|
|
#include "../../../src/list/library.hpp"
|
|
#include <QtCore/qmetatype.h>
|
|
#include <QtCore/QList>
|
|
|
|
#include <QtCore/qtmochelpers.h>
|
|
|
|
#include <memory>
|
|
|
|
|
|
#include <QtCore/qxptype_traits.h>
|
|
#if !defined(Q_MOC_OUTPUT_REVISION)
|
|
#error "The header file 'library.hpp' doesn't include <QObject>."
|
|
#elif Q_MOC_OUTPUT_REVISION != 69
|
|
#error "This file was generated using the moc from 6.10.2. It"
|
|
#error "cannot be used with the include files from this version of Qt."
|
|
#error "(The moc has changed too much.)"
|
|
#endif
|
|
|
|
#ifndef Q_CONSTINIT
|
|
#define Q_CONSTINIT
|
|
#endif
|
|
|
|
QT_WARNING_PUSH
|
|
QT_WARNING_DISABLE_DEPRECATED
|
|
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
|
|
namespace {
|
|
struct qt_meta_tag_ZN4List7LibraryE_t {};
|
|
} // unnamed namespace
|
|
|
|
template <> constexpr inline auto List::Library::qt_create_metaobjectdata<qt_meta_tag_ZN4List7LibraryE_t>()
|
|
{
|
|
namespace QMC = QtMocConstants;
|
|
QtMocHelpers::StringRefStorage qt_stringData {
|
|
"List::Library",
|
|
"favTracksRequested",
|
|
"",
|
|
"favAlbumsRequested",
|
|
"favArtistsRequested",
|
|
"playlistRequested",
|
|
"playlistId",
|
|
"name",
|
|
"userPlaylistsChanged",
|
|
"QList<std::pair<qint64,QString>>",
|
|
"playlists",
|
|
"openPlaylistDeleted",
|
|
"onUserPlaylistsLoaded",
|
|
"QJsonObject",
|
|
"result",
|
|
"onItemClicked",
|
|
"QTreeWidgetItem*",
|
|
"item",
|
|
"column",
|
|
"onItemDoubleClicked",
|
|
"onContextMenuRequested",
|
|
"QPoint",
|
|
"pos"
|
|
};
|
|
|
|
QtMocHelpers::UintData qt_methods {
|
|
// Signal 'favTracksRequested'
|
|
QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
|
|
// Signal 'favAlbumsRequested'
|
|
QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
|
|
// Signal 'favArtistsRequested'
|
|
QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
|
|
// Signal 'playlistRequested'
|
|
QtMocHelpers::SignalData<void(qint64, const QString &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
|
|
{ QMetaType::LongLong, 6 }, { QMetaType::QString, 7 },
|
|
}}),
|
|
// Signal 'userPlaylistsChanged'
|
|
QtMocHelpers::SignalData<void(const QVector<QPair<qint64,QString>> &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
|
|
{ 0x80000000 | 9, 10 },
|
|
}}),
|
|
// Signal 'openPlaylistDeleted'
|
|
QtMocHelpers::SignalData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
|
|
// Slot 'onUserPlaylistsLoaded'
|
|
QtMocHelpers::SlotData<void(const QJsonObject &)>(12, 2, QMC::AccessPrivate, QMetaType::Void, {{
|
|
{ 0x80000000 | 13, 14 },
|
|
}}),
|
|
// Slot 'onItemClicked'
|
|
QtMocHelpers::SlotData<void(QTreeWidgetItem *, int)>(15, 2, QMC::AccessPrivate, QMetaType::Void, {{
|
|
{ 0x80000000 | 16, 17 }, { QMetaType::Int, 18 },
|
|
}}),
|
|
// Slot 'onItemDoubleClicked'
|
|
QtMocHelpers::SlotData<void(QTreeWidgetItem *, int)>(19, 2, QMC::AccessPrivate, QMetaType::Void, {{
|
|
{ 0x80000000 | 16, 17 }, { QMetaType::Int, 18 },
|
|
}}),
|
|
// Slot 'onContextMenuRequested'
|
|
QtMocHelpers::SlotData<void(const QPoint &)>(20, 2, QMC::AccessPrivate, QMetaType::Void, {{
|
|
{ 0x80000000 | 21, 22 },
|
|
}}),
|
|
};
|
|
QtMocHelpers::UintData qt_properties {
|
|
};
|
|
QtMocHelpers::UintData qt_enums {
|
|
};
|
|
return QtMocHelpers::metaObjectData<Library, qt_meta_tag_ZN4List7LibraryE_t>(QMC::MetaObjectFlag{}, qt_stringData,
|
|
qt_methods, qt_properties, qt_enums);
|
|
}
|
|
Q_CONSTINIT const QMetaObject List::Library::staticMetaObject = { {
|
|
QMetaObject::SuperData::link<QTreeWidget::staticMetaObject>(),
|
|
qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4List7LibraryE_t>.stringdata,
|
|
qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4List7LibraryE_t>.data,
|
|
qt_static_metacall,
|
|
nullptr,
|
|
qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN4List7LibraryE_t>.metaTypes,
|
|
nullptr
|
|
} };
|
|
|
|
void List::Library::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
|
{
|
|
auto *_t = static_cast<Library *>(_o);
|
|
if (_c == QMetaObject::InvokeMetaMethod) {
|
|
switch (_id) {
|
|
case 0: _t->favTracksRequested(); break;
|
|
case 1: _t->favAlbumsRequested(); break;
|
|
case 2: _t->favArtistsRequested(); break;
|
|
case 3: _t->playlistRequested((*reinterpret_cast<std::add_pointer_t<qint64>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
|
|
case 4: _t->userPlaylistsChanged((*reinterpret_cast<std::add_pointer_t<QList<std::pair<qint64,QString>>>>(_a[1]))); break;
|
|
case 5: _t->openPlaylistDeleted(); break;
|
|
case 6: _t->onUserPlaylistsLoaded((*reinterpret_cast<std::add_pointer_t<QJsonObject>>(_a[1]))); break;
|
|
case 7: _t->onItemClicked((*reinterpret_cast<std::add_pointer_t<QTreeWidgetItem*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
|
|
case 8: _t->onItemDoubleClicked((*reinterpret_cast<std::add_pointer_t<QTreeWidgetItem*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
|
|
case 9: _t->onContextMenuRequested((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1]))); break;
|
|
default: ;
|
|
}
|
|
}
|
|
if (_c == QMetaObject::IndexOfMethod) {
|
|
if (QtMocHelpers::indexOfMethod<void (Library::*)()>(_a, &Library::favTracksRequested, 0))
|
|
return;
|
|
if (QtMocHelpers::indexOfMethod<void (Library::*)()>(_a, &Library::favAlbumsRequested, 1))
|
|
return;
|
|
if (QtMocHelpers::indexOfMethod<void (Library::*)()>(_a, &Library::favArtistsRequested, 2))
|
|
return;
|
|
if (QtMocHelpers::indexOfMethod<void (Library::*)(qint64 , const QString & )>(_a, &Library::playlistRequested, 3))
|
|
return;
|
|
if (QtMocHelpers::indexOfMethod<void (Library::*)(const QVector<QPair<qint64,QString>> & )>(_a, &Library::userPlaylistsChanged, 4))
|
|
return;
|
|
if (QtMocHelpers::indexOfMethod<void (Library::*)()>(_a, &Library::openPlaylistDeleted, 5))
|
|
return;
|
|
}
|
|
}
|
|
|
|
const QMetaObject *List::Library::metaObject() const
|
|
{
|
|
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
|
}
|
|
|
|
void *List::Library::qt_metacast(const char *_clname)
|
|
{
|
|
if (!_clname) return nullptr;
|
|
if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN4List7LibraryE_t>.strings))
|
|
return static_cast<void*>(this);
|
|
return QTreeWidget::qt_metacast(_clname);
|
|
}
|
|
|
|
int List::Library::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
|
{
|
|
_id = QTreeWidget::qt_metacall(_c, _id, _a);
|
|
if (_id < 0)
|
|
return _id;
|
|
if (_c == QMetaObject::InvokeMetaMethod) {
|
|
if (_id < 10)
|
|
qt_static_metacall(this, _c, _id, _a);
|
|
_id -= 10;
|
|
}
|
|
if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
|
if (_id < 10)
|
|
*reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
|
|
_id -= 10;
|
|
}
|
|
return _id;
|
|
}
|
|
|
|
// SIGNAL 0
|
|
void List::Library::favTracksRequested()
|
|
{
|
|
QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
|
|
}
|
|
|
|
// SIGNAL 1
|
|
void List::Library::favAlbumsRequested()
|
|
{
|
|
QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
|
|
}
|
|
|
|
// SIGNAL 2
|
|
void List::Library::favArtistsRequested()
|
|
{
|
|
QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
|
|
}
|
|
|
|
// SIGNAL 3
|
|
void List::Library::playlistRequested(qint64 _t1, const QString & _t2)
|
|
{
|
|
QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
|
|
}
|
|
|
|
// SIGNAL 4
|
|
void List::Library::userPlaylistsChanged(const QVector<QPair<qint64,QString>> & _t1)
|
|
{
|
|
QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
|
|
}
|
|
|
|
// SIGNAL 5
|
|
void List::Library::openPlaylistDeleted()
|
|
{
|
|
QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
|
|
}
|
|
QT_WARNING_POP
|