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 .
22 #include <sdbcx/VUser.hxx>
23 #include <ado/Awrapadox.hxx>
25 namespace connectivity::ado
28 typedef connectivity::sdbcx::OUser OUser_TYPEDEF
;
29 typedef connectivity::sdbcx::OUser_BASE OUser_BASE_TYPEDEF
;
31 class OAdoUser
: public OUser_TYPEDEF
37 virtual void SAL_CALL
setFastPropertyValue_NoBroadcast(
39 const css::uno::Any
& rValue
41 virtual void SAL_CALL
getFastPropertyValue(
42 css::uno::Any
& rValue
,
46 virtual void refreshGroups() override
;
48 OAdoUser(OCatalog
* _pParent
,bool _bCase
, ADOUser
* _pUser
=nullptr);
49 OAdoUser(OCatalog
* _pParent
,bool _bCase
, const OUString
& Name
);
52 virtual void SAL_CALL
changePassword( const OUString
& objPassword
, const OUString
& newPassword
) override
;
54 virtual sal_Int32 SAL_CALL
getPrivileges( const OUString
& objName
, sal_Int32 objType
) override
;
55 virtual sal_Int32 SAL_CALL
getGrantablePrivileges( const OUString
& objName
, sal_Int32 objType
) override
;
56 virtual void SAL_CALL
grantPrivileges( const OUString
& objName
, sal_Int32 objType
, sal_Int32 objPrivileges
) override
;
57 virtual void SAL_CALL
revokePrivileges( const OUString
& objName
, sal_Int32 objType
, sal_Int32 objPrivileges
) override
;
59 WpADOUser
getImpl() const { return m_aUser
;}
63 typedef ::comphelper::OPropertyArrayUsageHelper
<OUserExtend
> OUserExtend_PROP
;
65 class OUserExtend
: public OAdoUser
,
66 public OUserExtend_PROP
70 // OPropertyArrayUsageHelper
71 virtual ::cppu::IPropertyArrayHelper
* createArrayHelper() const override
;
73 virtual ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper() override
;
75 OUserExtend(OCatalog
* _pParent
,bool _bCase
,ADOUser
* _pUser
=nullptr);
76 OUserExtend(OCatalog
* _pParent
,bool _bCase
,const OUString
& Name
);
78 virtual void construct() override
;
79 OUString
getPassword() const { return m_Password
;}
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */