1 /* 2 * Copyright 2004, Waldemar Kornewald <Waldemar.Kornewald@web.de> 3 * Distributed under the terms of the MIT License. 4 */ 5 6 #ifndef _PPP_SERVER__H 7 #define _PPP_SERVER__H 8 9 #include <Handler.h> 10 #include <PPPInterfaceListener.h> 11 12 class SimpleMessageFilter; 13 14 15 class PPPServer : public BHandler { 16 public: 17 PPPServer(); 18 virtual ~PPPServer(); 19 20 virtual void MessageReceived(BMessage *message); 21 // the SimpleMessageFilter routes ppp_server messages to this handler 22 23 private: 24 void InitInterfaces(); 25 bool AskBeforeDialing(ppp_interface_id id); 26 27 void HandleReportMessage(BMessage *message); 28 void OpenDialRequestWindow(ppp_interface_id id, thread_id sender); 29 30 private: 31 SimpleMessageFilter *fFilter; 32 PPPInterfaceListener *fListener; 33 }; 34 35 36 #endif 37