bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / connectivity / sdbcx / VView.hxx
blobe1a56a9fe85e0f4003ef5615ec819290e111ea28
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
37 namespace sdbcx
40 typedef ::cppu::WeakImplHelper< css::lang::XServiceInfo,
41 css::container::XNamed> OView_BASE;
44 class OOO_DLLPUBLIC_DBTOOLS OView :
45 public ::comphelper::OMutexAndBroadcastHelper,
46 public OView_BASE,
47 public ::comphelper::OIdPropertyArrayUsageHelper<OView>,
48 public ODescriptor
50 protected:
51 OUString m_CatalogName;
52 OUString m_SchemaName;
53 OUString m_Command;
54 sal_Int32 m_CheckOption;
55 // need for the getName method
56 css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData;
58 // OPropertyArrayUsageHelper
59 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( sal_Int32 _nId) const override;
60 // OPropertySetHelper
61 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
63 public:
64 DECLARE_SERVICE_INFO();
66 OView(bool _bCase,const css::uno::Reference< css::sdbc::XDatabaseMetaData >& _xMetaData);
67 OView( bool _bCase,
68 const OUString& _rName,
69 const css::uno::Reference< css::sdbc::XDatabaseMetaData >& _xMetaData,
70 const OUString& _rCommand = OUString(),
71 const OUString& _rSchemaName = OUString(),
72 const OUString& _rCatalogName = OUString());
73 virtual ~OView() override;
75 // ODescriptor
76 virtual void construct() override;
78 // XInterface
79 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
80 virtual void SAL_CALL acquire() throw() override;
81 virtual void SAL_CALL release() throw() override;
82 //XTypeProvider
83 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
84 // XPropertySet
85 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
86 // XNamed
87 virtual OUString SAL_CALL getName( ) override;
88 virtual void SAL_CALL setName( const OUString& ) override;
93 #endif // INCLUDED_CONNECTIVITY_SDBCX_VVIEW_HXX
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */