LibreOffice Module ucb (master) 1
|
#include <dynamicresultsetwrapper.hxx>
Public Member Functions | |
DynamicResultSetWrapper (css::uno::Reference< css::ucb::XDynamicResultSet > const &xOrigin, const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
virtual | ~DynamicResultSetWrapper () override |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) 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 |
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 void SAL_CALL | setSource (const css::uno::Reference< css::uno::XInterface > &Source) override |
virtual void | impl_disposing (const css::lang::EventObject &Source) |
void | impl_notify (const css::ucb::ListEvent &Changes) |
Public Member Functions inherited from cppu::OWeakObject | |
OWeakObject () | |
OWeakObject (const OWeakObject &) | |
OWeakObject &SAL_CALL | operator= (const OWeakObject &) |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL | queryAdapter () SAL_OVERRIDE |
SAL_CALL | operator css::uno::Reference< css::uno::XInterface > () |
Protected Member Functions | |
void | impl_init () |
void | impl_deinit () |
void | impl_EnsureNotDisposed () |
virtual void | impl_InitResultSetOne (const css::uno::Reference< css::sdbc::XResultSet > &xResultSet) |
virtual void | impl_InitResultSetTwo (const css::uno::Reference< css::sdbc::XResultSet > &xResultSet) |
Protected Member Functions inherited from cppu::OWeakObject | |
virtual | ~OWeakObject () COVERITY_NOEXCEPT_FALSE |
void | disposeWeakConnectionPoint () |
Protected Attributes | |
rtl::Reference< DynamicResultSetWrapperListener > | m_xMyListenerImpl |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
std::mutex | m_aMutex |
bool | m_bStatic |
bool | m_bGotWelcome |
css::uno::Reference< css::ucb::XDynamicResultSet > | m_xSource |
css::uno::Reference< css::sdbc::XResultSet > | m_xSourceResultOne |
css::uno::Reference< css::sdbc::XResultSet > | m_xSourceResultTwo |
css::uno::Reference< css::sdbc::XResultSet > | m_xMyResultOne |
css::uno::Reference< css::sdbc::XResultSet > | m_xMyResultTwo |
css::uno::Reference< css::ucb::XDynamicResultSetListener > | m_xListener |
osl::Condition | m_aSourceSet |
osl::Condition | m_aListenerSet |
Protected Attributes inherited from cppu::OWeakObject | |
oslInterlockedCount | m_refCount |
Private Attributes | |
bool | m_bDisposed |
bool | m_bInDispose |
Dispose call ready. More... | |
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | m_aDisposeEventListeners |
In dispose call. More... | |
Definition at line 35 of file dynamicresultsetwrapper.hxx.
DynamicResultSetWrapper::DynamicResultSetWrapper | ( | css::uno::Reference< css::ucb::XDynamicResultSet > const & | xOrigin, |
const css::uno::Reference< css::uno::XComponentContext > & | rxContext | ||
) |
Definition at line 40 of file dynamicresultsetwrapper.cxx.
References m_bDisposed, m_xContext, m_xMyListenerImpl, and m_xSource.
|
overridevirtual |
Definition at line 72 of file dynamicresultsetwrapper.cxx.
|
overridevirtual |
Definition at line 154 of file dynamicresultsetwrapper.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), impl_EnsureNotDisposed(), m_aDisposeEventListeners, and m_aMutex.
Referenced by setListener().
|
overridevirtual |
Definition at line 359 of file dynamicresultsetwrapper.cxx.
References Exception, impl_EnsureNotDisposed(), m_bStatic, m_xContext, m_xListener, and xTarget.
|
overridevirtual |
Definition at line 124 of file dynamicresultsetwrapper.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::disposeAndClear(), comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), impl_EnsureNotDisposed(), m_aDisposeEventListeners, m_aMutex, m_bDisposed, m_bInDispose, and m_xSource.
|
overridevirtual |
Definition at line 395 of file dynamicresultsetwrapper.cxx.
References impl_EnsureNotDisposed(), m_aMutex, m_aSourceSet, and m_xSource.
|
overridevirtual |
Definition at line 303 of file dynamicresultsetwrapper.cxx.
References impl_EnsureNotDisposed(), impl_InitResultSetOne(), m_aMutex, m_aSourceSet, m_bStatic, m_xListener, m_xMyListenerImpl, m_xMyResultOne, and m_xSource.
|
protected |
Definition at line 77 of file dynamicresultsetwrapper.cxx.
References m_xMyListenerImpl.
Referenced by CachedDynamicResultSet::~CachedDynamicResultSet(), and CachedDynamicResultSetStub::~CachedDynamicResultSetStub().
|
virtual |
css::uno::RuntimeException |
Reimplemented in CachedDynamicResultSet.
Definition at line 177 of file dynamicresultsetwrapper.cxx.
References impl_EnsureNotDisposed(), m_aMutex, m_xSource, m_xSourceResultOne, and m_xSourceResultTwo.
Referenced by DynamicResultSetWrapperListener::disposing(), and CachedDynamicResultSet::impl_disposing().
|
protected |
css::lang::DisposedException | |
css::uno::RuntimeException |
Definition at line 84 of file dynamicresultsetwrapper.cxx.
References m_aMutex, and m_bDisposed.
Referenced by addEventListener(), connectToCache(), dispose(), getCapabilities(), getStaticResultSet(), impl_disposing(), impl_notify(), removeEventListener(), setListener(), and setSource().
|
protected |
Definition at line 57 of file dynamicresultsetwrapper.cxx.
References m_aMutex, m_xSource, and setSource().
Referenced by CachedDynamicResultSet::CachedDynamicResultSet(), and CachedDynamicResultSetStub::CachedDynamicResultSetStub().
|
protectedvirtual |
Reimplemented in CachedDynamicResultSet, and CachedDynamicResultSetStub.
Definition at line 92 of file dynamicresultsetwrapper.cxx.
References m_aMutex, m_xMyResultOne, and m_xSourceResultOne.
Referenced by getStaticResultSet(), CachedDynamicResultSet::impl_InitResultSetOne(), CachedDynamicResultSetStub::impl_InitResultSetOne(), and impl_notify().
|
protectedvirtual |
Reimplemented in CachedDynamicResultSet, and CachedDynamicResultSetStub.
Definition at line 101 of file dynamicresultsetwrapper.cxx.
References m_aMutex, m_xMyResultTwo, and m_xSourceResultTwo.
Referenced by CachedDynamicResultSet::impl_InitResultSetTwo(), CachedDynamicResultSetStub::impl_InitResultSetTwo(), and impl_notify().
void DynamicResultSetWrapper::impl_notify | ( | const css::ucb::ListEvent & | Changes | ) |
css::uno::RuntimeException |
Definition at line 195 of file dynamicresultsetwrapper.cxx.
References impl_EnsureNotDisposed(), impl_InitResultSetOne(), impl_InitResultSetTwo(), m_aListenerSet, m_aMutex, m_bGotWelcome, m_xListener, m_xMyResultOne, and m_xMyResultTwo.
Referenced by DynamicResultSetWrapperListener::notify().
|
overridevirtual |
Reimplemented from cppu::OWeakObject.
Reimplemented in CachedDynamicResultSet, and CachedDynamicResultSetStub.
Definition at line 110 of file dynamicresultsetwrapper.cxx.
References cppu::queryInterface().
Referenced by CachedDynamicResultSet::queryInterface(), and CachedDynamicResultSetStub::queryInterface().
|
overridevirtual |
Definition at line 164 of file dynamicresultsetwrapper.cxx.
References impl_EnsureNotDisposed(), m_aDisposeEventListeners, m_aMutex, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 333 of file dynamicresultsetwrapper.cxx.
References addEventListener(), impl_EnsureNotDisposed(), m_aListenerSet, m_aMutex, m_bStatic, m_xListener, m_xMyListenerImpl, and m_xSource.
|
overridevirtual |
Definition at line 263 of file dynamicresultsetwrapper.cxx.
References impl_EnsureNotDisposed(), m_aMutex, m_aSourceSet, m_bStatic, m_xListener, m_xMyListenerImpl, m_xSource, and Source.
Referenced by impl_init().
|
private |
In dispose call.
Definition at line 45 of file dynamicresultsetwrapper.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().
|
protected |
Definition at line 74 of file dynamicresultsetwrapper.hxx.
Referenced by impl_notify(), and setListener().
|
protected |
Definition at line 53 of file dynamicresultsetwrapper.hxx.
Referenced by addEventListener(), dispose(), getCapabilities(), getStaticResultSet(), impl_disposing(), impl_EnsureNotDisposed(), impl_init(), impl_InitResultSetOne(), CachedDynamicResultSet::impl_InitResultSetOne(), CachedDynamicResultSetStub::impl_InitResultSetOne(), impl_InitResultSetTwo(), CachedDynamicResultSet::impl_InitResultSetTwo(), CachedDynamicResultSetStub::impl_InitResultSetTwo(), impl_notify(), removeEventListener(), setListener(), and setSource().
|
protected |
Definition at line 73 of file dynamicresultsetwrapper.hxx.
Referenced by getCapabilities(), getStaticResultSet(), and setSource().
|
private |
Definition at line 42 of file dynamicresultsetwrapper.hxx.
Referenced by dispose(), and impl_EnsureNotDisposed().
|
protected |
Definition at line 55 of file dynamicresultsetwrapper.hxx.
Referenced by impl_notify().
|
private |
Dispose call ready.
Definition at line 43 of file dynamicresultsetwrapper.hxx.
Referenced by dispose().
|
protected |
Definition at line 54 of file dynamicresultsetwrapper.hxx.
Referenced by connectToCache(), getStaticResultSet(), setListener(), and setSource().
|
protected |
Definition at line 51 of file dynamicresultsetwrapper.hxx.
Referenced by CachedDynamicResultSetStub::CachedDynamicResultSetStub(), connectToCache(), CachedDynamicResultSet::impl_InitResultSetOne(), and CachedDynamicResultSet::impl_InitResultSetTwo().
|
protected |
Definition at line 71 of file dynamicresultsetwrapper.hxx.
Referenced by connectToCache(), getStaticResultSet(), impl_notify(), setListener(), and setSource().
|
protected |
Definition at line 48 of file dynamicresultsetwrapper.hxx.
Referenced by DynamicResultSetWrapper(), getStaticResultSet(), impl_deinit(), setListener(), and setSource().
|
protected |
Definition at line 66 of file dynamicresultsetwrapper.hxx.
Referenced by getStaticResultSet(), impl_InitResultSetOne(), CachedDynamicResultSet::impl_InitResultSetOne(), CachedDynamicResultSetStub::impl_InitResultSetOne(), and impl_notify().
|
protected |
Definition at line 68 of file dynamicresultsetwrapper.hxx.
Referenced by impl_InitResultSetTwo(), CachedDynamicResultSet::impl_InitResultSetTwo(), CachedDynamicResultSetStub::impl_InitResultSetTwo(), and impl_notify().
|
protected |
Definition at line 59 of file dynamicresultsetwrapper.hxx.
Referenced by dispose(), getCapabilities(), getStaticResultSet(), impl_disposing(), impl_init(), setListener(), and setSource().
|
protected |
Definition at line 61 of file dynamicresultsetwrapper.hxx.
Referenced by impl_disposing(), impl_InitResultSetOne(), CachedDynamicResultSet::impl_InitResultSetOne(), and CachedDynamicResultSetStub::impl_InitResultSetOne().
|
protected |
Definition at line 63 of file dynamicresultsetwrapper.hxx.
Referenced by impl_disposing(), impl_InitResultSetTwo(), CachedDynamicResultSet::impl_InitResultSetTwo(), and CachedDynamicResultSetStub::impl_InitResultSetTwo().