equal
deleted
inserted
replaced
|
1 #ifndef HWENGINE_H |
|
2 #define HWENGINE_H |
|
3 |
|
4 #include <QObject> |
|
5 |
|
6 #include "flib.h" |
|
7 |
|
8 class QQmlEngine; |
|
9 |
|
10 class HWEnginePrivate; |
|
11 |
|
12 class HWEngine : public QObject { |
|
13 Q_OBJECT |
|
14 |
|
15 public: |
|
16 explicit HWEngine(QQmlEngine* engine, QObject* parent = nullptr); |
|
17 ~HWEngine(); |
|
18 |
|
19 static void exposeToQML(); |
|
20 |
|
21 signals: |
|
22 void previewIsRendering(); |
|
23 void previewImageChanged(); |
|
24 void previewHogCountChanged(int count); |
|
25 |
|
26 public slots: |
|
27 |
|
28 private: |
|
29 QQmlEngine* m_engine; |
|
30 |
|
31 static void guiMessagesCallback(void* context, MessageType mt, const char* msg, uint32_t len); |
|
32 |
|
33 private slots: |
|
34 void engineMessageHandler(MessageType mt, const QByteArray& msg); |
|
35 }; |
|
36 |
|
37 #endif // HWENGINE_H |