QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
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
35class CORE_EXPORT QgsUserProfile
36{
37 public:
38
44 QgsUserProfile( const QString &folder );
45
49 const QString folder() const;
50
54 QgsError validate() const;
55
59 const QString name() const;
60
64 void initSettings() const;
65
70 const QString alias() const;
71
77 QgsError setAlias( const QString &alias ) const;
78
83 const QIcon icon() const;
84
85 private:
86 QString qgisDB() const;
87 QString mProfileFolder;
88};
89
90#endif
A container for error messages.
Definition qgserror.h:81
QgsUserProfile(const QString &folder)
Reference to an existing user profile folder.
const QString folder() const
The base folder for the user profile.
const QString name() const
The name for the user profile.
QgsError setAlias(const QString &alias) const
Set the alias of the profile.
const QString alias() const
Returns the alias for the user profile.
const QIcon icon() const
The icon for the user profile.
QgsError validate() const
Check of the profile is in a valid state.
void initSettings() const
Init the settings from the user folder.