-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKernel.h
More file actions
51 lines (35 loc) · 947 Bytes
/
Copy pathKernel.h
File metadata and controls
51 lines (35 loc) · 947 Bytes
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 KERNEL_H
#define KERNEL_H
#include <QObject>
#include <QtQuick/QQuickView>
#include <QtQuick/QQuickItem>
#include <QUrl>
#include "DownloadManager.h"
#include "IconsImageProvider.h"
class Kernel : public QObject
{
Q_OBJECT
public:
explicit Kernel(QQmlEngine* engine, QObject *rootObject, QObject *parent = 0);
~Kernel();
private:
QQmlEngine* _engine;
QObject *_rootObject;
QObject *_menuObject;
QObject *_libraryObject;
QObject *_downloadsObject;
QObject *_joystickObject;
DownloadManager _downloadManager;
IconsImageProvider* _iconsImageProvider;
QMap<QString, Sample*> _samples;
void qmlObjectsSet(QObject *qmlObject, QMap<QString, Sample*> &samples);
signals:
private slots:
void samplesClear();
void buildSamples();
void buildDownloads();
void buildLibraryList();
void componentReady(QVariant);
void itemReady(QVariant);
};
#endif // KERNEL_H