1/* -*- C++ -*-
2 * kPPP: A pppd front end for the KDE project
3 *
4 *
5 *
6 *
7 * Copyright (C) 2004 Simone Gotti
8 * <simone.gotti@email.it>
9 *
10 * based on EzPPP:
11 * Copyright (C) 1997 Jay Painter
12 *
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Library General Public
15 * License as published by the Free Software Foundation; either
16 * version 2 of the License, or (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Library General Public License for more details.
22 *
23 * You should have received a copy of the GNU Library General Public
24 * License along with this program; if not, write to the Free
25 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 */
27
28#ifndef _MODEMS_H_
29#define _MODEMS_H_
30
31#include <qwidget.h>
32#include <qpushbutton.h>
33#include <q3listbox.h>
34//Added by qt3to4:
35#include <QLabel>
36#include "acctselect.h"
37
38class KPageDialog;
39class QLineEdit;
40class DialWidget;
41class ScriptWidget;
42class IPWidget;
43class DNSWidget;
44class GatewayWidget;
45
46class ModemsWidget : public QWidget {
47 Q_OBJECT
48public:
49 explicit ModemsWidget( QWidget *parent=0, const char *name=0 );
50 ~ModemsWidget() {}
51
52private slots:
53 void editmodem();
54 void copymodem();
55 void newmodem();
56 void deletemodem();
57 void slotListBoxSelect(int);
58 void modemNameChanged(const QString &);
59
60private:
61 int doTab();
62
63signals:
64 void resetmodems();
65
66private:
67 QString prettyPrintVolume(unsigned int);
68
69 KPageDialog *tabWindow;
70 ModemWidget *modem1;
71 ModemWidget2 *modem2;
72 /* DialWidget *dial_w;
73 AccountingSelector *acct;
74 IPWidget *ip_w;
75 DNSWidget *dns_w;
76 GatewayWidget *gateway_w;
77 ScriptWidget *script_w;*/
78
79 QLabel *costlabel;
80 QLineEdit *costedit;
81 QLabel *vollabel;
82 QLineEdit *voledit;
83
84 Q3ListBox *modemlist_l;
85 QPushButton *edit_b;
86 QPushButton *copy_b;
87 QPushButton *new_b;
88 QPushButton *delete_b;
89};
90
91#endif
92
93