#ifndef HSQML_ENGINE_H
#define HSQML_ENGINE_H

#include <QtCore/QScopedPointer>
#include <QtCore/QString>
#include <QtCore/QUrl>
#include <QtQml/QQmlEngine>
#include <QtQml/QQmlContext>
#include <QtQml/QQmlComponent>

#include "hsqml.h"

class HsQMLObjectProxy;
class HsQMLWindow;

struct HsQMLEngineConfig
{
    HsQMLEngineConfig()
        : contextObject(NULL)
        , stopCb(NULL)
    {}

    HsQMLObjectProxy* contextObject;
    QString initialURL;
    QStringList importPaths;
    QStringList pluginPaths;
    HsQMLTrivialCb stopCb;
};

class HsQMLEngine : public QObject
{
    Q_OBJECT

public:
    HsQMLEngine(const HsQMLEngineConfig&);
    ~HsQMLEngine();
    bool eventFilter(QObject*, QEvent*);
    QQmlEngine* declEngine();

private:
    Q_DISABLE_COPY(HsQMLEngine)

    Q_SLOT void componentStatus(QQmlComponent::Status);
    QQmlEngine mEngine;
    QQmlComponent mComponent;
    QList<QObject*> mObjects;
    HsQMLTrivialCb mStopCb;
};

#endif /*HSQML_ENGINE_H*/

#ifndef HSQML_ENGINE_H
#define HSQML_ENGINE_H

#include <QtCore/QScopedPointer>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QUrl>
#include <QtQml/QQmlEngine>
#include <QtQml/QQmlContext>
#include <QtQml/QQmlComponent>

#include "hsqml.h"

class HsQMLObjectProxy;
class HsQMLWindow;

struct HsQMLEngineConfig
{
    HsQMLEngineConfig()
        : contextObject(NULL)
        , stopCb(NULL)
    {}

    HsQMLObjectProxy* contextObject;
    QString initialURL;
    QStringList importPaths;
    QStringList pluginPaths;
    HsQMLTrivialCb stopCb;
};

class HsQMLEngine : public QObject
{
    Q_OBJECT

public:
    HsQMLEngine(const HsQMLEngineConfig&);
    ~HsQMLEngine();
    bool eventFilter(QObject*, QEvent*);
    QQmlEngine* declEngine();

private:
    Q_DISABLE_COPY(HsQMLEngine)

    Q_SLOT void componentStatus(QQmlComponent::Status);
    QQmlEngine mEngine;
    QQmlComponent mComponent;
    QList<QObject*> mObjects;
    HsQMLTrivialCb mStopCb;
};

#endif /*HSQML_ENGINE_H*/

Fix missing include breaking compilation with Qt 5.0.
Fix missing include breaking compilation with Qt 5.0.

Ignore-this: 5dff167c44ad1cc6ee31684cae68da9e

darcs-hash:20150127225150-4d2ae-3a04dfc67645719182188ee9c21c2bed04a8101c
