LibreOffice Module sw (master) 1
|
class to provide creation of a thread to retrieve an input stream given by a URL and to consume the retrieved input stream. More...
#include <retrieveinputstreamconsumer.hxx>
Public Member Functions | |
SwAsyncRetrieveInputStreamThreadConsumer (SwGrfNode &rGrfNode) | |
~SwAsyncRetrieveInputStreamThreadConsumer () COVERITY_NOEXCEPT_FALSE | |
void | CreateThread (const OUString &rURL, const OUString &rReferer) |
method to create thread More... | |
void | ApplyInputStream (css::uno::Reference< css::io::XInputStream > const &xInputStream, const bool bIsStreamReadOnly) |
method called to provide the retrieved input stream to the thread Consumer More... | |
Private Attributes | |
SwGrfNode & | mrGrfNode |
oslInterlockedCount | mnThreadID |
class to provide creation of a thread to retrieve an input stream given by a URL and to consume the retrieved input stream.
#i73788#
Definition at line 35 of file retrieveinputstreamconsumer.hxx.
SwAsyncRetrieveInputStreamThreadConsumer::SwAsyncRetrieveInputStreamThreadConsumer | ( | SwGrfNode & | rGrfNode | ) |
Definition at line 30 of file retrieveinputstreamconsumer.cxx.
SwAsyncRetrieveInputStreamThreadConsumer::~SwAsyncRetrieveInputStreamThreadConsumer | ( | ) |
Definition at line 37 of file retrieveinputstreamconsumer.cxx.
References SwThreadManager::GetThreadManager(), mnThreadID, and SwThreadManager::RemoveThread().
void SwAsyncRetrieveInputStreamThreadConsumer::ApplyInputStream | ( | css::uno::Reference< css::io::XInputStream > const & | xInputStream, |
const bool | bIsStreamReadOnly | ||
) |
method called to provide the retrieved input stream to the thread Consumer
Definition at line 56 of file retrieveinputstreamconsumer.cxx.
References SwGrfNode::ApplyInputStream(), and mrGrfNode.
void SwAsyncRetrieveInputStreamThreadConsumer::CreateThread | ( | const OUString & | rURL, |
const OUString & | rReferer | ||
) |
method to create thread
Definition at line 42 of file retrieveinputstreamconsumer.cxx.
References SwThreadManager::AddThread(), SwAsyncRetrieveInputStreamThread::createThread(), SwRetrievedInputStreamDataManager::GetManager(), SwGrfNode::GetThreadConsumer(), SwThreadManager::GetThreadManager(), mnThreadID, mrGrfNode, and SwRetrievedInputStreamDataManager::ReserveData().
|
private |
Definition at line 55 of file retrieveinputstreamconsumer.hxx.
Referenced by CreateThread(), and ~SwAsyncRetrieveInputStreamThreadConsumer().
|
private |
Definition at line 54 of file retrieveinputstreamconsumer.hxx.
Referenced by ApplyInputStream(), and CreateThread().