75 std::unique_ptr< QgsUserProfile >
getProfile(
const QString &defaultProfile =
"default",
bool createNew =
true,
bool initSettings =
true );
100 void setNewProfileNotificationEnabled(
bool enabled );
109 bool isNewProfileNotificationEnabled()
const;
115 bool rootLocationIsSet()
const;
120 QStringList allProfiles()
const;
126 bool profileExists(
const QString &name )
const;
136 QString defaultProfileName()
const;
143 void setDefaultProfileName(
const QString &name );
148 void setDefaultFromActive();
154 QString lastProfileName()
const;
160 void updateLastProfileName()
SIP_SKIP;
166 Qgis::UserProfileSelectionPolicy userProfileSelectionPolicy() const;
173 void setUserProfileSelectionPolicy(
Qgis::UserProfileSelectionPolicy policy );
180 std::unique_ptr<
QgsUserProfile > profileForName( const QString &name ) const;
187 QgsError createUserProfile( const QString &name );
195 QgsError deleteProfile( const QString &name );
210 void setActiveUserProfile( const QString &profile );
216 void loadUserProfile( const QString &name );
222 QSettings *settings();
238 bool mWatchProfiles = false;
239 std::unique_ptr<QFileSystemWatcher> mWatcher;
241 QString mRootProfilePath;
245 QString settingsFile() const;
247 std::unique_ptr< QSettings > mSettings;
A boolean settings entry.