xref: /haiku/src/bin/network/ppp_up/PPPStatusWindow.cpp (revision 3cb015b1ee509d69c643506e8ff573808c86dcfc)
1 /*
2  * Copyright 2005, Waldemar Kornewald <wkornew@gmx.net>
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #include "PPPStatusWindow.h"
7 
8 
9 PPPStatusWindow::PPPStatusWindow(BRect frame, ppp_interface_id id)
10 	: BWindow(frame, "", B_TITLED_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE,
11 		B_ALL_WORKSPACES)
12 {
13 	SetPulseRate(1000000);
14 
15 	fStatusView = new PPPStatusView(Bounds(), id);
16 	AddChild(fStatusView);
17 }
18 
19 
20 bool
21 PPPStatusWindow::QuitRequested()
22 {
23 	// only the replicant may delete this window!
24 	Hide();
25 	return false;
26 }
27