17#ifndef QGSLOCALIZEDDATAPATHREGISTRY_H
18#define QGSLOCALIZEDDATAPATHREGISTRY_H
26#include <QReadWriteLock>
56 QStringList
paths()
const;
66 void registerPath(
const QString &path,
int position = -1 );
82 void readFromSettings();
83 void writeToSettings()
const;
86 mutable QReadWriteLock mLock;
QString globalPath(const QString &localizedPath) const
Returns the global path if the file has been found in one of the paths, an empty string otherwise.
void setPaths(const QStringList &paths)
Sets the complete list of localized path.
void unregisterPath(const QString &path)
Unregisters a localized path.
QgsLocalizedDataPathRegistry()
QString localizedPath(const QString &globalPath) const
Returns the localized path if the file has been found in one of the path, an empty string otherwise.
static const QgsSettingsEntryStringList * settingsLocalizedDataPaths
Settings entry localized data paths.
void registerPath(const QString &path, int position=-1)
Registers a localized path If position is given, the path is inserted at the given position in the li...
QStringList paths() const
Returns a list of registered localized paths.
A string list settings entry.