xref: /haiku/src/preferences/bluetooth/InquiryPanel.h (revision b36b65f92c978799ab3bde3a6c725dc7f6e2f498)
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;
17*b36b65f9SOliver Ruiz Dorantes class BListView;
18*b36b65f9SOliver Ruiz Dorantes class LocalDevice;
19*b36b65f9SOliver Ruiz Dorantes class DiscoveryAgent;
20*b36b65f9SOliver Ruiz Dorantes class DiscoveryListener;
2196455f01SOliver Ruiz Dorantes 
223fcbf7dcSOliver Ruiz Dorantes class InquiryPanel : public BWindow
2396455f01SOliver Ruiz Dorantes {
2496455f01SOliver Ruiz Dorantes public:
25*b36b65f9SOliver Ruiz Dorantes 			InquiryPanel(BRect frame, LocalDevice* lDevice = NULL);
2696455f01SOliver Ruiz Dorantes 	bool	QuitRequested(void);
2796455f01SOliver Ruiz Dorantes 	void	MessageReceived(BMessage *message);
2896455f01SOliver Ruiz Dorantes 
2996455f01SOliver Ruiz Dorantes private:
303fcbf7dcSOliver Ruiz Dorantes 	BStatusBar*				fScanProgress;
313fcbf7dcSOliver Ruiz Dorantes 	BButton*				fAddButton;
323fcbf7dcSOliver Ruiz Dorantes 	BButton*				fInquiryButton;
333fcbf7dcSOliver Ruiz Dorantes 	BTextView*				fMessage;
34*b36b65f9SOliver Ruiz Dorantes 	BListView*				fRemoteList;
35*b36b65f9SOliver Ruiz Dorantes 	BMessageRunner*			fRunner;
3696455f01SOliver Ruiz Dorantes 
37*b36b65f9SOliver Ruiz Dorantes 	bool					fScanning;
38*b36b65f9SOliver Ruiz Dorantes 	LocalDevice*			fLocalDevice;
39*b36b65f9SOliver Ruiz Dorantes 	DiscoveryAgent*			fDiscoveryAgent;
40*b36b65f9SOliver Ruiz Dorantes 	DiscoveryListener*		fDiscoveryListener;
41*b36b65f9SOliver Ruiz Dorantes 
42*b36b65f9SOliver Ruiz Dorantes 
43*b36b65f9SOliver Ruiz Dorantes 	void UpdateUIStatus(void);
44*b36b65f9SOliver Ruiz Dorantes 
45*b36b65f9SOliver Ruiz Dorantes 	rgb_color				activeColor;
4696455f01SOliver Ruiz Dorantes };
4796455f01SOliver Ruiz Dorantes 
4896455f01SOliver Ruiz Dorantes #endif
49