add more spacing
[personal-kdebase.git] / apps / konqueror / remoteencodingplugin / kremoteencodingplugin.h
bloba61d1fee13c760db0ac474a02e9ffc901905f1cd
1 /*
2 Copyright (c) 2003 Thiago Macieira <thiago.macieira@kdemail.net>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License (LGPL) as published by the Free Software Foundation;
7 either version 2 of the License, or (at your option) any later
8 version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
21 #ifndef REMOTEENCODING_PLUGIN_H
22 #define REMOTEENCODING_PLUGIN_H
24 #include <QtCore/QStringList>
25 #include <kurl.h>
26 #include <klibloader.h>
27 #include <kparts/plugin.h>
29 class KActionMenu;
30 namespace KParts { class ReadOnlyPart; }
32 class KRemoteEncodingPlugin: public KParts::Plugin
34 Q_OBJECT
35 public:
36 KRemoteEncodingPlugin(QObject * parent, const QStringList &);
37 ~KRemoteEncodingPlugin();
39 protected Q_SLOTS:
40 void slotAboutToOpenURL();
41 void slotAboutToShow();
42 void slotItemSelected(int);
43 void slotReload();
44 void slotDefault();
46 protected:
47 virtual bool eventFilter(QObject*obj, QEvent *ev);
49 private:
50 void updateBrowser();
51 void loadSettings();
52 void fillMenu();
53 void updateMenu();
55 KParts::ReadOnlyPart *m_part;
56 KActionMenu *m_menu;
57 QStringList m_encodingDescriptions;
58 KUrl m_currentURL;
60 bool m_loaded;
61 int m_idDefault;
64 #endif