libyui
3.3.1
|
Class to load one of the concrete UI plug-ins: Qt, NCurses, Gtk. More...
#include <YUILoader.h>
Static Public Member Functions | |
static void | loadUI (bool withThreads=false) |
Load any of the available UI-plugins by this order and criteria: More... | |
static void | deleteUI () |
This will make sure the UI singleton is deleted. More... | |
static void | loadPlugin (const std::string &name, bool withThreads=false) |
Load a UI plug-in. More... | |
static bool | pluginExists (const std::string &pluginBaseName) |
static void | loadExternalWidgets (const std::string &name, const std::string &symbol="_Z21createExternalWidgetsPKc") |
Load the given External Widgets plugin followed by its graphical extension implementation in the following order in the same way as loadUI: More... | |
Class to load one of the concrete UI plug-ins: Qt, NCurses, Gtk.
Definition at line 45 of file YUILoader.h.
|
static |
This will make sure the UI singleton is deleted.
If the UI is already destroyed, it will do nothing. If there still is a UI object, it will be deleted.
This is particularly important for the NCurses UI so that the terminal settings are properly restored.
Definition at line 167 of file YUILoader.cc.
|
static |
Load the given External Widgets plugin followed by its graphical extension implementation in the following order in the same way as loadUI:
'name' is the user defined plugin name, graphical extension implementations have to be called 'name'-qt, 'name'-gtk and 'name'-ncurses. Following this rule plugin file names are as libyui-XX-YY.so.VER where: XX is the user defined name YY is the UI used (ncurses, gtk, qt) VER is the libyui so version 'symbol' is the function symbol to be loaded, e.g. YExternalWidgets* 'symbol'(void) (e.g. default YExternalWidgets* createExternalWidgets(const char *) see createEWFunction_t definition)
Definition at line 226 of file YUILoader.cc.
|
static |
Load a UI plug-in.
'name' is one of the YUIPlugin_ -defines above.
This might throw exceptions.
Definition at line 178 of file YUILoader.cc.
|
static |
Load any of the available UI-plugins by this order and criteria:
This can be overridden by either:
If a command-line switch is given to the program, the setting from the environment variable will be overridden by the UI-plugin chosen with the switch.
If the user-selected UI-plugin is not installed on the system, an installed UI-plugin will be chosen by the above criteria.
Definition at line 42 of file YUILoader.cc.