2 * kPPP: A pppd Front End for the KDE project
6 * Copyright (C) 1997 Bernd Johannes Wuebben
7 * wuebben@math.cornell.edu
9 * This file was added by Harri Porten <porten@tu-harburg.de>
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with this program; if not, write to the Free
24 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32 #include <sys/types.h>
36 #include <qsocketnotifier.h>
38 #include <config-kppp.h>
42 void alarm_handler(int);
44 class Modem
: public QObject
{
53 bool writeChar(unsigned char);
54 bool writeLine(const char *);
55 bool dataMode() const { return data_mode
; }
56 void setDataMode(bool set
) { data_mode
= set
; }
57 const QString
modemMessage();
59 static QString
parseModemSpeed(const QString
&);
60 void notify(const QObject
*, const char *);
71 void charWaiting(unsigned char);
79 void escape_to_command_mode();
87 struct termios initial_tty
;