bump product version to 7.2.5.1
[LibreOffice.git] / connectivity / source / drivers / firebird / Users.hxx
blob7e78444d11990ab1604e9082589e7c512b2141f6
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 */
10 #pragma once
12 #include <connectivity/sdbcx/VCollection.hxx>
13 #include <com/sun/star/sdbc/XDatabaseMetaData.hpp>
15 namespace connectivity::firebird
18 /**
19 * This implements com.sun.star.sdbcx.Container.
21 class Users: public ::connectivity::sdbcx::OCollection
23 css::uno::Reference< css::sdbc::XDatabaseMetaData >
24 m_xMetaData;
25 protected:
27 // OCollection
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;
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);
43 // TODO: we should also implement XDataDescriptorFactory, XRefreshable,
44 // XAppend, etc., but all are optional.
46 // XDrop
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: */