QGIS/python/gui/qgspluginmanagerinterface.sip

40 lines
1.2 KiB
Plaintext
Raw Normal View History

2013-05-19 17:44:57 +02:00
/**
* \class QgsPluginManagerInterface
2013-05-27 16:28:50 +02:00
* \brief Abstract base class to make QgsPluginManager available to pyplugin_installer.
2013-05-19 17:44:57 +02:00
*/
class QgsPluginManagerInterface : QObject
{
%TypeHeaderCode
#include <qgspluginmanagerinterface.h>
%End
public:
//! Constructor
QgsPluginManagerInterface();
//! Virtual destructor
~QgsPluginManagerInterface();
2013-05-27 16:28:50 +02:00
//! remove python plugins from the metadata registry (c++ plugins stay)
2013-05-19 17:44:57 +02:00
virtual void clearPythonPluginMetadata() = 0;
//! add a single plugin to the metadata registry
2013-05-27 16:28:50 +02:00
virtual void addPluginMetadata( QMap<QString, QString> metadata ) = 0;
2013-05-19 17:44:57 +02:00
2013-05-27 16:28:50 +02:00
//! refresh plugin list model (and metadata browser content if necessary)
2013-05-19 17:44:57 +02:00
virtual void reloadModel() = 0;
2013-05-27 16:28:50 +02:00
//! return given plugin metadata
virtual const QMap<QString, QString> * pluginMetadata( QString key ) const = 0;
2013-05-19 17:44:57 +02:00
//! clear the repository listWidget
virtual void clearRepositoryList() = 0;
//! add repository to the repository listWidget
2013-05-27 16:28:50 +02:00
virtual void addToRepositoryList( QMap<QString, QString> repository ) = 0;
2013-05-19 17:44:57 +02:00
2013-05-27 16:28:50 +02:00
//! show the Plugin Manager window and optionally open tab tabIndex
2013-05-19 17:44:57 +02:00
virtual void showPluginManager( int tabIndex = -1 ) = 0;
};