LibreOffice Module connectivity (master) 1
Awrapadox.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include <sal/config.h>
23
24#include <string_view>
25
26#include <com/sun/star/beans/PropertyAttribute.hpp>
27
28#ifndef __User_FWD_DEFINED__
29#define __User_FWD_DEFINED__
30typedef struct _ADOUser User;
31#endif
32
33#ifndef __Group_FWD_DEFINED__
34#define __Group_FWD_DEFINED__
35typedef struct _ADOGroup Group;
36#endif
37
38#ifndef __Column_FWD_DEFINED__
39#define __Column_FWD_DEFINED__
40typedef struct _ADOColumn Column;
41#endif
42
43#ifndef __Index_FWD_DEFINED__
44#define __Index_FWD_DEFINED__
45typedef struct _ADOIndex Index;
46#endif
47
48#ifndef __Key_FWD_DEFINED__
49#define __Key_FWD_DEFINED__
50typedef struct _ADOKey Key;
51#endif
52
53#ifndef __Table_FWD_DEFINED__
54#define __Table_FWD_DEFINED__
55typedef struct _ADOTable Table;
56#endif
57
58
59#include <adoint.h>
60#include <adoctint.h>
61
62
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>
72
73namespace connectivity::ado
74{
75 class WpADOView : public WpOLEBase<ADOView>
76 {
77 public:
78 WpADOView(ADOView* pInt=nullptr) : WpOLEBase<ADOView>(pInt){}
79 WpADOView(const WpADOView& rhs) : WpOLEBase<ADOView>(rhs) {}
80
82 {WpOLEBase<ADOView>::operator=(rhs); return *this;}
83
84 OUString get_Name() const;
85 void get_Command(OLEVariant& _rVar) const;
86 void put_Command(OLEVariant const & _rVar);
87 };
88
89 class WpADOGroup : public WpOLEBase<ADOGroup>
90 {
91 public:
92 WpADOGroup() = default;
93 WpADOGroup(const WpADOGroup& rhs) : WpOLEBase<ADOGroup>(rhs) {}
94
96 {WpOLEBase<ADOGroup>::operator=(rhs); return *this;}
97
98 void Create();
99
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);
111 };
112
113 class WpADOUser : public WpOLEBase<_ADOUser>
114 {
115 public:
116 WpADOUser() = default;
117 WpADOUser(const WpADOUser& rhs) : WpOLEBase<_ADOUser>(rhs) {}
118
120 {WpOLEBase<_ADOUser>::operator=(rhs); return *this;}
121
122 void Create();
123
124 OUString get_Name() const;
125 void put_Name(std::u16string_view _rName);
126 bool ChangePassword(std::u16string_view _rPwd,std::u16string_view _rNewPwd);
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);
136 };
137}
138
139/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
struct _ADOKey Key
Definition: Awrapadox.hxx:50
struct _ADOGroup Group
Definition: Awrapadox.hxx:35
struct _ADOColumn Column
Definition: Awrapadox.hxx:40
struct _ADOIndex Index
Definition: Awrapadox.hxx:45
struct _ADOUser User
Definition: Awrapadox.hxx:30
void put_Name(std::u16string_view _rName)
Definition: Awrapado.cxx:1373
WpADOGroup(const WpADOGroup &rhs)
Definition: Awrapadox.hxx:93
RightsEnum GetPermissions(const OLEVariant &Name, ObjectTypeEnum ObjectType)
Definition: Awrapado.cxx:1379
WpADOGroup & operator=(const WpADOGroup &rhs)
Definition: Awrapadox.hxx:95
bool SetPermissions(const OLEVariant &Name, ObjectTypeEnum ObjectType, ActionEnum Action, RightsEnum Rights)
Definition: Awrapado.cxx:1390
bool ChangePassword(std::u16string_view _rPwd, std::u16string_view _rNewPwd)
Definition: Awrapado.cxx:1421
WpADOUser(const WpADOUser &rhs)
Definition: Awrapadox.hxx:117
OUString get_Name() const
Definition: Awrapado.cxx:1408
bool SetPermissions(const OLEVariant &Name, ObjectTypeEnum ObjectType, ActionEnum Action, RightsEnum Rights)
Definition: Awrapado.cxx:1447
WpADOUser & operator=(const WpADOUser &rhs)
Definition: Awrapadox.hxx:119
RightsEnum GetPermissions(const OLEVariant &Name, ObjectTypeEnum ObjectType)
Definition: Awrapado.cxx:1436
void put_Name(std::u16string_view _rName)
Definition: Awrapado.cxx:1415
void put_Command(OLEVariant const &_rVar)
Definition: Awrapado.cxx:1360
WpADOView(ADOView *pInt=nullptr)
Definition: Awrapadox.hxx:78
WpADOView(const WpADOView &rhs)
Definition: Awrapadox.hxx:79
void get_Command(OLEVariant &_rVar) const
Definition: Awrapado.cxx:1354
WpADOView & operator=(const WpADOView &rhs)
Definition: Awrapadox.hxx:81
OUString get_Name() const
Definition: Awrapado.cxx:1346
WpOLEBase< T > & operator=(const WpOLEBase< T > &rhs)
Definition: Aolewrap.hxx:55
css::uno::Reference< css::beans::XPropertySet > ObjectType
Definition: VCollection.hxx:59