kpilot/kpilot
KPilotConfig Class Reference
List of all members.Detailed Description
Definition at line 39 of file kpilotConfig.h.
Public Types | |
enum | RunMode { Cancel = 0, Normal, ConfigureKPilot, ConfigureConduits, ConfigureAndContinue, WizardAndContinue } |
Static Public Member Functions | |
static QString | getDefaultDBPath () |
static void | addDirtyDatabase (QString db) |
static void | addAppBlockChangedDatabase (QString db) |
static void | addFlagsChangedDatabase (QString db) |
static int | getConfigVersion () |
static void | updateConfigVersion () |
static QString | versionDetails (int fileversion, bool run) |
static void | sorryVersionOutdated (int fileversion) |
static RunMode | interactiveUpdate () |
static int | getDebugLevel (KCmdLineArgs *p) |
static const QFont & | fixed () |
static void | sync () |
Static Public Attributes | |
static const uint | ConfigurationVersion = 443 |
Member Function Documentation
|
Returns the user's preference for the system-wide fixed font.
Definition at line 113 of file kpilotConfig.cc. |
|
Reads the configuration version from a configuration file. TODO: Make this use the *standard* location. Definition at line 59 of file kpilotConfig.cc. |
|
Deal with --debug options. resulting debug level Definition at line 96 of file kpilotConfig.cc. |
|
Definition at line 86 of file kpilotConfig.cc. |
|
Update the config file as best we can, and inform the user. Returns a suggested run mode if it's ok (ie. update finished, or file was already up-to-date) and Cancel if the user cancels. If the user cancels, it's probably best to _not_ continue with anything, since the config is bogus. The suggested run mode might be anything - usually normal, but might return ConfigureAndContinue as well. This function can call functions to update from different versions to current; these are static in kpilotConfig.cc. Definition at line 293 of file kpilotConfig.cc. |
|
Write the current configuration version to the standard location. Only call this after the KApplication object is created, or crashes will result. Definition at line 80 of file kpilotConfig.cc. |
|
Warn the user that the config file is outdated.
versionDetails() returns a descriptive string. Pass in the actual version of the config file. Set Definition at line 159 of file kpilotConfig.cc. |
Member Data Documentation
|
This number can be changed every time a new KPilot version is released that absolutely requires the user to take a look at the configuration of KPilot.
Definition at line 70 of file kpilotConfig.h. |
The documentation for this class was generated from the following files: