LCOV - code coverage report
Current view: top level - libreoffice/connectivity/source/inc/odbc - ODriver.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-12-27 Functions: 0 3 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 _CONNECTIVITY_ODBC_ODRIVER_HXX_
      21             : #define _CONNECTIVITY_ODBC_ODRIVER_HXX_
      22             : 
      23             : #include <com/sun/star/sdbc/XDriver.hpp>
      24             : #include <com/sun/star/lang/XServiceInfo.hpp>
      25             : #include <cppuhelper/compbase2.hxx>
      26             : #include "odbc/OFunctiondefs.hxx"
      27             : #include "odbc/odbcbasedllapi.hxx"
      28             : #include "connectivity/CommonTools.hxx"
      29             : #include <osl/module.h>
      30             : 
      31             : namespace connectivity
      32             : {
      33             :     namespace odbc
      34             :     {
      35             :         typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::sdbc::XDriver, ::com::sun::star::lang::XServiceInfo > ODriver_BASE;
      36             : 
      37           0 :         class OOO_DLLPUBLIC_ODBCBASE SAL_NO_VTABLE ODBCDriver : public ODriver_BASE
      38             :         {
      39             :         protected:
      40             :             ::osl::Mutex                            m_aMutex;
      41             : 
      42             :             connectivity::OWeakRefArray             m_xConnections; //  vector containing a list
      43             :                                                         //  of all the Connection objects
      44             :                                                         //  for this Driver
      45             : 
      46             :             ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xORB;
      47             :             SQLHANDLE   m_pDriverHandle;
      48             : 
      49             :             virtual SQLHANDLE   EnvironmentHandle(::rtl::OUString &_rPath) = 0;
      50             : 
      51             :         public:
      52             : 
      53             :             ODBCDriver(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory);
      54             : 
      55             :             // only possibility to get the odbc functions
      56             :             virtual oslGenericFunction getOdbcFunction(sal_Int32 _nIndex)  const = 0;
      57             :             // OComponentHelper
      58             :             virtual void SAL_CALL disposing(void);
      59             :             // XInterface
      60             :             static ::rtl::OUString getImplementationName_Static(  ) throw(::com::sun::star::uno::RuntimeException);
      61             :             static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(  ) throw (::com::sun::star::uno::RuntimeException);
      62             : 
      63             :             // XServiceInfo
      64             :             virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
      65             :             virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
      66             :             virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw(::com::sun::star::uno::RuntimeException);
      67             : 
      68             :             // XDriver
      69             :             virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > SAL_CALL connect( const ::rtl::OUString& url, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
      70             :             virtual sal_Bool SAL_CALL acceptsURL( const ::rtl::OUString& url ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
      71             :             virtual ::com::sun::star::uno::Sequence< ::com::sun::star::sdbc::DriverPropertyInfo > SAL_CALL getPropertyInfo( const ::rtl::OUString& url, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
      72             :             virtual sal_Int32 SAL_CALL getMajorVersion(  ) throw(::com::sun::star::uno::RuntimeException);
      73             :             virtual sal_Int32 SAL_CALL getMinorVersion(  ) throw(::com::sun::star::uno::RuntimeException);
      74             : 
      75           0 :             ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > getORB() const { return m_xORB; }
      76             :         };
      77             :     }
      78             : 
      79             : }
      80             : #endif //_CONNECTIVITY_ODBC_ODRIVER_HXX_
      81             : 
      82             : 
      83             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10