From be79ee53e1512e7d8d3919fbea795888d1297836 Mon Sep 17 00:00:00 2001 From: Oliver Ruiz Dorantes Date: Tue, 15 Apr 2008 22:26:32 +0000 Subject: [PATCH] - Add Implicit namespaces - Fix constructors & and friend classes git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24976 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/bluetooth/DeviceClass.h | 4 ++++ headers/os/bluetooth/DiscoveryAgent.h | 8 +++++++- headers/os/bluetooth/DiscoveryListener.h | 11 +++++++++-- headers/os/bluetooth/RemoteDevice.h | 4 ++++ 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/headers/os/bluetooth/DeviceClass.h b/headers/os/bluetooth/DeviceClass.h index 719175b743..89c3dfb5d3 100644 --- a/headers/os/bluetooth/DeviceClass.h +++ b/headers/os/bluetooth/DeviceClass.h @@ -57,4 +57,8 @@ class DeviceClass { } +#ifndef _BT_USE_EXPLICIT_NAMESPACE +using Bluetooth::DeviceClass; +#endif + #endif diff --git a/headers/os/bluetooth/DiscoveryAgent.h b/headers/os/bluetooth/DiscoveryAgent.h index 2c0e444a19..2142757b4b 100644 --- a/headers/os/bluetooth/DiscoveryAgent.h +++ b/headers/os/bluetooth/DiscoveryAgent.h @@ -55,14 +55,20 @@ class DiscoveryAgent { */ private: - DiscoveryAgent(); + DiscoveryAgent(LocalDevice* ld); void SetLocalDeviceOwner(LocalDevice* ld); DiscoveryListener* fLastUsedListener; LocalDevice* fLocalDevice; + + friend class LocalDevice; }; } +#ifndef _BT_USE_EXPLICIT_NAMESPACE +using Bluetooth::DiscoveryAgent; +#endif + #endif diff --git a/headers/os/bluetooth/DiscoveryListener.h b/headers/os/bluetooth/DiscoveryListener.h index 2a64347a61..8bb46b2c2b 100644 --- a/headers/os/bluetooth/DiscoveryListener.h +++ b/headers/os/bluetooth/DiscoveryListener.h @@ -52,8 +52,7 @@ class DiscoveryListener : public BLooper { virtual void InquiryStarted(status_t status); private: - DiscoveryListener(); - void SetLocalDeviceOwner(LocalDevice* ld); + RemoteDevicesList GetRemoteDevicesList(void); void MessageReceived(BMessage* msg); @@ -62,8 +61,16 @@ class DiscoveryListener : public BLooper { RemoteDevicesList fRemoteDevicesList; friend class DiscoveryAgent; + + protected: + DiscoveryListener(); + void SetLocalDeviceOwner(LocalDevice* ld); }; } +#ifndef _BT_USE_EXPLICIT_NAMESPACE +using Bluetooth::DiscoveryListener; +#endif + #endif diff --git a/headers/os/bluetooth/RemoteDevice.h b/headers/os/bluetooth/RemoteDevice.h index 0ebeabbd1d..23a0d97ae4 100644 --- a/headers/os/bluetooth/RemoteDevice.h +++ b/headers/os/bluetooth/RemoteDevice.h @@ -58,4 +58,8 @@ class RemoteDevice { } +#ifndef _BT_USE_EXPLICIT_NAMESPACE +using Bluetooth::RemoteDevice; +#endif + #endif