QGIS API Documentation 3.41.0-Master (af5edcb665c)
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
34class CORE_EXPORT QgsUserProfile
35{
36 public:
37
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
A container for error messages.
Definition qgserror.h:81
User profile contains information about the user profile folders on the machine.