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

#include <dataprovider.hxx>

Inheritance diagram for sc::CSVFetchThread:
[legend]
Collaboration diagram for sc::CSVFetchThread:
[legend]

Public Member Functions

 CSVFetchThread (ScDocument &rDoc, const OUString &, std::function< void()> aImportFinishedHdl, const std::vector< std::shared_ptr< sc::DataTransformation >> &mrDataTransformations)
 
virtual ~CSVFetchThread () override
 
void RequestTerminate ()
 
bool IsRequestedTerminate ()
 
void Terminate ()
 
void EndThread ()
 
virtual void execute () override
 
- 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 Attributes

ScDocumentmrDocument
 
OUString maURL
 
bool mbTerminate
 
osl::Mutex maMtxTerminate
 
orcus::csv::parser_config maConfig
 
std::vector< std::shared_ptr< sc::DataTransformation > > maDataTransformations
 
std::function< void()> maImportFinishedHdl
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::Thread
static voidoperator new (std::size_t size)
 
static void operator delete (void *pointer)
 
- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static voidoperator new (std::size_t nSize)
 
static voidoperator 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
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 35 of file dataprovider.hxx.

Constructor & Destructor Documentation

sc::CSVFetchThread::CSVFetchThread ( ScDocument rDoc,
const OUString &  mrURL,
std::function< void()>  aImportFinishedHdl,
const std::vector< std::shared_ptr< sc::DataTransformation >> &  mrDataTransformations 
)

Definition at line 67 of file csvdataprovider.cxx.

References maConfig.

sc::CSVFetchThread::~CSVFetchThread ( )
overridevirtual

Definition at line 81 of file csvdataprovider.cxx.

Member Function Documentation

void sc::CSVFetchThread::EndThread ( )

Definition at line 97 of file csvdataprovider.cxx.

References RequestTerminate().

void sc::CSVFetchThread::execute ( )
overridevirtual
bool sc::CSVFetchThread::IsRequestedTerminate ( )

Definition at line 85 of file csvdataprovider.cxx.

References maMtxTerminate, and mbTerminate.

void sc::CSVFetchThread::RequestTerminate ( )

Definition at line 91 of file csvdataprovider.cxx.

References maMtxTerminate, and mbTerminate.

Referenced by EndThread().

void sc::CSVFetchThread::Terminate ( )

Member Data Documentation

orcus::csv::parser_config sc::CSVFetchThread::maConfig
private

Definition at line 43 of file dataprovider.hxx.

Referenced by CSVFetchThread(), and execute().

std::vector<std::shared_ptr<sc::DataTransformation> > sc::CSVFetchThread::maDataTransformations
private

Definition at line 45 of file dataprovider.hxx.

Referenced by execute().

std::function<void()> sc::CSVFetchThread::maImportFinishedHdl
private

Definition at line 47 of file dataprovider.hxx.

Referenced by execute().

osl::Mutex sc::CSVFetchThread::maMtxTerminate
private

Definition at line 41 of file dataprovider.hxx.

Referenced by IsRequestedTerminate(), and RequestTerminate().

OUString sc::CSVFetchThread::maURL
private

Definition at line 38 of file dataprovider.hxx.

Referenced by execute().

bool sc::CSVFetchThread::mbTerminate
private

Definition at line 40 of file dataprovider.hxx.

Referenced by execute(), IsRequestedTerminate(), and RequestTerminate().

ScDocument& sc::CSVFetchThread::mrDocument
private

Definition at line 37 of file dataprovider.hxx.

Referenced by execute().


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