qmlFrontend/hwengine.h
author unc0rr
Sat, 20 Sep 2014 00:56:54 +0400
branchqmlfrontend
changeset 10416 1c301054694d
parent 10402 3313336c1ee0
child 10418 091d2c0216c3
permissions -rw-r--r--
- Remove --port command - Some refactoring here and there - Try to get preview from engine, which doesn't work due to some ABI mismatch, probably shouldn't try to pass string255 to pascal

#ifndef HWENGINE_H
#define HWENGINE_H

#include <QObject>
#include <QByteArray>
#include <QVector>

#include "flib.h"

class HWEngine : public QObject
{
    Q_OBJECT
public:
    explicit HWEngine(QObject *parent = 0);
    ~HWEngine();

    static void exposeToQML();
    Q_INVOKABLE void run();
    
signals:
    
public slots:

private:
    QList<QByteArray> m_argsList;
    QVector<char *> m_args;

    static void engineMessageCallback(void *context, string255 str);
    void sendIPC(const QByteArray &b);
};

#endif // HWENGINE_H