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 @@ -68,4 +68,14 @@ public: + bool setSecret(int,const char*,const char*); + bool removeSecret(int); + void killPPPDaemon(); + int pppdExitStatus(); + bool execPPPDaemon(const QString & arguments); + int openResolv(int flags); + bool setHostname(const QString & name); + public: + enum Auth { PAP = 1, CHAP }; static Modem *modem; + int lastStatus; @@ -80,2 +90,7 @@ private slots: private: + enum { MaxPathLen = 30, MaxStrLen = 40, MaxArgs = 100 }; + enum { Original=0x100, New=0x200, Old=0x400 } Version; + + const char* authFile(Auth method, int version = Original ); + bool createAuthFile(Auth method,const char *username,const char *password); void escape_to_command_mode(); |