24 #include "globalsettings.h"
25 #include <kstaticdeleter.h>
28 GlobalSettings *GlobalSettings::mSelf = 0;
29 static KStaticDeleter<GlobalSettings> staticGlobalSettingsDeleter;
31 GlobalSettings *GlobalSettings::self()
34 staticGlobalSettingsDeleter.setObject( mSelf, new GlobalSettings() );
41 GlobalSettings::GlobalSettings()
43 mConfigSyncTimer = new TQTimer( this, "mConfigSyncTimer" );
44 connect( mConfigSyncTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotSyncNow() ) );
47 void GlobalSettings::requestSync()
49 if ( !mConfigSyncTimer->isActive() )
50 mConfigSyncTimer->start( 0, true );
53 void GlobalSettings::slotSyncNow()
58 GlobalSettings::~GlobalSettings()
62 #include "globalsettings.moc"
|