LibreOffice Module connectivity (master) 1
Users.hxx
Go to the documentation of this file.
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.
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
10#pragma once
11
13#include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
14
16 {
17
22 {
23 css::uno::Reference< css::sdbc::XDatabaseMetaData >
25 protected:
26
27 // OCollection
28 virtual void impl_refresh() override;
30 const OUString& rName) override;
31 virtual css::uno::Reference< css::beans::XPropertySet >
32 createDescriptor() override;
34 const OUString& rName,
35 const css::uno::Reference< css::beans::XPropertySet >& rDescriptor) override;
36
37 public:
38 Users(const css::uno::Reference< css::sdbc::XDatabaseMetaData >& rMetaData,
39 ::cppu::OWeakObject& rParent,
40 ::osl::Mutex& rMutex,
41 ::std::vector< OUString> const & rNames);
42
43 // TODO: we should also implement XDataDescriptorFactory, XRefreshable,
44 // XAppend, etc., but all are optional.
45
46 // XDrop
47 virtual void dropObject(sal_Int32 nPosition, const OUString& rName) override;
48
49 };
50
51} // namespace connectivity::firebird
52
53/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
This implements com.sun.star.sdbcx.Container.
Definition: Users.hxx:22
virtual ::connectivity::sdbcx::ObjectType appendObject(const OUString &rName, const css::uno::Reference< css::beans::XPropertySet > &rDescriptor) override
appends an object described by a descriptor, under a given name
Definition: Users.cxx:58
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override
Definition: Users.cxx:49
virtual void dropObject(sal_Int32 nPosition, const OUString &rName) override
Definition: Users.cxx:68
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData
Definition: Users.hxx:24
virtual void impl_refresh() override
Definition: Users.cxx:39
Users(const css::uno::Reference< css::sdbc::XDatabaseMetaData > &rMetaData, ::cppu::OWeakObject &rParent, ::osl::Mutex &rMutex, ::std::vector< OUString > const &rNames)
virtual ::connectivity::sdbcx::ObjectType createObject(const OUString &rName) override
Definition: Users.cxx:44
css::uno::Reference< css::beans::XPropertySet > ObjectType
Definition: VCollection.hxx:59