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

Class used for communication with one single client, dealing with all tasks specific to this client. More...

#include <Communicator.hxx>

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

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< IBluetoothSocketmpSocket
 
std::unique_ptr< TransmitterpTransmitter
 
rtl::Reference< ListenermListener
 

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Communicator()

Communicator::Communicator ( std::unique_ptr< IBluetoothSocket pSocket)
explicit

Definition at line 32 of file Communicator.cxx.

◆ ~Communicator()

Communicator::~Communicator ( )
overridevirtual

Definition at line 38 of file Communicator.cxx.

Member Function Documentation

◆ disposeListener()

void Communicator::disposeListener ( )

Definition at line 148 of file Communicator.cxx.

References mListener.

Referenced by execute().

◆ execute()

void Communicator::execute ( )
overrideprivatevirtual

◆ forceClose()

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.

◆ informListenerDestroyed()

void Communicator::informListenerDestroyed ( )

Definition at line 128 of file Communicator.cxx.

References sd::Transmitter::PRIORITY_HIGH, and pTransmitter.

◆ presentationStarted()

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().

Member Data Documentation

◆ mListener

rtl::Reference<Listener> sd::Communicator::mListener
private

Definition at line 48 of file Communicator.hxx.

Referenced by disposeListener(), and presentationStarted().

◆ mpSocket

std::unique_ptr<IBluetoothSocket> sd::Communicator::mpSocket
private

Definition at line 45 of file Communicator.hxx.

Referenced by execute(), and forceClose().

◆ pTransmitter

std::unique_ptr<Transmitter> sd::Communicator::pTransmitter
private

Definition at line 47 of file Communicator.hxx.

Referenced by execute(), informListenerDestroyed(), and presentationStarted().


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