QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
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 "
qgis.h
"
21
#include "qgis_gui.h"
22
23
#include <QMap>
24
#include <QObject>
25
#include <QString>
26
32
class
GUI_EXPORT
QgsPluginManagerInterface
:
public
QObject
33
{
34
Q_OBJECT
35
36
public
:
37
QgsPluginManagerInterface
() =
default
;
38
40
virtual
void
clearPythonPluginMetadata
() = 0;
41
43
virtual
void
addPluginMetadata
(
const
QMap<QString, QString> &metadata ) = 0;
44
46
virtual
void
reloadModel
() = 0;
47
49
virtual
const
QMap<QString, QString> *
pluginMetadata
(
const
QString &key )
const
= 0;
50
52
virtual
void
clearRepositoryList
() = 0;
53
55
virtual
void
addToRepositoryList
(
const
QMap<QString, QString> &repository ) = 0;
56
62
virtual
void
showPluginManager
(
int
tabIndex = -1,
const
QString &searchTerm = QString() ) = 0;
63
65
virtual
void
pushMessage
(
const
QString &text,
Qgis::MessageLevel
level =
Qgis::MessageLevel::Info
,
int
duration = -1 ) = 0;
66
};
67
68
#endif
Qgis::MessageLevel
MessageLevel
Level for messages This will be used both for message log and message bar in application.
Definition
qgis.h:160
Qgis::Info
@ Info
Information message.
Definition
qgis.h:161
QgsPluginManagerInterface::pushMessage
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
QgsPluginManagerInterface::reloadModel
virtual void reloadModel()=0
refresh plugin list model (and metadata browser content if necessary)
QgsPluginManagerInterface::pluginMetadata
virtual const QMap< QString, QString > * pluginMetadata(const QString &key) const =0
Returns given plugin metadata.
QgsPluginManagerInterface::showPluginManager
virtual void showPluginManager(int tabIndex=-1, const QString &searchTerm=QString())=0
Shows the Plugin Manager window and optionally open tab tabIndex and pre-fill search term.
QgsPluginManagerInterface::addToRepositoryList
virtual void addToRepositoryList(const QMap< QString, QString > &repository)=0
add repository to the repository listWidget
QgsPluginManagerInterface::QgsPluginManagerInterface
QgsPluginManagerInterface()=default
QgsPluginManagerInterface::addPluginMetadata
virtual void addPluginMetadata(const QMap< QString, QString > &metadata)=0
add a single plugin to the metadata registry
QgsPluginManagerInterface::clearPythonPluginMetadata
virtual void clearPythonPluginMetadata()=0
remove Python plugins from the metadata registry (c++ plugins stay)
QgsPluginManagerInterface::clearRepositoryList
virtual void clearRepositoryList()=0
clear the repository listWidget
qgis.h
Generated on
for QGIS API Documentation by
1.17.0