libyui  3.3.2
YPackageSelectorPlugin Class Referenceabstract

Abstract base class for simplified access to UI plugins for package selection. More...

#include <YPackageSelectorPlugin.h>

Inheritance diagram for YPackageSelectorPlugin:
Collaboration diagram for YPackageSelectorPlugin:

Public Member Functions

virtual YPackageSelectorcreatePackageSelector (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.
 

Detailed Description

Abstract base class for simplified access to UI plugins for package selection.

Definition at line 38 of file YPackageSelectorPlugin.h.

Constructor & Destructor Documentation

◆ ~YPackageSelectorPlugin()

virtual YPackageSelectorPlugin::~YPackageSelectorPlugin ( )
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.

Here is the call graph for this function:

Member Function Documentation

◆ createPackageSelector()

virtual YPackageSelector* YPackageSelectorPlugin::createPackageSelector ( YWidget parent,
long  modeFlags = 0 
)
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.


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