Contact cannot be a null ptr, and it is accessed before anyway. Disscussed with kedge.
[kdenetwork.git] / kppp / debug.h
blob3db21f8c5487b390152de4a585189abc72eb78ec
1 /*
2 * kPPP: A pppd front end for the KDE project
4 * $Id$
5 * Copyright (C) 1997 Bernd Wuebben
6 * wuebben@math.cornel.edu
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details.
19 * You should have received a copy of the GNU Library General Public
20 * License along with this program; if not, write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 #ifndef _DEBUGWIDGET_
25 #define _DEBUGWIDGET_
27 #include <qdialog.h>
28 #include <qstring.h>
29 #include <qlabel.h>
30 #include <q3multilineedit.h>
31 #include <qpushbutton.h>
32 //Added by qt3to4:
33 #include <QHideEvent>
34 #include <QFrame>
35 #include <QResizeEvent>
38 class myMultiEdit : public Q3MultiLineEdit {
39 public:
41 explicit myMultiEdit(QWidget *parent=0, const char *name=0);
43 void newLine();
47 class DebugWidget : public QDialog {
48 Q_OBJECT
49 public:
50 DebugWidget(QWidget *parent=0);
52 void clear();
54 public slots:
55 void statusLabel(const QString &);
56 void toggleVisibility();
57 void addChar(unsigned char);
59 protected:
60 virtual void hideEvent(QHideEvent *);
61 virtual void resizeEvent(QResizeEvent *e);
63 private:
64 void enter();
65 QFrame *fline;
66 QPushButton *dismiss;
67 myMultiEdit *text_window;
69 QLabel *statuslabel;
72 #endif