105 std::string _pluginLibBaseName;
106 void * _pluginLibHandle;
107 std::string _errorMsg;
111 #endif // YUIPlugin_h virtual ~YUIPlugin()
Destructor.
std::string pluginLibFullPath() const
Returns the full path of the plugin library.
YUIPlugin(const char *pluginLibBaseName)
Constructor: Load the specified plugin library from the standard UI plugin directory (/usr/lib/yui/)...
void * locateSymbol(const char *symbol)
Try to locate the specified symbol (function or global variable) in the plugin library.
bool success() const
Returns 'true' if there was no error loading the plugin.
std::string pluginLibBaseName() const
Returns the base name of the plugin library.
void * pluginLibHandle()
Returns the dlopen() handle of the plugin library.
bool error() const
Returns 'true' if there was an error loading the plugin.
void unload()
Unload this plugin.
Wrapper class for dlopen() and related.
std::string errorMsg() const
Returns a human readable (but in most cases untranslated) error message if there was an error...