QGIS API Documentation
3.41.0-Master (cea29feecf2)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
core
qgslocalizeddatapathregistry.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslocalizeddatapathregistry.h
3
--------------------------------------
4
Date : May 2020
5
Copyright : (C) 2020 by Denis Rouzaud
6
Email : denis.rouzaud
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 QGSLOCALIZEDDATAPATHREGISTRY_H
18
#define QGSLOCALIZEDDATAPATHREGISTRY_H
19
20
21
#include <QDir>
22
#include <QList>
23
#include <QReadWriteLock>
24
25
#include "qgis_core.h"
26
#include "
qgis_sip.h
"
27
28
29
class
QgsSettingsEntryStringList
;
30
45
class
CORE_EXPORT
QgsLocalizedDataPathRegistry
46
{
47
public
:
48
QgsLocalizedDataPathRegistry
();
49
51
QString globalPath(
const
QString &localizedPath )
const
;
52
54
QString localizedPath(
const
QString &globalPath )
const
;
55
57
QStringList paths()
const
;
58
60
void
setPaths(
const
QStringList &paths )
SIP_SKIP
;
61
67
void
registerPath(
const
QString &path,
int
position = -1 );
68
70
void
unregisterPath(
const
QString &path );
71
72
#ifndef SIP_RUN
74
static
const
QgsSettingsEntryStringList
*
settingsLocalizedDataPaths
;
75
#endif
76
77
private
:
78
#ifdef SIP_RUN
79
QgsLocalizedDataPathRegistry
(
const
QgsLocalizedDataPathRegistry
&other )
80
{}
81
#endif
82
83
void
readFromSettings();
84
void
writeToSettings()
const
;
85
86
QList<QDir> mPaths;
87
mutable
QReadWriteLock mLock;
88
};
45
class
CORE_EXPORT
QgsLocalizedDataPathRegistry
{
…
};
89
90
#endif
// QGSLOCALIZEDDATAPATHREGISTRY_H
QgsLocalizedDataPathRegistry
A registry class to hold localized data paths which can be used for basemaps, logos,...
Definition
qgslocalizeddatapathregistry.h:46
QgsLocalizedDataPathRegistry::settingsLocalizedDataPaths
static const QgsSettingsEntryStringList * settingsLocalizedDataPaths
Settings entry localized data paths.
Definition
qgslocalizeddatapathregistry.h:74
QgsSettingsEntryStringList
A string list settings entry.
Definition
qgssettingsentryimpl.h:231
qgis_sip.h
SIP_SKIP
#define SIP_SKIP
Definition
qgis_sip.h:126
Generated on Sun Dec 15 2024 01:32:01 for QGIS API Documentation by
1.9.8