Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / apps / konqueror / settings / kio / kenvvarproxydlg.h
blobc7d2f5f005e30934419c7b3a5680e6f642d3d911
1 /*
2 kenvvarproxydlg.h - Base dialog box for proxy configuration
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.
21 #ifndef KENVVARPROXYDLG_H
22 #define KENVVARPROXYDLG_H
24 #include <QtCore/QMap>
26 #include "kproxydlgbase.h"
27 #include "ui_envvarproxy.h"
29 class EnvVarProxyDlgUI : public QWidget, public Ui::EnvVarProxyDlgUI
31 public:
32 EnvVarProxyDlgUI( QWidget *parent ) : QWidget( parent ) {
33 setupUi( this );
38 class KEnvVarProxyDlg : public KProxyDialogBase
40 Q_OBJECT
42 public:
43 explicit KEnvVarProxyDlg( QWidget* parent = 0, const char* name = 0 );
44 ~KEnvVarProxyDlg();
46 virtual const KProxyData data() const;
47 virtual void setProxyData( const KProxyData &data );
49 protected Q_SLOTS:
50 virtual void accept();
52 void showValue();
53 void verifyPressed();
54 void autoDetectPressed();
56 protected:
57 void init();
58 bool validate();
60 private:
61 EnvVarProxyDlgUI* mDlg;
63 struct EnvVarPair {
64 QString name;
65 QString value;
68 QMap<QString, EnvVarPair> mEnvVarsMap;
71 #endif // KENVVARPROXYDLG_H