LCOV - code coverage report
Current view: top level - dbaccess/source/core/inc - tablecontainer.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_DBACCESS_SOURCE_CORE_INC_TABLECONTAINER_HXX
      21             : #define INCLUDED_DBACCESS_SOURCE_CORE_INC_TABLECONTAINER_HXX
      22             : 
      23             : #include <cppuhelper/implbase1.hxx>
      24             : #include <com/sun/star/container/XEnumerationAccess.hpp>
      25             : #include <com/sun/star/container/XNameAccess.hpp>
      26             : #include <com/sun/star/container/XIndexAccess.hpp>
      27             : #include <com/sun/star/util/XRefreshable.hpp>
      28             : #include <com/sun/star/lang/XServiceInfo.hpp>
      29             : #include <com/sun/star/uno/Sequence.hxx>
      30             : #include <com/sun/star/sdbc/XConnection.hpp>
      31             : #include <com/sun/star/beans/XPropertySet.hpp>
      32             : #include <com/sun/star/container/XContainerListener.hpp>
      33             : #include <com/sun/star/container/XNameContainer.hpp>
      34             : #include "FilteredContainer.hxx"
      35             : #include <connectivity/warningscontainer.hxx>
      36             : #include "RefreshListener.hxx"
      37             : #include "apitools.hxx"
      38             : 
      39             : namespace dbaccess
      40             : {
      41             :     typedef ::cppu::ImplHelper1< ::com::sun::star::container::XContainerListener> OTableContainer_Base;
      42             : 
      43             :     // OTableContainer
      44             :     class OContainerMediator;
      45             : 
      46             :     class OTableContainer :  public OFilteredContainer,
      47             :                              public OTableContainer_Base
      48             :     {
      49             :         ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > m_xTableDefinitions;
      50             :         ::rtl::Reference< OContainerMediator >                                          m_pTableMediator;
      51             :         sal_Bool                m_bInDrop;                  // set when we are in the drop method
      52             : 
      53             :         // OFilteredContainer
      54             :         virtual void addMasterContainerListener() SAL_OVERRIDE;
      55             :         virtual void removeMasterContainerListener() SAL_OVERRIDE;
      56             :         virtual OUString getTableTypeRestriction() const SAL_OVERRIDE;
      57             : 
      58             :         // ::connectivity::sdbcx::OCollection
      59             :         virtual connectivity::sdbcx::ObjectType     createObject(const OUString& _rName) SAL_OVERRIDE;
      60             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >   createDescriptor() SAL_OVERRIDE;
      61             :         virtual connectivity::sdbcx::ObjectType appendObject( const OUString& _rForName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& descriptor ) SAL_OVERRIDE;
      62             :         virtual void dropObject(sal_Int32 _nPos, const OUString& _sElementName) SAL_OVERRIDE;
      63             : 
      64             :         virtual void SAL_CALL disposing() SAL_OVERRIDE;
      65             : 
      66           0 :         virtual void SAL_CALL acquire() throw() SAL_OVERRIDE { OFilteredContainer::acquire();}
      67           0 :         virtual void SAL_CALL release() throw() SAL_OVERRIDE { OFilteredContainer::release();}
      68             :     // ::com::sun::star::lang::XServiceInfo
      69             :         DECLARE_SERVICE_INFO();
      70             : 
      71             :         // XEventListener
      72             :         virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      73             :         // XContainerListener
      74             :         virtual void SAL_CALL elementInserted( const ::com::sun::star::container::ContainerEvent& Event ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      75             :         virtual void SAL_CALL elementRemoved( const ::com::sun::star::container::ContainerEvent& Event ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      76             :         virtual void SAL_CALL elementReplaced( const ::com::sun::star::container::ContainerEvent& Event ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      77             : 
      78             :     public:
      79             :         /** ctor of the container. The parent has to support the <type scope="com::sun::star::sdbc">XConnection</type>
      80             :             interface.<BR>
      81             :             @param          _rParent            the object which acts as parent for the container.
      82             :                                                 all refcounting is rerouted to this object
      83             :             @param          _rMutex             the access safety object of the parent
      84             :             @param          _rTableFilter       restricts the visible tables by name
      85             :             @param          _rTableTypeFilter   restricts the visible tables by type
      86             :             @see            construct
      87             :         */
      88             :         OTableContainer( ::cppu::OWeakObject& _rParent,
      89             :             ::osl::Mutex& _rMutex,
      90             :             const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xCon,
      91             :             sal_Bool _bCase,
      92             :             const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >&  _xTableDefinitions,
      93             :             IRefreshListener*   _pRefreshListener,
      94             :             ::dbtools::IWarningsContainer* _pWarningsContainer,
      95             :             oslInterlockedCount& _nInAppend
      96             :             );
      97             : 
      98             :         virtual ~OTableContainer();
      99             :     };
     100             : }
     101             : #endif // INCLUDED_DBACCESS_SOURCE_CORE_INC_TABLECONTAINER_HXX
     102             : 
     103             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10