libyui  3.2.7
YUILoader Class Reference

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 plug-ins in this order: 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...
 

Detailed Description

Class to load one of the concrete UI plug-ins: Qt, NCurses, Gtk.

Definition at line 45 of file YUILoader.h.

Member Function Documentation

§ deleteUI()

void YUILoader::deleteUI ( )
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 100 of file YUILoader.cc.

§ loadExternalWidgets()

void YUILoader::loadExternalWidgets ( const std::string &  name,
const std::string &  symbol = "_Z21createExternalWidgetsPKc" 
)
static

Load the given External Widgets plugin followed by its graphical extension implementation in the following order in the same way as loadUI:

  • Qt, Gtk or NCurses

'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 159 of file YUILoader.cc.

§ loadPlugin()

void YUILoader::loadPlugin ( const std::string &  name,
bool  withThreads = false 
)
static

Load a UI plug-in.

'name' is one of the YUIPlugin_ -defines above.

This might throw exceptions.

Definition at line 111 of file YUILoader.cc.

§ loadUI()

void YUILoader::loadUI ( bool  withThreads = false)
static

Load any of the available UI plug-ins in this order:

  • Qt if $DISPLAY is set
  • NCurses if stdout is a tty

Definition at line 41 of file YUILoader.cc.


The documentation for this class was generated from the following files: