author | unc0rr |
Mon, 20 Oct 2014 22:55:12 +0400 | |
branch | qmlfrontend |
changeset 10442 | c58db813240b |
parent 10434 | 1614b13ad35e |
child 10444 | 47a6231f1fc1 |
permissions | -rw-r--r-- |
10402 | 1 |
#ifndef HWENGINE_H |
2 |
#define HWENGINE_H |
|
3 |
||
4 |
#include <QObject> |
|
10416 | 5 |
#include <QByteArray> |
6 |
#include <QVector> |
|
10420 | 7 |
#include <QPixmap> |
10416 | 8 |
|
9 |
#include "flib.h" |
|
10402 | 10 |
|
10420 | 11 |
class QQmlEngine; |
12 |
||
10402 | 13 |
class HWEngine : public QObject |
14 |
{ |
|
15 |
Q_OBJECT |
|
16 |
public: |
|
10420 | 17 |
explicit HWEngine(QQmlEngine * engine, QObject *parent = 0); |
10402 | 18 |
~HWEngine(); |
19 |
||
20 |
static void exposeToQML(); |
|
10428
7c25297720f1
More refactoring: move PoC preview getting code into flib
unc0rr
parents:
10426
diff
changeset
|
21 |
Q_INVOKABLE void getPreview(); |
10432 | 22 |
Q_INVOKABLE void runQuickGame(); |
10424
4be6cd55f1cf
- Get rid of engine's PathPrefix and UserPathPrefix
unc0rr
parents:
10420
diff
changeset
|
23 |
Q_INVOKABLE QString currentSeed(); |
10442 | 24 |
Q_INVOKABLE void getTeamsList(); |
10402 | 25 |
|
26 |
signals: |
|
10420 | 27 |
void previewImageChanged(); |
10442 | 28 |
void localTeamAdded(const QString & teamName, int aiLevel); |
10402 | 29 |
|
30 |
public slots: |
|
10416 | 31 |
|
32 |
private: |
|
10420 | 33 |
QQmlEngine * m_engine; |
10416 | 34 |
|
10428
7c25297720f1
More refactoring: move PoC preview getting code into flib
unc0rr
parents:
10426
diff
changeset
|
35 |
static void guiMessagesCallback(void * context, MessageType mt, const char * msg, uint32_t len); |
10434
1614b13ad35e
Themes model, also add some files I forgot to add previously
unc0rr
parents:
10432
diff
changeset
|
36 |
void fillModels(); |
10420 | 37 |
|
38 |
private slots: |
|
10430 | 39 |
void engineMessageHandler(MessageType mt, const QByteArray &msg); |
10402 | 40 |
}; |
41 |
||
42 |
#endif // HWENGINE_H |
|
43 |