xref: /haiku/src/preferences/bluetooth/InquiryPanel.h (revision bced01f71fb7a635cd5109a8a952e07cb3c925a4)
196455f01SOliver Ruiz Dorantes /*
296455f01SOliver Ruiz Dorantes  * Copyright 2008-09, Oliver Ruiz Dorantes, <oliver.ruiz.dorantes_at_gmail.com>
396455f01SOliver Ruiz Dorantes  * All rights reserved. Distributed under the terms of the MIT License.
496455f01SOliver Ruiz Dorantes  */
596455f01SOliver Ruiz Dorantes #ifndef INQUIRY_WINDOW_H
696455f01SOliver Ruiz Dorantes #define INQUIRY_WINDOW_H
796455f01SOliver Ruiz Dorantes 
896455f01SOliver Ruiz Dorantes #include <Application.h>
996455f01SOliver Ruiz Dorantes #include <Button.h>
1096455f01SOliver Ruiz Dorantes #include <Window.h>
1196455f01SOliver Ruiz Dorantes #include <Message.h>
1296455f01SOliver Ruiz Dorantes #include <TabView.h>
1396455f01SOliver Ruiz Dorantes 
143fcbf7dcSOliver Ruiz Dorantes class BStatusBar;
153fcbf7dcSOliver Ruiz Dorantes class BButton;
163fcbf7dcSOliver Ruiz Dorantes class BTextView;
17b36b65f9SOliver Ruiz Dorantes class BListView;
18cafd739dSOliver Ruiz Dorantes class BScrollView;
19b36b65f9SOliver Ruiz Dorantes class LocalDevice;
20b36b65f9SOliver Ruiz Dorantes class DiscoveryAgent;
21b36b65f9SOliver Ruiz Dorantes class DiscoveryListener;
2296455f01SOliver Ruiz Dorantes 
233fcbf7dcSOliver Ruiz Dorantes class InquiryPanel : public BWindow
2496455f01SOliver Ruiz Dorantes {
2596455f01SOliver Ruiz Dorantes public:
26b36b65f9SOliver Ruiz Dorantes 			InquiryPanel(BRect frame, LocalDevice* lDevice = NULL);
2796455f01SOliver Ruiz Dorantes 	bool	QuitRequested(void);
2896455f01SOliver Ruiz Dorantes 	void	MessageReceived(BMessage *message);
2996455f01SOliver Ruiz Dorantes 
3096455f01SOliver Ruiz Dorantes private:
313fcbf7dcSOliver Ruiz Dorantes 	BStatusBar*				fScanProgress;
323fcbf7dcSOliver Ruiz Dorantes 	BButton*				fAddButton;
333fcbf7dcSOliver Ruiz Dorantes 	BButton*				fInquiryButton;
343fcbf7dcSOliver Ruiz Dorantes 	BTextView*				fMessage;
35b36b65f9SOliver Ruiz Dorantes 	BListView*				fRemoteList;
36cafd739dSOliver Ruiz Dorantes 	BScrollView*			fScrollView;
37b36b65f9SOliver Ruiz Dorantes 	BMessageRunner*			fRunner;
3896455f01SOliver Ruiz Dorantes 
39b36b65f9SOliver Ruiz Dorantes 	bool					fScanning;
40f988be6fSOliver Ruiz Dorantes 	bool					fRetrieving;
41b36b65f9SOliver Ruiz Dorantes 	LocalDevice*			fLocalDevice;
42b36b65f9SOliver Ruiz Dorantes 	DiscoveryAgent*			fDiscoveryAgent;
43b36b65f9SOliver Ruiz Dorantes 	DiscoveryListener*		fDiscoveryListener;
44b36b65f9SOliver Ruiz Dorantes 
45b36b65f9SOliver Ruiz Dorantes 
46b36b65f9SOliver Ruiz Dorantes 	void UpdateUIStatus(void);
47*bced01f7SOliver Ruiz Dorantes 	void UpdateListStatus(void);
48b36b65f9SOliver Ruiz Dorantes 
49b36b65f9SOliver Ruiz Dorantes 	rgb_color				activeColor;
5096455f01SOliver Ruiz Dorantes };
5196455f01SOliver Ruiz Dorantes 
5296455f01SOliver Ruiz Dorantes #endif
53