xref: /haiku/src/bin/network/ppp_up/PPPStatusView.h (revision bab64f65bb775dc23060e276f1f1c4498ab7af6c)
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 <Button.h>
10 #include <PPPInterface.h>
11 #include <StringView.h>
12 
13 
14 class PPPStatusView : public BView {
15 	public:
16 		PPPStatusView(BRect rect, ppp_interface_id id);
17 
18 		virtual void AttachedToWindow();
19 		virtual void MessageReceived(BMessage *message);
20 		virtual void Pulse();
21 
22 	private:
23 		BButton *fButton;
24 		BStringView *fTime;
25 		BStringView *fBytesReceived, *fBytesSent, *fPacketsReceived, *fPacketsSent;
26 		bigtime_t fConnectedSince;
27 		PPPInterface fInterface;
28 };
29 
30 
31 #endif
32