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
|
2013-06-10 16:39:23 +02:00
|
|
|
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;
|
2014-03-27 11:19:17 +01:00
|
|
|
|
|
|
|
//! show the given message in the Plugin Manager internal message bar
|
|
|
|
virtual void pushMessage( const QString &text, QgsMessageBar::MessageLevel level = QgsMessageBar::INFO, int duration = -1 ) = 0;
|
2013-05-19 17:44:57 +02:00
|
|
|
};
|