• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kpilot

KPilotConfig Class Reference

#include <kpilotConfig.h>

List of all members.


Detailed Description

Definition at line 39 of file kpilotConfig.h.


Public Types

enum  RunMode {
  Cancel = 0, Normal, ConfigureKPilot, ConfigureConduits,
  ConfigureAndContinue
}

Static Public Member Functions

static void addAppBlockChangedDatabase (const QString &db)
static void addDirtyDatabase (const QString &db)
static void addFlagsChangedDatabase (const QString &db)
static const QFont & fixed ()
static int getConfigVersion ()
static int getDebugLevel (KCmdLineArgs *p)
static QString getDefaultDBPath ()
static RunMode interactiveUpdate ()
static void sorryVersionOutdated (int fileversion)
static void sync ()
static void updateConfigVersion ()
static QString versionDetails (int fileversion, bool run)

Static Public Attributes

static const uint ConfigurationVersion = 443

Member Enumeration Documentation

enum KPilotConfig::RunMode

Enumerator:
Cancel 
Normal 
ConfigureKPilot 
ConfigureConduits 
ConfigureAndContinue 

Definition at line 42 of file kpilotConfig.h.


Member Function Documentation

static void KPilotConfig::addAppBlockChangedDatabase ( const QString &  db  )  [static]

static void KPilotConfig::addDirtyDatabase ( const QString &  db  )  [static]

static void KPilotConfig::addFlagsChangedDatabase ( const QString &  db  )  [static]

const QFont & KPilotConfig::fixed (  )  [static]

Returns the user's preference for the system-wide fixed font.

Definition at line 115 of file kpilotConfig.cc.

int KPilotConfig::getConfigVersion (  )  [static]

Reads the configuration version from a configuration file.

TODO: Make this use the *standard* location.

Definition at line 58 of file kpilotConfig.cc.

int KPilotConfig::getDebugLevel ( KCmdLineArgs *  p  )  [static]

Deal with --debug options.

resulting debug level

Definition at line 92 of file kpilotConfig.cc.

QString KPilotConfig::getDefaultDBPath (  )  [static]

Returns:
QString of default path for the BackupDB files are located

Definition at line 82 of file kpilotConfig.cc.

KPilotConfig::RunMode KPilotConfig::interactiveUpdate (  )  [static]

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 172 of file kpilotConfig.cc.

void KPilotConfig::sorryVersionOutdated ( int  fileversion  )  [static]

Definition at line 161 of file kpilotConfig.cc.

void KPilotConfig::sync (  )  [static]

Definition at line 210 of file kpilotConfig.cc.

void KPilotConfig::updateConfigVersion (  )  [static]

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 76 of file kpilotConfig.cc.

QString KPilotConfig::versionDetails ( int  fileversion,
bool  run 
) [static]

Warn the user that the config file is outdated.

versionDetails() returns a descriptive string. Pass in the actual version of the config file. Set run to true to add an admonition to run kpilot in config mode to fix this. sorryVersionOutdated() uses KMessageBox to display it.

Definition at line 125 of file kpilotConfig.cc.


Member Data Documentation

const uint KPilotConfig::ConfigurationVersion = 443 [static]

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 69 of file kpilotConfig.h.


The documentation for this class was generated from the following files:
  • kpilotConfig.h
  • kpilotConfig.cc

kpilot

Skip menu "kpilot"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal