Use TDESimpleConfig

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 3 weeks ago
parent 9ca0bb40a2
commit 1ff71e7f0d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -20,7 +20,7 @@
#include <arts/dispatcher.h>
#include <arts/flowsystem.h>
#include <arts/connect.h>
#include <ksimpleconfig.h>
#include <tdesimpleconfig.h>
#include <tdeio/netaccess.h>
#include <tqptrlist.h>
#include <tqfile.h>
@ -105,7 +105,7 @@ void audio::play( const int snd )
void audio::setTheme( const TQString &newTheme )
{
TQString configFile;
KSimpleConfig *themeConfig;
TDESimpleConfig *themeConfig;
if( !enabled || !a->enabled )
return;
@ -118,7 +118,7 @@ void audio::setTheme( const TQString &newTheme )
kdWarning() << "audio::setTheme: Can not access theme.conf from " << newTheme << endl;
return;
}
themeConfig = new KSimpleConfig( configFile, true );
themeConfig = new TDESimpleConfig( configFile, true );
/* Read the details about this theme */
themeConfig->setGroup( "General" );

@ -17,7 +17,7 @@
/* KDE */
#include <tdestandarddirs.h>
#include <tdeglobalsettings.h>
#include <ksimpleconfig.h>
#include <tdesimpleconfig.h>
#include <tdeconfig.h>
#include <kiconloader.h>
#include <kmdcodec.h>
@ -625,8 +625,8 @@ void resource::setTheme( int BoardIndex, int ChessmenIndex )
TQString chessmenURL;
TQString boardConf;
TQString chessmenConf;
KSimpleConfig *boardConfig;
KSimpleConfig *chessmenConfig;
TDESimpleConfig *boardConfig;
TDESimpleConfig *chessmenConfig;
/* Make sure the Indexes are valid */
if( BoardIndex > (signed)Boards.count() )
@ -661,11 +661,11 @@ void resource::setTheme( int BoardIndex, int ChessmenIndex )
/* load the theme.conf files */
if( !TDEIO::NetAccess::download( boardURL + "theme.conf", boardConf ) )
kdWarning() << "Can not read theme.conf from " << boardURL << endl;
boardConfig = new KSimpleConfig( boardConf, true );
boardConfig = new TDESimpleConfig( boardConf, true );
if( !TDEIO::NetAccess::download( chessmenURL + "theme.conf", chessmenConf ) )
kdWarning() << "Can not read theme.conf from " << chessmenURL << endl;
chessmenConfig = new KSimpleConfig( chessmenConf, true );
chessmenConfig = new TDESimpleConfig( chessmenConf, true );
/* Read the headers */
boardConfig->setGroup( "General" );

Loading…
Cancel
Save