LibreOffice Module sd (master) 1
Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
sd::BluetoothServer Class Reference

#include <BluetoothServer.hxx>

Inheritance diagram for sd::BluetoothServer:
[legend]
Collaboration diagram for sd::BluetoothServer:
[legend]

Static Public Member Functions

static void setup (std::vector< Communicator * > *pCommunicators)
 
static void ensureDiscoverable ()
 ensure that Bluetooth discoverability is on More...
 
static void restoreDiscoverable ()
 restore the state of discoverability from before ensureDiscoverable More...
 
static void doEnsureDiscoverable ()
 
static void doRestoreDiscoverable ()
 

Private Types

enum  {
  UNKNOWN ,
  DISCOVERABLE ,
  NOT_DISCOVERABLE
}
 

Private Member Functions

 BluetoothServer (std::vector< Communicator * > *pCommunicators)
 
virtual ~BluetoothServer () override
 
virtual void SAL_CALL run () override
 
void cleanupCommunicators ()
 

Private Attributes

enum sd::BluetoothServer:: { ... }  meWasDiscoverable
 
std::vector< Communicator * > * mpCommunicators
 

Static Private Attributes

static BluetoothServerspServer = nullptr
 

Detailed Description

Definition at line 25 of file BluetoothServer.hxx.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
UNKNOWN 
DISCOVERABLE 
NOT_DISCOVERABLE 

Definition at line 47 of file BluetoothServer.hxx.

Constructor & Destructor Documentation

◆ BluetoothServer()

BluetoothServer::BluetoothServer ( std::vector< Communicator * > *  pCommunicators)
explicitprivate

Definition at line 1066 of file BluetoothServer.cxx.

References UNKNOWN.

Referenced by setup().

◆ ~BluetoothServer()

BluetoothServer::~BluetoothServer ( )
overrideprivatevirtual

Definition at line 1082 of file BluetoothServer.cxx.

Member Function Documentation

◆ cleanupCommunicators()

void BluetoothServer::cleanupCommunicators ( )
private

Definition at line 1150 of file BluetoothServer.cxx.

References mpCommunicators.

Referenced by run().

◆ doEnsureDiscoverable()

void BluetoothServer::doEnsureDiscoverable ( )
static

Definition at line 1114 of file BluetoothServer.cxx.

References DISCOVERABLE, meWasDiscoverable, NOT_DISCOVERABLE, spServer, and UNKNOWN.

◆ doRestoreDiscoverable()

void BluetoothServer::doRestoreDiscoverable ( )
static

Definition at line 1134 of file BluetoothServer.cxx.

References meWasDiscoverable, NOT_DISCOVERABLE, spServer, and UNKNOWN.

◆ ensureDiscoverable()

void BluetoothServer::ensureDiscoverable ( )
static

ensure that Bluetooth discoverability is on

Definition at line 1086 of file BluetoothServer.cxx.

References spServer.

Referenced by sd::RemoteServer::ensureDiscoverable().

◆ restoreDiscoverable()

void BluetoothServer::restoreDiscoverable ( )
static

restore the state of discoverability from before ensureDiscoverable

Definition at line 1100 of file BluetoothServer.cxx.

References spServer.

Referenced by sd::RemoteServer::restoreDiscoverable().

◆ run()

void SAL_CALL BluetoothServer::run ( )
overrideprivatevirtual

◆ setup()

void BluetoothServer::setup ( std::vector< Communicator * > *  pCommunicators)
static

Definition at line 1512 of file BluetoothServer.cxx.

References BluetoothServer(), and spServer.

Referenced by sd::RemoteServer::setup().

Member Data Documentation

◆ 

enum { ... } sd::BluetoothServer::meWasDiscoverable

◆ mpCommunicators

std::vector<Communicator*>* sd::BluetoothServer::mpCommunicators
private

Definition at line 57 of file BluetoothServer.hxx.

Referenced by cleanupCommunicators(), and run().

◆ spServer

BluetoothServer * sd::BluetoothServer::spServer = nullptr
staticprivate

The documentation for this class was generated from the following files: