xref: /AOO41X/main/connectivity/source/inc/ado/Awrapadox.hxx (revision caf5cd79edad04a48dcaf209068b3b89eae4622e)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _CONNECTIVITY_ADO_AWRAPADOX_HXX_
25 #define _CONNECTIVITY_ADO_AWRAPADOX_HXX_
26 
27 #include <com/sun/star/beans/PropertyAttribute.hpp>
28 
29 #ifndef __User_FWD_DEFINED__
30 #define __User_FWD_DEFINED__
31 typedef struct _ADOUser User;
32 #endif  /* __User_FWD_DEFINED__ */
33 
34 #ifndef __Group_FWD_DEFINED__
35 #define __Group_FWD_DEFINED__
36 typedef struct _ADOGroup Group;
37 #endif /* __Group_FWD_DEFINED__ */
38 
39 #ifndef __Column_FWD_DEFINED__
40 #define __Column_FWD_DEFINED__
41 typedef struct _ADOColumn Column;
42 #endif  /* __Column_FWD_DEFINED__ */
43 
44 #ifndef __Index_FWD_DEFINED__
45 #define __Index_FWD_DEFINED__
46 typedef struct _ADOIndex Index;
47 #endif /* __cplusplus */
48 
49 #ifndef __Key_FWD_DEFINED__
50 #define __Key_FWD_DEFINED__
51 typedef struct _ADOKey Key;
52 #endif  /* __Key_FWD_DEFINED__ */
53 
54 #ifndef __Table_FWD_DEFINED__
55 #define __Table_FWD_DEFINED__
56 typedef struct _ADOTable Table;
57 #endif  /* __Table_FWD_DEFINED__ */
58 
59 
60 #include "ado_pre_sys_include.h"
61 #include <adoint.h>
62 #include <adoctint.h>
63 #include "ado_post_sys_include.h"
64 
65 
66 #include "ado/Aolewrap.hxx"
67 #include "ado/Aolevariant.hxx"
68 #include "ado/adoimp.hxx"
69 #include "ado/Awrapado.hxx"
70 #include "ado/WrapColumn.hxx"
71 #include "ado/WrapIndex.hxx"
72 #include "ado/WrapKey.hxx"
73 #include "ado/WrapTable.hxx"
74 #include "ado/WrapCatalog.hxx"
75 
76 namespace connectivity
77 {
78     namespace ado
79     {
80         class WpADOView : public WpOLEBase<ADOView>
81         {
82         public:
WpADOView(ADOView * pInt=NULL)83             WpADOView(ADOView* pInt=NULL)   :   WpOLEBase<ADOView>(pInt){}
WpADOView(const WpADOView & rhs)84             WpADOView(const WpADOView& rhs){operator=(rhs);}
85 
operator =(const WpADOView & rhs)86             inline WpADOView& operator=(const WpADOView& rhs)
87                 {WpOLEBase<ADOView>::operator=(rhs); return *this;}
88 
89             ::rtl::OUString get_Name() const;
90             void get_Command(OLEVariant& _rVar) const;
91             void put_Command(OLEVariant& _rVar);
92         };
93 
94         class WpADOGroup : public WpOLEBase<ADOGroup>
95         {
96         public:
WpADOGroup(ADOGroup * pInt=NULL)97             WpADOGroup(ADOGroup* pInt=NULL) :   WpOLEBase<ADOGroup>(pInt){}
WpADOGroup(const WpADOGroup & rhs)98             WpADOGroup(const WpADOGroup& rhs){operator=(rhs);}
99 
operator =(const WpADOGroup & rhs)100             inline WpADOGroup& operator=(const WpADOGroup& rhs)
101                 {WpOLEBase<ADOGroup>::operator=(rhs); return *this;}
102 
103             void Create();
104 
105             ::rtl::OUString get_Name() const;
106             void put_Name(const ::rtl::OUString& _rName);
107             RightsEnum GetPermissions(
108                 /* [in] */ const OLEVariant& Name,
109                 /* [in] */ ObjectTypeEnum ObjectType);
110             sal_Bool SetPermissions(
111                 /* [in] */ const OLEVariant& Name,
112                 /* [in] */ ObjectTypeEnum ObjectType,
113                 /* [in] */ ActionEnum Action,
114                 /* [in] */ RightsEnum Rights);
115             WpADOUsers get_Users( );
116         };
117 
118         class WpADOUser : public WpOLEBase<_ADOUser>
119         {
120         public:
WpADOUser(_ADOUser * pInt=NULL)121             WpADOUser(_ADOUser* pInt=NULL)  :   WpOLEBase<_ADOUser>(pInt){}
WpADOUser(const WpADOUser & rhs)122             WpADOUser(const WpADOUser& rhs){operator=(rhs);}
123 
operator =(const WpADOUser & rhs)124             inline WpADOUser& operator=(const WpADOUser& rhs)
125                 {WpOLEBase<_ADOUser>::operator=(rhs); return *this;}
126 
127             void Create();
128 
129             ::rtl::OUString get_Name() const;
130             void put_Name(const ::rtl::OUString& _rName);
131             sal_Bool ChangePassword(const ::rtl::OUString& _rPwd,const ::rtl::OUString& _rNewPwd);
132             WpADOGroups get_Groups();
133             RightsEnum GetPermissions(
134                 /* [in] */ const OLEVariant& Name,
135                 /* [in] */ ObjectTypeEnum ObjectType);
136             sal_Bool SetPermissions(
137                 /* [in] */ const OLEVariant& Name,
138                 /* [in] */ ObjectTypeEnum ObjectType,
139                 /* [in] */ ActionEnum Action,
140                 /* [in] */ RightsEnum Rights);
141         };
142     }
143 }
144 #endif // _CONNECTIVITY_ADO_AWRAPADOX_HXX_
145 
146