File indexing completed on 2024-12-22 04:17:20
0001 /*************************************************************************** 0002 * * 0003 * copyright : (C) 2004 The University of Toronto * 0004 * netterfield@astro.utoronto.ca * 0005 * * 0006 * This program is free software; you can redistribute it and/or modify * 0007 * it under the terms of the GNU General Public License as published by * 0008 * the Free Software Foundation; either version 2 of the License, or * 0009 * (at your option) any later version. * 0010 * * 0011 ***************************************************************************/ 0012 0013 #ifndef EXTENSION_H 0014 #define EXTENSION_H 0015 0016 #include <qdom.h> 0017 #include <qobject.h> 0018 0019 #include "kst_export.h" 0020 0021 class QMainWindow; 0022 0023 namespace Kst { 0024 0025 class KSTCORE_EXPORT Extension : public QObject { 0026 Q_OBJECT 0027 public: 0028 Extension(QObject *parent, const QStringList&); 0029 virtual ~Extension(); 0030 0031 virtual void processArguments(const QString& args); 0032 0033 // To save state 0034 virtual void load(const QDomElement& e); 0035 virtual void save(QTextStream& ts, const QString& indent = QString()); 0036 0037 // Clear internal state 0038 virtual void clear(); 0039 0040 QMainWindow *app() const; 0041 0042 signals: 0043 void unregister(); 0044 }; 0045 0046 } 0047 #endif 0048 0049 // vim: ts=2 sw=2 et