Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / konqueror / settings / kio / kproxydlg.h
blobb2cafb8c659438d94c136a47dc41323b39549479
1 /*
2 kproxydlg.h - Proxy configuration dialog
4 Copyright (C) 2001- Dawit Alemayehu <adawit@kde.org>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public
8 License (GPL) version 2 as published by the Free Software
9 Foundation.
11 This library 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 GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
22 #ifndef KPROXYDLG_H
23 #define KPROXYDLG_H
25 #include <kcmodule.h>
26 #include "kproxydlgbase.h"
27 #include "ui_kproxydlg.h"
29 class KProxyDialog : public KCModule
31 Q_OBJECT
33 public:
34 KProxyDialog(QWidget *parent, const QVariantList &args);
35 ~KProxyDialog();
37 virtual void load();
38 virtual void save();
39 virtual void defaults();
40 QString quickHelp() const;
42 private Q_SLOTS:
43 void slotChanged();
44 void slotUseProxyChanged();
46 void setupManProxy();
47 void setupEnvProxy();
49 private:
50 void showInvalidMessage( const QString& _msg = QString() );
52 private:
53 Ui::KProxyDialogUI mUi;
54 KProxyData mData;
55 bool mDefaultData;
58 #endif // KPROXYDLG_H