1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
12 #include <connectivity/sdbcx/VCollection.hxx>
13 #include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
15 namespace connectivity::firebird
19 * This implements com.sun.star.sdbcx.Container.
21 class Users
: public ::connectivity::sdbcx::OCollection
23 css::uno::Reference
< css::sdbc::XDatabaseMetaData
>
28 virtual void impl_refresh() override
;
29 virtual ::connectivity::sdbcx::ObjectType
createObject(
30 const OUString
& rName
) override
;
31 virtual css::uno::Reference
< css::beans::XPropertySet
>
32 createDescriptor() override
;
33 virtual ::connectivity::sdbcx::ObjectType
appendObject(
34 const OUString
& rName
,
35 const css::uno::Reference
< css::beans::XPropertySet
>& rDescriptor
) override
;
38 Users(const css::uno::Reference
< css::sdbc::XDatabaseMetaData
>& rMetaData
,
39 ::cppu::OWeakObject
& rParent
,
41 ::std::vector
< OUString
> const & rNames
);
43 // TODO: we should also implement XDataDescriptorFactory, XRefreshable,
44 // XAppend, etc., but all are optional.
47 virtual void dropObject(sal_Int32 nPosition
, const OUString
& rName
) override
;
51 } // namespace connectivity::firebird
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */