/* * Copyright 2005, Waldemar Kornewald * Distributed under the terms of the MIT License. */ #ifndef STATUS_VIEW__H #define STATUS_VIEW__H #include #include #include class PPPStatusView : public BView { public: PPPStatusView(BRect rect, ppp_interface_id id); virtual void AttachedToWindow(); virtual void MessageReceived(BMessage *message); virtual void Pulse(); private: BButton *fButton; BStringView *fTime; BStringView *fBytesReceived, *fBytesSent, *fPacketsReceived, *fPacketsSent; bigtime_t fConnectedSince; PPPInterface fInterface; }; #endif