~ubuntu-branches/ubuntu/utopic/kdebase/utopic

« back to all changes in this revision

Viewing changes to apps/konqueror/settings/kio/kproxydlgbase.h

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers, José Manuel Santamaría Lema, Modestas Vainius
  • Date: 2011-05-26 02:53:50 UTC
  • mfrom: (0.7.7 upstream) (0.4.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 296.
  • Revision ID: james.westby@ubuntu.com-20110526025350-7o10g65yegec2rnq
Tags: 4:4.6.3-1
* New upstream release.

[ José Manuel Santamaría Lema ]
* Bump kde-sc-dev-latest build dependency to 4:4.6.3.
* Bump Standards-Version to 3.9.2; no changes needed.

[ Modestas Vainius ]
* Enable DLRestrictions for libraries in this package. Requires
  libdlrestrictions-dev 0.14 and kdelibs5-dev 4:4.6.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
   kproxydlgbase.h - Base dialog box for proxy configuration
3
 
 
4
 
   Copyright (C) 2001- Dawit Alemayehu <adawit@kde.org>
5
 
 
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.
10
 
 
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.
15
 
 
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.
20
 
*/
21
 
 
22
 
#ifndef KPROXYDLGBASE_H
23
 
#define KPROXYDLGBASE_H
24
 
 
25
 
#include <QtCore/QMap>
26
 
 
27
 
#include <QtCore/QStringList>
28
 
 
29
 
#include <kdialog.h>
30
 
#include <kprotocolmanager.h>
31
 
 
32
 
class KProxyData
33
 
{
34
 
public:
35
 
  KProxyData();
36
 
  KProxyData( const KProxyData &data );
37
 
 
38
 
  void reset ();
39
 
  KProxyData& operator=( const KProxyData &data );
40
 
 
41
 
  bool useReverseProxy;
42
 
  bool showEnvVarValue;
43
 
  QStringList noProxyFor;
44
 
  KProtocolManager::ProxyType type;
45
 
  QMap<QString, QString> proxyList;
46
 
 
47
 
private:
48
 
  void init();
49
 
};
50
 
 
51
 
 
52
 
class KProxyDialogBase : public KDialog
53
 
{
54
 
public:
55
 
  explicit KProxyDialogBase( QWidget* parent = 0, const char* name = 0,
56
 
                    bool modal = false, const QString &caption = QString());
57
 
 
58
 
  virtual ~KProxyDialogBase() {}
59
 
 
60
 
  virtual const KProxyData data() const=0;
61
 
 
62
 
  virtual void setProxyData (const KProxyData&)=0;
63
 
 
64
 
protected:
65
 
  void setHighLight (QWidget* widget = 0, bool highlight = false);
66
 
  bool m_bHasValidData;
67
 
};
68
 
 
69
 
#endif // KPROXYDLGBASE_H