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 7 8 9 #include <MenuItem.h> 10 11 12 class WirelessNetworkMenuItem : public BMenuItem { 13 public: 14 WirelessNetworkMenuItem(const char* name, 15 int32 signalQuality, int32 authenticationMode, 16 BMessage* message); 17 virtual ~WirelessNetworkMenuItem(); 18 19 void SetSignalQuality(int32 quality); 20 int32 SignalQuality() const 21 { return fQuality; } 22 BString AuthenticationName(int32 mode); 23 24 protected: 25 virtual void DrawContent(); 26 virtual void Highlight(bool isHighlighted); 27 virtual void GetContentSize(float* width, float* height); 28 void DrawRadioIcon(); 29 30 private: 31 int32 fQuality; 32 }; 33 34 35 #endif // WIRELESS_NETWORK_MENU_ITEM_H 36