LibreOffice Module sw (master)
1
|
Singleton class to manage retrieved input stream data in Writer. More...
#include <retrievedinputstreamdata.hxx>
Classes | |
struct | tData |
Public Types | |
typedef sal_uInt64 | tDataKey |
Public Member Functions | |
tDataKey | ReserveData (std::weak_ptr< SwAsyncRetrieveInputStreamThreadConsumer > const &pThreadConsumer) |
void | PushData (const tDataKey nDataKey, css::uno::Reference< css::io::XInputStream > const &xInputStream, const bool bIsStreamReadOnly) |
bool | PopData (const tDataKey nDataKey, tData &rData) |
DECL_LINK (LinkedInputStreamReady, void *, void) | |
Static Public Member Functions | |
static SwRetrievedInputStreamDataManager & | GetManager () |
Private Attributes | |
osl::Mutex | maMutex |
std::map< tDataKey, tData > | maInputStreamData |
Static Private Attributes | |
static tDataKey | snNextKeyValue = 1 |
Singleton class to manage retrieved input stream data in Writer.
OD 2007-01-29 #i73788# The instance of this class provides data container for retrieved input stream data. The data container is accessed via a key, which the data manager provides on creation of the data container. When a certain data container is filled with data, an user event is submitted to trigger the processing of with data.
Definition at line 43 of file retrievedinputstreamdata.hxx.
typedef sal_uInt64 SwRetrievedInputStreamDataManager::tDataKey |
Definition at line 47 of file retrievedinputstreamdata.hxx.
|
static |
Definition at line 36 of file retrievedinputstreamdata.cxx.
References sw::proofreadingiterator::get().
Referenced by SwAsyncRetrieveInputStreamThreadConsumer::CreateThread(), IMPL_LINK(), and SwAsyncRetrieveInputStreamThread::threadFunction().
Definition at line 95 of file retrievedinputstreamdata.cxx.
References maInputStreamData, maMutex, SwRetrievedInputStreamDataManager::tData::mbIsStreamReadOnly, SwRetrievedInputStreamDataManager::tData::mpThreadConsumer, and SwRetrievedInputStreamDataManager::tData::mxInputStream.
Referenced by IMPL_LINK().
void SwRetrievedInputStreamDataManager::PushData | ( | const tDataKey | nDataKey, |
css::uno::Reference< css::io::XInputStream > const & | xInputStream, | ||
const bool | bIsStreamReadOnly | ||
) |
Definition at line 64 of file retrievedinputstreamdata.cxx.
References GetpApp(), LINK, maInputStreamData, maMutex, and Application::PostUserEvent().
Referenced by SwAsyncRetrieveInputStreamThread::threadFunction().
SwRetrievedInputStreamDataManager::tDataKey SwRetrievedInputStreamDataManager::ReserveData | ( | std::weak_ptr< SwAsyncRetrieveInputStreamThreadConsumer > const & | pThreadConsumer | ) |
Definition at line 41 of file retrievedinputstreamdata.cxx.
References maInputStreamData, maMutex, SAL_MAX_UINT64, and snNextKeyValue.
Referenced by SwAsyncRetrieveInputStreamThreadConsumer::CreateThread().
Definition at line 85 of file retrievedinputstreamdata.hxx.
Referenced by PopData(), PushData(), and ReserveData().
|
private |
Definition at line 83 of file retrievedinputstreamdata.hxx.
Referenced by PopData(), PushData(), and ReserveData().
|
staticprivate |
Definition at line 81 of file retrievedinputstreamdata.hxx.
Referenced by ReserveData().