xref: /haiku/src/preferences/bluetooth/RemoteDevicesView.h (revision 13581b3d2a71545960b98fefebc5225b5bf29072)
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*		pairButton;
45 	BButton*		disconnectButton;
46 //	BButton*		blockButton;
47 //	BButton*		availButton;
48 	BListView*		fDeviceList;
49 	BScrollView*	fScrollView;
50 
51 
52 };
53 
54 #endif
55