/* * Copyright 2004, Waldemar Kornewald * Distributed under the terms of the MIT License. */ #ifndef _PPP_SERVER__H #define _PPP_SERVER__H #include #include class SimpleMessageFilter; class PPPServer : public BHandler { public: PPPServer(); virtual ~PPPServer(); virtual void MessageReceived(BMessage *message); // the SimpleMessageFilter routes ppp_server messages to this handler private: void InitInterfaces(); bool AskBeforeDialing(ppp_interface_id id); void HandleReportMessage(BMessage *message); void OpenDialRequestWindow(ppp_interface_id id, thread_id sender); private: SimpleMessageFilter *fFilter; PPPInterfaceListener *fListener; }; #endif