LCOV - code coverage report
Current view: top level - connectivity/source/drivers/mork - MDriver.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 2 2 100.0 %
Date: 2014-11-03 Functions: 3 3 100.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 INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDRIVER_HXX
      11             : #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MORK_MDRIVER_HXX
      12             : 
      13             : #include <sal/config.h>
      14             : 
      15             : #include <cassert>
      16             : 
      17             : #include <boost/noncopyable.hpp>
      18             : #include <com/sun/star/beans/PropertyValue.hpp>
      19             : #include <com/sun/star/lang/XServiceInfo.hpp>
      20             : #include <com/sun/star/sdbc/DriverPropertyInfo.hpp>
      21             : #include <com/sun/star/sdbc/SQLException.hpp>
      22             : #include <com/sun/star/sdbc/XConnection.hpp>
      23             : #include <com/sun/star/sdbc/XDriver.hpp>
      24             : #include <com/sun/star/uno/Reference.hxx>
      25             : #include <com/sun/star/uno/RuntimeException.hpp>
      26             : #include <com/sun/star/uno/Sequence.hxx>
      27             : #include <com/sun/star/uno/XComponentContext.hpp>
      28             : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
      29             : #include <cppuhelper/implbase2.hxx>
      30             : #include <cppuhelper/weak.hxx>
      31             : #include <rtl/ustring.hxx>
      32             : #include <sal/types.h>
      33             : 
      34             : #define MORK_DRIVER_IMPL_NAME "com.sun.star.comp.sdbc.MorkDriver"
      35             : 
      36             : namespace com { namespace sun { namespace star {
      37             :     namespace uno {
      38             :         class XComponentContext;
      39             :         class XInterface;
      40             :     }
      41             : } } }
      42             : 
      43             : namespace connectivity { namespace mork {
      44             : class ProfileAccess;
      45             : 
      46             : css::uno::Reference< css::uno::XInterface > SAL_CALL
      47             : create(css::uno::Reference< css::uno::XComponentContext > const &);
      48             : 
      49             : class MorkDriver:
      50             :     public cppu::WeakImplHelper2< css::lang::XServiceInfo, css::sdbc::XDriver >,
      51             :     private boost::noncopyable
      52             : {
      53             : public:
      54             :     MorkDriver(css::uno::Reference< css::uno::XComponentContext > const context);
      55             :     static OUString getImplementationName_Static()
      56             :         throw(css::uno::RuntimeException);
      57             :     static css::uno::Sequence< OUString > getSupportedServiceNames_Static()
      58             :         throw (css::uno::RuntimeException);
      59             : 
      60          10 :     css::uno::Reference< com::sun::star::lang::XMultiServiceFactory > getFactory(){return m_xFactory;}
      61             : private:
      62             : 
      63          12 :     virtual ~MorkDriver() {}
      64             : 
      65             :     virtual OUString SAL_CALL getImplementationName()
      66             :         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      67             : 
      68             :     virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName)
      69             :         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      70             : 
      71             :     virtual css::uno::Sequence< OUString > SAL_CALL
      72             :     getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      73             : 
      74             :     virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL connect(
      75             :         OUString const & url,
      76             :         css::uno::Sequence< css::beans::PropertyValue > const & info)
      77             :         throw (css::sdbc::SQLException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      78             : 
      79             :     virtual sal_Bool SAL_CALL acceptsURL(
      80             :         OUString const & url)
      81             :         throw (css::sdbc::SQLException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      82             : 
      83             :     virtual css::uno::Sequence< css::sdbc::DriverPropertyInfo > SAL_CALL
      84             :     getPropertyInfo(
      85             :         OUString const & url,
      86             :         css::uno::Sequence< css::beans::PropertyValue > const & info)
      87             :         throw (css::sdbc::SQLException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      88             : 
      89             :     virtual sal_Int32 SAL_CALL getMajorVersion()
      90             :         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      91             : 
      92             :     virtual sal_Int32 SAL_CALL getMinorVersion()
      93             :         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      94             : 
      95             :     css::uno::Reference< css::uno::XComponentContext > context_;
      96             :     css::uno::Reference< com::sun::star::lang::XMultiServiceFactory > m_xFactory;
      97             : };
      98             : 
      99             : } }
     100             : 
     101             : #endif
     102             : 
     103             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10