Contact cannot be a null ptr, and it is accessed before anyway. Disscussed with kedge.
[kdenetwork.git] / kppp / modems.h
blob06ed702d74daa71345abbcd77110f541f6488da9
1 /* -*- C++ -*-
2 * kPPP: A pppd front end for the KDE project
7 * Copyright (C) 2004 Simone Gotti
8 * <simone.gotti@email.it>
10 * based on EzPPP:
11 * Copyright (C) 1997 Jay Painter
13 * This program 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 program 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 _MODEMS_H_
29 #define _MODEMS_H_
31 #include <qwidget.h>
32 #include <qpushbutton.h>
33 #include <q3listbox.h>
34 //Added by qt3to4:
35 #include <QLabel>
36 #include "acctselect.h"
38 class KPageDialog;
39 class QLineEdit;
40 class DialWidget;
41 class ScriptWidget;
42 class IPWidget;
43 class DNSWidget;
44 class GatewayWidget;
46 class ModemsWidget : public QWidget {
47 Q_OBJECT
48 public:
49 explicit ModemsWidget( QWidget *parent=0, const char *name=0 );
50 ~ModemsWidget() {}
52 private slots:
53 void editmodem();
54 void copymodem();
55 void newmodem();
56 void deletemodem();
57 void slotListBoxSelect(int);
58 void modemNameChanged(const QString &);
60 private:
61 int doTab();
63 signals:
64 void resetmodems();
66 private:
67 QString prettyPrintVolume(unsigned int);
69 KPageDialog *tabWindow;
70 ModemWidget *modem1;
71 ModemWidget2 *modem2;
72 /* DialWidget *dial_w;
73 AccountingSelector *acct;
74 IPWidget *ip_w;
75 DNSWidget *dns_w;
76 GatewayWidget *gateway_w;
77 ScriptWidget *script_w;*/
79 QLabel *costlabel;
80 QLineEdit *costedit;
81 QLabel *vollabel;
82 QLineEdit *voledit;
84 Q3ListBox *modemlist_l;
85 QPushButton *edit_b;
86 QPushButton *copy_b;
87 QPushButton *new_b;
88 QPushButton *delete_b;
91 #endif