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

#include <myucp_datasupplier.hxx>

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

Public Member Functions

 DataSupplier (const rtl::Reference< ODocumentContainer > &rxContent)
 
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
 
- 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 Attributes

osl::Mutex m_aMutex
 
std::vector< std::unique_ptr< ResultListEntry > > m_aResults
 
rtl::Reference< ODocumentContainerm_xContent
 
bool m_bCountFinal = false
 

Detailed Description

Definition at line 44 of file myucp_datasupplier.hxx.

Constructor & Destructor Documentation

◆ DataSupplier()

DataSupplier::DataSupplier ( const rtl::Reference< ODocumentContainer > &  rxContent)
explicit

Definition at line 38 of file myucp_datasupplier.cxx.

References m_xContent.

◆ ~DataSupplier()

DataSupplier::~DataSupplier ( )
overridevirtual

Definition at line 43 of file myucp_datasupplier.cxx.

Member Function Documentation

◆ close()

void DataSupplier::close ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 278 of file myucp_datasupplier.cxx.

◆ currentCount()

sal_uInt32 DataSupplier::currentCount ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 232 of file myucp_datasupplier.cxx.

References m_aResults.

◆ getResult()

bool DataSupplier::getResult ( sal_uInt32  nIndex)
overridevirtual

◆ isCountFinal()

bool DataSupplier::isCountFinal ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 237 of file myucp_datasupplier.cxx.

References m_bCountFinal.

◆ queryContent()

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

◆ queryContentIdentifier()

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

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 77 of file myucp_datasupplier.cxx.

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

Referenced by queryContent().

◆ queryContentIdentifierString()

OUString DataSupplier::queryContentIdentifierString ( sal_uInt32  nIndex)
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 47 of file myucp_datasupplier.cxx.

References getResult(), m_aMutex, m_aResults, m_xContent, and nIndex.

Referenced by queryContentIdentifier().

◆ queryPropertyValues()

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

◆ releasePropertyValues()

void DataSupplier::releasePropertyValues ( sal_uInt32  nIndex)
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 270 of file myucp_datasupplier.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 282 of file myucp_datasupplier.cxx.

Member Data Documentation

◆ m_aMutex

osl::Mutex dbaccess::DataSupplier::m_aMutex
private

◆ m_aResults

std::vector<std::unique_ptr<ResultListEntry> > dbaccess::DataSupplier::m_aResults
private

◆ m_bCountFinal

bool dbaccess::DataSupplier::m_bCountFinal = false
private

Definition at line 49 of file myucp_datasupplier.hxx.

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

◆ m_xContent

rtl::Reference<ODocumentContainer> dbaccess::DataSupplier::m_xContent
private

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