Changeset View
Changeset View
Standalone View
Standalone View
src/scripting/scriptmanager.cpp
- This file was added.
1 | #include "scriptmanager.h" | ||||
---|---|---|---|---|---|
2 | #include "script.h" | ||||
3 | | ||||
4 | ScriptManager::ScriptManager(QObject *parent) : QObject(parent) | ||||
5 | { | ||||
6 | | ||||
7 | } | ||||
8 | | ||||
9 | QList<QSharedPointer<Script> > ScriptManager::scripts() const | ||||
10 | { | ||||
11 | return m_scripts; | ||||
12 | } | ||||
13 | | ||||
14 | void ScriptManager::enableScript(QSharedPointer<Script> script) | ||||
15 | { | ||||
16 | script->setEnabled(true); | ||||
17 | } | ||||
18 | | ||||
19 | void ScriptManager::disableScript(QSharedPointer<Script> script) | ||||
20 | { | ||||
21 | script->setEnabled(false); | ||||
22 | } |