BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / networkstatus / WirelessNetworkMenuItem.h
blob4e04817e67586bddd5d6a868f7e9ed80d180d4b0
1 /*
2 * Copyright 2010, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef WIRELESS_NETWORK_MENU_ITEM_H
6 #define WIRELESS_NETWORK_MENU_ITEM_H
9 #include <MenuItem.h>
12 class WirelessNetworkMenuItem : public BMenuItem {
13 public:
14 WirelessNetworkMenuItem(const char* name,
15 int32 signalQuality, int32 authenticationMode,
16 BMessage* message);
17 virtual ~WirelessNetworkMenuItem();
19 void SetSignalQuality(int32 quality);
20 int32 SignalQuality() const
21 { return fQuality; }
22 BString AuthenticationName(int32 mode);
24 protected:
25 virtual void DrawContent();
26 virtual void Highlight(bool isHighlighted);
27 virtual void GetContentSize(float* width, float* height);
28 void DrawRadioIcon();
30 private:
31 int32 fQuality;
35 #endif // WIRELESS_NETWORK_MENU_ITEM_H