#include <YUILoader.h>
Static Public Member Functions | |
static void | loadUI (bool withThreads=false) |
static void | deleteUI () |
static void | loadRestAPIPlugin (const std::string &wantedGUI, bool withThreads=false) |
static void | loadPlugin (const std::string &name, bool withThreads=false) |
static bool | pluginExists (const std::string &pluginBaseName) |
static void | loadExternalWidgets (const std::string &name, const std::string &symbol="_Z21createExternalWidgetsPKc") |
Class to load one of the concrete UI plug-ins: Qt, NCurses, Gtk; or one of the corresponding REST APIs used for automated testing.
|
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.
|
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)
|
static |
Load a UI plug-in. 'name' is one of the YUIPlugin_ -defines above.
This might throw exceptions.
|
static |
Method handles loading integration test framework and load underlying GUI using hints from loadUI.
|
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.
|
static |
Check if a plug-in exists.