mirror of
https://review.haiku-os.org/haiku
synced 2025-02-08 14:49:58 +01:00
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22667 a95241bf-73f2-0310-859d-f6bbb57e9c96
50 lines
1.3 KiB
C++
50 lines
1.3 KiB
C++
/*
|
|
* Copyright 2007 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
|
|
*
|
|
* All rights reserved. Distributed under the terms of the MIT License.
|
|
*
|
|
*/
|
|
|
|
#ifndef _LOCAL_DEVICE_H
|
|
#define _LOCAL_DEVICE_H
|
|
|
|
#include <bluetooth/bluetooth.h>
|
|
#include <bluetooth/DeviceClass.h>
|
|
|
|
#include <String.h>
|
|
|
|
namespace Bluetooth {
|
|
|
|
class DiscoveryAgent;
|
|
|
|
class LocalDevice {
|
|
|
|
public:
|
|
/* Possible throwing */
|
|
static LocalDevice* GetLocalDevice();
|
|
static LocalDevice* GetLocalDevice(uint8 dev);
|
|
static LocalDevice* GetLocalDevice(bdaddr_t bdaddr);
|
|
|
|
DiscoveryAgent* GetDiscoveryAgent();
|
|
BString GetFriendlyName();
|
|
DeviceClass GetDeviceClass();
|
|
/* Possible throwing */
|
|
bool SetDiscoverable(int mode);
|
|
|
|
BString GetProperty(const char* property);
|
|
void GetProperty(const char* property, uint32* value);
|
|
|
|
int GetDiscoverable();
|
|
BString GetBluetoothAddress();
|
|
/*
|
|
ServiceRecord getRecord(Connection notifier);
|
|
void updateRecord(ServiceRecord srvRecord);
|
|
*/
|
|
private:
|
|
LocalDevice();
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|