10402
|
1 |
#ifndef HWENGINE_H
|
|
2 |
#define HWENGINE_H
|
|
3 |
|
|
4 |
#include <QObject>
|
10416
|
5 |
#include <QByteArray>
|
|
6 |
#include <QVector>
|
|
7 |
|
|
8 |
#include "flib.h"
|
10402
|
9 |
|
|
10 |
class HWEngine : public QObject
|
|
11 |
{
|
|
12 |
Q_OBJECT
|
|
13 |
public:
|
|
14 |
explicit HWEngine(QObject *parent = 0);
|
|
15 |
~HWEngine();
|
|
16 |
|
|
17 |
static void exposeToQML();
|
|
18 |
Q_INVOKABLE void run();
|
|
19 |
|
|
20 |
signals:
|
|
21 |
|
|
22 |
public slots:
|
10416
|
23 |
|
|
24 |
private:
|
|
25 |
QList<QByteArray> m_argsList;
|
|
26 |
QVector<char *> m_args;
|
|
27 |
|
|
28 |
static void engineMessageCallback(void *context, string255 str);
|
|
29 |
void sendIPC(const QByteArray &b);
|
10402
|
30 |
};
|
|
31 |
|
|
32 |
#endif // HWENGINE_H
|
|
33 |
|