15#ifndef QGSUSERPROFILEMANAGER_H
16#define QGSUSERPROFILEMANAGER_H
19#include <QFileSystemWatcher>
58 static QString resolveProfilesFolder(
const QString &basePath = QString() );
71 QgsUserProfile *getProfile(
const QString &defaultProfile =
"default",
bool createNew =
true,
bool initSettings =
true )
SIP_FACTORY;
78 void setRootLocation(
const QString &rootProfileLocation );
96 void setNewProfileNotificationEnabled(
bool enabled );
105 bool isNewProfileNotificationEnabled()
const;
111 bool rootLocationIsSet()
const;
116 QStringList allProfiles()
const;
122 bool profileExists(
const QString &name )
const;
132 QString defaultProfileName()
const;
139 void setDefaultProfileName(
const QString &name );
144 void setDefaultFromActive();
150 QString lastProfileName()
const;
156 void updateLastProfileName()
SIP_SKIP;
162 Qgis::UserProfileSelectionPolicy userProfileSelectionPolicy() const;
169 void setUserProfileSelectionPolicy(
Qgis::UserProfileSelectionPolicy policy );
183 QgsError createUserProfile( const QString &name );
191 QgsError deleteProfile( const QString &name );
206 void setActiveUserProfile( const QString &profile );
212 void loadUserProfile( const QString &name );
225 void profilesChanged();
229 bool mWatchProfiles = false;
232 QString mRootProfilePath;
236 QString settingsFile() const;
The Qgis class provides global constants for use throughout the application.
QgsError is container for error messages (report).
User profile manager is used to manager list, and manage user profiles on the users machine.
QString rootLocation()
Returns the path to the root profiles location.
User profile contains information about the user profile folders on the machine.
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.