1 /* 2 * Copyright 2005, Waldemar Kornewald <wkornew@gmx.net> 3 * Distributed under the terms of the MIT License. 4 */ 5 6 #ifndef PPP_DESKBAR_REPLICANT__H 7 #define PPP_DESKBAR_REPLICANT__H 8 9 #include <View.h> 10 #include <PPPDefs.h> 11 12 class BPopUpMenu; 13 class PPPStatusWindow; 14 15 16 class PPPDeskbarReplicant : public BView { 17 public: 18 PPPDeskbarReplicant(ppp_interface_id id); 19 PPPDeskbarReplicant(BMessage *message); 20 virtual ~PPPDeskbarReplicant(); 21 22 static PPPDeskbarReplicant *Instantiate(BMessage *data); 23 virtual status_t Archive(BMessage *data, bool deep = true) const; 24 25 virtual void AttachedToWindow(); 26 virtual void MessageReceived(BMessage *message); 27 28 virtual void MouseDown(BPoint point); 29 virtual void MouseUp(BPoint point); 30 31 virtual void Draw(BRect updateRect); 32 33 private: 34 void Init(); 35 36 private: 37 PPPStatusWindow *fWindow; 38 BPopUpMenu *fContextMenu; 39 ppp_interface_id fID; 40 int32 fLastButtons; 41 }; 42 43 44 #endif 45