LibreOffice Module ucb (master)  1
Classes | Public 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 (const css::uno::Reference< css::uno::XComponentContext > &rxContext, 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
 

Private Attributes

osl::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 31 of file pkgdatasupplier.hxx.

Constructor & Destructor Documentation

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

Definition at line 56 of file pkgdatasupplier.cxx.

Member Function Documentation

OUString DataSupplier::assembleChildURL ( const OUString &  aName)

Definition at line 378 of file pkgdatasupplier.cxx.

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

Referenced by getResult(), and totalCount().

void DataSupplier::close ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 365 of file pkgdatasupplier.cxx.

sal_uInt32 DataSupplier::currentCount ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 309 of file pkgdatasupplier.cxx.

References m_aResults.

bool DataSupplier::getResult ( sal_uInt32  nIndex)
overridevirtual
bool DataSupplier::isCountFinal ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 316 of file pkgdatasupplier.cxx.

References m_bCountFinal.

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

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 87 of file pkgdatasupplier.cxx.

References aId, m_aMutex, m_aResults, queryContentIdentifierString(), and xId.

Referenced by queryContent().

OUString DataSupplier::queryContentIdentifierString ( sal_uInt32  nIndex)
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 62 of file pkgdatasupplier.cxx.

References aId, getResult(), m_aMutex, and m_aResults.

Referenced by queryContentIdentifier(), and queryPropertyValues().

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

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 355 of file pkgdatasupplier.cxx.

References m_aMutex, m_aResults, and xRow.

sal_uInt32 DataSupplier::totalCount ( )
overridevirtual
void DataSupplier::validate ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 371 of file pkgdatasupplier.cxx.

References m_bThrowException.

Member Data Documentation

osl::Mutex package_ucp::DataSupplier::m_aMutex
private
std::vector< ResultListEntry > package_ucp::DataSupplier::m_aResults
private
bool package_ucp::DataSupplier::m_bCountFinal
private

Definition at line 75 of file pkgdatasupplier.hxx.

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

bool package_ucp::DataSupplier::m_bThrowException
private

Definition at line 76 of file pkgdatasupplier.hxx.

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

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

Definition at line 72 of file pkgdatasupplier.hxx.

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

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

Definition at line 73 of file pkgdatasupplier.hxx.

Referenced by queryPropertyValues().

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

Definition at line 74 of file pkgdatasupplier.hxx.

Referenced by getResult(), and totalCount().


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