QGIS API Documentation 3.39.0-Master (be2050b798e)
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#include <QIcon>
22
33class CORE_EXPORT QgsUserProfile
34{
35 public:
36
42 QgsUserProfile( const QString &folder );
43
47 const QString folder() const;
48
52 QgsError validate() const;
53
57 const QString name() const;
58
62 void initSettings() const;
63
68 const QString alias() const;
69
75 QgsError setAlias( const QString &alias ) const;
76
81 const QIcon icon() const;
82
83 private:
84 QString qgisDB() const;
85 QString mProfileFolder;
86};
87
88#endif
QgsError is container for error messages (report).
Definition qgserror.h:81
User profile contains information about the user profile folders on the machine.