-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
touchradio.h
51 lines (42 loc) · 1.04 KB
/
touchradio.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef TOUCHRADIO_H
#define TOUCHRADIO_H
#include <QObject>
#include <QGuiApplication>
#include <QThread>
#include "applicationsettings.h"
#include <QQuickView>
#include "lmsconnector.h"
#include "lmsstatus.h"
#include "lmsplayercontroller.h"
#include "RessourceCenterModel.h"
class TouchradioWorkers;
class Touchradio : public QObject
{
Q_OBJECT
public:
Touchradio();
int Start(QGuiApplication* app);
void Stop();
~Touchradio();
public slots:
int init();
void exit();
void shutdown();
private:
QGuiApplication* app;
QThread* startThread;
ApplicationSettings* settings;
QQuickView* viewer;
LmsConnector* connector;
LmsConnector* statusConnector;
LmsStatus* status;
LmsStatusThread* statusManager;
LmsPlayerController* playerController;
QObjectListModel* rootModel;
// Todo The creation of RessourceItems should be reviewed...
RessourceItem* rootItem;
RessourceItem* libraryItem;
RessourceItem* favoritesItem;
RessourceItem* playlistsItem;
};
#endif // TOUCHRADIO_H