|
|
|
@ -59,7 +59,7 @@ KatapultSettings::~KatapultSettings()
|
|
|
|
|
|
|
|
|
|
void KatapultSettings::readSettings()
|
|
|
|
|
{
|
|
|
|
|
KConfig *config = kapp->config();
|
|
|
|
|
TDEConfig *config = kapp->config();
|
|
|
|
|
_hideSessionNotification = config->readNumEntry("HideSessionNotification", 1);
|
|
|
|
|
_hideUserNotification = config->readNumEntry("HideUserNotification", 0);
|
|
|
|
|
_notificationTimeout = config->readNumEntry("NotificationTimeout", 5000);
|
|
|
|
@ -83,7 +83,7 @@ void KatapultSettings::readSettings()
|
|
|
|
|
|
|
|
|
|
void KatapultSettings::writeSettings()
|
|
|
|
|
{
|
|
|
|
|
KConfig *config = kapp->config();
|
|
|
|
|
TDEConfig *config = kapp->config();
|
|
|
|
|
int hideSession = _hideSessionNotification;
|
|
|
|
|
int hideUser = _hideUserNotification;
|
|
|
|
|
|
|
|
|
@ -109,14 +109,14 @@ void KatapultSettings::writeSettings()
|
|
|
|
|
KatapultCatalog *catalog;
|
|
|
|
|
while((catalog = it.current()) != 0)
|
|
|
|
|
{
|
|
|
|
|
KConfigGroup group(config, TQString("Catalogs/%1").arg(it.currentKey()));
|
|
|
|
|
TDEConfigGroup group(config, TQString("Catalogs/%1").arg(it.currentKey()));
|
|
|
|
|
catalog->writeSettings(&group);
|
|
|
|
|
++it;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(_display != 0)
|
|
|
|
|
{
|
|
|
|
|
KConfigGroup group(config, TQString("Displays/%1").arg(_displayName));
|
|
|
|
|
TDEConfigGroup group(config, TQString("Displays/%1").arg(_displayName));
|
|
|
|
|
_display->writeSettings(&group);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -323,7 +323,7 @@ void KatapultSettings::loadCatalogPlugins()
|
|
|
|
|
(service, 0, 0, TQStringList(), &errCode);
|
|
|
|
|
if(catalog != 0)
|
|
|
|
|
{
|
|
|
|
|
KConfigGroup group(kapp->config(), TQString("Catalogs/%1").arg(id));
|
|
|
|
|
TDEConfigGroup group(kapp->config(), TQString("Catalogs/%1").arg(id));
|
|
|
|
|
catalog->readSettings(&group);
|
|
|
|
|
catalog->initialize();
|
|
|
|
|
_activeCatalogs.insert(id, catalog);
|
|
|
|
@ -364,7 +364,7 @@ void KatapultSettings::loadDisplayPlugins()
|
|
|
|
|
}
|
|
|
|
|
if(_display != 0)
|
|
|
|
|
{
|
|
|
|
|
KConfigGroup group(kapp->config(), TQString("Displays/%1").arg(_displayName));
|
|
|
|
|
TDEConfigGroup group(kapp->config(), TQString("Displays/%1").arg(_displayName));
|
|
|
|
|
_display->readSettings(&group);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|