diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-02-18 13:31:21 +0000 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2013-02-19 13:00:24 +0100 |
commit | 25819137fe00afa6ec5cb900a742fa9368a52a16 (patch) | |
tree | 7634be43d151a18440b652f435fc8b5132e6bb46 /sd/source/ui/remotecontrol/BluetoothServer.hxx | |
parent | 7848b97462a088521986ba200ee2fd55982667bb (diff) |
sdremote: re-work discoverable property get/set to use libdbus.
Change-Id: I5e11a0fcfd8db648a40c738cbc8181889cb36136
(cherry picked from commit 618fe83d6e8aeabc309540fae998aeb78465bb4d)
Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
Diffstat (limited to 'sd/source/ui/remotecontrol/BluetoothServer.hxx')
-rw-r--r-- | sd/source/ui/remotecontrol/BluetoothServer.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/remotecontrol/BluetoothServer.hxx b/sd/source/ui/remotecontrol/BluetoothServer.hxx index b922d6094901..24b8dec36ba2 100644 --- a/sd/source/ui/remotecontrol/BluetoothServer.hxx +++ b/sd/source/ui/remotecontrol/BluetoothServer.hxx @@ -28,15 +28,15 @@ namespace sd /// restore the state of discoverability from before ensureDiscoverable static void restoreDiscoverable(); - void addCommunicator( Communicator* pCommunicator ); + // called by C / idle callbacks + static void doEnsureDiscoverable(); + static void doRestoreDiscoverable(); + void addCommunicator( Communicator* pCommunicator ); private: BluetoothServer( std::vector<Communicator*>* pCommunicators ); ~BluetoothServer(); - bool isDiscoverable(); - void setDiscoverable( bool bDiscoverable ); - enum { UNKNOWN, DISCOVERABLE, NOT_DISCOVERABLE } meWasDiscoverable; static BluetoothServer *spServer; |