QGIS API Documentation
3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
src
core
settings
qgssettingsregistry.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssettingsregistry.h
3
--------------------------------------
4
Date : February 2021
5
Copyright : (C) 2021 by Damiano Lombardi
6
Email : damiano at opengis dot ch
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
17
#ifndef QGSSETTINGSREGISTRY_H
18
#define QGSSETTINGSREGISTRY_H
19
20
#include "
qgis.h
"
21
#include "qgis_core.h"
22
#include "
qgis_sip.h
"
23
24
#include <QMap>
25
26
class
QgsSettingsEntryBase
;
27
class
QgsSettingsEntryGroup
;
28
38
class
CORE_DEPRECATED_EXPORT
QgsSettingsRegistry
39
{
40
public
:
41
42
QgsSettingsRegistry
();
43
virtual
~QgsSettingsRegistry
();
44
48
QList<const QgsSettingsEntryBase *> settingEntries()
const
;
49
55
const
QgsSettingsEntryBase
*settingsEntry(
const
QString &key,
bool
searchChildRegistries =
true
)
const
;
56
60
void
addSubRegistry(
const
QgsSettingsRegistry
*settingsRegistry );
61
65
void
removeSubRegistry(
const
QgsSettingsRegistry
*settingsRegistry );
66
70
QList<const QgsSettingsRegistry *> subRegistries()
const
;
71
72
protected
:
73
77
bool
addSettingsEntry(
const
QgsSettingsEntryBase
*settingsEntry );
78
84
Q_DECL_DEPRECATED
void
addSettingsEntryGroup(
const
QgsSettingsEntryGroup
*settingsGroup )
SIP_DEPRECATED
;
85
86
private
:
87
88
QMap<QString, const QgsSettingsEntryBase *> mSettingsEntriesMap;
89
90
Q_NOWARN_DEPRECATED_PUSH
91
QMap<const QgsSettingsEntryBase *, const QgsSettingsEntryGroup *> mSettingsEntriesGroupMap;
92
Q_NOWARN_DEPRECATED_POP
93
94
QList<const QgsSettingsRegistry *> mSettingsRegistryChildList;
95
96
friend
class
QgsSettingsEntryBase
;
97
98
};
99
100
#endif
// QGSSETTINGSREGISTRY_H
QgsSettingsEntryBase
Represent settings entry and provides methods for reading and writing settings values.
Definition
qgssettingsentry.h:45
QgsSettingsEntryGroup
Creates a group of setting which have a common definition of base key.
Definition
qgssettingsentrygroup.h:39
QgsSettingsRegistry
QgsSettingsRegistry is used for settings introspection and collects a list of child QgsSettingsRegist...
Definition
qgssettingsregistry.h:39
qgis.h
Q_NOWARN_DEPRECATED_POP
#define Q_NOWARN_DEPRECATED_POP
Definition
qgis.h:6535
Q_NOWARN_DEPRECATED_PUSH
#define Q_NOWARN_DEPRECATED_PUSH
Definition
qgis.h:6534
qgis_sip.h
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition
qgis_sip.h:106
Generated on Tue Nov 19 2024 18:20:01 for QGIS API Documentation by
1.9.8