#include <tdescriptactionmanager.h>
Inherits TQObject.
Signals | |
void | scriptError (const TQString &msg) |
void | scriptWarning (const TQString &msg) |
void | scriptOutput (const TQString &msg) |
void | scriptProgress (int percent) |
void | scriptDone (KScriptClientInterface::Result result, const TQVariant &returned) |
Public Member Functions | |
KScriptActionManager (TQObject *parent, TDEActionCollection *ac) | |
TQPtrList< TDEAction > | scripts (TQObject *interface, const TQStringList &dirs=TQStringList()) const |
Detailed Description
Provides an actionlist of scripts that are currently available.
Scripts are not actually loaded until they are actually executed.
Definition at line 94 of file tdescriptactionmanager.h.
Constructor & Destructor Documentation
◆ KScriptActionManager()
KScriptActionManager::KScriptActionManager | ( | TQObject * | parent, |
TDEActionCollection * | ac | ||
) |
Create a script manager that is attached to an action collection.
Definition at line 122 of file tdescriptactionmanager.cpp.
Member Function Documentation
◆ scriptDone
|
signal |
Notifies that the script has finished.
◆ scriptError
|
signal |
Returns an error message from a script.
◆ scriptOutput
|
signal |
Returns a standard out message from a script.
◆ scriptProgress
|
signal |
Returns the percentage complete of an operation in the script.
◆ scripts()
TQPtrList< TDEAction > KScriptActionManager::scripts | ( | TQObject * | interface, |
const TQStringList & | dirs = TQStringList() |
||
) | const |
Return all currently loaded scripts in a direcotry and attaches them to a TQObject interface.
If the dirs are empty the current applications scripts directory is used. The dirs are actual directories to search in the $KDEPATH/data/ direcories. So if you add "coolapp/data" then the manager will search in $KDEPATH/data/coolapp/data for all desktop files that are scripts.
Definition at line 132 of file tdescriptactionmanager.cpp.
◆ scriptWarning
|
signal |
Returns a warning message from a script.
The documentation for this class was generated from the following files: