LibreOffice Module ucb (master) 1
|
#include <sortdynres.hxx>
Public Member Functions | |
SortedDynamicResultSet (const css::uno::Reference< css::ucb::XDynamicResultSet > &xOriginal, const css::uno::Sequence< css::ucb::NumberedSortingInfo > &aOptions, const css::uno::Reference< css::ucb::XAnyCompareFactory > &xCompFac, const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
virtual | ~SortedDynamicResultSet () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override |
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL | getStaticResultSet () override |
virtual void SAL_CALL | setListener (const css::uno::Reference< css::ucb::XDynamicResultSetListener > &Listener) override |
virtual void SAL_CALL | connectToCache (const css::uno::Reference< css::ucb::XDynamicResultSet > &xCache) override |
virtual sal_Int16 SAL_CALL | getCapabilities () override |
void | impl_disposing () |
void | impl_notify (const css::ucb::ListEvent &Changes) |
In the first notify-call the listener gets the two <type>XResultSet</type>s and has to hold them. More... | |
Private Member Functions | |
void | SendNotify () |
Private Attributes | |
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | maDisposeEventListeners |
css::uno::Reference< css::ucb::XDynamicResultSetListener > | mxListener |
css::uno::Reference< css::ucb::XDynamicResultSet > | mxOriginal |
css::uno::Sequence< css::ucb::NumberedSortingInfo > | maOptions |
css::uno::Reference< css::ucb::XAnyCompareFactory > | mxCompFac |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
rtl::Reference< SortedResultSet > | mxOne |
rtl::Reference< SortedResultSet > | mxTwo |
rtl::Reference< SortedDynamicResultSetListener > | mxOwnListener |
EventList | maActions |
std::mutex | maMutex |
bool | mbGotWelcome:1 |
bool | mbUseOne:1 |
bool | mbStatic:1 |
Definition at line 37 of file sortdynres.hxx.
SortedDynamicResultSet::SortedDynamicResultSet | ( | const css::uno::Reference< css::ucb::XDynamicResultSet > & | xOriginal, |
const css::uno::Sequence< css::ucb::NumberedSortingInfo > & | aOptions, | ||
const css::uno::Reference< css::ucb::XAnyCompareFactory > & | xCompFac, | ||
const css::uno::Reference< css::uno::XComponentContext > & | rxContext | ||
) |
Definition at line 41 of file sortdynres.cxx.
References m_xContext, maOptions, mbGotWelcome, mbStatic, mbUseOne, mxCompFac, mxOriginal, and mxOwnListener.
|
overridevirtual |
Definition at line 60 of file sortdynres.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::clear(), maDisposeEventListeners, maMutex, mxOne, mxOriginal, mxOwnListener, and mxTwo.
|
overridevirtual |
Definition at line 112 of file sortdynres.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), maDisposeEventListeners, and maMutex.
|
overridevirtual |
Definition at line 169 of file sortdynres.cxx.
References Exception, m_xContext, mbStatic, mxListener, and xTarget.
|
overridevirtual |
Definition at line 94 of file sortdynres.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::disposeAndClear(), comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), maDisposeEventListeners, maMutex, mbUseOne, mxOne, mxOriginal, and mxTwo.
|
overridevirtual |
Definition at line 200 of file sortdynres.cxx.
References maMutex, and mxOriginal.
|
overridevirtual |
Definition at line 77 of file sortdynres.cxx.
|
overridevirtual |
Definition at line 132 of file sortdynres.cxx.
References maMutex, maOptions, mbStatic, mxCompFac, mxListener, mxOne, and mxOriginal.
|
overridevirtual |
Definition at line 87 of file sortdynres.cxx.
void SortedDynamicResultSet::impl_disposing | ( | ) |
css::uno::RuntimeException |
Definition at line 359 of file sortdynres.cxx.
References mxListener, and mxOriginal.
Referenced by SortedDynamicResultSetListener::disposing().
void SortedDynamicResultSet::impl_notify | ( | const css::ucb::ListEvent & | Changes | ) |
In the first notify-call the listener gets the two <type>XResultSet</type>s and has to hold them.
css::uno::RuntimeException |
The <type>XResultSet</type>s are implementations of the service <type>ContentResultSet</type>.
The notified new <type>XResultSet</type> will stay valid after returning notification. The old one will become invalid after returning notification.
While in notify-call the listener is allowed to read old and new version, except in the first call, where only the new Resultset is valid.
The Listener is allowed to blockade this call, until he really want to go to the new version. The only situation, where the listener has to return the update call at once is, while he disposes his broadcaster or while he is removing himself as listener (otherwise you deadlock)!!!
Definition at line 233 of file sortdynres.cxx.
References Any, SortedResultSet::CheckProperties(), SortedResultSet::GetCount(), SortedResultSet::getPropertyValue(), EventList::Insert(), SortedResultSet::InsertNew(), maActions, maMutex, maOptions, mbGotWelcome, mbUseOne, SortedResultSet::Move(), mxCompFac, mxOne, mxTwo, SortedResultSet::Remove(), SortedResultSet::ResortModified(), SortedResultSet::ResortNew(), SendNotify(), and SortedResultSet::SetChanged().
Referenced by SortedDynamicResultSetListener::notify().
|
overridevirtual |
Definition at line 120 of file sortdynres.cxx.
References maDisposeEventListeners, maMutex, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
private |
Definition at line 367 of file sortdynres.cxx.
References EventList::Clear(), EventList::Count(), EventList::GetAction(), i, maActions, mxListener, and nCount.
Referenced by impl_notify().
|
overridevirtual |
Definition at line 152 of file sortdynres.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), maDisposeEventListeners, maMutex, mxListener, mxOriginal, and mxOwnListener.
|
overridevirtual |
Definition at line 82 of file sortdynres.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 48 of file sortdynres.hxx.
Referenced by connectToCache(), and SortedDynamicResultSet().
|
private |
Definition at line 54 of file sortdynres.hxx.
Referenced by impl_notify(), and SendNotify().
|
private |
Definition at line 41 of file sortdynres.hxx.
Referenced by addEventListener(), dispose(), removeEventListener(), setListener(), and ~SortedDynamicResultSet().
|
private |
Definition at line 55 of file sortdynres.hxx.
Referenced by addEventListener(), dispose(), getCapabilities(), getStaticResultSet(), impl_notify(), removeEventListener(), setListener(), and ~SortedDynamicResultSet().
|
private |
Definition at line 46 of file sortdynres.hxx.
Referenced by getStaticResultSet(), impl_notify(), and SortedDynamicResultSet().
|
private |
Definition at line 56 of file sortdynres.hxx.
Referenced by impl_notify(), and SortedDynamicResultSet().
|
private |
Definition at line 58 of file sortdynres.hxx.
Referenced by connectToCache(), getStaticResultSet(), and SortedDynamicResultSet().
|
private |
Definition at line 57 of file sortdynres.hxx.
Referenced by dispose(), impl_notify(), and SortedDynamicResultSet().
|
private |
Definition at line 47 of file sortdynres.hxx.
Referenced by getStaticResultSet(), impl_notify(), and SortedDynamicResultSet().
|
private |
Definition at line 43 of file sortdynres.hxx.
Referenced by connectToCache(), getStaticResultSet(), impl_disposing(), SendNotify(), and setListener().
|
private |
Definition at line 50 of file sortdynres.hxx.
Referenced by dispose(), getStaticResultSet(), impl_notify(), and ~SortedDynamicResultSet().
|
private |
Definition at line 45 of file sortdynres.hxx.
Referenced by dispose(), getCapabilities(), getStaticResultSet(), impl_disposing(), setListener(), SortedDynamicResultSet(), and ~SortedDynamicResultSet().
|
private |
Definition at line 52 of file sortdynres.hxx.
Referenced by setListener(), SortedDynamicResultSet(), and ~SortedDynamicResultSet().
|
private |
Definition at line 51 of file sortdynres.hxx.
Referenced by dispose(), impl_notify(), and ~SortedDynamicResultSet().