interfaces
scriptloader.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _script_loader_h
00020 #define _script_loader_h
00021 #include <qptrlist.h>
00022 #include <kmainwindow.h>
00023 #include <kaction.h>
00024 #include <kscript/scriptinterface.h>
00025
00029 class ScriptLoader : virtual public QObject
00030 {
00031 Q_OBJECT
00032 public:
00036 ScriptLoader(KMainWindow *parent=0);
00037 ~ScriptLoader();
00041 KSelectAction *getScripts();
00042 public slots:
00045 void runAction();
00048 void stopAction();
00049 signals:
00050 virtual void errors(QString messages);
00051 virtual void output(QString messages);
00052 virtual void done(int errorCode);
00053 private:
00054 QPtrList<KScriptInterface> m_scripts;
00055 KSelectAction *m_theAction;
00056 int m_currentSelection;
00057 KMainWindow *m_parent;
00058 };
00059 #endif