delay a few things on startup, such as setting the visibility mode, which ensures...
[personal-kdebase.git] / apps / konqueror / settings / kio / kproxydlgbase.h
blob2047b90f2d0abc40f5d2a9689abdcc854161a759
1 /*
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
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 KPROXYDLGBASE_H
23 #define KPROXYDLGBASE_H
25 #include <QtCore/QMap>
27 #include <QtCore/QStringList>
29 #include <kdialog.h>
30 #include <kprotocolmanager.h>
32 class KProxyData
34 public:
35 KProxyData();
36 KProxyData( const KProxyData &data );
38 void reset ();
39 KProxyData& operator=( const KProxyData &data );
41 bool useReverseProxy;
42 bool showEnvVarValue;
43 QStringList noProxyFor;
44 KProtocolManager::ProxyType type;
45 QMap<QString, QString> proxyList;
47 private:
48 void init();
52 class KProxyDialogBase : public KDialog
54 public:
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;
64 protected:
65 void setHighLight (QWidget* widget = 0, bool highlight = false);
66 bool m_bHasValidData;
69 #endif // KPROXYDLGBASE_H