2010-10-27 12:45:03 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2001-08-28 13:34:05 +00:00
|
|
|
|
2013-11-05 02:31:05 +01:00
|
|
|
#ifndef INCLUDED_FORMS_SOURCE_COMPONENT_ERRORBROADCASTER_HXX
|
|
|
|
#define INCLUDED_FORMS_SOURCE_COMPONENT_ERRORBROADCASTER_HXX
|
2001-08-28 13:34:05 +00:00
|
|
|
|
|
|
|
#include <cppuhelper/implbase1.hxx>
|
|
|
|
#include <com/sun/star/sdb/XSQLErrorBroadcaster.hpp>
|
|
|
|
#include <cppuhelper/interfacecontainer.h>
|
|
|
|
#include <com/sun/star/sdbc/SQLException.hpp>
|
|
|
|
#include <com/sun/star/sdb/SQLErrorEvent.hpp>
|
|
|
|
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2001-08-28 13:34:05 +00:00
|
|
|
namespace frm
|
|
|
|
{
|
|
|
|
|
|
|
|
typedef ::cppu::ImplHelper1 < ::com::sun::star::sdb::XSQLErrorBroadcaster
|
|
|
|
> OErrorBroadcaster_BASE;
|
|
|
|
|
|
|
|
class OErrorBroadcaster : public OErrorBroadcaster_BASE
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
::cppu::OBroadcastHelper& m_rBHelper;
|
|
|
|
::cppu::OInterfaceContainerHelper m_aErrorListeners;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
OErrorBroadcaster( ::cppu::OBroadcastHelper& _rBHelper );
|
2006-10-12 10:12:58 +00:00
|
|
|
virtual ~OErrorBroadcaster( );
|
2001-08-28 13:34:05 +00:00
|
|
|
|
|
|
|
void SAL_CALL disposing();
|
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
void SAL_CALL onError( const ::com::sun::star::sdbc::SQLException& _rException, const OUString& _rContextDescription );
|
2001-08-28 13:34:05 +00:00
|
|
|
void SAL_CALL onError( const ::com::sun::star::sdb::SQLErrorEvent& _rException );
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// XSQLErrorBroadcaster
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void SAL_CALL addSQLErrorListener( const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSQLErrorListener >& _rListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
virtual void SAL_CALL removeSQLErrorListener( const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSQLErrorListener >& _rListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2001-08-28 13:34:05 +00:00
|
|
|
};
|
|
|
|
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2001-08-28 13:34:05 +00:00
|
|
|
} // namespace frm
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2001-08-28 13:34:05 +00:00
|
|
|
|
2013-11-05 02:31:05 +01:00
|
|
|
#endif // INCLUDED_FORMS_SOURCE_COMPONENT_ERRORBROADCASTER_HXX
|
2001-08-28 13:34:05 +00:00
|
|
|
|
2010-10-27 12:45:03 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|