Diffstat (limited to 'noncore/settings/networksettings/ppp/modem.h') (more/less context) (show 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 | |||
@@ -66,8 +66,18 @@ public: | |||
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); |
@@ -78,6 +88,11 @@ private slots: | |||
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 | ||