author | unc0rr |
Sun, 21 Sep 2014 00:37:50 +0400 | |
branch | qmlfrontend |
changeset 10418 | 091d2c0216c3 |
parent 10416 | 1c301054694d |
child 10420 | 02c573d19224 |
permissions | -rw-r--r-- |
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; |
|
10418
091d2c0216c3
Move away from passing shortstrings into C code, now IPC works
unc0rr
parents:
10416
diff
changeset
|
26 |
QVector<const char *> m_args; |
10416 | 27 |
|
10418
091d2c0216c3
Move away from passing shortstrings into C code, now IPC works
unc0rr
parents:
10416
diff
changeset
|
28 |
static void engineMessageCallback(void *context, quint8 len, const char * msg); |
10416 | 29 |
void sendIPC(const QByteArray &b); |
10402 | 30 |
}; |
31 |
||
32 |
#endif // HWENGINE_H |
|
33 |