Contact cannot be a null ptr, and it is accessed before anyway. Disscussed with kedge.
[kdenetwork.git] / kppp / requester.h
blobcb2d0e0464593dd266c138ff0ac184942a1dd1d3
1 #ifndef _REQUESTER_H_
2 #define _REQUESTER_H_
4 class Requester {
6 public:
7 Requester(int);
8 ~Requester();
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();
23 public:
24 static Requester *rq;
25 int lastStatus;
27 private:
28 bool sendRequest(struct RequestHeader *request, int len);
29 bool recvResponse();
30 int recvFD();
31 int indexDevice(const QString & dev);
32 int socket;
33 bool expect_alarm;
36 void recv_timeout(int);
38 #endif