kpilot/lib
kpilotlibSettings.cc
00001 // This file is generated by kconfig_compiler from kpilotlib.kcfg. 00002 // All changes you do to this file will be lost. 00003 00004 #include "kpilotlibSettings.h" 00005 00006 #include <klocale.h> 00007 00008 #include <kstaticdeleter.h> 00009 00010 KPilotLibSettings *KPilotLibSettings::mSelf = 0; 00011 static KStaticDeleter<KPilotLibSettings> staticKPilotLibSettingsDeleter; 00012 00013 KPilotLibSettings *KPilotLibSettings::self() 00014 { 00015 if ( !mSelf ) { 00016 staticKPilotLibSettingsDeleter.setObject( mSelf, new KPilotLibSettings() ); 00017 mSelf->readConfig(); 00018 } 00019 00020 return mSelf; 00021 } 00022 00023 KPilotLibSettings::KPilotLibSettings( ) 00024 : KConfigSkeleton( QString::fromLatin1( "kpilotrc" ) ) 00025 { 00026 mSelf = this; 00027 } 00028 00029 KPilotLibSettings::~KPilotLibSettings() 00030 { 00031 if ( mSelf == this ) 00032 staticKPilotLibSettingsDeleter.setObject( mSelf, 0, false ); 00033 } 00034