19 #ifndef __scriptmanager_h__
20 #define __scriptmanager_h__
22 #include <tqvariant.h>
23 #include <scriptclientinterface.h>
24 #include <scriptinterface.h>
28 #include <tdelibs_export.h>
57 bool addScript(
const TQString &scriptDesktopFile);
62 bool removeScript(
const TQString &scriptName );
67 TQStringList scripts();
76 void error(
const TQString &msg ) {emit scriptError(msg);}
81 void warning(
const TQString &msg ) {emit scriptWarning(msg);}
86 void output(
const TQString &msg ) {emit scriptOutput(msg);}
93 void progress(
int percent ) {emit scriptProgress(percent);}
99 void done( KScriptClientInterface::Result result,
const TQVariant &returned ) {emit scriptDone(result, returned);}
105 void runScript(
const TQString &scriptName, TQObject *context = 0,
const TQVariant &arg = 0 );
111 void scriptError(
const TQString &msg );
116 void scriptWarning(
const TQString &msg );
121 void scriptOutput(
const TQString &msg );
126 void scriptProgress(
int percent);
131 void scriptDone( KScriptClientInterface::Result result,
const TQVariant &returned);
133 TQDict<ScriptInfo> m_scripts;
134 TQDict<KScriptInterface> m_scriptCache;
136 TQString m_currentScript;
This class is used for allowing feedback to the main system.
This class is the base for all script engines.
void output(const TQString &msg)
This function will allow the main application of any normal output that has occurred during the proce...
void done(KScriptClientInterface::Result result, const TQVariant &returned)
This function will allow feedback on completion of the script.
This class is the base for all script engines.
void progress(int percent)
This function will allow feedback to any progress bars in the main application as to how far along th...
void error(const TQString &msg)
This function will allow the main application of any errors that have occurred during processing of t...
void warning(const TQString &msg)
This function will allow the main application of any warnings that have occurred during the processin...