mdrivermanager.hxx (caf5cd79) | mdrivermanager.hxx (8f985ee8) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 16 unchanged lines hidden (view full) --- 25#define _CONNECTIVITY_DRIVERMANAGER_HXX_ 26 27#include <com/sun/star/sdbc/XDriverManager.hpp> 28#include <com/sun/star/lang/XMultiServiceFactory.hpp> 29#include <com/sun/star/container/XEnumerationAccess.hpp> 30#include <com/sun/star/uno/XNamingService.hpp> 31#include <com/sun/star/lang/XServiceInfo.hpp> 32#include <com/sun/star/sdbc/XDriverAccess.hpp> | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 16 unchanged lines hidden (view full) --- 25#define _CONNECTIVITY_DRIVERMANAGER_HXX_ 26 27#include <com/sun/star/sdbc/XDriverManager.hpp> 28#include <com/sun/star/lang/XMultiServiceFactory.hpp> 29#include <com/sun/star/container/XEnumerationAccess.hpp> 30#include <com/sun/star/uno/XNamingService.hpp> 31#include <com/sun/star/lang/XServiceInfo.hpp> 32#include <com/sun/star/sdbc/XDriverAccess.hpp> |
33#include <com/sun/star/lang/XSingleServiceFactory.hpp> | 33//#include <com/sun/star/lang/XSingleServiceFactory.hpp> 34#include <com/sun/star/lang/XSingleComponentFactory.hpp> |
34 35#include <cppuhelper/implbase5.hxx> 36#include <comphelper/stl_types.hxx> 37#include <comphelper/logging.hxx> 38#include <comphelper/componentcontext.hxx> 39#include <osl/mutex.hxx> 40#include "connectivity/DriversConfig.hxx" 41 42namespace drivermanager 43{ 44 45 //====================================================================== 46 //= various 47 //====================================================================== 48 typedef ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDriver > SdbcDriver; 49 DECLARE_STL_USTRINGACCESS_MAP( SdbcDriver, DriverCollection ); 50 | 35 36#include <cppuhelper/implbase5.hxx> 37#include <comphelper/stl_types.hxx> 38#include <comphelper/logging.hxx> 39#include <comphelper/componentcontext.hxx> 40#include <osl/mutex.hxx> 41#include "connectivity/DriversConfig.hxx" 42 43namespace drivermanager 44{ 45 46 //====================================================================== 47 //= various 48 //====================================================================== 49 typedef ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDriver > SdbcDriver; 50 DECLARE_STL_USTRINGACCESS_MAP( SdbcDriver, DriverCollection ); 51 |
51 typedef ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > DriverFactory; | 52 typedef ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory > DriverFactory; 53 typedef ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > UNOContext; |
52 struct DriverAccess 53 { 54 ::rtl::OUString sImplementationName; /// the implementation name of the driver 55 DriverFactory xComponentFactory; /// the factory to create the driver component (if not already done so) | 54 struct DriverAccess 55 { 56 ::rtl::OUString sImplementationName; /// the implementation name of the driver 57 DriverFactory xComponentFactory; /// the factory to create the driver component (if not already done so) |
58 UNOContext xUNOContext; /// ensure UNO context propagation |
|
56 SdbcDriver xDriver; /// the driver itself 57 }; 58 59 //========================================================================== 60 //= OSDBCDriverManager - the one-instance service for managing SDBC drivers 61 //========================================================================== 62 typedef ::cppu::WeakImplHelper5 < ::com::sun::star::sdbc::XDriverManager 63 , ::com::sun::star::sdbc::XDriverAccess --- 79 unchanged lines hidden --- | 59 SdbcDriver xDriver; /// the driver itself 60 }; 61 62 //========================================================================== 63 //= OSDBCDriverManager - the one-instance service for managing SDBC drivers 64 //========================================================================== 65 typedef ::cppu::WeakImplHelper5 < ::com::sun::star::sdbc::XDriverManager 66 , ::com::sun::star::sdbc::XDriverAccess --- 79 unchanged lines hidden --- |