scriptloader.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 2001 Ian Reinhart Geiser (geiseri@kde.org) 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 #ifndef _script_loader_h 00020 #define _script_loader_h 00021 #include <tqptrlist.h> 00022 #include <tdemainwindow.h> 00023 #include <tdeaction.h> 00024 #include <tdescript/scriptinterface.h> 00025 00029 class ScriptLoader : virtual public QObject 00030 { 00031 Q_OBJECT 00032 public: 00036 ScriptLoader(TDEMainWindow *parent=0); 00037 ~ScriptLoader(); 00041 TDESelectAction *getScripts(); 00042 public slots: 00045 void runAction(); 00048 void stopAction(); 00049 signals: 00050 virtual void errors(TQString messages); 00051 virtual void output(TQString messages); 00052 virtual void done(int errorCode); 00053 private: 00054 TQPtrList<KScriptInterface> m_scripts; 00055 TDESelectAction *m_theAction; 00056 int m_currentSelection; 00057 TDEMainWindow *m_parent; 00058 }; 00059 #endif