libyui  3.3.2
YSettings Class Reference

Settings for libyui. More...

#include <YSettings.h>

Static Public Member Functions

static void setProgDir (std::string directory)
 This can be used to set a subdir beneath PLUGINDIR or THEMEDIR, where your program stores a custom plugin or theme. More...
 
static std::string progDir ()
 Returns the value of your program's subdir.
 
static void setIconDir (std::string directory)
 This can be used to set a subdir ICONDIR, where your program stores a custom icons. More...
 
static std::string iconDir ()
 Returns the value of your program's icons subdir.
 
static void setThemeDir (std::string directory)
 This can be used to set a subdir THEMEDIR, where your program stores a custom icons. More...
 
static std::string themeDir ()
 Returns the value of your program's theme subdir.
 
static void setLocaleDir (std::string directory)
 This can be used to set a subdir LOCALEDIR, where your program stores translations. More...
 
static std::string localeDir ()
 Returns the value of your program's locale subdir.
 
static void loadedUI (std::string ui)
 This can be used to set the loaded UI-backend. More...
 
static std::string loadedUI ()
 Returns the value of the loaded UI-backend.
 

Static Protected Member Functions

static void loadedUI (std::string ui, bool force)
 This can be used to set the loaded UI-backend. More...
 

Detailed Description

Settings for libyui.

This singleton-object hold some presets for libyui.

Definition at line 49 of file YSettings.h.

Member Function Documentation

◆ loadedUI() [1/2]

void YSettings::loadedUI ( std::string  ui)
static

This can be used to set the loaded UI-backend.

Once this is set, it can't be altered. If you do so although an exception will be thrown.

Definition at line 190 of file YSettings.cc.

Here is the call graph for this function:

◆ loadedUI() [2/2]

void YSettings::loadedUI ( std::string  ui,
bool  force 
)
staticprotected

This can be used to set the loaded UI-backend.

Once this is set, it can't be altered, except if you force it. If you do so without force an exception will be thrown.

Definition at line 174 of file YSettings.cc.

◆ setIconDir()

void YSettings::setIconDir ( std::string  directory)
static

This can be used to set a subdir ICONDIR, where your program stores a custom icons.

Once this is set, it can't be altered. If you do so although an exception will be thrown.

Definition at line 80 of file YSettings.cc.

◆ setLocaleDir()

void YSettings::setLocaleDir ( std::string  directory)
static

This can be used to set a subdir LOCALEDIR, where your program stores translations.

Once this is set, it can't be altered. If you do so although an exception will be thrown.

Definition at line 142 of file YSettings.cc.

◆ setProgDir()

void YSettings::setProgDir ( std::string  directory)
static

This can be used to set a subdir beneath PLUGINDIR or THEMEDIR, where your program stores a custom plugin or theme.

Once this is set, it can't be altered. If you do so although an exception will be thrown.

Definition at line 56 of file YSettings.cc.

◆ setThemeDir()

void YSettings::setThemeDir ( std::string  directory)
static

This can be used to set a subdir THEMEDIR, where your program stores a custom icons.

Once this is set, it can't be altered. If you do so although an exception will be thrown.

Definition at line 109 of file YSettings.cc.


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