2 * Copyright 2007 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
4 * All rights reserved. Distributed under the terms of the MIT License.
8 #ifndef _LOCALDEVICE_HANDLER_H_
9 #define _LOCALDEVICE_HANDLER_H_
13 #include <MessageQueue.h>
15 #include <bluetooth/bluetooth.h>
17 #include "HCIDelegate.h"
19 class LocalDeviceHandler
{
27 status_t
Launch(void);
29 BMessage
* GetPropertiesMessage(void) { return fProperties
; }
30 bool IsPropertyAvailable(const char* property
);
34 LocalDeviceHandler (HCIDelegate
* hd
);
35 virtual ~LocalDeviceHandler();
37 HCIDelegate
* fHCIDelegate
;
38 BMessage
* fProperties
;
40 void AddWantedEvent(BMessage
* msg
);
41 void ClearWantedEvent(BMessage
* msg
, uint16 event
, uint16 opcode
= 0);
42 void ClearWantedEvent(BMessage
* msg
);
44 BMessage
* FindPetition(uint16 event
, uint16 opcode
= 0, int32
* indexFound
= NULL
);
48 BMessageQueue fEventsWanted
;