2 * kPPP: A pppd front end for the KDE project
6 * Copyright (C) 1997 Bernd Johannes Wuebben
7 * wuebben@math.cornell.edu
10 * Copyright (C) 1997 Jay Painter
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.
31 #include <qpushbutton.h>
32 #include <q3listbox.h>
35 #include "acctselect.h"
47 class AccountWidget
: public QWidget
{
50 explicit AccountWidget( QWidget
*parent
=0, const char *name
=0 );
58 void slotListBoxSelect(int);
60 void viewLogClicked();
67 void resetCosts(const QString
&);
68 void resetVolume(const QString
&);
71 QString
prettyPrintVolume(unsigned int);
73 KPageDialog
*tabWindow
;
75 AccountingSelector
*acct
;
78 GatewayWidget
*gateway_w
;
79 ScriptWidget
*script_w
;
88 Q3ListBox
*accountlist_l
;
92 QPushButton
*delete_b
;
96 class QueryReset
: public KDialog
{
99 QueryReset(QWidget
*parent
);
101 enum {COSTS
=1, VOLUME
=2};
107 QCheckBox
*costs
, *volume
;