scriptmanager.cpp
54 TQString localpath = TQString(kapp->name()) + "/scripts/" + desktop.readEntry("X-TDE-ScriptName", "");
84 void KScriptManager::runScript( const TQString &scriptName, TQObject *context, const TQVariant &arg)
98 KScriptInterface *ksif = KParts::ComponentFactory::createInstanceFromQuery<KScriptInterface>( "KScriptRunner/KScriptRunner", scriptType, this );
106 KMessageBox::sorry(0, i18n("Unable to get KScript Runner for type \"%1\".").arg(newScript->scriptType), i18n("KScript Error"));
129 KMessageBox::sorry(0, i18n("Unable find script \"%1\".").arg(scriptName), i18n("KScript Error"));
static bool isDesktopFile(const TQString &path)
TQString readType() const
TQString readName() const
static void sorry(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, int options=Notify)
This class is used for allowing feedback to the main system.
Definition: scriptclientinterface.h:74
bool removeScript(const TQString &scriptName)
Remove a script instance from the script engine.
Definition: scriptmanager.cpp:61
TQStringList scripts()
Access the names of script instances from the script engine.
Definition: scriptmanager.cpp:67
bool addScript(const TQString &scriptDesktopFile)
Add a new script instance to the script engine.
Definition: scriptmanager.cpp:39
KScriptManager(TQObject *parent, const char *name)
Create a new instance of the script engine.
Definition: scriptmanager.cpp:28
void runScript(const TQString &scriptName, TQObject *context=0, const TQVariant &arg=0)
Run the selected script.
Definition: scriptmanager.cpp:84
TQString readEntry(const TQString &pKey, const TQString &aDefault=TQString::null) const
kndbgstream & endl(kndbgstream &s)
kdbgstream kdDebug(int area=0)
TQString locate(const char *type, const TQString &filename, const TDEInstance *instance=TDEGlobal::instance())