From cd679653f41c930d701aa57da4d3440cc3485fbd Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 23 Sep 2008 21:34:46 +0200 Subject: Document mode handling changes --- doc/adapter-api.txt | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/adapter-api.txt b/doc/adapter-api.txt index 0ded04d1..59262814 100644 --- a/doc/adapter-api.txt +++ b/doc/adapter-api.txt @@ -31,7 +31,7 @@ Methods dict GetProperties() Possible Errors: org.bluez.Error.DoesNotExist org.bluez.Error.InvalidArguments - void RequestMode(string mode) + void RequestMode(string mode) {deprecated} This method will request a mode change. The mode change must be confirmed by the user via the agent. @@ -48,12 +48,26 @@ Methods dict GetProperties() org.bluez.Error.InvalidArguments org.bluez.Error.Rejected - void ReleaseMode() + void ReleaseMode() {deprecated} Releases a mode requested via RequestMode. Possible Errors: org.bluez.Error.DoesNotExist + void RequestSession() + + This method will request a client session that + provides operational Bluetooth. A possible mode + change must be confirmed by the user via the agent. + + Possible Errors: org.bluez.Error.Rejected + + void ReleaseSession{} + + Release a previous requested session. + + Possible Errors: org.bluez.Error.DoesNotExist + void StartDiscovery() This method starts the device discovery session. This @@ -205,13 +219,35 @@ Properties string Address [readonly] The Bluetooth friendly name. This value can be changed and a PropertyChanged signal will be emitted. - string Mode [readwrite] + string Mode [readwrite] {deprecated} The Bluetooth operation mode. Valid modes: "off", "connectable", "discoverable", "limited" + This is deprecated by the Powered and Discoverable + properties. + + boolean Powered [readwrite] + + Switch an adapter on or off. This will also set the + appropiate connectable state. + + boolean Discoverable [readwrite] + + Switch an adapter to discoverable or non-discoverable + to either make it visible or hide it. This is a global + setting and should only be used by the settings + application. + + If the DiscoverableTimeout is set to a non-zero + value then the system will set this value back to + false after the timer expired. + + In case the adapter is switched off, setting this + value will fail. + uint32 DiscoverableTimeout [readwrite] The discoverable timeout in seconds. A value of zero -- cgit