android: Update app-specific/MIME type icons
[LibreOffice.git] / include / connectivity / sdbcx / VView.hxx
bloba1a68e337e5e601ea4cb62afcc1454754a3d50bb
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_CONNECTIVITY_SDBCX_VVIEW_HXX
21 #define INCLUDED_CONNECTIVITY_SDBCX_VVIEW_HXX
23 #include <com/sun/star/sdbcx/XDataDescriptorFactory.hpp>
24 #include <com/sun/star/lang/XServiceInfo.hpp>
25 #include <comphelper/broadcasthelper.hxx>
26 #include <connectivity/CommonTools.hxx>
27 #include <com/sun/star/container/XNamed.hpp>
28 #include <connectivity/sdbcx/VDescriptor.hxx>
29 #include <connectivity/dbtoolsdllapi.hxx>
30 #include <comphelper/IdPropArrayHelper.hxx>
31 #include <cppuhelper/implbase.hxx>
33 namespace com::sun::star::sdbc { class XDatabaseMetaData; }
35 namespace connectivity::sdbcx
38 typedef ::cppu::WeakImplHelper< css::lang::XServiceInfo,
39 css::container::XNamed> OView_BASE;
42 class OOO_DLLPUBLIC_DBTOOLS OView :
43 public ::comphelper::OMutexAndBroadcastHelper,
44 public OView_BASE,
45 public ::comphelper::OIdPropertyArrayUsageHelper<OView>,
46 public ODescriptor
48 protected:
49 OUString m_CatalogName;
50 OUString m_SchemaName;
51 OUString m_Command;
52 sal_Int32 m_CheckOption;
53 // need for the getName method
54 css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData;
56 // OPropertyArrayUsageHelper
57 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( sal_Int32 _nId) const override;
58 // OPropertySetHelper
59 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
61 public:
62 DECLARE_SERVICE_INFO();
64 OView(bool _bCase, css::uno::Reference< css::sdbc::XDatabaseMetaData > _xMetaData);
65 OView( bool _bCase,
66 const OUString& _rName,
67 css::uno::Reference< css::sdbc::XDatabaseMetaData > _xMetaData,
68 OUString _sCommand = OUString(),
69 OUString _sSchemaName = OUString(),
70 OUString _sCatalogName = OUString());
71 virtual ~OView() override;
73 // ODescriptor
74 virtual void construct() override;
76 // XInterface
77 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
78 virtual void SAL_CALL acquire() noexcept override;
79 virtual void SAL_CALL release() noexcept override;
80 //XTypeProvider
81 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
82 // XPropertySet
83 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
84 // XNamed
85 virtual OUString SAL_CALL getName( ) override;
86 virtual void SAL_CALL setName( const OUString& ) override;
91 #endif // INCLUDED_CONNECTIVITY_SDBCX_VVIEW_HXX
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */