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 14class BStatusBar; 15class BButton; 16class BTextView; 17class BListView; 18class BScrollView; 19namespace Bluetooth { 20class LocalDevice; 21class DiscoveryAgent; 22class DiscoveryListener; 23} 24 25class InquiryPanel : public BWindow 26{ 27public: 28 InquiryPanel(BRect frame, LocalDevice* lDevice = NULL); 29 bool QuitRequested(void); 30 void MessageReceived(BMessage *message); 31 32private: 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