LibreOffice Module sd (master) 1
|
#include <RemoteServer.hxx>
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 RemoteServer * | spServer = 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 |
Definition at line 50 of file RemoteServer.hxx.
|
private |
|
overrideprivatevirtual |
Definition at line 72 of file Server.cxx.
|
static |
Definition at line 259 of file Server.cxx.
References Any, comphelper::findValue(), salhelper::Thread::launch(), mAvailableClients, sd::ClientInfo::mName, sd::ClientInfoInternal::mPin, sd::ClientInfoInternal::mpStreamSocket, SAL_INFO, sCommunicators, sDataMutex, and spServer.
Referenced by handleAcceptedConnection(), and IMPL_LINK_NOARG().
|
static |
Definition at line 312 of file Server.cxx.
References SAL_INFO.
Referenced by sd::IMPL_LINK_NOARG().
|
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().
|
overrideprivatevirtual |
Implements salhelper::Thread.
Definition at line 76 of file Server.cxx.
References handleAcceptedConnection(), mSocket, PORT, SAL_INFO, SAL_WARN, and spServer.
|
static |
Definition at line 227 of file Server.cxx.
References mAvailableClients, SAL_INFO, sDataMutex, and spServer.
Referenced by sd::ClientBox::populateEntries().
|
private |
Definition at line 110 of file Server.cxx.
References aName, Any, connectClient(), sd::BufferedStreamSocket::getPeerAddr(), mAvailableClients, sd::BufferedStreamSocket::readLine(), SAL_INFO, sDataMutex, and sd::BufferedStreamSocket::write().
Referenced by execute().
|
static |
Definition at line 195 of file Server.cxx.
References sCommunicators, sDataMutex, and spServer.
|
static |
Definition at line 206 of file Server.cxx.
References sCommunicators, sDataMutex, and spServer.
|
static |
Definition at line 217 of file Server.cxx.
References sCommunicators, sDataMutex, and spServer.
Referenced by sd::Communicator::execute().
|
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().
|
static |
Definition at line 182 of file Server.cxx.
References salhelper::Thread::launch(), RemoteServer(), sCommunicators, sd::BluetoothServer::setup(), and spServer.
|
private |
Definition at line 82 of file RemoteServer.hxx.
Referenced by connectClient(), getClients(), and handleAcceptedConnection().
|
private |
Definition at line 80 of file RemoteServer.hxx.
Referenced by execute().
|
private |
Definition at line 79 of file RemoteServer.hxx.
Referenced by connectClient(), presentationStarted(), presentationStopped(), removeCommunicator(), and setup().
|
staticprivate |
Definition at line 78 of file RemoteServer.hxx.
Referenced by connectClient(), getClients(), handleAcceptedConnection(), presentationStarted(), presentationStopped(), and removeCommunicator().
|
staticprivate |
Definition at line 77 of file RemoteServer.hxx.
Referenced by connectClient(), execute(), getClients(), presentationStarted(), presentationStopped(), removeCommunicator(), and setup().