105 std::string _pluginLibBaseName;
106 void * _pluginLibHandle;
107 std::string _errorMsg;
Wrapper class for dlopen() and related.
std::string pluginLibBaseName() const
Returns the base name of the plugin library.
virtual ~YUIPlugin()
Destructor.
void * pluginLibHandle()
Returns the dlopen() handle of the plugin library.
std::string pluginLibFullPath() const
Returns the full path of the plugin library.
void unload()
Unload this plugin.
void * locateSymbol(const char *symbol)
Try to locate the specified symbol (function or global variable) in the plugin library.
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.
YUIPlugin(const char *pluginLibBaseName)
Constructor: Load the specified plugin library from the standard UI plugin directory (/usr/lib/yui/).