1 | /* |
2 | * BluezQt - Asynchronous BlueZ wrapper library |
3 | * |
4 | * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <mincequi@web.de> |
5 | * |
6 | * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
7 | */ |
8 | |
9 | #ifndef BLUEZAPI2QT_PROPERTY_H |
10 | #define BLUEZAPI2QT_PROPERTY_H |
11 | |
12 | #include "Comment.h" |
13 | |
14 | class Property |
15 | { |
16 | public: |
17 | struct Tags { |
18 | bool isOptional = false; |
19 | bool isExperimental = false; |
20 | bool isReadOnly = false; |
21 | bool isServerOnly = false; |
22 | }; |
23 | |
24 | Property(); |
25 | |
26 | bool finalize(); |
27 | |
28 | QString name() const; |
29 | QString type() const; |
30 | Tags tags() const; |
31 | QStringList () const; |
32 | |
33 | private: |
34 | QString m_name; |
35 | QString m_type; |
36 | QStringList m_stringTags; |
37 | QString m_limitation; |
38 | Comment ; |
39 | |
40 | // finalized members |
41 | Tags m_tags; |
42 | |
43 | friend class Properties; |
44 | }; |
45 | |
46 | #endif |
47 | |