Prepare BearWave for public repository

This commit is contained in:
Sebastian Palencsar
2026-05-20 10:47:56 +02:00
commit 51992dd437
38 changed files with 3842 additions and 0 deletions

28
src/coverartfetcher.h Normal file
View File

@@ -0,0 +1,28 @@
#ifndef COVERARTFETCHER_H
#define COVERARTFETCHER_H
#include <QObject>
#include <QNetworkAccessManager>
#include <QNetworkReply>
class CoverArtFetcher : public QObject
{
Q_OBJECT
public:
explicit CoverArtFetcher(QObject *parent = nullptr);
void fetch(const QString &artist, const QString &title);
signals:
void coverUrlReady(const QString &url);
private slots:
void onReplyFinished();
private:
QNetworkAccessManager *m_networkManager;
QNetworkReply *m_currentReply = nullptr;
};
#endif // COVERARTFETCHER_H