summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/ppp/conwindow.h
Unidiff
Diffstat (limited to 'noncore/settings/networksettings/ppp/conwindow.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/networksettings/ppp/conwindow.h96
1 files changed, 96 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/ppp/conwindow.h b/noncore/settings/networksettings/ppp/conwindow.h
new file mode 100644
index 0000000..20d3579
--- a/dev/null
+++ b/noncore/settings/networksettings/ppp/conwindow.h
@@ -0,0 +1,96 @@
1/* -*- C++ -*-
2 *
3 * kPPP: A pppd front end for the KDE project
4 *
5 * $Id$
6 *
7 * Copyright (C) 1997 Bernd Johannes Wuebben
8 * wuebben@math.cornell.edu
9 *
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.
14 *
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.
19 *
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., 675 Mass Ave, Cambridge, MA 02139, USA.
23 */
24
25#ifndef _CONWINDOW_H_
26#define _CONWINDOW_H_
27
28
29#include <qtimer.h>
30#include <qpushbutton.h>
31#include <qlabel.h>
32#include <qdialog.h>
33#include <qframe.h>
34#include <qevent.h>
35#include <qlayout.h>
36
37//class PPPStats;
38
39class ConWindow : public QWidget {
40Q_OBJECT
41
42public:
43 ConWindow(QWidget *parent, const char *name, QDialog* );
44 ~ConWindow();
45
46protected:
47 void closeEvent( QCloseEvent *e );
48 bool event( QEvent *e );
49
50private slots:
51 void timeclick();
52 void dock();
53
54public:
55 void setConnectionSpeed(const QString&);
56 void startClock();
57 void stopClock();
58 void accounting(bool); // show/ hide accounting info
59
60public slots:
61 void slotAccounting(QString, QString);
62
63private:
64 QLabel *info1;
65 QLabel *info2;
66 QPushButton *cancelbutton;
67 QPushButton *statsbutton;
68 QString prettyPrintVolume(unsigned int);
69 int minutes;
70 int seconds;
71 int hours;
72 int days;
73 QFrame *fline;
74 QLabel *timelabel1;
75 QLabel *timelabel2;
76 QLabel *total_bill, *total_bill_l;
77 QLabel *session_bill, *session_bill_l;
78 QString caption_string;
79 QString time_string2;
80 QString time_string;
81 QTimer *clocktimer;
82 QVBoxLayout *tl1;
83 QLabel *vollabel;
84 QLabel *volinfo;
85// PPPStats *stats;
86 bool accountingEnabled;
87 bool volumeAccountingEnabled;
88};
89
90
91#endif
92
93
94
95
96