2
kmanualproxydlg.h - Base dialog box for proxy configuration
4
Copyright (C) 2001-2004 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 KMANUALPROXYDLG_H
23
#define KMANUALPROXYDLG_H
25
#include "kproxydlgbase.h"
26
#include "ui_manualproxy.h"
30
class ManualProxyDlgUI : public QWidget, public Ui::ManualProxyDlgUI
33
ManualProxyDlgUI( QWidget *parent ) : QWidget( parent ) {
39
class KManualProxyDlg : public KProxyDialogBase
44
explicit KManualProxyDlg( QWidget* parent = 0, const char* name = 0 );
47
virtual void setProxyData( const KProxyData &data );
48
virtual const KProxyData data() const;
55
virtual void slotOk();
58
void sameProxy( bool );
59
void valueChanged (int value);
60
void textChanged (const QString&);
66
void deleteAllPressed();
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() );
78
ManualProxyDlgUI* mDlg;
83
QString mOldHttpsText;
86
#endif // KMANUALPROXYDLG_H