1 | #ifndef _REQUESTER_H_ |
2 | #define _REQUESTER_H_ |
3 | |
4 | class Requester { |
5 | |
6 | public: |
7 | Requester(int); |
8 | ~Requester(); |
9 | |
10 | int openModem(const QString & dev); |
11 | int openLockfile(const QString & dev, int flags = 0); |
12 | bool removeLockfile(); |
13 | int openResolv(int flags); |
14 | int openSysLog(); |
15 | bool setSecret(int method, const QString & name, const QString & password); |
16 | bool removeSecret(int authMethode); |
17 | bool setHostname(const QString & name); |
18 | bool execPPPDaemon(const QString & arguments); |
19 | bool killPPPDaemon(); |
20 | int pppdExitStatus(); |
21 | bool stop(); |
22 | |
23 | public: |
24 | static Requester *rq; |
25 | int lastStatus; |
26 | |
27 | private: |
28 | bool (struct *request, int len); |
29 | bool recvResponse(); |
30 | int recvFD(); |
31 | int indexDevice(const QString & dev); |
32 | int socket; |
33 | bool expect_alarm; |
34 | }; |
35 | |
36 | void recv_timeout(int); |
37 | |
38 | #endif |
39 | |