LCOV - code coverage report
Current view: top level - connectivity/source/drivers/firebird - Tables.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 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             : 
      10             : #ifndef CONNECTIVITY_FIREBIRD_TABLES_HXX
      11             : #define CONNECTIVITY_FIREBIRD_TABLES_HXX
      12             : 
      13             : #include "DatabaseMetaData.hxx"
      14             : 
      15             : #include <connectivity/sdbcx/VCollection.hxx>
      16             : 
      17             : namespace connectivity
      18             : {
      19             :     namespace firebird
      20             :     {
      21             : 
      22             :         /**
      23             :          * This implements com.sun.star.sdbcx.Container, which seems to be
      24             :          * also known by the name of Tables and Collection.
      25             :          */
      26           0 :         class Tables: public ::connectivity::sdbcx::OCollection
      27             :         {
      28             :         private:
      29             :             ::osl::Mutex& m_rMutex;
      30             : 
      31             :         protected:
      32             :             ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >
      33             :                 m_xMetaData;
      34             : 
      35             :             // OCollection
      36             :             virtual void impl_refresh()
      37             :                 throw(::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
      38             :             virtual ::connectivity::sdbcx::ObjectType createObject(
      39             :                                                 const ::rtl::OUString& rName) SAL_OVERRIDE;
      40             :             virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
      41             :                     createDescriptor() SAL_OVERRIDE;
      42             :             virtual ::connectivity::sdbcx::ObjectType appendObject(
      43             :                         const OUString& rName,
      44             :                         const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& rDescriptor) SAL_OVERRIDE;
      45             : 
      46             :         public:
      47             :             Tables(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >& rMetaData,
      48             :                    ::cppu::OWeakObject& rParent,
      49             :                    ::osl::Mutex& rMutex,
      50             :                    ::connectivity::TStringVector& rNames);
      51             : 
      52             :             // TODO: we should also implement XDataDescriptorFactory, XRefreshable,
      53             :             // XAppend,  etc., but all are optional.
      54             : 
      55             :             // XDrop
      56             :             virtual void dropObject(sal_Int32 nPosition, const ::rtl::OUString& rName) SAL_OVERRIDE;
      57             : 
      58             :         };
      59             : 
      60             :     } // namespace firebird
      61             : } // namespace connectivity
      62             : 
      63             : 
      64             : #endif // CONNECTIVITY_FIREBIRD_TABLES_HXX
      65             : 
      66             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10