3 * kPPP: A pppd front end for the KDE project
7 * Copyright (C) 1997 Bernd Johannes Wuebben
8 * wuebben@math.cornell.edu
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
20 * You should have received a copy of the GNU Library General Public
21 * License along with this program; if not, write to the Free
22 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30 #include <qpushbutton.h>
37 #include <QVBoxLayout>
38 #include <QCloseEvent>
42 class ConWindow
: public QWidget
{
46 ConWindow(QWidget
*parent
, const char *name
,QWidget
*main
, PPPStats
*st
);
50 void closeEvent( QCloseEvent
*e
);
51 bool event( QEvent
*e
);
58 void setConnectionSpeed(const QString
&);
61 void accounting(bool); // show/ hide accounting info
64 void slotAccounting(const QString
&, const QString
&);
69 QPushButton
*cancelbutton
;
70 QPushButton
*statsbutton
;
71 QString
prettyPrintVolume(unsigned int);
79 QLabel
*total_bill
, *total_bill_l
;
80 QLabel
*session_bill
, *session_bill_l
;
81 QString caption_string
;
89 bool accountingEnabled
;
90 bool volumeAccountingEnabled
;