|
libyui
3.1.5
|
Abstract base class for simplified access to UI plugins for package selection. More...
#include <YPackageSelectorPlugin.h>


Public Member Functions | |
| virtual YPackageSelector * | createPackageSelector (YWidget *parent, long modeFlags=0)=0 |
| Create a package selector. More... | |
Public Member Functions inherited from YUIPlugin | |
| YUIPlugin (const char *pluginLibBaseName) | |
| Constructor: Load the specified plugin library from the standard UI plugin directory (/usr/lib/yui/). | |
| virtual | ~YUIPlugin () |
| Destructor. More... | |
| void | unload () |
| Unload this plugin. More... | |
| void * | locateSymbol (const char *symbol) |
| Try to locate the specified symbol (function or global variable) in the plugin library. More... | |
| bool | error () const |
| Returns 'true' if there was an error loading the plugin. | |
| bool | success () const |
| Returns 'true' if there was no error loading the plugin. | |
| std::string | errorMsg () const |
| Returns a human readable (but in most cases untranslated) error message if there was an error. | |
Protected Member Functions | |
| YPackageSelectorPlugin (const char *pluginLibBaseName) | |
| Constructor: Load the specified plugin library from the standard UI plugin directory (/usr/lib/yui/). | |
| virtual | ~YPackageSelectorPlugin () |
| Destructor. More... | |
Protected Member Functions inherited from YUIPlugin | |
| void * | pluginLibHandle () |
| Returns the dlopen() handle of the plugin library. | |
| std::string | pluginLibBaseName () const |
| Returns the base name of the plugin library. | |
| std::string | pluginLibFullPath () const |
| Returns the full path of the plugin library. | |
Abstract base class for simplified access to UI plugins for package selection.
Definition at line 38 of file YPackageSelectorPlugin.h.
|
inlineprotectedvirtual |
Destructor.
Calls dlclose() which will unload the plugin library if it is no longer used, i.e. if the reference count dlopen() uses reaches 0.
Definition at line 52 of file YPackageSelectorPlugin.h.
|
pure virtual |
Create a package selector.
Derived classes need to implement this.
This might return 0 if the plugin lib could not be loaded or if the appropriate symbol could not be located in the plugin lib.