20 #ifndef TDEScriptAction_H 21 #define TDEScriptAction_H 23 #include <scriptclientinterface.h> 25 #include <tqptrlist.h> 28 class TDEActionCollection;
29 class KScriptInterface;
43 KScriptAction(
const TQString &scriptDesktopFile, TQObject *interface, TDEActionCollection *ac );
59 void error (
const TQString &msg );
60 void warning (
const TQString &msg );
61 void output (
const TQString &msg );
62 void progress (
int percent );
63 void done ( KScriptClientInterface::Result result,
const TQVariant &returned );
66 void scriptError (
const TQString &msg );
67 void scriptWarning (
const TQString &msg );
68 void scriptOutput (
const TQString &msg );
69 void scriptProgress (
int percent );
70 void scriptDone ( KScriptClientInterface::Result result,
const TQVariant &returned );
75 void scriptFinished();
79 TQString m_scriptName;
80 TQString m_scriptType;
81 TQString m_scriptFile;
82 TQString m_scriptMethod;
83 KScriptInterface *m_interface;
113 TQPtrList<TDEAction> scripts( TQObject *interface,
const TQStringList &dirs = TQStringList() )
const;
119 void scriptError (
const TQString &msg );
123 void scriptWarning (
const TQString &msg );
127 void scriptOutput (
const TQString &msg );
131 void scriptProgress (
int percent );
135 void scriptDone( KScriptClientInterface::Result result,
const TQVariant &returned );
138 mutable TQPtrList<KScriptAction> m_actions;
139 TDEActionCollection *m_ac;
Provides an actionlist of scripts that are currently available.
bool isValid() const
Returns the validity of the current script.
TDEAction * action()
TDEAction for the current script.
Connects a TDEAction to a script runner.