Miam-Player  0.8.0
A nice music player
PluginManager Class Reference

The PluginManager class can dynamically load or unload plugins without restarting the application. More...

#include <pluginmanager.h>

Inheritance diagram for PluginManager:

Public Member Functions

 PluginManager (MainWindow *parent)
 
virtual ~PluginManager ()
 
void alertUser (const QStringList &failedPlugins)
 
void init ()
 
QMap< QString, BasicPlugin * > loadedPlugins () const
 
bool loadPlugin (const QString &pluginAbsPath)
 
void registerExtensionPoint (const char *className, QObjectList target)
 
bool unloadPlugin (const QString &absFilePath)
 

Detailed Description

The PluginManager class can dynamically load or unload plugins without restarting the application.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

PluginManager::PluginManager ( MainWindow parent)
explicit

Constructor with strong coupling.

PluginManager::~PluginManager ( )
virtual

Explicitly destroys every plugin.

Member Function Documentation

void PluginManager::alertUser ( const QStringList &  failedPlugins)

Display a QMessageBox if at least one error was encountered when loading plugins.

void PluginManager::init ( )
QMap<QString, BasicPlugin*> PluginManager::loadedPlugins ( ) const
inline
bool PluginManager::loadPlugin ( const QString &  pluginAbsPath)

Load a plugin by its location on the hard drive.

void PluginManager::registerExtensionPoint ( const char *  className,
QObjectList  source 
)

Allow views to be extended by adding 1 or more entries in a context menu and items to interact with.

bool PluginManager::unloadPlugin ( const QString &  absFilePath)

Unload a plugin by its name.


The documentation for this class was generated from the following files: