LibreOffice Module connectivity (master) 1
DriversConfig.hxx
Go to the documentation of this file.
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#ifndef INCLUDED_CONNECTIVITY_DRIVERSCONFIG_HXX
20#define INCLUDED_CONNECTIVITY_DRIVERSCONFIG_HXX
21
22#include <sal/config.h>
23
24#include <map>
25#include <string_view>
26
27#include <com/sun/star/uno/Sequence.h>
32
33namespace connectivity
34{
36 {
42 };
43 typedef std::map<OUString, TInstalledDriver> TInstalledDrivers;
44
46 {
47 mutable ::utl::OConfigurationTreeRoot m_aInstalled;
49 public:
51
52 const TInstalledDrivers& getInstalledDrivers(const css::uno::Reference< css::uno::XComponentContext >& _rxORB) const;
53 };
54
55 // Allows to access all driver which are located in the configuration
56
58 {
60
61 const ::comphelper::NamedValueCollection& impl_get(std::u16string_view _sURL,sal_Int32 _nProps) const;
62 public:
63 DriversConfig(css::uno::Reference< css::uno::XComponentContext > _xORB);
65
67 DriversConfig& operator=( const DriversConfig& );
68
69 OUString getDriverFactoryName(std::u16string_view _sUrl) const;
70 OUString getDriverTypeDisplayName(std::u16string_view _sUrl) const;
71 const ::comphelper::NamedValueCollection& getProperties(std::u16string_view _sURL) const;
72 const ::comphelper::NamedValueCollection& getFeatures(std::u16string_view _sURL) const;
73 const ::comphelper::NamedValueCollection& getMetaData(std::u16string_view _sURL) const;
74 css::uno::Sequence< OUString > getURLs() const;
75 private:
77 css::uno::Reference< css::uno::XComponentContext > m_xORB;
78 };
79}
80#endif // INCLUDED_CONNECTIVITY_DRIVERSCONFIG_HXX
81
82/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const TInstalledDrivers & getInstalledDrivers(const css::uno::Reference< css::uno::XComponentContext > &_rxORB) const
mutable::utl::OConfigurationTreeRoot m_aInstalled
DriversConfig(css::uno::Reference< css::uno::XComponentContext > _xORB)
comphelper::SingletonRef< DriversConfigImpl > OSharedConfigNode
css::uno::Reference< css::uno::XComponentContext > m_xORB
#define OOO_DLLPUBLIC_DBTOOLS
std::map< OUString, TInstalledDriver > TInstalledDrivers
::comphelper::NamedValueCollection aMetaData
::comphelper::NamedValueCollection aProperties
::comphelper::NamedValueCollection aFeatures