libyui
 
Loading...
Searching...
No Matches
YPackageSelectorPlugin Class Referenceabstract

#include <YPackageSelectorPlugin.h>

Inheritance diagram for YPackageSelectorPlugin:
Collaboration diagram for YPackageSelectorPlugin:

Public Member Functions

virtual YPackageSelectorcreatePackageSelector (YWidget *parent, long modeFlags=0)=0
 
- Public Member Functions inherited from YUIPlugin
 YUIPlugin (const char *pluginLibBaseName)
 
virtual ~YUIPlugin ()
 
void unload ()
 
void * locateSymbol (const char *symbol)
 
bool error () const
 
bool success () const
 
std::string errorMsg () const
 

Protected Member Functions

 YPackageSelectorPlugin (const char *pluginLibBaseName)
 
virtual ~YPackageSelectorPlugin ()
 
- Protected Member Functions inherited from YUIPlugin
void * pluginLibHandle ()
 
std::string pluginLibBaseName () const
 
std::string pluginLibFullPath () const
 

Detailed Description

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

Constructor & Destructor Documentation

◆ YPackageSelectorPlugin()

YPackageSelectorPlugin::YPackageSelectorPlugin ( const char * pluginLibBaseName)
inlineprotected

Constructor: Load the specified plugin library from the standard UI plugin directory (/usr/lib/yui/).

◆ ~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.

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: