cid#1607171 Data race condition
[LibreOffice.git] / connectivity / source / inc / ado / Awrapadox.hxx
blobba91422a1d0946588e3f0875a9798b86d6347622
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 <sal/config.h>
24 #include <string_view>
26 #include <com/sun/star/beans/PropertyAttribute.hpp>
28 #ifndef __User_FWD_DEFINED__
29 #define __User_FWD_DEFINED__
30 typedef struct _ADOUser User;
31 #endif
33 #ifndef __Group_FWD_DEFINED__
34 #define __Group_FWD_DEFINED__
35 typedef struct _ADOGroup Group;
36 #endif
38 #ifndef __Column_FWD_DEFINED__
39 #define __Column_FWD_DEFINED__
40 typedef struct _ADOColumn Column;
41 #endif
43 #ifndef __Index_FWD_DEFINED__
44 #define __Index_FWD_DEFINED__
45 typedef struct _ADOIndex Index;
46 #endif
48 #ifndef __Key_FWD_DEFINED__
49 #define __Key_FWD_DEFINED__
50 typedef struct _ADOKey Key;
51 #endif
53 #ifndef __Table_FWD_DEFINED__
54 #define __Table_FWD_DEFINED__
55 typedef struct _ADOTable Table;
56 #endif
59 #include <adoint.h>
60 #include <adoctint.h>
63 #include <ado/Aolewrap.hxx>
64 #include <ado/Aolevariant.hxx>
65 #include <ado/adoimp.hxx>
66 #include <ado/Awrapado.hxx>
67 #include <ado/WrapColumn.hxx>
68 #include <ado/WrapIndex.hxx>
69 #include <ado/WrapKey.hxx>
70 #include <ado/WrapTable.hxx>
71 #include <ado/WrapCatalog.hxx>
73 namespace connectivity::ado
75 class WpADOView : public WpOLEBase<ADOView>
77 public:
78 WpADOView(ADOView* pInt=nullptr) : WpOLEBase<ADOView>(pInt){}
79 WpADOView(const WpADOView& rhs) : WpOLEBase<ADOView>(rhs) {}
81 WpADOView& operator=(const WpADOView& rhs)
82 {WpOLEBase<ADOView>::operator=(rhs); return *this;}
84 OUString get_Name() const;
85 void get_Command(OLEVariant& _rVar) const;
86 void put_Command(OLEVariant const & _rVar);
89 class WpADOGroup : public WpOLEBase<ADOGroup>
91 public:
92 WpADOGroup() = default;
93 WpADOGroup(const WpADOGroup& rhs) : WpOLEBase<ADOGroup>(rhs) {}
95 WpADOGroup& operator=(const WpADOGroup& rhs)
96 {WpOLEBase<ADOGroup>::operator=(rhs); return *this;}
98 void Create();
100 OUString get_Name() const;
101 void put_Name(std::u16string_view _rName);
102 RightsEnum GetPermissions(
103 /* [in] */ const OLEVariant& Name,
104 /* [in] */ ObjectTypeEnum ObjectType);
105 bool SetPermissions(
106 /* [in] */ const OLEVariant& Name,
107 /* [in] */ ObjectTypeEnum ObjectType,
108 /* [in] */ ActionEnum Action,
109 /* [in] */ RightsEnum Rights);
110 WpADOUsers get_Users( );
113 class WpADOUser : public WpOLEBase<_ADOUser>
115 public:
116 WpADOUser() = default;
117 WpADOUser(const WpADOUser& rhs) : WpOLEBase<_ADOUser>(rhs) {}
119 WpADOUser& operator=(const WpADOUser& rhs)
120 {WpOLEBase<_ADOUser>::operator=(rhs); return *this;}
122 void Create();
124 OUString get_Name() const;
125 void put_Name(std::u16string_view _rName);
126 bool ChangePassword(std::u16string_view _rPwd,std::u16string_view _rNewPwd);
127 WpADOGroups get_Groups();
128 RightsEnum GetPermissions(
129 /* [in] */ const OLEVariant& Name,
130 /* [in] */ ObjectTypeEnum ObjectType);
131 bool SetPermissions(
132 /* [in] */ const OLEVariant& Name,
133 /* [in] */ ObjectTypeEnum ObjectType,
134 /* [in] */ ActionEnum Action,
135 /* [in] */ RightsEnum Rights);
139 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */