Resolve allocation of multiple Messengers,(Mika Lindqvist)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26449 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Ruiz Dorantes
2008-07-16 19:04:53 +00:00
parent fe5d1557e4
commit 870ae24a6d
2 changed files with 30 additions and 23 deletions
+14 -13
View File
@@ -31,38 +31,39 @@ class RemoteDevice;
class DiscoveryAgent {
public:
static const int GIAC = BT_GIAC;
static const int LIAC = BT_LIAC;
static const int PREKNOWN = BT_PREKNOWN;
static const int CACHED = BT_CACHED;
static const int NOT_DISCOVERABLE = BT_NOT_DISCOVERABLE;
RemoteDevicesList RetrieveDevices(int option); /* TODO */
status_t StartInquiry(int accessCode, DiscoveryListener* listener); /* Throwing */
status_t StartInquiry(uint32 accessCode, DiscoveryListener* listener, bigtime_t secs);
status_t CancelInquiry(DiscoveryListener* listener);
/*
int searchServices(int[] attrSet,
UUID[] uuidSet,
RemoteDevice btDev,
DiscoveryListener discListener);
bool cancelServiceSearch(int transID);
bool cancelServiceSearch(int transID);
BString selectService(UUID uuid, int security, boolean master);
*/
private:
DiscoveryAgent(LocalDevice* ld);
void SetLocalDeviceOwner(LocalDevice* ld);
DiscoveryAgent(LocalDevice* ld);
~DiscoveryAgent();
void SetLocalDeviceOwner(LocalDevice* ld);
DiscoveryListener* fLastUsedListener;
LocalDevice* fLocalDevice;
friend class LocalDevice;
DiscoveryListener* fLastUsedListener;
LocalDevice* fLocalDevice;
BMessenger* fMessenger;
friend class LocalDevice;
};
}