|
LibreOffice Module sd (master) 1
|
#include <Transmitter.hxx>
Public Types | |
| enum | Priority { PRIORITY_LOW = 1 , PRIORITY_HIGH } |
Public Member Functions | |
| Transmitter (::sd::IBluetoothSocket *aSocket) | |
| virtual | ~Transmitter () override |
| void | addMessage (const OString &aMessage, const Priority aPriority) |
| void | notifyFinished () |
Private Member Functions | |
| virtual void SAL_CALL | run () override |
Private Attributes | |
| ::sd::IBluetoothSocket * | pStreamSocket |
| ::osl::Condition | mProcessingRequired |
| ::osl::Mutex | mMutex |
| bool | mFinishRequested |
| Used to indicate that we're done and the transmitter loop should exit. More... | |
| std::queue< OString > | mLowPriority |
Queue for low priority messages. All access must be guarded my mMutex. More... | |
| std::queue< OString > | mHighPriority |
Queue for high priority messages. All access must be guarded my mMutex. More... | |
Definition at line 24 of file Transmitter.hxx.
| Enumerator | |
|---|---|
| PRIORITY_LOW | |
| PRIORITY_HIGH | |
Definition at line 28 of file Transmitter.hxx.
|
explicit |
Definition at line 16 of file Transmitter.cxx.
|
overridevirtual |
Definition at line 64 of file Transmitter.cxx.
| void Transmitter::addMessage | ( | const OString & | aMessage, |
| const Priority | aPriority | ||
| ) |
Definition at line 68 of file Transmitter.cxx.
References mHighPriority, mLowPriority, mMutex, mProcessingRequired, PRIORITY_HIGH, and PRIORITY_LOW.
Referenced by sd::Listener::init(), sd::ImagePreparer::sendNotes(), sd::ImagePreparer::sendPreview(), and sd::Listener::slideTransitionStarted().
| void Transmitter::notifyFinished | ( | ) |
Definition at line 57 of file Transmitter.cxx.
References mFinishRequested, mMutex, and mProcessingRequired.
|
overrideprivatevirtual |
Definition at line 22 of file Transmitter.cxx.
References mFinishRequested, mHighPriority, mLowPriority, mMutex, mProcessingRequired, pStreamSocket, SAL_INFO, and sd::IBluetoothSocket::write().
|
private |
Used to indicate that we're done and the transmitter loop should exit.
All access must be guarded my mMutex.
Definition at line 46 of file Transmitter.hxx.
Referenced by notifyFinished(), and run().
|
private |
Queue for high priority messages. All access must be guarded my mMutex.
Definition at line 50 of file Transmitter.hxx.
Referenced by addMessage(), and run().
|
private |
Queue for low priority messages. All access must be guarded my mMutex.
Definition at line 48 of file Transmitter.hxx.
Referenced by addMessage(), and run().
|
private |
Definition at line 41 of file Transmitter.hxx.
Referenced by addMessage(), notifyFinished(), and run().
|
private |
Definition at line 39 of file Transmitter.hxx.
Referenced by addMessage(), notifyFinished(), and run().
|
private |
Definition at line 37 of file Transmitter.hxx.
Referenced by run().