mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/**
 | 
						|
 * \class QgsPluginManagerInterface
 | 
						|
 * \brief Abstract base class to make QgsPluginManager available to pyplugin_installer.
 | 
						|
 */
 | 
						|
class QgsPluginManagerInterface : QObject
 | 
						|
{
 | 
						|
%TypeHeaderCode
 | 
						|
#include <qgspluginmanagerinterface.h>
 | 
						|
%End
 | 
						|
 | 
						|
  public:
 | 
						|
 | 
						|
    //! Constructor
 | 
						|
    QgsPluginManagerInterface();
 | 
						|
 | 
						|
    //! Virtual destructor
 | 
						|
    ~QgsPluginManagerInterface();
 | 
						|
 | 
						|
    //! remove python plugins from the metadata registry (c++ plugins stay)
 | 
						|
    virtual void clearPythonPluginMetadata() = 0;
 | 
						|
 | 
						|
    //! add a single plugin to the metadata registry
 | 
						|
    virtual void addPluginMetadata( const QMap<QString, QString>& metadata ) = 0;
 | 
						|
 | 
						|
    //! refresh plugin list model (and metadata browser content if necessary)
 | 
						|
    virtual void reloadModel() = 0;
 | 
						|
 | 
						|
    //! return given plugin metadata
 | 
						|
    virtual const QMap<QString, QString> * pluginMetadata( const QString& key ) const = 0;
 | 
						|
 | 
						|
    //! clear the repository listWidget
 | 
						|
    virtual void clearRepositoryList() = 0;
 | 
						|
 | 
						|
    //! add repository to the repository listWidget
 | 
						|
    virtual void addToRepositoryList( const QMap<QString, QString>& repository ) = 0;
 | 
						|
 | 
						|
    //! show the Plugin Manager window and optionally open tab tabIndex
 | 
						|
    virtual void showPluginManager( int tabIndex = -1 ) = 0;
 | 
						|
 | 
						|
    //! 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;
 | 
						|
};
 |