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 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< 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::OInterfaceContainerHelper3< css::lang::XEventListener > > m_pDisposeEventListeners
 

Detailed Description

Definition at line 35 of file dynamicresultsetwrapper.hxx.

Constructor & Destructor Documentation

◆ DynamicResultSetWrapper()

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.

◆ ~DynamicResultSetWrapper()

DynamicResultSetWrapper::~DynamicResultSetWrapper ( )
overridevirtual

Definition at line 72 of file dynamicresultsetwrapper.cxx.

Member Function Documentation

◆ addEventListener()

void SAL_CALL DynamicResultSetWrapper::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  Listener)
overridevirtual

◆ connectToCache()

void SAL_CALL DynamicResultSetWrapper::connectToCache ( const css::uno::Reference< css::ucb::XDynamicResultSet > &  xCache)
overridevirtual

◆ dispose()

void SAL_CALL DynamicResultSetWrapper::dispose ( void  )
overridevirtual

◆ getCapabilities()

sal_Int16 SAL_CALL DynamicResultSetWrapper::getCapabilities ( )
overridevirtual

◆ getStaticResultSet()

Reference< XResultSet > SAL_CALL DynamicResultSetWrapper::getStaticResultSet ( )
overridevirtual

◆ impl_deinit()

void DynamicResultSetWrapper::impl_deinit ( )
protected

◆ impl_disposing()

void DynamicResultSetWrapper::impl_disposing ( const css::lang::EventObject &  Source)
virtual

◆ impl_EnsureNotDisposed()

void DynamicResultSetWrapper::impl_EnsureNotDisposed ( )
protected
Exceptions
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().

◆ impl_init()

void DynamicResultSetWrapper::impl_init ( )
protected

◆ impl_InitResultSetOne()

void DynamicResultSetWrapper::impl_InitResultSetOne ( const css::uno::Reference< css::sdbc::XResultSet > &  xResultSet)
protectedvirtual

◆ impl_InitResultSetTwo()

void DynamicResultSetWrapper::impl_InitResultSetTwo ( const css::uno::Reference< css::sdbc::XResultSet > &  xResultSet)
protectedvirtual

◆ impl_notify()

void DynamicResultSetWrapper::impl_notify ( const css::ucb::ListEvent &  Changes)

◆ queryInterface()

css::uno::Any SAL_CALL DynamicResultSetWrapper::queryInterface ( const css::uno::Type &  rType)
overridevirtual

◆ removeEventListener()

void SAL_CALL DynamicResultSetWrapper::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  Listener)
overridevirtual

◆ setListener()

void SAL_CALL DynamicResultSetWrapper::setListener ( const css::uno::Reference< css::ucb::XDynamicResultSetListener > &  Listener)
overridevirtual

◆ setSource()

void SAL_CALL DynamicResultSetWrapper::setSource ( const css::uno::Reference< css::uno::XInterface > &  Source)
overridevirtual

Member Data Documentation

◆ m_aContainerMutex

osl::Mutex DynamicResultSetWrapper::m_aContainerMutex
private

In dispose call.

Definition at line 44 of file dynamicresultsetwrapper.hxx.

Referenced by addEventListener().

◆ m_aListenerSet

osl::Condition DynamicResultSetWrapper::m_aListenerSet
protected

Definition at line 75 of file dynamicresultsetwrapper.hxx.

Referenced by impl_notify(), and setListener().

◆ m_aMutex

osl::Mutex DynamicResultSetWrapper::m_aMutex
protected

◆ m_aSourceSet

osl::Condition DynamicResultSetWrapper::m_aSourceSet
protected

Definition at line 74 of file dynamicresultsetwrapper.hxx.

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

◆ m_bDisposed

bool DynamicResultSetWrapper::m_bDisposed
private

Definition at line 42 of file dynamicresultsetwrapper.hxx.

Referenced by dispose(), and impl_EnsureNotDisposed().

◆ m_bGotWelcome

bool DynamicResultSetWrapper::m_bGotWelcome
protected

Definition at line 56 of file dynamicresultsetwrapper.hxx.

Referenced by impl_notify().

◆ m_bInDispose

bool DynamicResultSetWrapper::m_bInDispose
private

Dispose call ready.

Definition at line 43 of file dynamicresultsetwrapper.hxx.

Referenced by dispose().

◆ m_bStatic

bool DynamicResultSetWrapper::m_bStatic
protected

◆ m_pDisposeEventListeners

std::unique_ptr<comphelper::OInterfaceContainerHelper3<css::lang::XEventListener> > DynamicResultSetWrapper::m_pDisposeEventListeners
private

Definition at line 46 of file dynamicresultsetwrapper.hxx.

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

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > DynamicResultSetWrapper::m_xContext
protected

◆ m_xListener

css::uno::Reference< css::ucb::XDynamicResultSetListener > DynamicResultSetWrapper::m_xListener
protected

◆ m_xMyListenerImpl

rtl::Reference<DynamicResultSetWrapperListener> DynamicResultSetWrapper::m_xMyListenerImpl
protected

◆ m_xMyResultOne

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

◆ m_xMyResultTwo

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

◆ m_xSource

css::uno::Reference< css::ucb::XDynamicResultSet > DynamicResultSetWrapper::m_xSource
protected

◆ m_xSourceResultOne

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

◆ m_xSourceResultTwo

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

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