1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef UMEDIAVIEWER_H
#define UMEDIAVIEWER_H
#include <QtCore>
#include "qmlapplicationviewer.h"
#include "songs.h"
#include "youtubedownloader.h"
#include "musicstore.h"
class UMediaViewer : public QmlApplicationViewer
{
Q_OBJECT
public:
explicit UMediaViewer(int argc, char *argv[], QWidget *parent = 0);
public slots:
void add_songs();
void add_folder();
void add_from_youtube(QString url);
void change_title(QString title);
void set_repeat_setting(bool value);
void set_shuffle_setting(bool value);
private:
QObject *root;
QString path;
QSettings settings;
Songs* songs;
YouTubeDownloader* downloader;
MusicStore* musicStore;
};
#endif // UMEDIAVIEWER_H
|