Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / nsplugins / test / testnsplugin.h
blob597ae42388ef1649a341a13237bf44d96bd85ba2
1 /*
2 This is an encapsulation of the Netscape plugin API.
4 Copyright (c) 2000 Stefan Schimanski <1Stein@gmx.de>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 #ifndef TESTNSPLUGIN_H
24 #define TESTNSPLUGIN_H
26 #include <QWidget>
27 #include <kxmlguiwindow.h>
28 #include <QList>
30 class QBoxLayout;
31 class NSPluginLoader;
32 class NSPluginInstance;
34 class TestNSPlugin : public KXmlGuiWindow
36 Q_OBJECT
38 public:
39 TestNSPlugin();
40 virtual ~TestNSPlugin();
42 public Q_SLOTS:
43 void newView();
44 void closeView();
45 void viewDestroyed( NSPluginInstance *inst );
47 protected:
48 NSPluginLoader *m_loader;
49 QList<QWidget *> m_plugins;
50 QWidget *m_client;
51 QBoxLayout *m_layout;
55 #endif