MCPcopy Create free account
hub / github.com/KDE/kwin / loadScript

Method loadScript

src/scripting/scripting.cpp:861–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

859}
860
861int KWin::Scripting::loadScript(const QString &filePath, const QString &pluginName)
862{
863 QMutexLocker locker(m_scriptsLock.get());
864 if (isScriptLoaded(pluginName)) {
865 return -1;
866 }
867 const int id = scripts.size();
868 KWin::Script *script = new KWin::Script(id, filePath, pluginName, this);
869 connect(script, &QObject::destroyed, this, &Scripting::scriptDestroyed);
870 scripts.append(script);
871 return id;
872}
873
874int KWin::Scripting::loadDeclarativeScript(const QString &filePath, const QString &pluginName)
875{

Callers 6

testScriptMethod · 0.80
initMethod · 0.80
testEdgeMethod · 0.80
testTouchEdgeMethod · 0.80
testEdgeUnregisterMethod · 0.80

Calls 3

appendMethod · 0.80
getMethod · 0.45
sizeMethod · 0.45

Tested by 6

testScriptMethod · 0.64
initMethod · 0.64
testEdgeMethod · 0.64
testTouchEdgeMethod · 0.64
testEdgeUnregisterMethod · 0.64