-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwaverapplication.h
62 lines (40 loc) · 1.14 KB
/
waverapplication.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
52
53
54
55
56
57
58
59
60
61
62
/*
This file is part of Waver
Copyright (C) 2021 Peter Papp
Please visit https://launchpad.net/waver for details
*/
#ifndef WAVERAPPLICATION_H
#define WAVERAPPLICATION_H
#include <QGuiApplication>
#include <QIcon>
#include <QQmlApplicationEngine>
#include <QQuickStyle>
#include <QQuickWindow>
#include <QSettings>
#include <QString>
#include <QSysInfo>
#include <QThread>
#include "globals.h"
#include "notificationshandler.h"
#include "waver.h"
class WaverApplication : public QGuiApplication
{
Q_OBJECT
public:
explicit WaverApplication(int &argc, char **argv);
~WaverApplication();
void setQmlApplicationEngine(QQmlApplicationEngine *qmlApplicationEngine);
private:
const int VERSION_MAJOR = 2;
const int VERSION_MINOR = 1;
const int VERSION_SUB = 6;
QQmlApplicationEngine *qmlApplicationEngine;
QThread *waverThread;
Waver *waver;
NotificationsHandler *notificationsHandler;
public slots:
void uiSaveGeometry(int x, int y, int width, int height);
signals:
void shutdownWaver();
};
#endif // WAVERAPPLICATION_H