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

#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 ()
 
OUString assembleChildURL (std::u16string_view aName)
 

Private Attributes

osl::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 34 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 367 of file tdoc_datasupplier.cxx.

References aName, aURL, and m_xContent.

Referenced by getResult(), and totalCount().

◆ close()

void ResultSetDataSupplier::close ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 331 of file tdoc_datasupplier.cxx.

◆ currentCount()

sal_uInt32 ResultSetDataSupplier::currentCount ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 280 of file tdoc_datasupplier.cxx.

References m_aResults.

◆ getResult()

bool ResultSetDataSupplier::getResult ( sal_uInt32  nIndex)
overridevirtual

◆ isCountFinal()

bool ResultSetDataSupplier::isCountFinal ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 286 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

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 97 of file tdoc_datasupplier.cxx.

References m_aMutex, m_aResults, nIndex, and queryContentIdentifierString().

Referenced by queryContent().

◆ queryContentIdentifierString()

OUString ResultSetDataSupplier::queryContentIdentifierString ( sal_uInt32  nIndex)
overridevirtual

◆ queryNamesOfChildren()

bool ResultSetDataSupplier::queryNamesOfChildren ( )
private

Definition at line 342 of file tdoc_datasupplier.cxx.

References m_aMutex, m_bThrowException, m_xContent, and m_xNamesOfChildren.

Referenced by getResult(), 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 322 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 336 of file tdoc_datasupplier.cxx.

References m_bThrowException.

Member Data Documentation

◆ m_aMutex

osl::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 51 of file tdoc_datasupplier.hxx.

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

◆ m_bThrowException

bool tdoc_ucp::ResultSetDataSupplier::m_bThrowException
private

Definition at line 52 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 49 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 50 of file tdoc_datasupplier.hxx.

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


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