LibreOffice Module ucb (master) 1
|
#include <hierarchydatasupplier.hxx>
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< ResultSet > | getResultSet () 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< HierarchyContent > | m_xContent |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
HierarchyEntry | m_aFolder |
HierarchyEntry::iterator | m_aIterator |
sal_Int32 | m_nOpenMode |
bool | m_bCountFinal |
Definition at line 34 of file hierarchydatasupplier.hxx.
|
private |
Definition at line 80 of file hierarchydatasupplier.hxx.
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.
|
overridevirtual |
Definition at line 54 of file hierarchydatasupplier.cxx.
|
private |
Definition at line 340 of file hierarchydatasupplier.cxx.
References hierarchy_ucp::HierarchyEntryData::FOLDER, hierarchy_ucp::HierarchyEntryData::getType(), hierarchy_ucp::HierarchyEntryData::LINK, and m_nOpenMode.
Referenced by getResultImpl(), and totalCount().
|
overridevirtual |
Implements ucbhelper::ResultSetDataSupplier.
Definition at line 329 of file hierarchydatasupplier.cxx.
|
overridevirtual |
Implements ucbhelper::ResultSetDataSupplier.
Definition at line 267 of file hierarchydatasupplier.cxx.
References m_aResults.
|
finaloverridevirtual |
Implements ucbhelper::ResultSetDataSupplier.
Definition at line 165 of file hierarchydatasupplier.cxx.
References getResultImpl(), m_aMutex, and nIndex.
|
private |
Definition at line 171 of file hierarchydatasupplier.cxx.
References checkResult(), ucbhelper::ResultSetDataSupplier::getResultSet(), m_aFolder, m_aIterator, m_aResults, m_bCountFinal, hierarchy_ucp::HierarchyEntry::next(), nIndex, and nPos.
Referenced by getResult(), queryContentIdentifierStringImpl(), and queryPropertyValues().
|
overridevirtual |
Implements ucbhelper::ResultSetDataSupplier.
Definition at line 274 of file hierarchydatasupplier.cxx.
References m_bCountFinal.
|
overridevirtual |
Implements ucbhelper::ResultSetDataSupplier.
Definition at line 129 of file hierarchydatasupplier.cxx.
References m_aMutex, m_aResults, m_xContent, nIndex, and queryContentIdentifier().
|
overridevirtual |
Implements ucbhelper::ResultSetDataSupplier.
Definition at line 100 of file hierarchydatasupplier.cxx.
References m_aMutex, m_aResults, nIndex, and queryContentIdentifierStringImpl().
Referenced by queryContent().
|
finaloverridevirtual |
Implements ucbhelper::ResultSetDataSupplier.
Definition at line 60 of file hierarchydatasupplier.cxx.
References m_aMutex, nIndex, and queryContentIdentifierStringImpl().
|
private |
Definition at line 67 of file hierarchydatasupplier.cxx.
References getResultImpl(), m_aResults, m_xContent, and nIndex.
Referenced by queryContentIdentifier(), queryContentIdentifierString(), and queryPropertyValues().
|
overridevirtual |
Implements ucbhelper::ResultSetDataSupplier.
Definition at line 282 of file hierarchydatasupplier.cxx.
References aData, hierarchy_ucp::HierarchyContent::getPropertyValues(), getResultImpl(), ucbhelper::ResultSetDataSupplier::getResultSet(), m_aMutex, m_aResults, m_xContent, m_xContext, nIndex, and queryContentIdentifierStringImpl().
|
overridevirtual |
Implements ucbhelper::ResultSetDataSupplier.
Definition at line 319 of file hierarchydatasupplier.cxx.
References m_aMutex, m_aResults, and nIndex.
|
overridevirtual |
Implements ucbhelper::ResultSetDataSupplier.
Definition at line 231 of file hierarchydatasupplier.cxx.
References checkResult(), ucbhelper::ResultSetDataSupplier::getResultSet(), m_aFolder, m_aIterator, m_aMutex, m_aResults, m_bCountFinal, and hierarchy_ucp::HierarchyEntry::next().
|
overridevirtual |
Implements ucbhelper::ResultSetDataSupplier.
Definition at line 335 of file hierarchydatasupplier.cxx.
|
private |
Definition at line 85 of file hierarchydatasupplier.hxx.
Referenced by getResultImpl(), and totalCount().
|
private |
Definition at line 86 of file hierarchydatasupplier.hxx.
Referenced by getResultImpl(), and totalCount().
|
private |
Definition at line 81 of file hierarchydatasupplier.hxx.
Referenced by getResult(), queryContent(), queryContentIdentifier(), queryContentIdentifierString(), queryPropertyValues(), releasePropertyValues(), and totalCount().
|
private |
Definition at line 82 of file hierarchydatasupplier.hxx.
Referenced by currentCount(), getResultImpl(), queryContent(), queryContentIdentifier(), queryContentIdentifierStringImpl(), queryPropertyValues(), releasePropertyValues(), and totalCount().
|
private |
Definition at line 88 of file hierarchydatasupplier.hxx.
Referenced by getResultImpl(), isCountFinal(), and totalCount().
|
private |
Definition at line 87 of file hierarchydatasupplier.hxx.
Referenced by checkResult().
|
private |
Definition at line 83 of file hierarchydatasupplier.hxx.
Referenced by queryContent(), queryContentIdentifierStringImpl(), and queryPropertyValues().
|
private |
Definition at line 84 of file hierarchydatasupplier.hxx.
Referenced by queryPropertyValues().