69 std::unique_ptr< QgsUserProfile >
getProfile(
const QString &defaultProfile =
"default",
bool createNew =
true,
bool initSettings =
true );
94 void setNewProfileNotificationEnabled(
bool enabled );
103 bool isNewProfileNotificationEnabled()
const;
109 bool rootLocationIsSet()
const;
114 QStringList allProfiles()
const;
120 bool profileExists(
const QString &name )
const;
130 QString defaultProfileName()
const;
137 void setDefaultProfileName(
const QString &name );
142 void setDefaultFromActive();
148 QString lastProfileName()
const;
154 void updateLastProfileName()
SIP_SKIP;
160 Qgis::UserProfileSelectionPolicy userProfileSelectionPolicy() const;
167 void setUserProfileSelectionPolicy(
Qgis::UserProfileSelectionPolicy policy );
174 std::unique_ptr<
QgsUserProfile > profileForName( const QString &name ) const;
181 QgsError createUserProfile( const QString &name );
189 QgsError deleteProfile( const QString &name );
204 void setActiveUserProfile( const QString &profile );
210 void loadUserProfile( const QString &name );
216 QSettings *settings();
233 bool mWatchProfiles = false;
234 std::unique_ptr<QFileSystemWatcher> mWatcher;
236 QString mRootProfilePath;
240 QString settingsFile() const;
242 std::unique_ptr< QSettings > mSettings;