vfs: check userland buffers before reading them.
[haiku.git] / src / bin / network / ppp_up / PPPStatusView.h
blobf103724b8144aa24b1d83a5150d2d3b3f998efed
1 /*
2 * Copyright 2005, Waldemar Kornewald <wkornew@gmx.net>
3 * Distributed under the terms of the MIT License.
4 */
6 #ifndef STATUS_VIEW__H
7 #define STATUS_VIEW__H
9 #include <Button.h>
10 #include <PPPInterface.h>
11 #include <StringView.h>
14 class PPPStatusView : public BView {
15 public:
16 PPPStatusView(BRect rect, ppp_interface_id id);
18 virtual void AttachedToWindow();
19 virtual void MessageReceived(BMessage *message);
20 virtual void Pulse();
22 private:
23 BButton *fButton;
24 BStringView *fTime;
25 BStringView *fBytesReceived, *fBytesSent, *fPacketsReceived, *fPacketsSent;
26 bigtime_t fConnectedSince;
27 PPPInterface fInterface;
31 #endif