LibreOffice Module sd (master) 1
|
Class used for communication with one single client, dealing with all tasks specific to this client. More...
#include <Communicator.hxx>
Public Member Functions | |
Communicator (std::unique_ptr< IBluetoothSocket > pSocket) | |
virtual | ~Communicator () override |
void | presentationStarted (const css::uno::Reference< css::presentation::XSlideShowController > &rController) |
void | informListenerDestroyed () |
void | disposeListener () |
void | forceClose () |
Close the underlying socket from another thread to force an early exit / termination. More... | |
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 () |
Private Member Functions | |
void | execute () override |
Private Attributes | |
std::unique_ptr< IBluetoothSocket > | mpSocket |
std::unique_ptr< Transmitter > | pTransmitter |
rtl::Reference< Listener > | mListener |
Additional Inherited Members | |
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) |
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 |
Class used for communication with one single client, dealing with all tasks specific to this client.
Needs to be created, then started using launch(), disposes itself.
Definition at line 31 of file Communicator.hxx.
|
explicit |
Definition at line 32 of file Communicator.cxx.
|
overridevirtual |
Definition at line 38 of file Communicator.cxx.
void Communicator::disposeListener | ( | ) |
|
overrideprivatevirtual |
Implements salhelper::Thread.
Definition at line 51 of file Communicator.cxx.
References aBuffer, aCommand, disposeListener(), mpSocket, OUStringToOString(), presentationStarted(), sd::Transmitter::PRIORITY_HIGH, sd::Transmitter::PRIORITY_LOW, pTransmitter, sd::Receiver::pushCommand(), sd::RemoteServer::removeCommunicator(), SAL_INFO, and xFrame.
void Communicator::forceClose | ( | ) |
Close the underlying socket from another thread to force an early exit / termination.
Definition at line 44 of file Communicator.cxx.
References mpSocket.
void Communicator::informListenerDestroyed | ( | ) |
Definition at line 128 of file Communicator.cxx.
References sd::Transmitter::PRIORITY_HIGH, and pTransmitter.
void Communicator::presentationStarted | ( | const css::uno::Reference< css::presentation::XSlideShowController > & | rController | ) |
Definition at line 138 of file Communicator.cxx.
References mListener, and pTransmitter.
Referenced by execute().
|
private |
Definition at line 48 of file Communicator.hxx.
Referenced by disposeListener(), and presentationStarted().
|
private |
Definition at line 45 of file Communicator.hxx.
Referenced by execute(), and forceClose().
|
private |
Definition at line 47 of file Communicator.hxx.
Referenced by execute(), informListenerDestroyed(), and presentationStarted().