diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bcb704366cb5e333a626c18c308c7e0448a8e69f (patch) | |
tree | f0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /kppp/requester.h | |
download | tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kppp/requester.h')
-rw-r--r-- | kppp/requester.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/kppp/requester.h b/kppp/requester.h new file mode 100644 index 00000000..cb2d0e04 --- /dev/null +++ b/kppp/requester.h @@ -0,0 +1,38 @@ +#ifndef _REQUESTER_H_ +#define _REQUESTER_H_ + +class Requester { + +public: + Requester(int); + ~Requester(); + + int openModem(const QString & dev); + int openLockfile(const QString & dev, int flags = 0); + bool removeLockfile(); + int openResolv(int flags); + int openSysLog(); + bool setSecret(int method, const QString & name, const QString & password); + bool removeSecret(int authMethode); + bool setHostname(const QString & name); + bool execPPPDaemon(const QString & arguments); + bool killPPPDaemon(); + int pppdExitStatus(); + bool stop(); + +public: + static Requester *rq; + int lastStatus; + +private: + bool sendRequest(struct RequestHeader *request, int len); + bool recvResponse(); + int recvFD(); + int indexDevice(const QString & dev); + int socket; + bool expect_alarm; +}; + +void recv_timeout(int); + +#endif |