Miam-Player  0.8.0
A nice music player
fetchdialog.h
Go to the documentation of this file.
1 #ifndef FETCHDIALOG_H
2 #define FETCHDIALOG_H
3 
4 #include <QDialog>
5 
6 #include <cover.h>
9 #include "ui_fetchdialog.h"
10 
17 {
18  Q_OBJECT
19 private:
20  Q_ENUMS(ListWidgetUserType)
21 
22 public:
23  explicit FetchDialog(const QList<CoverArtProvider*> &providers, QWidget *parent = nullptr);
24 
25  virtual ~FetchDialog();
26 
27 protected:
28  virtual void closeEvent(QCloseEvent *e) override;
29 
30 private:
31  bool copyCoverToFolder(Cover *cover, QString artistAlbum, QString album);
32 
33  bool integrateCoverToFile(Cover *cover, QString artistAlbum, QString album);
34 
35 public slots:
36  void addCover(const QString &album, const QByteArray &coverByteArray);
37 
38 private slots:
39  void applyChanges();
40 
41  void updateCoverSize(int value);
42 
43 signals:
44  void refreshView();
45 };
46 
47 #endif // FETCHDIALOG_H
Definition: ui_fetchdialog.h:131
#define MIAMCOVERFETCHER_LIBRARY
Definition: miamcoverfetcher_global.hpp:8
The Cover class.
Definition: cover.h:14
The FetchDialog class.
Definition: fetchdialog.h:16