• ScriptEngine
  • ScriptEngine Class

    (nymeaserver::ScriptEngine)
    Inherits:

    Public Types

    class AddScriptReply
    class EditScriptReply
    class GetScriptReply
    enum ScriptError { ScriptErrorNoError, ScriptErrorScriptNotFound, ScriptErrorInvalidScript, ScriptErrorHardwareFailure }
    enum ScriptMessageType { ScriptMessageTypeLog, ScriptMessageTypeWarning }

    Public Functions

    ScriptEngine(DeviceManager * deviceManager, QObject * parent = nullptr)
    ~ScriptEngine()
    AddScriptReply addScript(const QString & name, const QByteArray & content)
    EditScriptReply editScript(const QUuid & id, const QByteArray & content)
    ScriptError removeScript(const QUuid & id)
    ScriptError renameScript(const QUuid & id, const QString & name)
    GetScriptReply scriptContent(const QUuid & id)
    Scripts scripts()

    Signals

    void scriptAdded(const Script & script)
    void scriptChanged(const Script & script)
    void scriptConsoleMessage(const QUuid & scriptId, ScriptMessageType type, const QString & message)
    void scriptRemoved(const QUuid & id)
    void scriptRenamed(const Script & script)

    Member Type Documentation

    enum ScriptEngine::ScriptError

    enum ScriptEngine::ScriptMessageType

    Member Function Documentation

    ScriptEngine::ScriptEngine(DeviceManager * deviceManager, QObject * parent = nullptr)

    ScriptEngine::~ScriptEngine()

    AddScriptReply ScriptEngine::addScript(const QString & name, const QByteArray & content)

    EditScriptReply ScriptEngine::editScript(const QUuid & id, const QByteArray & content)

    ScriptError ScriptEngine::removeScript(const QUuid & id)

    ScriptError ScriptEngine::renameScript(const QUuid & id, const QString & name)

    [signal] void ScriptEngine::scriptAdded(const Script & script)

    [signal] void ScriptEngine::scriptChanged(const Script & script)

    [signal] void ScriptEngine::scriptConsoleMessage(const QUuid & scriptId, ScriptMessageType type, const QString & message)

    GetScriptReply ScriptEngine::scriptContent(const QUuid & id)

    [signal] void ScriptEngine::scriptRemoved(const QUuid & id)

    [signal] void ScriptEngine::scriptRenamed(const Script & script)

    Scripts ScriptEngine::scripts()