* Add one more inquiry process hook function for notify when it has started
* Move Messages id to a private header * New constructor for RemoteDevice git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24376 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -42,6 +42,9 @@ class DiscoveryListener : BLooper {
|
||||
virtual void serviceSearchCompleted(int transID, int respCode);
|
||||
*/
|
||||
virtual void InquiryCompleted(int discType);
|
||||
|
||||
/* JSR82 non-defined methods */
|
||||
virtual void InquiryStarted(status_t status);
|
||||
|
||||
private:
|
||||
DiscoveryListener();
|
||||
|
||||
@@ -42,6 +42,7 @@ class RemoteDevice {
|
||||
|
||||
protected:
|
||||
RemoteDevice(BString address);
|
||||
RemoteDevice(bdaddr_t address);
|
||||
|
||||
/* Instances of this class only will be done by Discovery[Listener|Agent] TODO */
|
||||
friend class DiscoveryListener;
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
|
||||
#define BLUETOOTH_SIGNATURE "application/x-vnd.Be-bluetooth_server"
|
||||
|
||||
/* Kit Comunication */
|
||||
|
||||
// LocalDevice
|
||||
#define BT_MSG_COUNT_LOCAL_DEVICES 'btCd'
|
||||
#define BT_MSG_ADQUIRE_LOCAL_DEVICE 'btAd'
|
||||
#define BT_MSG_GET_FRIENDLY_NAME 'btFn'
|
||||
@@ -11,5 +14,12 @@
|
||||
#define BT_MSG_HANDLE_SIMPLE_REQUEST 'btsR'
|
||||
#define BT_MSG_ADD_DEVICE 'btDD'
|
||||
|
||||
// Discovery
|
||||
#define BT_MSG_INQUIRY_STARTED 'IqSt'
|
||||
#define BT_MSG_INQUIRY_COMPLETED 'IqCM'
|
||||
#define BT_MSG_INQUIRY_TERMINATED 'IqTR'
|
||||
#define BT_MSG_INQUIRY_ERROR 'IqER'
|
||||
#define BT_MSG_INQUIRY_DEVICE 'IqDE'
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user