qmlFrontend/hwengine.h
branchqmlfrontend
changeset 10424 4be6cd55f1cf
parent 10420 02c573d19224
child 10426 727a154cf784
equal deleted inserted replaced
10422:4cf23d4c7624 10424:4be6cd55f1cf
    17     explicit HWEngine(QQmlEngine * engine, QObject *parent = 0);
    17     explicit HWEngine(QQmlEngine * engine, QObject *parent = 0);
    18     ~HWEngine();
    18     ~HWEngine();
    19 
    19 
    20     static void exposeToQML();
    20     static void exposeToQML();
    21     Q_INVOKABLE void run();
    21     Q_INVOKABLE void run();
       
    22     Q_INVOKABLE QString currentSeed();
    22     
    23     
    23 signals:
    24 signals:
    24     void previewImageChanged();
    25     void previewImageChanged();
    25     
    26     
    26 public slots:
    27 public slots:
    27 
    28 
    28 private:
    29 private:
    29     QList<QByteArray> m_argsList;
    30     QList<QByteArray> m_argsList;
    30     QVector<const char *> m_args;
    31     QVector<const char *> m_args;
    31     QQmlEngine * m_engine;
    32     QQmlEngine * m_engine;
       
    33     QString m_seed;
    32 
    34 
    33     static void engineMessageCallback(void *context, const char * msg, quint32 len);
    35     static void engineMessageCallback(void *context, const char * msg, quint32 len);
    34     void sendIPC(const QByteArray &b);
    36     void sendIPC(const QByteArray &b);
    35 
    37 
    36 private slots:
    38 private slots: