QGIS API Documentation  3.14.0-Pi (9f7028fd23)
qgsactionscoperegistry.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsactionscoperegistry.h - QgsActionScopeRegistry
3 
4  ---------------------
5  begin : 1.11.2016
6  copyright : (C) 2016 by Matthias Kuhn
7  email : [email protected]
8  ***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 #ifndef QGSACTIONSCOPEREGISTRY_H
17 #define QGSACTIONSCOPEREGISTRY_H
18 
19 #include "qgis_core.h"
20 #include <QObject>
21 #include <QSet>
22 #include "qgsactionscope.h"
23 
39 class CORE_EXPORT QgsActionScopeRegistry : public QObject
40 {
41  Q_OBJECT
42  Q_PROPERTY( QSet<QgsActionScope> actionScopes READ actionScopes NOTIFY actionScopesChanged )
43 
44  public:
45 
54  explicit QgsActionScopeRegistry( QObject *parent = nullptr );
55 
61  QSet<QgsActionScope> actionScopes() const;
62 
68  void registerActionScope( const QgsActionScope &actionScope );
69 
75  void unregisterActionScope( const QgsActionScope &actionScope );
76 
82  QgsActionScope actionScope( const QString &id );
83 
84  signals:
85 
92  void actionScopesChanged();
93 
94  private:
95  QSet<QgsActionScope> mActionScopes;
96 };
97 
98 #endif // QGSACTIONSCOPEREGISTRY_H
QgsActionScopeRegistry
Definition: qgsactionscoperegistry.h:39
qgsactionscope.h
QgsActionScope
Definition: qgsactionscope.h:46