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

#include <hierarchydatasupplier.hxx>

Inheritance diagram for hierarchy_ucp::HierarchyResultSetDataSupplier:
[legend]
Collaboration diagram for hierarchy_ucp::HierarchyResultSetDataSupplier:
[legend]

Classes

struct  ResultListEntry
 

Public Member Functions

 HierarchyResultSetDataSupplier (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const rtl::Reference< HierarchyContent > &rContent, sal_Int32 nOpenMode)
 
virtual ~HierarchyResultSetDataSupplier () override
 
virtual OUString queryContentIdentifierString (sal_uInt32 nIndex) final 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) final 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 Types

typedef std::vector< std::unique_ptr< ResultListEntry > > ResultList
 

Private Member Functions

bool checkResult (const HierarchyEntryData &rResult)
 
OUString queryContentIdentifierStringImpl (std::unique_lock< std::mutex > &, sal_uInt32 nIndex)
 
bool getResultImpl (std::unique_lock< std::mutex > &, sal_uInt32 nIndex)
 

Private Attributes

std::mutex m_aMutex
 
ResultList m_aResults
 
rtl::Reference< HierarchyContentm_xContent
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
HierarchyEntry m_aFolder
 
HierarchyEntry::iterator m_aIterator
 
sal_Int32 m_nOpenMode
 
bool m_bCountFinal
 

Detailed Description

Definition at line 34 of file hierarchydatasupplier.hxx.

Member Typedef Documentation

◆ ResultList

typedef std::vector< std::unique_ptr<ResultListEntry> > hierarchy_ucp::HierarchyResultSetDataSupplier::ResultList
private

Definition at line 80 of file hierarchydatasupplier.hxx.

Constructor & Destructor Documentation

◆ HierarchyResultSetDataSupplier()

HierarchyResultSetDataSupplier::HierarchyResultSetDataSupplier ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const rtl::Reference< HierarchyContent > &  rContent,
sal_Int32  nOpenMode 
)

Definition at line 39 of file hierarchydatasupplier.cxx.

References get(), getIdentifier(), m_xContent, and m_xContext.

◆ ~HierarchyResultSetDataSupplier()

HierarchyResultSetDataSupplier::~HierarchyResultSetDataSupplier ( )
overridevirtual

Definition at line 54 of file hierarchydatasupplier.cxx.

Member Function Documentation

◆ checkResult()

bool HierarchyResultSetDataSupplier::checkResult ( const HierarchyEntryData rResult)
private

◆ close()

void HierarchyResultSetDataSupplier::close ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 329 of file hierarchydatasupplier.cxx.

◆ currentCount()

sal_uInt32 HierarchyResultSetDataSupplier::currentCount ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 267 of file hierarchydatasupplier.cxx.

References m_aResults.

◆ getResult()

bool HierarchyResultSetDataSupplier::getResult ( sal_uInt32  nIndex)
finaloverridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 165 of file hierarchydatasupplier.cxx.

References getResultImpl(), m_aMutex, and nIndex.

◆ getResultImpl()

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

◆ isCountFinal()

bool HierarchyResultSetDataSupplier::isCountFinal ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 274 of file hierarchydatasupplier.cxx.

References m_bCountFinal.

◆ queryContent()

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

◆ queryContentIdentifier()

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

◆ queryContentIdentifierString()

OUString HierarchyResultSetDataSupplier::queryContentIdentifierString ( sal_uInt32  nIndex)
finaloverridevirtual

◆ queryContentIdentifierStringImpl()

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

◆ queryPropertyValues()

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

◆ releasePropertyValues()

void HierarchyResultSetDataSupplier::releasePropertyValues ( sal_uInt32  nIndex)
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 319 of file hierarchydatasupplier.cxx.

References m_aMutex, m_aResults, and nIndex.

◆ totalCount()

sal_uInt32 HierarchyResultSetDataSupplier::totalCount ( )
overridevirtual

◆ validate()

void HierarchyResultSetDataSupplier::validate ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 335 of file hierarchydatasupplier.cxx.

Member Data Documentation

◆ m_aFolder

HierarchyEntry hierarchy_ucp::HierarchyResultSetDataSupplier::m_aFolder
private

Definition at line 85 of file hierarchydatasupplier.hxx.

Referenced by getResultImpl(), and totalCount().

◆ m_aIterator

HierarchyEntry::iterator hierarchy_ucp::HierarchyResultSetDataSupplier::m_aIterator
private

Definition at line 86 of file hierarchydatasupplier.hxx.

Referenced by getResultImpl(), and totalCount().

◆ m_aMutex

std::mutex hierarchy_ucp::HierarchyResultSetDataSupplier::m_aMutex
private

◆ m_aResults

ResultList hierarchy_ucp::HierarchyResultSetDataSupplier::m_aResults
private

◆ m_bCountFinal

bool hierarchy_ucp::HierarchyResultSetDataSupplier::m_bCountFinal
private

Definition at line 88 of file hierarchydatasupplier.hxx.

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

◆ m_nOpenMode

sal_Int32 hierarchy_ucp::HierarchyResultSetDataSupplier::m_nOpenMode
private

Definition at line 87 of file hierarchydatasupplier.hxx.

Referenced by checkResult().

◆ m_xContent

rtl::Reference< HierarchyContent > hierarchy_ucp::HierarchyResultSetDataSupplier::m_xContent
private

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > hierarchy_ucp::HierarchyResultSetDataSupplier::m_xContext
private

Definition at line 84 of file hierarchydatasupplier.hxx.

Referenced by queryPropertyValues().


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