QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
qgsprocessingfavoritealgorithmmanager.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsprocessingfavoritealgorithmmanager.h
3 ----------------------------------
4 Date : February 2024
5 Copyright : (C) 2024 Alexander Bruy
6 Email : alexander dot bruy 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 QGSPROCESSINGFAVORITEALGORITHMMANAGER_H
17#define QGSPROCESSINGFAVORITEALGORITHMMANAGER_H
18
19#include "qgis.h"
20#include "qgis_gui.h"
21
23
25
38class GUI_EXPORT QgsProcessingFavoriteAlgorithmManager : public QObject
39{
40 Q_OBJECT
41
42 public:
43
48 QgsProcessingFavoriteAlgorithmManager( QObject *parent = nullptr );
49
53 QStringList favoriteAlgorithmIds() const;
54
61 void add( const QString &id );
62
69 void remove( const QString &id );
70
74 void clear();
75
79 bool isFavorite( const QString &id );
80
81#ifndef SIP_RUN
83 static const QgsSettingsEntryStringList *settingsFavoriteAlgorithms;
84#endif
85
86 signals:
87
93 void changed();
94
95 private:
96
97 QStringList mFavoriteAlgorithmIds;
98
99};
100
102
103#endif // QGSPROCESSINGFAVORITEALGORITHMMANAGER_H
A string list settings entry.