36 :m_rBHelper( _rBHelper )
37 ,m_aErrorListeners( _rBHelper.rMutex )
45 "OErrorBroadcaster::~OErrorBroadcaster: not disposed!" );
49 "OErrorBroadcaster::~OErrorBroadcaster: still have listeners!" );
56 EventObject aDisposeEvent(
static_cast< XSQLErrorBroadcaster*
>(
this ) );
64 if ( !_rContextDescription.isEmpty() )
65 aError <<= prependErrorInfo( _rException, static_cast< XSQLErrorBroadcaster* >(
this ), _rContextDescription );
67 aError <<= _rException;
69 onError( SQLErrorEvent(
static_cast< XSQLErrorBroadcaster*
>(
this ), aError ) );
sal_Int32 addInterface(const css::uno::Reference< ListenerT > &rxIFace)
void disposeAndClear(const css::lang::EventObject &rEvt)
sal_Int32 getLength() const
sal_Int32 removeInterface(const css::uno::Reference< ListenerT > &rxIFace)
void notifyEach(void(SAL_CALL ListenerT::*NotificationMethod)(const EventT &), const EventT &Event)
::comphelper::OInterfaceContainerHelper3< css::sdb::XSQLErrorListener > m_aErrorListeners
virtual void SAL_CALL removeSQLErrorListener(const css::uno::Reference< css::sdb::XSQLErrorListener > &_rListener) override
::cppu::OBroadcastHelper & m_rBHelper
virtual ~OErrorBroadcaster()
virtual void SAL_CALL addSQLErrorListener(const css::uno::Reference< css::sdb::XSQLErrorListener > &_rListener) override
void onError(const css::sdbc::SQLException &_rException, const OUString &_rContextDescription)
OErrorBroadcaster(::cppu::OBroadcastHelper &_rBHelper)
#define SAL_WARN_IF(condition, area, stream)
ListBox is a bit confusing / different from other form components, so here are a few notes: