-
Notifications
You must be signed in to change notification settings - Fork 0
/
xtmapp.h
43 lines (34 loc) · 907 Bytes
/
xtmapp.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
#ifndef XTMAPP_H
#define XTMAPP_H
#include <QObject>
#include <QQmlApplicationEngine>
#include <QGuiApplication>
#include <QDebug>
#include <QThread>
#include "mov.h"
#include "movtest.h"
// X-thread Mov App
class XTMApp : public QObject
{
Q_OBJECT
public:
XTMApp(const QGuiApplication &a,
const QQmlApplicationEngine &e,
QObject *parent = nullptr);
public slots:
void slotTest();
void slotGetMovLocal(Mov& m); // Get mov slot within this thread
void quit();
signals:
//void signalSendMov(Mov&& m); <-- does not work, moc does not have rvalue support
//void signalSendMov(const Mov& m);
void signalSendMov(Mov& m);
//void signalSendMov(Mov m);
private:
const QQmlApplicationEngine &mEngine;
const QGuiApplication &mApp;
QObject* mpTestWnd;
std::unique_ptr<MovTest> mupMTest;
QThread mTestThread;
};
#endif // XTMAPP_H