kpilot
kpilotConfig.h
Go to the documentation of this file.00001 #ifndef _KPILOT_KPILOTCONFIG_H 00002 #define _KPILOT_KPILOTCONFIG_H 00003 /* kpilotConfig.h KPilot 00004 ** 00005 ** Copyright (C) 1998-2001 by Dan Pilone 00006 ** Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com> 00007 ** 00008 ** This class concentrates all the configuration 00009 ** information for the various parts of KPilot. 00010 */ 00011 00012 /* 00013 ** This program is free software; you can redistribute it and/or modify 00014 ** it under the terms of the GNU General Public License as published by 00015 ** the Free Software Foundation; either version 2 of the License, or 00016 ** (at your option) any later version. 00017 ** 00018 ** This program is distributed in the hope that it will be useful, 00019 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 ** GNU General Public License for more details. 00022 ** 00023 ** You should have received a copy of the GNU General Public License 00024 ** along with this program in a file called COPYING; if not, write to 00025 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00026 ** MA 02110-1301, USA. 00027 */ 00028 00029 /* 00030 ** Bug reports and questions can be sent to kde-pim@kde.org 00031 */ 00032 00033 00034 #include "kpilotSettings.h" 00035 00036 class KCmdLineArgs; 00037 00038 00039 class KPilotConfig 00040 { 00041 public: 00042 typedef enum 00043 { 00044 Cancel=0, 00045 Normal, 00046 ConfigureKPilot, 00047 ConfigureConduits, 00048 ConfigureAndContinue, 00049 WizardAndContinue 00050 } RunMode; 00051 00056 static QString getDefaultDBPath(); 00057 00058 00059 // Conduit configuration information 00060 static void addDirtyDatabase(QString db); 00061 static void addAppBlockChangedDatabase(QString db); 00062 static void addFlagsChangedDatabase(QString db); 00063 00070 static const uint ConfigurationVersion; 00071 00076 static int getConfigVersion(); 00077 00083 static void updateConfigVersion(); 00084 00092 static QString versionDetails(int fileversion, bool run); 00093 static void sorryVersionOutdated(int fileversion); 00107 static RunMode interactiveUpdate(); 00108 00113 static int getDebugLevel(KCmdLineArgs *p); 00114 00119 static const QFont& fixed() ; 00120 00121 static void sync(); 00122 } ; 00123 00124 00125 00126 #endif