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 );
218 QSettings *settings();
231 void profilesChanged();
235 bool mWatchProfiles = false;
236 std::unique_ptr<QFileSystemWatcher> mWatcher;
238 QString mRootProfilePath;
242 QString settingsFile() const;
244 std::unique_ptr< QSettings > mSettings;