~ubuntu-branches/debian/sid/kde-baseapps/sid

« back to all changes in this revision

Viewing changes to konqueror/settings/kio/kenvvarproxydlg.h

  • Committer: Package Import Robot
  • Author(s): Modestas Vainius, Eshat Cakar, Pino Toscano
  • Date: 2012-06-09 22:18:08 UTC
  • mfrom: (4.2.1) (6.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20120609221808-h1l0ekd5qmb8nefr
Tags: 4:4.8.4-1
* New upstream release.

[ Eshat Cakar ]
* Add watch file.
* Bump kde-sc-dev-latest build dependency to version 4:4.8.4.
* Update installed files.

[ Pino Toscano ]
* Move files of the konqueror documentation from kde-baseapps-data to
  konqueror itself.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
   kenvvarproxydlg.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
 
#ifndef KENVVARPROXYDLG_H
22
 
#define KENVVARPROXYDLG_H
23
 
 
24
 
#include <QtCore/QMap>
25
 
 
26
 
#include "kproxydlgbase.h"
27
 
#include "ui_envvarproxy.h"
28
 
 
29
 
class EnvVarProxyDlgUI : public QWidget, public Ui::EnvVarProxyDlgUI
30
 
{
31
 
public:
32
 
  EnvVarProxyDlgUI( QWidget *parent ) : QWidget( parent ) {
33
 
    setupUi( this );
34
 
  }
35
 
};
36
 
 
37
 
 
38
 
class KEnvVarProxyDlg : public KProxyDialogBase
39
 
{
40
 
    Q_OBJECT
41
 
 
42
 
public:
43
 
    explicit KEnvVarProxyDlg( QWidget* parent = 0, const char* name = 0 );
44
 
    ~KEnvVarProxyDlg();
45
 
 
46
 
    virtual const KProxyData data() const;
47
 
    virtual void setProxyData( const KProxyData &data );
48
 
 
49
 
protected Q_SLOTS:
50
 
    virtual void accept();
51
 
 
52
 
    void showValue();
53
 
    void verifyPressed();
54
 
    void autoDetectPressed();
55
 
 
56
 
protected:
57
 
    void init();
58
 
    bool validate();
59
 
    
60
 
private:
61
 
    EnvVarProxyDlgUI* mDlg;
62
 
 
63
 
    struct EnvVarPair {
64
 
      QString name;
65
 
      QString value;
66
 
    };
67
 
 
68
 
    QMap<QString, EnvVarPair> mEnvVarsMap;
69
 
};
70
 
 
71
 
#endif // KENVVARPROXYDLG_H