Contact cannot be a null ptr, and it is accessed before anyway. Disscussed with kedge.
[kdenetwork.git] / kppp / modemcmds.h
blobc7d4a4647167c9a75dc75a11a2eb95b2f41b68d1
2 /*
4 * kPPP: A front end for pppd for the KDE project
6 * $Id$
8 * Copyright (C) 1997 Bernd Johannes Wuebben
9 * wuebben@math.cornell.edu
11 * based on EzPPP:
12 * Copyright (C) 1997 Jay Painter
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Library General Public
16 * License as published by the Free Software Foundation; either
17 * version 2 of the License, or (at your option) any later version.
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Library General Public License for more details.
24 * You should have received a copy of the GNU Library General Public
25 * License along with this program; if not, write to the Free
26 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31 #ifndef _MODEMCMDS_H_
32 #define _MODEMCMDS_H_
34 #include <q3groupbox.h>
35 #include <kdialog.h>
36 #include <qlineedit.h>
37 #include <qpushbutton.h>
38 #include <qlabel.h>
39 #include <pppdata.h>
41 class QLineEdit;
42 class QLabel;
43 class Q3GroupBox;
45 class ModemCommands : public KDialog {
47 Q_OBJECT
49 public:
51 explicit ModemCommands(QWidget *parent=0, const char *name=0);
52 ~ModemCommands() {}
54 private slots:
55 void slotCancel();
56 void slotOk();
58 private:
60 Q3GroupBox *box;
62 QLineEdit *initstr[int(PPPData::NumInitStrings)];
64 QLineEdit *initresp;
65 QLabel *label2;
67 QSlider *preinitslider;
68 QLabel *lpreinitslider;
69 QLabel *lpreinit;
71 QSlider *initslider;
72 QLabel *linitslider;
73 QLabel *label3;
75 QSlider *durationslider;
76 QLabel *ldurationslider;
77 QLabel *lduration;
79 QLineEdit *nodetectdialtone;
80 QLabel *lnodetectdialtone;
82 QLineEdit *dialstr;
83 QLabel *label4;
85 QLineEdit *connectresp;
86 QLabel *label5;
88 QLineEdit *busyresp;
89 QLabel *label6;
91 QLineEdit *nocarrierresp;
92 QLabel *label7;
94 QLineEdit *nodialtoneresp;
95 QLabel *label8;
97 QLineEdit *hangupstr;
98 QLabel *label9;
100 QLineEdit *hangupresp;
101 QLabel *label10;
103 QLineEdit *answerstr;
104 QLabel *label11;
106 QLineEdit *ringresp;
107 QLabel *label12;
109 QLineEdit *answerresp;
110 QLabel *label13;
112 QLineEdit *escapestr;
113 QLabel *label14;
115 QLineEdit *escaperesp;
116 QLineEdit *dlpresp;
117 QLabel *label17;
119 QLabel *label15;
121 QSlider *slider;
122 QLabel *lslider;
123 QLabel *label16;
125 QLineEdit *volume_off, *volume_medium, *volume_high;
127 #endif