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 INQUIRY_WINDOW_H 6 #define INQUIRY_WINDOW_H 7 8 #include <Application.h> 9 #include <Button.h> 10 #include <Window.h> 11 #include <Message.h> 12 #include <TabView.h> 13 14 class BStatusBar; 15 class BButton; 16 class BTextView; 17 class BListView; 18 class BScrollView; 19 namespace Bluetooth { 20 class LocalDevice; 21 class DiscoveryAgent; 22 class DiscoveryListener; 23 } 24 25 class InquiryPanel : public BWindow 26 { 27 public: 28 InquiryPanel(BRect frame, LocalDevice* lDevice = NULL); 29 bool QuitRequested(void); 30 void MessageReceived(BMessage *message); 31 32 private: 33 BStatusBar* fScanProgress; 34 BButton* fAddButton; 35 BButton* fInquiryButton; 36 BTextView* fMessage; 37 BListView* fRemoteList; 38 BScrollView* fScrollView; 39 BMessage* fRetrieveMessage; 40 BMessage* fSecondsMessage; 41 BMessenger fMessenger; 42 43 bool fScanning; 44 bool fRetrieving; 45 Bluetooth::LocalDevice* fLocalDevice; 46 Bluetooth::DiscoveryAgent* fDiscoveryAgent; 47 Bluetooth::DiscoveryListener* fDiscoveryListener; 48 49 void UpdateListStatus(void); 50 51 rgb_color activeColor; 52 }; 53 54 #endif 55