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

« back to all changes in this revision

Viewing changes to apps/konqueror/settings/kio/kmanualproxydlg.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
 
   kmanualproxydlg.h - Base dialog box for proxy configuration
3
 
 
4
 
   Copyright (C) 2001-2004 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 KMANUALPROXYDLG_H
23
 
#define KMANUALPROXYDLG_H
24
 
 
25
 
#include "kproxydlgbase.h"
26
 
#include "ui_manualproxy.h"
27
 
class KIntSpinBox;
28
 
class KLineEdit;
29
 
 
30
 
class ManualProxyDlgUI : public QWidget, public Ui::ManualProxyDlgUI
31
 
{
32
 
public:
33
 
  ManualProxyDlgUI( QWidget *parent ) : QWidget( parent ) {
34
 
    setupUi( this );
35
 
  }
36
 
};
37
 
 
38
 
 
39
 
class KManualProxyDlg : public KProxyDialogBase
40
 
{
41
 
  Q_OBJECT
42
 
  
43
 
public:
44
 
  explicit KManualProxyDlg( QWidget* parent = 0, const char* name = 0 );
45
 
  ~KManualProxyDlg() {}
46
 
  
47
 
  virtual void setProxyData( const KProxyData &data );
48
 
  virtual const KProxyData data() const;
49
 
  
50
 
protected:
51
 
  void init();
52
 
  bool validate();
53
 
  
54
 
protected Q_SLOTS:
55
 
  virtual void slotOk();
56
 
  
57
 
  void copyDown();
58
 
  void sameProxy( bool );
59
 
  void valueChanged (int value);
60
 
  void textChanged (const QString&);
61
 
  
62
 
  void newPressed();
63
 
  void updateButtons();
64
 
  void changePressed();
65
 
  void deletePressed();
66
 
  void deleteAllPressed();
67
 
  
68
 
private:
69
 
  QString urlFromInput( const KLineEdit* edit, const KIntSpinBox* spin ) const;
70
 
  bool isValidURL( const QString&, KUrl* = 0 ) const;
71
 
  bool handleDuplicate( const QString& );
72
 
  bool getException ( QString&, const QString&,
73
 
                      const QString& value = QString() );
74
 
  void showErrorMsg( const QString& caption = QString(),
75
 
                     const QString& message = QString() );
76
 
  
77
 
private:
78
 
  ManualProxyDlgUI* mDlg;
79
 
 
80
 
  int mOldFtpPort;
81
 
  int mOldHttpsPort;
82
 
  QString mOldFtpText;
83
 
  QString mOldHttpsText;
84
 
};
85
 
 
86
 
#endif // KMANUALPROXYDLG_H