bump product version to 7.2.5.1
[LibreOffice.git] / connectivity / inc / sdbcx / VGroup.hxx
blob9c292adc6d02ec1a8196370c966f2b420136864f
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 #pragma once
22 #include <com/sun/star/sdbcx/XUsersSupplier.hpp>
23 #include <com/sun/star/sdbcx/XAuthorizable.hpp>
24 #include <com/sun/star/container/XNamed.hpp>
25 #include <comphelper/proparrhlp.hxx>
26 #include <cppuhelper/compbase.hxx>
27 #include <cppuhelper/basemutex.hxx>
28 #include <connectivity/sdbcx/VCollection.hxx>
29 #include <connectivity/sdbcx/IRefreshable.hxx>
30 #include <connectivity/sdbcx/VDescriptor.hxx>
31 #include <connectivity/dbtoolsdllapi.hxx>
32 #include <com/sun/star/lang/XServiceInfo.hpp>
34 namespace connectivity::sdbcx
36 typedef OCollection OUsers;
38 typedef ::cppu::WeakComponentImplHelper< css::sdbcx::XUsersSupplier,
39 css::sdbcx::XAuthorizable,
40 css::container::XNamed,
41 css::lang::XServiceInfo> OGroup_BASE;
43 class OOO_DLLPUBLIC_DBTOOLS OGroup :
44 public cppu::BaseMutex,
45 public OGroup_BASE,
46 public IRefreshableUsers,
47 public ::comphelper::OPropertyArrayUsageHelper<OGroup>,
48 public ODescriptor
50 protected:
51 // no Reference! see OCollection::acquire
52 std::unique_ptr<OUsers> m_pUsers;
54 using OGroup_BASE::rBHelper;
56 // OPropertyArrayUsageHelper
57 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
58 // OPropertySetHelper
59 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
60 public:
61 OGroup(bool _bCase);
62 OGroup( const OUString& Name, bool _bCase);
63 virtual ~OGroup() override;
64 DECLARE_SERVICE_INFO();
66 // XInterface
67 virtual void SAL_CALL acquire() noexcept override;
68 virtual void SAL_CALL release() noexcept override;
70 //XInterface
71 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
72 //XTypeProvider
73 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
75 // ::cppu::OComponentHelper
76 virtual void SAL_CALL disposing() override;
77 // XPropertySet
78 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
79 // XUsersSupplier
80 virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getUsers( ) override;
81 // XAuthorizable
82 virtual sal_Int32 SAL_CALL getPrivileges( const OUString& objName, sal_Int32 objType ) override;
83 virtual sal_Int32 SAL_CALL getGrantablePrivileges( const OUString& objName, sal_Int32 objType ) override;
84 virtual void SAL_CALL grantPrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) override;
85 virtual void SAL_CALL revokePrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) override;
87 // XNamed
88 virtual OUString SAL_CALL getName( ) override;
89 virtual void SAL_CALL setName( const OUString& aName ) override;
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */