1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 #ifndef INCLUDED_CONNECTIVITY_SDBCX_VGROUP_HXX
21 #define INCLUDED_CONNECTIVITY_SDBCX_VGROUP_HXX
23 #include <osl/diagnose.h>
26 #include <com/sun/star/sdbcx/XUsersSupplier.hpp>
27 #include <com/sun/star/sdbcx/XAuthorizable.hpp>
28 #include <com/sun/star/container/XNamed.hpp>
29 #include <comphelper/proparrhlp.hxx>
30 #include <cppuhelper/compbase4.hxx>
31 #include <comphelper/broadcasthelper.hxx>
32 #include <connectivity/sdbcx/VCollection.hxx>
33 #include <comphelper/propertycontainer.hxx>
34 #include <connectivity/sdbcx/IRefreshable.hxx>
35 #include <connectivity/sdbcx/VDescriptor.hxx>
36 #include <connectivity/dbtoolsdllapi.hxx>
37 #include <com/sun/star/lang/XServiceInfo.hpp>
39 namespace connectivity
43 typedef OCollection OUsers
;
45 typedef ::cppu::WeakComponentImplHelper4
< ::com::sun::star::sdbcx::XUsersSupplier
,
46 ::com::sun::star::sdbcx::XAuthorizable
,
47 ::com::sun::star::container::XNamed
,
48 ::com::sun::star::lang::XServiceInfo
> OGroup_BASE
;
50 class OOO_DLLPUBLIC_DBTOOLS OGroup
:
51 public comphelper::OBaseMutex
,
53 public IRefreshableUsers
,
54 public ::comphelper::OPropertyArrayUsageHelper
<OGroup
>,
60 using OGroup_BASE::rBHelper
;
62 // OPropertyArrayUsageHelper
63 virtual ::cppu::IPropertyArrayHelper
* createArrayHelper( ) const SAL_OVERRIDE
;
65 virtual ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper() SAL_OVERRIDE
;
68 OGroup( const OUString
& _Name
, bool _bCase
);
70 DECLARE_SERVICE_INFO();
73 virtual void SAL_CALL
acquire() throw() SAL_OVERRIDE
;
74 virtual void SAL_CALL
release() throw() SAL_OVERRIDE
;
77 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& rType
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
79 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
81 // ::cppu::OComponentHelper
82 virtual void SAL_CALL
disposing() SAL_OVERRIDE
;
84 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
86 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
> SAL_CALL
getUsers( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
88 virtual sal_Int32 SAL_CALL
getPrivileges( const OUString
& objName
, sal_Int32 objType
) throw(::com::sun::star::sdbc::SQLException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
89 virtual sal_Int32 SAL_CALL
getGrantablePrivileges( const OUString
& objName
, sal_Int32 objType
) throw(::com::sun::star::sdbc::SQLException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
90 virtual void SAL_CALL
grantPrivileges( const OUString
& objName
, sal_Int32 objType
, sal_Int32 objPrivileges
) throw(::com::sun::star::sdbc::SQLException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
91 virtual void SAL_CALL
revokePrivileges( const OUString
& objName
, sal_Int32 objType
, sal_Int32 objPrivileges
) throw(::com::sun::star::sdbc::SQLException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
94 virtual OUString SAL_CALL
getName( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
95 virtual void SAL_CALL
setName( const OUString
& aName
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
100 #endif // INCLUDED_CONNECTIVITY_SDBCX_VGROUP_HXX
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */