LibreOffice Module ucb (master)  1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
DynamicResultSetWrapper Class Reference

#include <dynamicresultsetwrapper.hxx>

Inheritance diagram for DynamicResultSetWrapper:
[legend]
Collaboration diagram for DynamicResultSetWrapper:
[legend]

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 void SAL_CALL acquire () SAL_OVERRIDE
 
virtual void SAL_CALL release () 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< DynamicResultSetWrapperListenerm_xMyListenerImpl
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
osl::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...
 
osl::Mutex m_aContainerMutex
 In dispose call. More...
 
std::unique_ptr< comphelper::OInterfaceContainerHelper2m_pDisposeEventListeners
 

Detailed Description

Definition at line 36 of file dynamicresultsetwrapper.hxx.

Constructor & Destructor Documentation

DynamicResultSetWrapper::DynamicResultSetWrapper ( css::uno::Reference< css::ucb::XDynamicResultSet > const &  xOrigin,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext 
)

Definition at line 41 of file dynamicresultsetwrapper.cxx.

References m_xContext, m_xMyListenerImpl, and m_xSource.

DynamicResultSetWrapper::~DynamicResultSetWrapper ( )
overridevirtual

Definition at line 73 of file dynamicresultsetwrapper.cxx.

Member Function Documentation

void SAL_CALL DynamicResultSetWrapper::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  Listener)
overridevirtual
void SAL_CALL DynamicResultSetWrapper::connectToCache ( const css::uno::Reference< css::ucb::XDynamicResultSet > &  xCache)
overridevirtual
void SAL_CALL DynamicResultSetWrapper::dispose ( void  )
overridevirtual
sal_Int16 SAL_CALL DynamicResultSetWrapper::getCapabilities ( )
overridevirtual
Reference< XResultSet > SAL_CALL DynamicResultSetWrapper::getStaticResultSet ( )
overridevirtual
void DynamicResultSetWrapper::impl_deinit ( )
protected
void DynamicResultSetWrapper::impl_disposing ( const css::lang::EventObject &  Source)
virtual
void DynamicResultSetWrapper::impl_EnsureNotDisposed ( )
protected
Exceptions
css::lang::DisposedException
css::uno::RuntimeException

Definition at line 85 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().

void DynamicResultSetWrapper::impl_init ( )
protected
void DynamicResultSetWrapper::impl_InitResultSetOne ( const css::uno::Reference< css::sdbc::XResultSet > &  xResultSet)
protectedvirtual
void DynamicResultSetWrapper::impl_InitResultSetTwo ( const css::uno::Reference< css::sdbc::XResultSet > &  xResultSet)
protectedvirtual
void DynamicResultSetWrapper::impl_notify ( const css::ucb::ListEvent &  Changes)
css::uno::Any SAL_CALL DynamicResultSetWrapper::queryInterface ( const css::uno::Type &  rType)
overridevirtual
void SAL_CALL DynamicResultSetWrapper::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  Listener)
overridevirtual
void SAL_CALL DynamicResultSetWrapper::setListener ( const css::uno::Reference< css::ucb::XDynamicResultSetListener > &  Listener)
overridevirtual
void SAL_CALL DynamicResultSetWrapper::setSource ( const css::uno::Reference< css::uno::XInterface > &  Source)
overridevirtual

Member Data Documentation

osl::Mutex DynamicResultSetWrapper::m_aContainerMutex
private

In dispose call.

Definition at line 45 of file dynamicresultsetwrapper.hxx.

Referenced by addEventListener().

osl::Condition DynamicResultSetWrapper::m_aListenerSet
protected

Definition at line 76 of file dynamicresultsetwrapper.hxx.

Referenced by impl_notify(), and setListener().

osl::Mutex DynamicResultSetWrapper::m_aMutex
protected
osl::Condition DynamicResultSetWrapper::m_aSourceSet
protected

Definition at line 75 of file dynamicresultsetwrapper.hxx.

Referenced by getCapabilities(), getStaticResultSet(), and setSource().

bool DynamicResultSetWrapper::m_bDisposed
private

Definition at line 43 of file dynamicresultsetwrapper.hxx.

Referenced by dispose(), and impl_EnsureNotDisposed().

bool DynamicResultSetWrapper::m_bGotWelcome
protected

Definition at line 57 of file dynamicresultsetwrapper.hxx.

Referenced by impl_notify().

bool DynamicResultSetWrapper::m_bInDispose
private

Dispose call ready.

Definition at line 44 of file dynamicresultsetwrapper.hxx.

Referenced by dispose().

bool DynamicResultSetWrapper::m_bStatic
protected
std::unique_ptr<comphelper::OInterfaceContainerHelper2> DynamicResultSetWrapper::m_pDisposeEventListeners
private

Definition at line 47 of file dynamicresultsetwrapper.hxx.

Referenced by addEventListener(), dispose(), and removeEventListener().

css::uno::Reference< css::uno::XComponentContext > DynamicResultSetWrapper::m_xContext
protected
css::uno::Reference< css::ucb::XDynamicResultSetListener > DynamicResultSetWrapper::m_xListener
protected
rtl::Reference<DynamicResultSetWrapperListener> DynamicResultSetWrapper::m_xMyListenerImpl
protected
css::uno::Reference< css::sdbc::XResultSet > DynamicResultSetWrapper::m_xMyResultOne
protected
css::uno::Reference< css::sdbc::XResultSet > DynamicResultSetWrapper::m_xMyResultTwo
protected

Definition at line 70 of file dynamicresultsetwrapper.hxx.

Referenced by impl_InitResultSetTwo(), and impl_notify().

css::uno::Reference< css::ucb::XDynamicResultSet > DynamicResultSetWrapper::m_xSource
protected
css::uno::Reference< css::sdbc::XResultSet > DynamicResultSetWrapper::m_xSourceResultOne
protected

Definition at line 63 of file dynamicresultsetwrapper.hxx.

Referenced by impl_disposing(), and impl_InitResultSetOne().

css::uno::Reference< css::sdbc::XResultSet > DynamicResultSetWrapper::m_xSourceResultTwo
protected

Definition at line 65 of file dynamicresultsetwrapper.hxx.

Referenced by impl_disposing(), and impl_InitResultSetTwo().


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