xref: /haiku/src/bin/network/ppp_up/PPPStatusView.h (revision 1acbe440b8dd798953bec31d18ee589aa3f71b73)
1 /*
2  * Copyright 2005, Waldemar Kornewald <wkornew@gmx.net>
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #ifndef STATUS_VIEW__H
7 #define STATUS_VIEW__H
8 
9 #include <View.h>
10 #include <PPPInterface.h>
11 
12 
13 class PPPStatusView : public BView {
14 	public:
15 		PPPStatusView(BRect rect, ppp_interface_id id);
16 
17 		virtual void AttachedToWindow();
18 		virtual void MessageReceived(BMessage *message);
19 		virtual void Pulse();
20 
21 	private:
22 		BButton *fButton;
23 		BStringView *fTime;
24 		BStringView *fBytesReceived, *fBytesSent, *fPacketsReceived, *fPacketsSent;
25 		bigtime_t fConnectedSince;
26 		PPPInterface fInterface;
27 };
28 
29 
30 #endif
31