105 std::string _pluginLibBaseName;
106 void * _pluginLibHandle;
107 std::string _errorMsg;
111 #endif // YUIPlugin_h
std::string errorMsg() const
Returns a human readable (but in most cases untranslated) error message if there was an error.
Wrapper class for dlopen() and related.
bool success() const
Returns 'true' if there was no error loading the plugin.
void * pluginLibHandle()
Returns the dlopen() handle of the plugin library.
bool error() const
Returns 'true' if there was an error loading the plugin.
std::string pluginLibBaseName() const
Returns the base name 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.
std::string pluginLibFullPath() const
Returns the full path of the plugin library.
virtual ~YUIPlugin()
Destructor.
YUIPlugin(const char *pluginLibBaseName)
Constructor: Load the specified plugin library from the standard UI plugin directory (/usr/lib/yui/).