- Add Implicit namespaces

- Fix constructors & and friend classes



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24976 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Ruiz Dorantes
2008-04-15 22:26:32 +00:00
parent ae3633b049
commit be79ee53e1
4 changed files with 24 additions and 3 deletions
+4
View File
@@ -57,4 +57,8 @@ class DeviceClass {
} }
#ifndef _BT_USE_EXPLICIT_NAMESPACE
using Bluetooth::DeviceClass;
#endif
#endif #endif
+7 -1
View File
@@ -55,14 +55,20 @@ class DiscoveryAgent {
*/ */
private: private:
DiscoveryAgent(); DiscoveryAgent(LocalDevice* ld);
void SetLocalDeviceOwner(LocalDevice* ld); void SetLocalDeviceOwner(LocalDevice* ld);
DiscoveryListener* fLastUsedListener; DiscoveryListener* fLastUsedListener;
LocalDevice* fLocalDevice; LocalDevice* fLocalDevice;
friend class LocalDevice;
}; };
} }
#ifndef _BT_USE_EXPLICIT_NAMESPACE
using Bluetooth::DiscoveryAgent;
#endif
#endif #endif
+9 -2
View File
@@ -52,8 +52,7 @@ class DiscoveryListener : public BLooper {
virtual void InquiryStarted(status_t status); virtual void InquiryStarted(status_t status);
private: private:
DiscoveryListener();
void SetLocalDeviceOwner(LocalDevice* ld);
RemoteDevicesList GetRemoteDevicesList(void); RemoteDevicesList GetRemoteDevicesList(void);
void MessageReceived(BMessage* msg); void MessageReceived(BMessage* msg);
@@ -62,8 +61,16 @@ class DiscoveryListener : public BLooper {
RemoteDevicesList fRemoteDevicesList; RemoteDevicesList fRemoteDevicesList;
friend class DiscoveryAgent; friend class DiscoveryAgent;
protected:
DiscoveryListener();
void SetLocalDeviceOwner(LocalDevice* ld);
}; };
} }
#ifndef _BT_USE_EXPLICIT_NAMESPACE
using Bluetooth::DiscoveryListener;
#endif
#endif #endif
+4
View File
@@ -58,4 +58,8 @@ class RemoteDevice {
} }
#ifndef _BT_USE_EXPLICIT_NAMESPACE
using Bluetooth::RemoteDevice;
#endif
#endif #endif