Changeset View
Changeset View
Standalone View
Standalone View
scripting/scripting.cpp
Show First 20 Lines • Show All 224 Lines • ▼ Show 20 Line(s) | 221 | } else { | |||
---|---|---|---|---|---|
225 | QObject::connect(watcher, SIGNAL(finished(QDBusPendingCallWatcher*)), script, SLOT(slotPendingDBusCall(QDBusPendingCallWatcher*))); | 225 | QObject::connect(watcher, SIGNAL(finished(QDBusPendingCallWatcher*)), script, SLOT(slotPendingDBusCall(QDBusPendingCallWatcher*))); | ||
226 | } | 226 | } | ||
227 | return engine->undefinedValue(); | 227 | return engine->undefinedValue(); | ||
228 | } | 228 | } | ||
229 | 229 | | |||
230 | KWin::AbstractScript::AbstractScript(int id, QString scriptName, QString pluginName, QObject *parent) | 230 | KWin::AbstractScript::AbstractScript(int id, QString scriptName, QString pluginName, QObject *parent) | ||
231 | : QObject(parent) | 231 | : QObject(parent) | ||
232 | , m_scriptId(id) | 232 | , m_scriptId(id) | ||
233 | , m_pluginName(pluginName) | | |||
234 | , m_fileName(scriptName) | 233 | , m_fileName(scriptName) | ||
234 | , m_pluginName(pluginName) | ||||
235 | , m_running(false) | 235 | , m_running(false) | ||
236 | { | 236 | { | ||
237 | if (m_pluginName.isNull()) { | 237 | if (m_pluginName.isNull()) { | ||
238 | m_pluginName = scriptName; | 238 | m_pluginName = scriptName; | ||
239 | } | 239 | } | ||
240 | } | 240 | } | ||
241 | 241 | | |||
242 | KWin::AbstractScript::~AbstractScript() | 242 | KWin::AbstractScript::~AbstractScript() | ||
▲ Show 20 Lines • Show All 636 Lines • Show Last 20 Lines |