cid#1636677 Uninitialized scalar field
[LibreOffice.git] / connectivity / source / drivers / firebird / View.hxx
blob2b300a8d06d9a2f8e221ae3910fa5654ec881e96
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
8 */
9 #pragma once
11 #include <connectivity/sdbcx/VView.hxx>
13 #include <com/sun/star/sdbcx/XAlterView.hpp>
14 #include <com/sun/star/sdbc/XConnection.hpp>
16 #include <comphelper/sequence.hxx>
17 #include <cppuhelper/implbase1.hxx>
19 namespace connectivity::firebird
21 typedef ::connectivity::sdbcx::OView View_Base;
22 typedef ::cppu::ImplHelper1<css::sdbcx::XAlterView> View_IBASE;
24 class View : public View_Base, public View_IBASE
26 public:
27 View(const css::uno::Reference<css::sdbc::XConnection>& _rxConnection, bool _bCaseSensitive,
28 const OUString& _rSchemaName, const OUString& _rName);
30 // UNO
31 virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type& aType) override;
32 virtual void SAL_CALL acquire() noexcept override;
33 virtual void SAL_CALL release() noexcept override;
35 virtual css::uno::Sequence<css::uno::Type> SAL_CALL getTypes() override;
36 virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId() override;
38 // XAlterView
39 virtual void SAL_CALL alterCommand(const OUString& NewCommand) override;
41 protected:
42 virtual ~View() override;
44 protected:
45 // OPropertyContainer
46 virtual void SAL_CALL getFastPropertyValue(css::uno::Any& _rValue,
47 sal_Int32 _nHandle) const override;
49 private:
50 /** retrieves the current command of the View */
51 OUString impl_getCommand() const;
53 private:
54 css::uno::Reference<css::sdbc::XConnection> m_xConnection;
56 using View_Base::getFastPropertyValue;
59 } // namespace connectivity::firebird
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */