15#include <osl/socket_decl.hxx>
20namespace osl {
class Mutex; }
31 class BufferedStreamSocket;
41 const bool bIsAlreadyAuthorised ) :
48 struct ClientInfoInternal;
58 css::presentation::XSlideShowController > &rController );
64 std::u16string_view aPin );
[A wrapper for an osl StreamSocket to allow reading lines.
Class used for communication with one single client, dealing with all tasks specific to this client.
static SD_DLLPUBLIC bool connectClient(const std::shared_ptr< ClientInfo > &pClient, std::u16string_view aPin)
static RemoteServer * spServer
void handleAcceptedConnection(BufferedStreamSocket *pSocket)
static SD_DLLPUBLIC void restoreDiscoverable()
restore the state of discoverability from before ensureDiscoverable
static void presentationStopped()
osl::AcceptorSocket mSocket
static ::std::vector< Communicator * > sCommunicators
static SD_DLLPUBLIC std::vector< std::shared_ptr< ClientInfo > > getClients()
static SD_DLLPUBLIC void deauthoriseClient(const std::shared_ptr< ClientInfo > &pClient)
::std::vector< std::shared_ptr< ClientInfoInternal > > mAvailableClients
static void removeCommunicator(Communicator const *pCommunicator)
virtual ~RemoteServer() override
static SD_DLLPUBLIC void ensureDiscoverable()
ensure that discoverability (eg. for Bluetooth) is enabled
static void presentationStarted(const css::uno::Reference< css::presentation::XSlideShowController > &rController)
bool mbIsAlreadyAuthorised
ClientInfo(OUString aName, const bool bIsAlreadyAuthorised)