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 class LocalDevice; 20 class DiscoveryAgent; 21 class DiscoveryListener; 22 23 class InquiryPanel : public BWindow 24 { 25 public: 26 InquiryPanel(BRect frame, LocalDevice* lDevice = NULL); 27 bool QuitRequested(void); 28 void MessageReceived(BMessage *message); 29 30 private: 31 BStatusBar* fScanProgress; 32 BButton* fAddButton; 33 BButton* fInquiryButton; 34 BTextView* fMessage; 35 BListView* fRemoteList; 36 BScrollView* fScrollView; 37 BMessage* fRetrieveMessage; 38 BMessage* fSecondsMessage; 39 BMessenger fMessenger; 40 41 bool fScanning; 42 bool fRetrieving; 43 LocalDevice* fLocalDevice; 44 DiscoveryAgent* fDiscoveryAgent; 45 DiscoveryListener* fDiscoveryListener; 46 47 void UpdateListStatus(void); 48 49 rgb_color activeColor; 50 }; 51 52 #endif 53