68 std::unique_ptr< QgsUserProfile >
getProfile(
const QString &defaultProfile =
"default",
bool createNew =
true,
bool initSettings =
true );
93 void setNewProfileNotificationEnabled(
bool enabled );
102 bool isNewProfileNotificationEnabled()
const;
108 bool rootLocationIsSet()
const;
113 QStringList allProfiles()
const;
119 bool profileExists(
const QString &name )
const;
129 QString defaultProfileName()
const;
136 void setDefaultProfileName(
const QString &name );
141 void setDefaultFromActive();
147 QString lastProfileName()
const;
153 void updateLastProfileName()
SIP_SKIP;
159 Qgis::UserProfileSelectionPolicy userProfileSelectionPolicy() const;
166 void setUserProfileSelectionPolicy(
Qgis::UserProfileSelectionPolicy policy );
173 std::unique_ptr<
QgsUserProfile > profileForName( const QString &name ) const;
180 QgsError createUserProfile( const QString &name );
188 QgsError deleteProfile( const QString &name );
203 void setActiveUserProfile( const QString &profile );
209 void loadUserProfile( const QString &name );
215 QSettings *settings();
231 bool mWatchProfiles = false;
232 std::unique_ptr<QFileSystemWatcher> mWatcher;
234 QString mRootProfilePath;
238 QString settingsFile() const;
240 std::unique_ptr< QSettings > mSettings;