1 /* 2 * Copyright 2008-09, Oliver Ruiz Dorantes, <oliver.ruiz.dorantes_at_gmail.com> 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 #ifndef REMOTE_DEVICES_VIEW_H_ 6 #define REMOTE_DEVICES_VIEW_H_ 7 8 #include <View.h> 9 #include <ColorControl.h> 10 #include <Message.h> 11 #include <ListItem.h> 12 #include <ListView.h> 13 #include <Button.h> 14 #include <ScrollView.h> 15 #include <ScrollBar.h> 16 #include <String.h> 17 #include <Menu.h> 18 #include <MenuField.h> 19 #include <MenuBar.h> 20 #include <MenuItem.h> 21 #include <StringView.h> 22 #include <Invoker.h> 23 24 25 class RemoteDevicesView : public BView 26 { 27 public: 28 RemoteDevicesView(const char *name, uint32 flags); 29 ~RemoteDevicesView(void); 30 void AttachedToWindow(void); 31 void MessageReceived(BMessage *msg); 32 33 void LoadSettings(void); 34 bool IsDefaultable(void); 35 36 protected: 37 38 void SetCurrentColor(rgb_color color); 39 void UpdateControls(); 40 void UpdateAllColors(); 41 42 BButton* addButton; 43 BButton* removeButton; 44 BButton* trustButton; 45 BButton* blockButton; 46 BButton* availButton; 47 BListView* fDeviceList; 48 BScrollView* fScrollView; 49 50 51 }; 52 53 #endif 54