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

#include <pkgdatasupplier.hxx>

Inheritance diagram for package_ucp::DataSupplier:
[legend]
Collaboration diagram for package_ucp::DataSupplier:
[legend]

Classes

struct  ResultListEntry
 

Public Member Functions

 DataSupplier (css::uno::Reference< css::uno::XComponentContext > xContext, const rtl::Reference< Content > &rContent)
 
virtual ~DataSupplier () 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
 
OUString assembleChildURL (const OUString &aName)
 
- 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 getResultImpl (std::unique_lock< std::mutex > &, sal_uInt32 nIndex)
 
OUString queryContentIdentifierStringImpl (std::unique_lock< std::mutex > &, sal_uInt32 nIndex)
 
css::uno::Reference< css::ucb::XContentIdentifier > queryContentIdentifierImpl (std::unique_lock< std::mutex > &, 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
 
css::uno::Reference< css::container::XEnumeration > m_xFolderEnum
 
bool m_bCountFinal
 
bool m_bThrowException
 

Detailed Description

Definition at line 33 of file pkgdatasupplier.hxx.

Constructor & Destructor Documentation

◆ DataSupplier()

package_ucp::DataSupplier::DataSupplier ( css::uno::Reference< css::uno::XComponentContext >  xContext,
const rtl::Reference< Content > &  rContent 
)

◆ ~DataSupplier()

DataSupplier::~DataSupplier ( )
overridevirtual

Definition at line 57 of file pkgdatasupplier.cxx.

Member Function Documentation

◆ assembleChildURL()

OUString DataSupplier::assembleChildURL ( const OUString &  aName)

Definition at line 394 of file pkgdatasupplier.cxx.

References aName, aURL, ucb_impl::urihelper::encodeSegment(), and m_xContent.

Referenced by getResultImpl(), and totalCount().

◆ close()

void DataSupplier::close ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 381 of file pkgdatasupplier.cxx.

◆ currentCount()

sal_uInt32 DataSupplier::currentCount ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 325 of file pkgdatasupplier.cxx.

References m_aResults.

◆ getResult()

bool DataSupplier::getResult ( sal_uInt32  nIndex)
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 162 of file pkgdatasupplier.cxx.

References getResultImpl(), m_aMutex, and nIndex.

◆ getResultImpl()

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

◆ isCountFinal()

bool DataSupplier::isCountFinal ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 332 of file pkgdatasupplier.cxx.

References m_bCountFinal.

◆ queryContent()

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

◆ queryContentIdentifier()

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

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 92 of file pkgdatasupplier.cxx.

References m_aMutex, nIndex, and queryContentIdentifierImpl().

◆ queryContentIdentifierImpl()

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

Definition at line 99 of file pkgdatasupplier.cxx.

References m_aResults, nIndex, and queryContentIdentifierStringImpl().

Referenced by queryContent(), and queryContentIdentifier().

◆ queryContentIdentifierString()

OUString DataSupplier::queryContentIdentifierString ( sal_uInt32  nIndex)
overridevirtual

◆ queryContentIdentifierStringImpl()

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

◆ queryPropertyValues()

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

◆ releasePropertyValues()

void DataSupplier::releasePropertyValues ( sal_uInt32  nIndex)
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 371 of file pkgdatasupplier.cxx.

References m_aMutex, m_aResults, and nIndex.

◆ totalCount()

sal_uInt32 DataSupplier::totalCount ( )
overridevirtual

◆ validate()

void DataSupplier::validate ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 387 of file pkgdatasupplier.cxx.

References m_bThrowException.

Member Data Documentation

◆ m_aMutex

std::mutex package_ucp::DataSupplier::m_aMutex
private

◆ m_aResults

std::vector< ResultListEntry > package_ucp::DataSupplier::m_aResults
private

◆ m_bCountFinal

bool package_ucp::DataSupplier::m_bCountFinal
private

Definition at line 81 of file pkgdatasupplier.hxx.

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

◆ m_bThrowException

bool package_ucp::DataSupplier::m_bThrowException
private

Definition at line 82 of file pkgdatasupplier.hxx.

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

◆ m_xContent

rtl::Reference< Content > package_ucp::DataSupplier::m_xContent
private

Definition at line 78 of file pkgdatasupplier.hxx.

Referenced by assembleChildURL(), queryContent(), and queryPropertyValues().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > package_ucp::DataSupplier::m_xContext
private

Definition at line 79 of file pkgdatasupplier.hxx.

Referenced by queryPropertyValues().

◆ m_xFolderEnum

css::uno::Reference< css::container::XEnumeration > package_ucp::DataSupplier::m_xFolderEnum
private

Definition at line 80 of file pkgdatasupplier.hxx.

Referenced by getResultImpl(), and totalCount().


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