feat: initial qobuz-qt source
Lightweight Qt6 desktop client for Qobuz with a Rust audio backend (Symphonia/CPAL via staticlib FFI). Mirrors the spotify-qt layout: toolbar with playback controls, library/context docks on the left, tabbed search side panel on the right, queue panel, now-playing dock. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "backend/qobuzbackend.hpp"
|
||||
#include "playqueue.hpp"
|
||||
#include "view/maintoolbar.hpp"
|
||||
#include "view/maincontent.hpp"
|
||||
#include "view/context/view.hpp"
|
||||
#include "view/queuepanel.hpp"
|
||||
#include "view/sidepanel/view.hpp"
|
||||
#include "list/library.hpp"
|
||||
|
||||
@@ -16,7 +19,6 @@ class MainWindow : public QMainWindow
|
||||
|
||||
public:
|
||||
explicit MainWindow(QobuzBackend *backend, QWidget *parent = nullptr);
|
||||
|
||||
static QSize defaultSize() { return {1100, 700}; }
|
||||
|
||||
private slots:
|
||||
@@ -29,23 +31,25 @@ private slots:
|
||||
void onArtistLoaded(const QJsonObject &artist);
|
||||
void onPlaylistLoaded(const QJsonObject &playlist);
|
||||
|
||||
void onTrackChanged(const QJsonObject &track);
|
||||
void onPlayTrackRequested(qint64 trackId);
|
||||
void onSearchAlbumSelected(const QString &albumId);
|
||||
void onSearchArtistSelected(qint64 artistId);
|
||||
|
||||
void onSearchToggled(bool visible);
|
||||
|
||||
void showLoginDialog();
|
||||
void showSettingsDialog();
|
||||
|
||||
private:
|
||||
QobuzBackend *m_backend = nullptr;
|
||||
MainToolBar *m_toolBar = nullptr;
|
||||
MainContent *m_content = nullptr;
|
||||
List::Library *m_library = nullptr;
|
||||
SidePanel::View *m_sidePanel = nullptr;
|
||||
|
||||
QDockWidget *m_libraryDock = nullptr;
|
||||
QobuzBackend *m_backend = nullptr;
|
||||
PlayQueue *m_queue = nullptr;
|
||||
MainToolBar *m_toolBar = nullptr;
|
||||
MainContent *m_content = nullptr;
|
||||
List::Library *m_library = nullptr;
|
||||
Context::View *m_contextView = nullptr;
|
||||
QueuePanel *m_queuePanel = nullptr;
|
||||
SidePanel::View *m_sidePanel = nullptr;
|
||||
QDockWidget *m_libraryDock = nullptr;
|
||||
|
||||
void setupMenuBar();
|
||||
void tryRestoreSession();
|
||||
|
||||
Reference in New Issue
Block a user