btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / bin / network / ppp_up / PPPDeskbarReplicant.h
blob2c6cb27245c9821b687b7037a54a5e6f53b1a1d8
1 /*
2 * Copyright 2005, Waldemar Kornewald <wkornew@gmx.net>
3 * Distributed under the terms of the MIT License.
4 */
6 #ifndef PPP_DESKBAR_REPLICANT__H
7 #define PPP_DESKBAR_REPLICANT__H
9 #include <View.h>
10 #include <PPPDefs.h>
12 class BPopUpMenu;
13 class PPPStatusWindow;
16 class PPPDeskbarReplicant : public BView {
17 public:
18 PPPDeskbarReplicant(ppp_interface_id id);
19 PPPDeskbarReplicant(BMessage *message);
20 virtual ~PPPDeskbarReplicant();
22 static PPPDeskbarReplicant *Instantiate(BMessage *data);
23 virtual status_t Archive(BMessage *data, bool deep = true) const;
25 virtual void AttachedToWindow();
26 virtual void MessageReceived(BMessage *message);
28 virtual void MouseDown(BPoint point);
29 virtual void MouseUp(BPoint point);
31 virtual void Draw(BRect updateRect);
33 private:
34 void Init();
36 private:
37 PPPStatusWindow *fWindow;
38 BPopUpMenu *fContextMenu;
39 ppp_interface_id fID;
40 int32 fLastButtons;
44 #endif