author | tille <tille> | 2003-05-23 19:43:46 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-23 19:43:46 (UTC) |
commit | 9b6b21112f38181f49b07e973bfe00c0d83a6900 (patch) (unidiff) | |
tree | c2fa45a93ac5c26fe98558f28bb0a166b14ad065 /noncore/settings/networksettings/ppp/accounts.h | |
parent | 34b9974063032242e5de65fa56d4c2cb5e1ce565 (diff) | |
download | opie-9b6b21112f38181f49b07e973bfe00c0d83a6900.zip opie-9b6b21112f38181f49b07e973bfe00c0d83a6900.tar.gz opie-9b6b21112f38181f49b07e973bfe00c0d83a6900.tar.bz2 |
configure dialog basicly working
more kppp stuff... ;)
Diffstat (limited to 'noncore/settings/networksettings/ppp/accounts.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/accounts.h | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/ppp/accounts.h b/noncore/settings/networksettings/ppp/accounts.h new file mode 100644 index 0000000..751a414 --- a/dev/null +++ b/noncore/settings/networksettings/ppp/accounts.h | |||
@@ -0,0 +1,110 @@ | |||
1 | /* -*- C++ -*- | ||
2 | * kPPP: A pppd front end for the KDE project | ||
3 | * | ||
4 | * $Id$ | ||
5 | * | ||
6 | * Copyright (C) 1997 Bernd Johannes Wuebben | ||
7 | * wuebben@math.cornell.edu | ||
8 | * | ||
9 | * based on EzPPP: | ||
10 | * Copyright (C) 1997 Jay Painter | ||
11 | * | ||
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. | ||
16 | * | ||
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. | ||
21 | * | ||
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., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
25 | */ | ||
26 | |||
27 | #ifndef _ACCOUNTS_H_ | ||
28 | #define _ACCOUNTS_H_ | ||
29 | |||
30 | #include <qwidget.h> | ||
31 | #include <qdialog.h> | ||
32 | #include <qpushbutton.h> | ||
33 | #include <qlistbox.h> | ||
34 | //#include "acctselect.h" | ||
35 | |||
36 | class QDialog; | ||
37 | class QCheckBox; | ||
38 | class QLineEdit; | ||
39 | class QTabWidget; | ||
40 | class DialWidget; | ||
41 | class ScriptWidget; | ||
42 | class IPWidget; | ||
43 | class DNSWidget; | ||
44 | class GatewayWidget; | ||
45 | |||
46 | class AccountWidget : public QWidget { | ||
47 | Q_OBJECT | ||
48 | public: | ||
49 | AccountWidget( QWidget *parent=0, const char *name=0 ); | ||
50 | ~AccountWidget() {} | ||
51 | |||
52 | private slots: | ||
53 | void editaccount(); | ||
54 | void copyaccount(); | ||
55 | void newaccount(); | ||
56 | void deleteaccount(); | ||
57 | void slotListBoxSelect(int); | ||
58 | // void resetClicked(); | ||
59 | // void viewLogClicked(); | ||
60 | |||
61 | private: | ||
62 | int doTab(); | ||
63 | |||
64 | signals: | ||
65 | void resetaccounts(); | ||
66 | // void resetCosts(const QString &); | ||
67 | // void resetVolume(const QString &); | ||
68 | |||
69 | private: | ||
70 | QString prettyPrintVolume(unsigned int); | ||
71 | |||
72 | QTabWidget *tabWindow; | ||
73 | DialWidget *dial_w; | ||
74 | // AccountingSelector *acct; | ||
75 | IPWidget *ip_w; | ||
76 | DNSWidget *dns_w; | ||
77 | GatewayWidget *gateway_w; | ||
78 | ScriptWidget *script_w; | ||
79 | |||
80 | // QPushButton *reset; | ||
81 | // QPushButton *log; | ||
82 | // QLabel *costlabel; | ||
83 | // QLineEdit *costedit; | ||
84 | // QLabel *vollabel; | ||
85 | // QLineEdit *voledit; | ||
86 | |||
87 | QListBox *accountlist_l; | ||
88 | QPushButton *edit_b; | ||
89 | QPushButton *copy_b; | ||
90 | QPushButton *new_b; | ||
91 | QPushButton *delete_b; | ||
92 | }; | ||
93 | |||
94 | |||
95 | class QueryReset : public QDialog { | ||
96 | Q_OBJECT | ||
97 | public: | ||
98 | QueryReset(QWidget *parent); | ||
99 | |||
100 | enum {COSTS=1, VOLUME=2}; | ||
101 | |||
102 | private slots: | ||
103 | void accepted(); | ||
104 | |||
105 | private: | ||
106 | QCheckBox *costs, *volume; | ||
107 | }; | ||
108 | |||
109 | #endif | ||
110 | |||