LibreOffice Module registry (master)  1
types.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 #ifndef INCLUDED_REGISTRY_TYPES_H
21 #define INCLUDED_REGISTRY_TYPES_H
22 
23 #include <sal/types.h>
24 #include <o3tl/typed_flags_set.hxx>
25 
36 
41 
46 
51 
56 
61 
66 
72 
77 
80 
85 
90 
92 
105  RT_TYPE_PUBLISHED = 0x4000
107 };
108 
132 enum class RTFieldAccess
133 {
134  NONE = 0x0000,
136  INVALID = 0x0000,
138  READONLY = 0x0001,
140  OPTIONAL = 0x0002,
142  MAYBEVOID = 0x0004,
144  BOUND = 0x0008,
146  CONSTRAINED = 0x0010,
148  TRANSIENT = 0x0020,
150  MAYBEAMBIGUOUS = 0x0040,
152  MAYBEDEFAULT = 0x0080,
154  REMOVABLE = 0x0100,
156  ATTRIBUTE = 0x0200,
158  PROPERTY = 0x0400,
160  CONST = 0x0800,
162  READWRITE = 0x1000,
164  DEFAULT = 0x2000,
174  PARAMETERIZED_TYPE = 0x4000,
183  PUBLISHED = 0x8000,
184 
185 };
186 namespace o3tl
187 {
188  template<> struct typed_flags<RTFieldAccess> : is_typed_flags<RTFieldAccess, 0xffff> {};
189 }
190 
208 };
209 
213  bool aBool;
215  sal_Int16 aShort;
216  sal_uInt16 aUShort;
217  sal_Int32 aLong;
218  sal_uInt32 aULong;
219  sal_Int64 aHyper;
220  sal_uInt64 aUHyper;
221  float aFloat;
222  double aDouble;
224 };
225 
231 enum class RTMethodMode {
233  INVALID,
234 
236  ONEWAY,
237 
239  ONEWAY_CONST,
240 
242  TWOWAY,
243 
245  TWOWAY_CONST,
246 
254 
262 };
263 
272 
275 
278 
281 
293 };
294 
297 enum class RTReferenceType {
299  INVALID,
300 
304  SUPPORTS,
305 
309  OBSERVES,
310 
314  EXPORTS,
315 
320  NEEDS,
321 
328 };
329 
330 #endif
331 
332 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Flag for published individual constants.
RTParamMode
specifies the mode of a parameter.
Definition: types.hxx:269
indicates an invalid parameter mode
Definition: types.hxx:271
sal_Int16 aShort
Definition: types.hxx:215
indicates a in and out parameter which is used also by reference
Definition: types.hxx:280
RTReferenceType
specifies the type of a reference used in a service description.
Definition: types.hxx:297
Indicates an extended attribute getter (that has a 'raises' clause) of an interface type...
signed char sal_Int8
specifies that the blob represents an enum type.
Definition: types.hxx:55
specifies that the blob represents a service type.
Definition: types.hxx:71
indicates the asynchronous mode of a method
specifies that the blob represents an interface type.
Definition: types.hxx:40
indicates an invalid mode
sal_uInt64 aUHyper
Definition: types.hxx:220
the reference type is unknown
indicates a pure in parameter which is used by value
Definition: types.hxx:274
sal_uInt16 sal_Unicode
specifies that the blob represents a struct type.
Definition: types.hxx:50
specifies that the field is a constant or enum value
the service exports the specified service that means this service provides also the specified service...
sal_Unicode const * aString
Definition: types.hxx:223
specifies that the blob represents a singleton type (a named object) which refers exactly one existin...
Definition: types.hxx:76
sal_uInt32 aULong
Definition: types.hxx:218
specifies a variable container for field values.
Definition: types.hxx:212
Indicates a rest parameter (currently only valid for service constructors).
Definition: types.hxx:292
specifies that the structure of the given blob is unknown and can't be read.
Definition: types.hxx:35
indicates a pure out parameter which is used by reference
Definition: types.hxx:277
the service support the interface that means an implementation of this service must implement this in...
only to describe a union default label
specifies that the blob represents an exception type.
Definition: types.hxx:60
sal_uInt16 aUShort
Definition: types.hxx:216
Indicates an extended attribute setter (that has a 'raises' clause) of an interface type...
RTTypeClass
specifies the typeclass of a binary type blob.
Definition: types.hxx:31
indicated the synchronous mode of a method
sal_Int32 aLong
Definition: types.hxx:217
RTValueType
specifies the type of a field value.
Definition: types.hxx:195
Indicates that a member of a polymorphic struct type template is of a parameterized type...
specifies that the blob represents a typedef type.
Definition: types.hxx:65
specifies an unknown flag
Indicates a type parameter of a polymorphic struct type template.
RTMethodMode
specifies the mode of a method.
Definition: types.hxx:231
specifies a property as optional that means that it must not be implemented.
sal_Int8 aByte
Definition: types.hxx:214
double aDouble
Definition: types.hxx:222
specifies that the blob represents a constants type.
Definition: types.hxx:84
specifies that the blob represents a module type.
Definition: types.hxx:45
RTFieldAccess
specifies the type for the field access.
Definition: types.hxx:132
deprecated, not used.
Definition: types.hxx:79
sal_Int64 aHyper
Definition: types.hxx:219
specifies a readonly property/attribute
specifies that the field is a property