QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgsuserprofile.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsuserprofile.h
3
--------------------------------------
4
Date : Jul-2017
5
Copyright : (C) 2017 by Nathan Woodrow
6
Email : woodrow.nathan at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSUSERPROFILE_H
17
#define QGSUSERPROFILE_H
18
19
#include "qgis_core.h"
20
#include "
qgserror.h
"
21
22
#include <QIcon>
23
35
class
CORE_EXPORT
QgsUserProfile
36
{
37
public
:
43
QgsUserProfile
(
const
QString &
folder
);
44
48
const
QString
folder
()
const
;
49
53
QgsError
validate
()
const
;
54
58
const
QString
name
()
const
;
59
63
void
initSettings
()
const
;
64
69
const
QString
alias
()
const
;
70
76
QgsError
setAlias
(
const
QString &
alias
)
const
;
77
82
const
QIcon
icon
()
const
;
83
84
private
:
85
QString qgisDB()
const
;
86
QString mProfileFolder;
87
};
88
89
#endif
QgsError
A container for error messages.
Definition
qgserror.h:83
QgsUserProfile::QgsUserProfile
QgsUserProfile(const QString &folder)
Reference to an existing user profile folder.
Definition
qgsuserprofile.cpp:32
QgsUserProfile::folder
const QString folder() const
The base folder for the user profile.
Definition
qgsuserprofile.cpp:37
QgsUserProfile::name
const QString name() const
The name for the user profile.
Definition
qgsuserprofile.cpp:52
QgsUserProfile::setAlias
QgsError setAlias(const QString &alias) const
Set the alias of the profile.
Definition
qgsuserprofile.cpp:99
QgsUserProfile::alias
const QString alias() const
Returns the alias for the user profile.
Definition
qgsuserprofile.cpp:65
QgsUserProfile::icon
const QIcon icon() const
The icon for the user profile.
Definition
qgsuserprofile.cpp:133
QgsUserProfile::validate
QgsError validate() const
Check of the profile is in a valid state.
Definition
qgsuserprofile.cpp:42
QgsUserProfile::initSettings
void initSettings() const
Init the settings from the user folder.
Definition
qgsuserprofile.cpp:58
qgserror.h
Generated on
for QGIS API Documentation by
1.17.0