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; 19*1812b1f7SAugustin Cavalier namespace Bluetooth { 20b36b65f9SOliver Ruiz Dorantes class LocalDevice; 21b36b65f9SOliver Ruiz Dorantes class DiscoveryAgent; 22b36b65f9SOliver Ruiz Dorantes class DiscoveryListener; 23*1812b1f7SAugustin Cavalier } 2496455f01SOliver Ruiz Dorantes 253fcbf7dcSOliver Ruiz Dorantes class InquiryPanel : public BWindow 2696455f01SOliver Ruiz Dorantes { 2796455f01SOliver Ruiz Dorantes public: 28b36b65f9SOliver Ruiz Dorantes InquiryPanel(BRect frame, LocalDevice* lDevice = NULL); 2996455f01SOliver Ruiz Dorantes bool QuitRequested(void); 3096455f01SOliver Ruiz Dorantes void MessageReceived(BMessage *message); 3196455f01SOliver Ruiz Dorantes 3296455f01SOliver Ruiz Dorantes private: 333fcbf7dcSOliver Ruiz Dorantes BStatusBar* fScanProgress; 343fcbf7dcSOliver Ruiz Dorantes BButton* fAddButton; 353fcbf7dcSOliver Ruiz Dorantes BButton* fInquiryButton; 363fcbf7dcSOliver Ruiz Dorantes BTextView* fMessage; 37b36b65f9SOliver Ruiz Dorantes BListView* fRemoteList; 38cafd739dSOliver Ruiz Dorantes BScrollView* fScrollView; 395bf53b09SOliver Ruiz Dorantes BMessage* fRetrieveMessage; 405bf53b09SOliver Ruiz Dorantes BMessage* fSecondsMessage; 415bf53b09SOliver Ruiz Dorantes BMessenger fMessenger; 4296455f01SOliver Ruiz Dorantes 43b36b65f9SOliver Ruiz Dorantes bool fScanning; 44f988be6fSOliver Ruiz Dorantes bool fRetrieving; 45*1812b1f7SAugustin Cavalier Bluetooth::LocalDevice* fLocalDevice; 46*1812b1f7SAugustin Cavalier Bluetooth::DiscoveryAgent* fDiscoveryAgent; 47*1812b1f7SAugustin Cavalier Bluetooth::DiscoveryListener* fDiscoveryListener; 48b36b65f9SOliver Ruiz Dorantes 49bced01f7SOliver Ruiz Dorantes void UpdateListStatus(void); 50b36b65f9SOliver Ruiz Dorantes 51b36b65f9SOliver Ruiz Dorantes rgb_color activeColor; 5296455f01SOliver Ruiz Dorantes }; 5396455f01SOliver Ruiz Dorantes 5496455f01SOliver Ruiz Dorantes #endif 55