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/modem.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/modem.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/modem.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/ppp/modem.h b/noncore/settings/networksettings/ppp/modem.h index c23524a..052be4a 100644 --- a/noncore/settings/networksettings/ppp/modem.h +++ b/noncore/settings/networksettings/ppp/modem.h | |||
@@ -63,24 +63,39 @@ public: | |||
63 | void stop(); | 63 | void stop(); |
64 | void flush(); | 64 | void flush(); |
65 | 65 | ||
66 | int lockdevice(); | 66 | int lockdevice(); |
67 | void unlockdevice(); | 67 | void unlockdevice(); |
68 | 68 | ||
69 | bool setSecret(int,const char*,const char*); | ||
70 | bool removeSecret(int); | ||
71 | void killPPPDaemon(); | ||
72 | int pppdExitStatus(); | ||
73 | bool execPPPDaemon(const QString & arguments); | ||
74 | int openResolv(int flags); | ||
75 | bool setHostname(const QString & name); | ||
76 | |||
69 | public: | 77 | public: |
78 | enum Auth { PAP = 1, CHAP }; | ||
70 | static Modem *modem; | 79 | static Modem *modem; |
80 | int lastStatus; | ||
71 | 81 | ||
72 | signals: | 82 | signals: |
73 | void charWaiting(unsigned char); | 83 | void charWaiting(unsigned char); |
74 | 84 | ||
75 | private slots: | 85 | private slots: |
76 | void startNotifier(); | 86 | void startNotifier(); |
77 | void stopNotifier(); | 87 | void stopNotifier(); |
78 | void readtty(int); | 88 | void readtty(int); |
79 | 89 | ||
80 | private: | 90 | private: |
91 | enum { MaxPathLen = 30, MaxStrLen = 40, MaxArgs = 100 }; | ||
92 | enum { Original=0x100, New=0x200, Old=0x400 } Version; | ||
93 | |||
94 | const char* authFile(Auth method, int version = Original ); | ||
95 | bool createAuthFile(Auth method,const char *username,const char *password); | ||
81 | void escape_to_command_mode(); | 96 | void escape_to_command_mode(); |
82 | int openLockfile(QString,int); | 97 | int openLockfile(QString,int); |
83 | 98 | ||
84 | private: | 99 | private: |
85 | QString device; | 100 | QString device; |
86 | QString lockfile; | 101 | QString lockfile; |