summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/ppp/pppdata.h
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/ppp/pppdata.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/ppp/pppdata.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/noncore/settings/networksettings2/ppp/pppdata.h b/noncore/settings/networksettings2/ppp/pppdata.h
index 9e8543c..68666f8 100644
--- a/noncore/settings/networksettings2/ppp/pppdata.h
+++ b/noncore/settings/networksettings2/ppp/pppdata.h
@@ -1,21 +1,27 @@
1#ifndef PPP_DATA_H 1#ifndef PPP_DATA_H
2#define PPP_DATA_H 2#define PPP_DATA_H
3 3
4#include <qstring.h> 4#include <qstring.h>
5#include <qarray.h> 5#include <qarray.h>
6 6
7typedef struct PPPData { 7class PPPData {
8
9public :
10
8 struct { 11 struct {
9 bool IPAutomatic; 12 bool LocalOverrule;
10 QString IPAddress; 13 bool RemoteOverrule;
11 QString IPSubMask; 14 QString LocalAddress;
15 QString RemoteAddress;
12 bool GWAutomatic; 16 bool GWAutomatic;
13 QString GWAddress; 17 QString GWAddress;
14 bool GWIsDefault; 18 bool GWIsDefault;
19 bool GWIfNotSet;
15 } IP; 20 } IP;
21
16 struct { 22 struct {
17 short Mode; // 0 login, 1 chap/pap, 2 Terminal 23 short Mode; // 0 login, 1 chap/pap, 2 Terminal
18 struct { 24 struct {
19 QString Expect; 25 QString Expect;
20 QString Send; 26 QString Send;
21 } Login; 27 } Login;
@@ -30,9 +36,15 @@ typedef struct PPPData {
30 } Auth; 36 } Auth;
31 struct { 37 struct {
32 bool ServerAssigned; 38 bool ServerAssigned;
33 QString DomainName; 39 QString DomainName;
34 QArray<QString *> Servers; 40 QArray<QString *> Servers;
35 } DNS; 41 } DNS;
36} PPPData_t; 42 struct {
43 QString PreConnect;
44 QString PostConnect;
45 QString PreDisconnect;
46 QString PostDisconnect;
47 } Run;
48};
37 49
38#endif 50#endif