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

#include <RemoteServer.hxx>

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

Static Public Member Functions

static void setup ()
 
static void presentationStarted (const css::uno::Reference< css::presentation::XSlideShowController > &rController)
 
static void presentationStopped ()
 
static SD_DLLPUBLIC std::vector< std::shared_ptr< ClientInfo > > getClients ()
 
static SD_DLLPUBLIC bool connectClient (const std::shared_ptr< ClientInfo > &pClient, std::u16string_view aPin)
 
static SD_DLLPUBLIC void deauthoriseClient (const std::shared_ptr< ClientInfo > &pClient)
 
static SD_DLLPUBLIC void ensureDiscoverable ()
 ensure that discoverability (eg. for Bluetooth) is enabled More...
 
static SD_DLLPUBLIC void restoreDiscoverable ()
 restore the state of discoverability from before ensureDiscoverable More...
 
static void removeCommunicator (Communicator const *pCommunicator)
 
- Static Public Member Functions inherited from salhelper::Thread
static void * operator new (std::size_t size)
 
static void operator delete (void *pointer)
 
- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 

Private Member Functions

 RemoteServer ()
 
virtual ~RemoteServer () override
 
void execute () override
 
void handleAcceptedConnection (BufferedStreamSocket *pSocket)
 

Private Attributes

static ::std::vector< Communicator * > sCommunicators
 
osl::AcceptorSocket mSocket
 
::std::vector< std::shared_ptr< ClientInfoInternal > > mAvailableClients
 

Static Private Attributes

static RemoteServerspServer = nullptr
 
::osl::Mutex sDataMutex
 

Additional Inherited Members

- Public Member Functions inherited from salhelper::Thread
 Thread (char const *name)
 
void launch ()
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 
- Protected Member Functions inherited from salhelper::Thread
virtual ~Thread () SAL_OVERRIDE
 
virtual void execute ()=0
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 50 of file RemoteServer.hxx.

Constructor & Destructor Documentation

◆ RemoteServer()

RemoteServer::RemoteServer ( )
private

Definition at line 66 of file Server.cxx.

References SAL_INFO.

Referenced by setup().

◆ ~RemoteServer()

RemoteServer::~RemoteServer ( )
overrideprivatevirtual

Definition at line 72 of file Server.cxx.

Member Function Documentation

◆ connectClient()

bool RemoteServer::connectClient ( const std::shared_ptr< ClientInfo > &  pClient,
std::u16string_view  aPin 
)
static

◆ deauthoriseClient()

void RemoteServer::deauthoriseClient ( const std::shared_ptr< ClientInfo > &  pClient)
static

Definition at line 312 of file Server.cxx.

References SAL_INFO.

Referenced by sd::IMPL_LINK_NOARG().

◆ ensureDiscoverable()

void RemoteServer::ensureDiscoverable ( )
static

ensure that discoverability (eg. for Bluetooth) is enabled

Definition at line 359 of file Server.cxx.

References sd::BluetoothServer::ensureDiscoverable().

Referenced by sd::ClientBox::populateEntries().

◆ execute()

void RemoteServer::execute ( )
overrideprivatevirtual

Implements salhelper::Thread.

Definition at line 76 of file Server.cxx.

References handleAcceptedConnection(), mSocket, PORT, SAL_INFO, SAL_WARN, and spServer.

◆ getClients()

std::vector< std::shared_ptr< ClientInfo > > RemoteServer::getClients ( )
static

Definition at line 227 of file Server.cxx.

References mAvailableClients, SAL_INFO, sDataMutex, and spServer.

Referenced by sd::ClientBox::populateEntries().

◆ handleAcceptedConnection()

void RemoteServer::handleAcceptedConnection ( BufferedStreamSocket pSocket)
private

◆ presentationStarted()

void RemoteServer::presentationStarted ( const css::uno::Reference< css::presentation::XSlideShowController > &  rController)
static

Definition at line 195 of file Server.cxx.

References sCommunicators, sDataMutex, and spServer.

◆ presentationStopped()

void RemoteServer::presentationStopped ( )
static

Definition at line 206 of file Server.cxx.

References sCommunicators, sDataMutex, and spServer.

◆ removeCommunicator()

void RemoteServer::removeCommunicator ( Communicator const *  pCommunicator)
static

Definition at line 217 of file Server.cxx.

References sCommunicators, sDataMutex, and spServer.

Referenced by sd::Communicator::execute().

◆ restoreDiscoverable()

void RemoteServer::restoreDiscoverable ( )
static

restore the state of discoverability from before ensureDiscoverable

Definition at line 368 of file Server.cxx.

References sd::BluetoothServer::restoreDiscoverable().

Referenced by sd::RemoteDialog::run().

◆ setup()

void RemoteServer::setup ( )
static

Member Data Documentation

◆ mAvailableClients

::std::vector< std::shared_ptr< ClientInfoInternal > > sd::RemoteServer::mAvailableClients
private

Definition at line 82 of file RemoteServer.hxx.

Referenced by connectClient(), getClients(), and handleAcceptedConnection().

◆ mSocket

osl::AcceptorSocket sd::RemoteServer::mSocket
private

Definition at line 80 of file RemoteServer.hxx.

Referenced by execute().

◆ sCommunicators

std::vector< Communicator * > sd::RemoteServer::sCommunicators
private

◆ sDataMutex

osl::Mutex sd::RemoteServer::sDataMutex
staticprivate

◆ spServer

RemoteServer * sd::RemoteServer::spServer = nullptr
staticprivate

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