15#ifndef QGSUSERPROFILEMANAGER_H
16#define QGSUSERPROFILEMANAGER_H
19#include <QFileSystemWatcher>
57 static QString resolveProfilesFolder(
const QString &basePath = QString() );
70 QgsUserProfile *getProfile(
const QString &defaultProfile =
"default",
bool createNew =
true,
bool initSettings =
true )
SIP_FACTORY;
77 void setRootLocation(
const QString &rootProfileLocation );
95 void setNewProfileNotificationEnabled(
bool enabled );
104 bool isNewProfileNotificationEnabled()
const;
110 bool rootLocationIsSet()
const;
115 QStringList allProfiles()
const;
121 bool profileExists(
const QString &name )
const;
131 QString defaultProfileName()
const;
138 void setDefaultProfileName(
const QString &name );
143 void setDefaultFromActive();
149 QString lastProfileName()
const;
155 void updateLastProfileName()
SIP_SKIP;
161 Qgis::UserProfileSelectionPolicy userProfileSelectionPolicy() const;
168 void setUserProfileSelectionPolicy(
Qgis::UserProfileSelectionPolicy policy );
182 QgsError createUserProfile( const QString &name );
190 QgsError deleteProfile( const QString &name );
205 void setActiveUserProfile( const QString &profile );
211 void loadUserProfile( const QString &name );
217 QSettings *settings();
230 void profilesChanged();
234 bool mWatchProfiles = false;
237 QString mRootProfilePath;
241 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.