2 kproxydlgbase.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
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 KPROXYDLGBASE_H
23 #define KPROXYDLGBASE_H
25 #include <QtCore/QMap>
27 #include <QtCore/QStringList>
30 #include <kprotocolmanager.h>
36 KProxyData( const KProxyData
&data
);
39 KProxyData
& operator=( const KProxyData
&data
);
43 QStringList noProxyFor
;
44 KProtocolManager::ProxyType type
;
45 QMap
<QString
, QString
> proxyList
;
52 class KProxyDialogBase
: public KDialog
55 explicit KProxyDialogBase( QWidget
* parent
= 0, const char* name
= 0,
56 bool modal
= false, const QString
&caption
= QString());
58 virtual ~KProxyDialogBase() {}
60 virtual const KProxyData
data() const=0;
62 virtual void setProxyData (const KProxyData
&)=0;
65 void setHighLight (QWidget
* widget
= 0, bool highlight
= false);
69 #endif // KPROXYDLGBASE_H