Contact cannot be a null ptr, and it is accessed before anyway. Disscussed with kedge.
[kdenetwork.git] / kppp / pppdargs.h
blob5ba22305200c1922c7683182964193b83947678d
1 /*
2 * kPPP: A pppd front end for the KDE project
4 * $Id$
6 * Copyright (C) 1997 Bernd Johannes Wuebben
7 * wuebben@math.cornell.edu
9 * based on EzPPP:
10 * Copyright (C) 1997 Jay Painter
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Library General Public
15 * License as published by the Free Software Foundation; either
16 * version 2 of the License, or (at your option) any later version.
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Library General Public License for more details.
23 * You should have received a copy of the GNU Library General Public
24 * License along with this program; if not, write to the Free
25 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28 #ifndef _PPPDARGS_H_
29 #define _PPPDARGS_H_
31 #include <kdialog.h>
32 //Added by qt3to4:
33 #include <QLabel>
35 class Q3ListBox;
36 class QLabel;
37 class QPushButton;
38 class QLineEdit;
39 class KPushButton;
42 class PPPdArguments : public KDialog {
43 Q_OBJECT
44 public:
45 explicit PPPdArguments(QWidget *parent=0, const char *name=0);
46 ~PPPdArguments() {}
48 private slots:
49 void addbutton();
50 void removebutton();
51 void defaultsbutton();
52 void closebutton();
53 void textChanged(const QString &);
54 void itemSelected(int);
56 private:
57 void init();
59 QLabel *argument_label;
61 QLineEdit *argument;
63 QPushButton *add;
64 QPushButton *remove;
65 KPushButton *defaults;
67 Q3ListBox *arguments;
69 QPushButton *closebtn;
71 #endif