QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
qgspluginmanagerinterface.h
Go to the documentation of this file.
1/***************************************************************************
2 qgspluginmanagerinterface.h
3 --------------------------------------
4 Date : 15-May-2013
5 Copyright : (C) 2013 by Borys Jurgiel
6 Email : info at borysjurgiel dot pl
7****************************************************************************/
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
17#ifndef QGSPLUGINMANAGERINTERFACE_H
18#define QGSPLUGINMANAGERINTERFACE_H
19
20#include <QObject>
21#include <QString>
22#include <QMap>
23#include "qgis_gui.h"
24#include "qgis.h"
25
26
31class GUI_EXPORT QgsPluginManagerInterface : public QObject
32{
33 Q_OBJECT
34
35 public:
37
39 virtual void clearPythonPluginMetadata() = 0;
40
42 virtual void addPluginMetadata( const QMap<QString, QString> &metadata ) = 0;
43
45 virtual void reloadModel() = 0;
46
48 virtual const QMap<QString, QString> *pluginMetadata( const QString &key ) const = 0;
49
51 virtual void clearRepositoryList() = 0;
52
54 virtual void addToRepositoryList( const QMap<QString, QString> &repository ) = 0;
55
57 virtual void showPluginManager( int tabIndex = -1 ) = 0;
58
60 virtual void pushMessage( const QString &text, Qgis::MessageLevel level = Qgis::MessageLevel::Info, int duration = -1 ) = 0;
61};
62
63#endif
MessageLevel
Level for messages This will be used both for message log and message bar in application.
Definition qgis.h:154
@ Info
Information message.
Definition qgis.h:155
virtual void pushMessage(const QString &text, Qgis::MessageLevel level=Qgis::MessageLevel::Info, int duration=-1)=0
show the given message in the Plugin Manager internal message bar
virtual void reloadModel()=0
refresh plugin list model (and metadata browser content if necessary)
virtual const QMap< QString, QString > * pluginMetadata(const QString &key) const =0
Returns given plugin metadata.
virtual void addToRepositoryList(const QMap< QString, QString > &repository)=0
add repository to the repository listWidget
QgsPluginManagerInterface()=default
virtual void showPluginManager(int tabIndex=-1)=0
show the Plugin Manager window and optionally open tab tabIndex
virtual void addPluginMetadata(const QMap< QString, QString > &metadata)=0
add a single plugin to the metadata registry
virtual void clearPythonPluginMetadata()=0
remove Python plugins from the metadata registry (c++ plugins stay)
virtual void clearRepositoryList()=0
clear the repository listWidget