diff options
Diffstat (limited to 'ksysguard/gui/ksgrd')
-rw-r--r-- | ksysguard/gui/ksgrd/SensorManager.cc | 4 | ||||
-rw-r--r-- | ksysguard/gui/ksgrd/SensorManager.h | 4 | ||||
-rw-r--r-- | ksysguard/gui/ksgrd/SensorSocketAgent.cc | 8 | ||||
-rw-r--r-- | ksysguard/gui/ksgrd/StyleEngine.cc | 4 | ||||
-rw-r--r-- | ksysguard/gui/ksgrd/StyleEngine.h | 6 |
5 files changed, 13 insertions, 13 deletions
diff --git a/ksysguard/gui/ksgrd/SensorManager.cc b/ksysguard/gui/ksgrd/SensorManager.cc index 43f878cda..4cf69d516 100644 --- a/ksysguard/gui/ksgrd/SensorManager.cc +++ b/ksysguard/gui/ksgrd/SensorManager.cc @@ -408,14 +408,14 @@ TQString SensorManager::translateSensor( const TQString &sensor ) const return out; } -void SensorManager::readProperties( KConfig *cfg ) +void SensorManager::readProperties( TDEConfig *cfg ) { mHostConnector->setHostNames( cfg->readListEntry( "HostList" ) ); mHostConnector->setCommands( cfg->readListEntry( "CommandList" ) ); } void -SensorManager::saveProperties( KConfig *cfg ) +SensorManager::saveProperties( TDEConfig *cfg ) { cfg->writeEntry( "HostList", mHostConnector->hostNames() ); cfg->writeEntry( "CommandList", mHostConnector->commands() ); diff --git a/ksysguard/gui/ksgrd/SensorManager.h b/ksysguard/gui/ksgrd/SensorManager.h index 7f4e85da7..a362de351 100644 --- a/ksysguard/gui/ksgrd/SensorManager.h +++ b/ksysguard/gui/ksgrd/SensorManager.h @@ -80,8 +80,8 @@ class KDE_EXPORT SensorManager : public QObject const TQString& translateSensorType( const TQString &type ) const; TQString translateSensor(const TQString& u) const; - void readProperties( KConfig *cfg ); - void saveProperties( KConfig *cfg ); + void readProperties( TDEConfig *cfg ); + void saveProperties( TDEConfig *cfg ); void disconnectClient( SensorClient *client ); diff --git a/ksysguard/gui/ksgrd/SensorSocketAgent.cc b/ksysguard/gui/ksgrd/SensorSocketAgent.cc index 0fee27c95..6289e4405 100644 --- a/ksysguard/gui/ksgrd/SensorSocketAgent.cc +++ b/ksysguard/gui/ksgrd/SensorSocketAgent.cc @@ -100,19 +100,19 @@ void SensorSocketAgent::connectionClosed() void SensorSocketAgent::error( int id ) { switch ( id ) { - case KNetwork::KSocketBase::ConnectionRefused: + case KNetwork::TDESocketBase::ConnectionRefused: SensorMgr->notify( i18n( "Connection to %1 refused" ) .arg( hostName() ) ); break; - case KNetwork::KSocketBase::LookupFailure: + case KNetwork::TDESocketBase::LookupFailure: SensorMgr->notify( i18n( "Host %1 not found" ) .arg( hostName() ) ); break; - case KNetwork::KSocketBase::Timeout: + case KNetwork::TDESocketBase::Timeout: SensorMgr->notify( i18n( "Timeout at host %1") .arg( hostName() ) ); break; - case KNetwork::KSocketBase::NetFailure: + case KNetwork::TDESocketBase::NetFailure: SensorMgr->notify( i18n( "Network failure host %1") .arg( hostName() ) ); break; diff --git a/ksysguard/gui/ksgrd/StyleEngine.cc b/ksysguard/gui/ksgrd/StyleEngine.cc index d05af4ec8..8b0613cf9 100644 --- a/ksysguard/gui/ksgrd/StyleEngine.cc +++ b/ksysguard/gui/ksgrd/StyleEngine.cc @@ -59,7 +59,7 @@ StyleEngine::~StyleEngine() { } -void StyleEngine::readProperties( KConfig *cfg ) +void StyleEngine::readProperties( TDEConfig *cfg ) { mFirstForegroundColor = cfg->readColorEntry( "fgColor1", &mFirstForegroundColor ); mSecondForegroundColor = cfg->readColorEntry( "fgColor2", &mSecondForegroundColor ); @@ -76,7 +76,7 @@ void StyleEngine::readProperties( KConfig *cfg ) } } -void StyleEngine::saveProperties( KConfig *cfg ) +void StyleEngine::saveProperties( TDEConfig *cfg ) { cfg->writeEntry( "fgColor1", mFirstForegroundColor ); cfg->writeEntry( "fgColor2", mSecondForegroundColor ); diff --git a/ksysguard/gui/ksgrd/StyleEngine.h b/ksysguard/gui/ksgrd/StyleEngine.h index 4263a85c8..50ec06e0b 100644 --- a/ksysguard/gui/ksgrd/StyleEngine.h +++ b/ksysguard/gui/ksgrd/StyleEngine.h @@ -30,7 +30,7 @@ #include <kdemacros.h> -class KConfig; +class TDEConfig; class TQListBoxItem; @@ -46,8 +46,8 @@ class KDE_EXPORT StyleEngine : public QObject StyleEngine(); ~StyleEngine(); - void readProperties( KConfig* ); - void saveProperties( KConfig* ); + void readProperties( TDEConfig* ); + void saveProperties( TDEConfig* ); const TQColor& firstForegroundColor() const; const TQColor& secondForegroundColor() const; |