mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
51 lines
1.5 KiB
Plaintext
51 lines
1.5 KiB
Plaintext
|
/**
|
||
|
* \class QgsPluginManagerInterface
|
||
|
* \brief Abstract base class to make QgsPluginManager available to plugins.
|
||
|
*/
|
||
|
class QgsPluginManagerInterface : QObject
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <qgspluginmanagerinterface.h>
|
||
|
%End
|
||
|
|
||
|
public:
|
||
|
|
||
|
//! Constructor
|
||
|
QgsPluginManagerInterface();
|
||
|
|
||
|
//! Virtual destructor
|
||
|
~QgsPluginManagerInterface();
|
||
|
|
||
|
//! remove metadata of all python plugins from the registry (c++ plugins stay)
|
||
|
virtual void clearPythonPluginMetadata() = 0;
|
||
|
|
||
|
//! add a single plugin to the metadata registry
|
||
|
virtual void addPluginMetadata( QMap<QString,QString> metadata ) = 0;
|
||
|
|
||
|
//! refresh listView model and textView content
|
||
|
virtual void reloadModel() = 0;
|
||
|
|
||
|
//! get given plugin metadata
|
||
|
virtual QMap<QString, QString> * pluginMetadata( QString key ) = 0;
|
||
|
|
||
|
//! clear the repository listWidget
|
||
|
virtual void clearRepositoryList() = 0;
|
||
|
|
||
|
//! add repository to the repository listWidget
|
||
|
virtual void addToRepositoryList( QMap<QString,QString> repository ) = 0;
|
||
|
|
||
|
signals:
|
||
|
|
||
|
//! emitted when the Python Plugin Installer should show the fetching repositories window
|
||
|
void fetchingStillInProgress( );
|
||
|
|
||
|
public slots:
|
||
|
|
||
|
//! show the Plugin Manager window when remote repositories are fetched.
|
||
|
//! Display a progress dialog when fetching.
|
||
|
virtual void showPluginManagerWhenReady( ) = 0;
|
||
|
|
||
|
//! promptly show the Plugin Manager window and optionally open tab tabIndex:
|
||
|
virtual void showPluginManager( int tabIndex = -1 ) = 0;
|
||
|
};
|