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

#include <webdavdatasupplier.hxx>

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

Classes

struct  ResultListEntry
 

Public Member Functions

 DataSupplier (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const rtl::Reference< Content > &rContent, sal_Int32 nOpenMode)
 
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 Types

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

Private Member Functions

bool getData ()
 

Private Attributes

osl::Mutex m_aMutex
 
ResultList m_Results
 
rtl::Reference< Contentm_xContent
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
sal_Int32 m_nOpenMode
 
bool m_bCountFinal
 
bool m_bThrowException
 

Detailed Description

Definition at line 36 of file webdavdatasupplier.hxx.

Member Typedef Documentation

◆ ResultList

typedef std::vector<std::unique_ptr<ResultListEntry> > http_dav_ucp::DataSupplier::ResultList
private

Definition at line 79 of file webdavdatasupplier.hxx.

Constructor & Destructor Documentation

◆ DataSupplier()

http_dav_ucp::DataSupplier::DataSupplier ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const rtl::Reference< Content > &  rContent,
sal_Int32  nOpenMode 
)

◆ ~DataSupplier()

DataSupplier::~DataSupplier ( )
overridevirtual

Definition at line 90 of file webdavdatasupplier.cxx.

Member Function Documentation

◆ close()

void DataSupplier::close ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 289 of file webdavdatasupplier.cxx.

◆ currentCount()

sal_uInt32 DataSupplier::currentCount ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 232 of file webdavdatasupplier.cxx.

References m_Results.

◆ getData()

bool DataSupplier::getData ( )
private

◆ getResult()

bool DataSupplier::getResult ( sal_uInt32  nIndex)
overridevirtual

◆ isCountFinal()

bool DataSupplier::isCountFinal ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 239 of file webdavdatasupplier.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 132 of file webdavdatasupplier.cxx.

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

Referenced by queryContent().

◆ queryContentIdentifierString()

OUString DataSupplier::queryContentIdentifierString ( sal_uInt32  nIndex)
overridevirtual

◆ 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 279 of file webdavdatasupplier.cxx.

References m_aMutex, m_Results, and nIndex.

◆ totalCount()

sal_uInt32 DataSupplier::totalCount ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 222 of file webdavdatasupplier.cxx.

References getData(), and m_Results.

◆ validate()

void DataSupplier::validate ( )
overridevirtual

Implements ucbhelper::ResultSetDataSupplier.

Definition at line 295 of file webdavdatasupplier.cxx.

References m_bThrowException.

Member Data Documentation

◆ m_aMutex

osl::Mutex http_dav_ucp::DataSupplier::m_aMutex
private

◆ m_bCountFinal

bool http_dav_ucp::DataSupplier::m_bCountFinal
private

Definition at line 86 of file webdavdatasupplier.hxx.

Referenced by getData(), and isCountFinal().

◆ m_bThrowException

bool http_dav_ucp::DataSupplier::m_bThrowException
private

Definition at line 87 of file webdavdatasupplier.hxx.

Referenced by getData(), and validate().

◆ m_nOpenMode

sal_Int32 http_dav_ucp::DataSupplier::m_nOpenMode
private

Definition at line 85 of file webdavdatasupplier.hxx.

Referenced by getData().

◆ m_Results

ResultList http_dav_ucp::DataSupplier::m_Results
private

◆ m_xContent

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

◆ m_xContext

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

Definition at line 84 of file webdavdatasupplier.hxx.

Referenced by queryPropertyValues().


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