QGIS/python/core/auto_generated/qgsuserprofile.sip.in

89 lines
2.6 KiB
Plaintext
Raw Normal View History

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsuserprofile.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsUserProfile
{
%Docstring
2017-12-15 10:36:55 -04:00
User profile contains information about the user profile folders on the machine.
In QGIS 3 all settings, plugins, etc were moved into a %APPDATA%/profiles folder for each platform.
This allows for manage different user profiles per machine vs the single default one that was allowed in the
past.
2017-12-15 10:36:55 -04:00
A user profile is all settings and anything that used to be found in .qgis3 in the users home folder.
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgsuserprofile.h"
%End
public:
QgsUserProfile( const QString &folder );
%Docstring
2017-12-15 10:36:55 -04:00
Reference to a existing user profile folder.
2017-12-19 11:43:52 -04:00
Profile folder should be created using :py:class:`QgsProfileManager`.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param folder: An existing profile folder as the base of the user profile.
%End
const QString folder() const;
%Docstring
2017-12-15 10:36:55 -04:00
The base folder for the user profile.
%End
QgsError validate() const;
%Docstring
2017-12-15 10:36:55 -04:00
Check of the profile is in a valid state.
%End
const QString name() const;
%Docstring
2017-12-15 10:36:55 -04:00
The name for the user profile.
%End
void initSettings() const;
%Docstring
2017-12-15 10:36:55 -04:00
Init the settings from the user folder.
%End
const QString alias() const;
%Docstring
2017-12-15 10:36:55 -04:00
Return the alias for the user profile.
:return: If no alias is set name() is returned.
%End
QgsError setAlias( const QString &alias );
%Docstring
2017-12-15 10:36:55 -04:00
Set the alias of the profile. The alias is a user friendly name.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param alias: A user friendly name for the profile.
:return: True of setting the alias was successful.
%End
const QIcon icon() const;
%Docstring
2017-12-15 10:36:55 -04:00
The icon for the user profile.
:return: A QIcon for the users
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsuserprofile.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/