LibreOffice Module ucb (master) 1
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
tdoc_ucp::ResultSetDataSupplier Class Referencefinal

#include <tdoc_datasupplier.hxx>

Inheritance diagram for tdoc_ucp::ResultSetDataSupplier:
[legend]
Collaboration diagram for tdoc_ucp::ResultSetDataSupplier:
[legend]

Classes

struct  ResultListEntry
 

Public Member Functions

 ResultSetDataSupplier (css::uno::Reference< css::uno::XComponentContext > xContext, rtl::Reference< Content > xContent)
 
virtual ~ResultSetDataSupplier () override
 
virtual OUString queryContentIdentifierString (sal_uInt32 nIndex) override
 
virtual css::uno::Reference< css::ucb::XContentIdentifier > queryContentIdentifier (sal_uInt32 nIndex) override
 
virtual css::uno::Reference< css::ucb::XContent > queryContent (sal_uInt32 nIndex) override
 
virtual bool getResult (sal_uInt32 nIndex) override
 
virtual sal_uInt32 totalCount () override
 
virtual sal_uInt32 currentCount () override
 
virtual bool isCountFinal () override
 
virtual css::uno::Reference< css::sdbc::XRow > queryPropertyValues (sal_uInt32 nIndex) override
 
virtual void releasePropertyValues (sal_uInt32 nIndex) override
 
virtual void close () override
 
virtual void validate () override
 
- Public Member Functions inherited from ucbhelper::ResultSetDataSupplier
 ResultSetDataSupplier ()
 
rtl::Reference< ResultSetgetResultSet () const
 
virtual OUString queryContentIdentifierString (sal_uInt32 nIndex)=0
 
virtual css::uno::Reference< css::ucb::XContentIdentifier > queryContentIdentifier (sal_uInt32 nIndex)=0
 
virtual css::uno::Reference< css::ucb::XContent > queryContent (sal_uInt32 nIndex)=0
 
virtual bool getResult (sal_uInt32 nIndex)=0
 
virtual sal_uInt32 totalCount ()=0
 
virtual sal_uInt32 currentCount ()=0
 
virtual bool isCountFinal ()=0
 
virtual css::uno::Reference< css::sdbc::XRow > queryPropertyValues (sal_uInt32 nIndex)=0
 
virtual void releasePropertyValues (sal_uInt32 nIndex)=0
 
virtual void close ()=0
 
virtual void validate ()=0
 

Private Member Functions

bool queryNamesOfChildren (std::unique_lock< std::mutex > &rGuard)
 
OUString assembleChildURL (std::u16string_view aName)
 
OUString queryContentIdentifierStringImpl (std::unique_lock< std::mutex > &rGuard, sal_uInt32 nIndex)
 
css::uno::Reference< css::ucb::XContentIdentifier > queryContentIdentifierImpl (std::unique_lock< std::mutex > &rGuard, sal_uInt32 nIndex)
 
bool getResultImpl (std::unique_lock< std::mutex > &rGuard, sal_uInt32 nIndex)
 

Private Attributes

std::mutex m_aMutex
 
std::vector< ResultListEntrym_aResults
 
rtl::Reference< Contentm_xContent
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
std::optional< css::uno::Sequence< OUString > > m_xNamesOfChildren
 
bool m_bCountFinal
 
bool m_bThrowException
 

Detailed Description

Definition at line 35 of file tdoc_datasupplier.hxx.

Constructor & Destructor Documentation

◆ ResultSetDataSupplier()

tdoc_ucp::ResultSetDataSupplier::ResultSetDataSupplier ( css::uno::Reference< css::uno::XComponentContext >  xContext,
rtl::Reference< Content xContent 
)

◆ ~ResultSetDataSupplier()

ResultSetDataSupplier::~ResultSetDataSupplier ( )
overridevirtual

Definition at line 67 of file tdoc_datasupplier.cxx.

Member Function Documentation

◆ assembleChildURL()

OUString ResultSetDataSupplier::assembleChildURL ( std::u16string_view  aName)
private

Definition at line 381 of file tdoc_datasupplier.cxx.

References aName, aURL, and m_xContent.

Referenced by getResultImpl(), and totalCount().

◆ close()

void ResultSetDataSupplier::close ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 347 of file tdoc_datasupplier.cxx.

◆ currentCount()

sal_uInt32 ResultSetDataSupplier::currentCount ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 296 of file tdoc_datasupplier.cxx.

References m_aResults.

◆ getResult()

bool ResultSetDataSupplier::getResult ( sal_uInt32  nIndex)
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 170 of file tdoc_datasupplier.cxx.

References getResultImpl(), m_aMutex, and nIndex.

Referenced by queryContentIdentifierStringImpl().

◆ getResultImpl()

bool ResultSetDataSupplier::getResultImpl ( std::unique_lock< std::mutex > &  rGuard,
sal_uInt32  nIndex 
)
private

◆ isCountFinal()

bool ResultSetDataSupplier::isCountFinal ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 302 of file tdoc_datasupplier.cxx.

References m_bCountFinal.

◆ queryContent()

uno::Reference< ucb::XContent > ResultSetDataSupplier::queryContent ( sal_uInt32  nIndex)
overridevirtual

◆ queryContentIdentifier()

uno::Reference< ucb::XContentIdentifier > ResultSetDataSupplier::queryContentIdentifier ( sal_uInt32  nIndex)
overridevirtual

◆ queryContentIdentifierImpl()

uno::Reference< ucb::XContentIdentifier > ResultSetDataSupplier::queryContentIdentifierImpl ( std::unique_lock< std::mutex > &  rGuard,
sal_uInt32  nIndex 
)
private

◆ queryContentIdentifierString()

OUString ResultSetDataSupplier::queryContentIdentifierString ( sal_uInt32  nIndex)
overridevirtual

◆ queryContentIdentifierStringImpl()

OUString ResultSetDataSupplier::queryContentIdentifierStringImpl ( std::unique_lock< std::mutex > &  rGuard,
sal_uInt32  nIndex 
)
private

◆ queryNamesOfChildren()

bool ResultSetDataSupplier::queryNamesOfChildren ( std::unique_lock< std::mutex > &  rGuard)
private

Definition at line 358 of file tdoc_datasupplier.cxx.

References m_bThrowException, m_xContent, and m_xNamesOfChildren.

Referenced by getResultImpl(), and totalCount().

◆ queryPropertyValues()

uno::Reference< sdbc::XRow > ResultSetDataSupplier::queryPropertyValues ( sal_uInt32  nIndex)
overridevirtual

◆ releasePropertyValues()

void ResultSetDataSupplier::releasePropertyValues ( sal_uInt32  nIndex)
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 338 of file tdoc_datasupplier.cxx.

References m_aMutex, m_aResults, and nIndex.

◆ totalCount()

sal_uInt32 ResultSetDataSupplier::totalCount ( )
overridevirtual

◆ validate()

void ResultSetDataSupplier::validate ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 352 of file tdoc_datasupplier.cxx.

References m_bThrowException.

Member Data Documentation

◆ m_aMutex

std::mutex tdoc_ucp::ResultSetDataSupplier::m_aMutex
private

◆ m_aResults

std::vector< ResultListEntry > tdoc_ucp::ResultSetDataSupplier::m_aResults
private

◆ m_bCountFinal

bool tdoc_ucp::ResultSetDataSupplier::m_bCountFinal
private

Definition at line 52 of file tdoc_datasupplier.hxx.

Referenced by getResultImpl(), isCountFinal(), and totalCount().

◆ m_bThrowException

bool tdoc_ucp::ResultSetDataSupplier::m_bThrowException
private

Definition at line 53 of file tdoc_datasupplier.hxx.

Referenced by queryNamesOfChildren(), and validate().

◆ m_xContent

rtl::Reference< Content > tdoc_ucp::ResultSetDataSupplier::m_xContent
private

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > tdoc_ucp::ResultSetDataSupplier::m_xContext
private

Definition at line 50 of file tdoc_datasupplier.hxx.

Referenced by queryPropertyValues().

◆ m_xNamesOfChildren

std::optional<css::uno::Sequence< OUString > > tdoc_ucp::ResultSetDataSupplier::m_xNamesOfChildren
private

Definition at line 51 of file tdoc_datasupplier.hxx.

Referenced by getResultImpl(), queryNamesOfChildren(), and totalCount().


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