summaryrefslogtreecommitdiffstats
path: root/knights/resource.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:08:54 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:08:54 -0600
commit35676c0c2e0844ba8429771708c8a04a3314338f (patch)
treec9c226a10fc7b83bf8e7dd35430e6b19aeb85eed /knights/resource.cpp
parent05485bbfed57bdeab67bc5683e0dd39901c61a7f (diff)
downloadknights-35676c0c2e0844ba8429771708c8a04a3314338f.tar.gz
knights-35676c0c2e0844ba8429771708c8a04a3314338f.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'knights/resource.cpp')
-rw-r--r--knights/resource.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/knights/resource.cpp b/knights/resource.cpp
index 48d3001..b813723 100644
--- a/knights/resource.cpp
+++ b/knights/resource.cpp
@@ -100,7 +100,7 @@ resource::~resource()
TQStringList temps = TDEGlobal::dirs()->findAllResources("tmp","knights*");
for( int a=0; a < temps.count(); a++)
{
- KIO::NetAccess::del( "file://" + temps[a] );
+ TDEIO::NetAccess::del( "file://" + temps[a] );
} */
}
///////////////////////////////////////
@@ -657,11 +657,11 @@ void resource::setTheme( int BoardIndex, int ChessmenIndex )
}
/* load the theme.conf files */
- if( !KIO::NetAccess::download( boardURL + "theme.conf", boardConf ) )
+ if( !TDEIO::NetAccess::download( boardURL + "theme.conf", boardConf ) )
kdWarning() << "Can not read theme.conf from " << boardURL << endl;
boardConfig = new KSimpleConfig( boardConf, TRUE );
- if( !KIO::NetAccess::download( chessmenURL + "theme.conf", chessmenConf ) )
+ if( !TDEIO::NetAccess::download( chessmenURL + "theme.conf", chessmenConf ) )
kdWarning() << "Can not read theme.conf from " << chessmenURL << endl;
chessmenConfig = new KSimpleConfig( chessmenConf, TRUE );
@@ -718,8 +718,8 @@ void resource::setTheme( int BoardIndex, int ChessmenIndex )
/* Remove the theme.conf files */
delete boardConfig;
delete chessmenConfig;
- KIO::NetAccess::removeTempFile( boardConf );
- KIO::NetAccess::removeTempFile( chessmenConf );
+ TDEIO::NetAccess::removeTempFile( boardConf );
+ TDEIO::NetAccess::removeTempFile( chessmenConf );
/* Cleanup */
pixCache->clear();
@@ -737,11 +737,11 @@ void resource::loadThemeItem( const TQString &URL, TQImage &Image )
{
TQString tempFile;
- if( KIO::NetAccess::download( URL, tempFile ) )
+ if( TDEIO::NetAccess::download( URL, tempFile ) )
{
if( !Image.load( tempFile ) )
kdError() << "resource::LoadThemeItem: Can not load " << tempFile << ", which comes from " << URL << endl;
- KIO::NetAccess::removeTempFile( tempFile );
+ TDEIO::NetAccess::removeTempFile( tempFile );
}
else
kdError() << "resource::LoadThemeItem: Can not extract " << URL << endl;
@@ -964,13 +964,13 @@ TQString resource::themeURL( const TQString theme )
{
TQString fullURL;
fullURL = "tar:" + GlobalDataDir + "themes/" + theme;
- if( !KIO::NetAccess::exists( fullURL ) )
+ if( !TDEIO::NetAccess::exists( fullURL ) )
{
fullURL = "tar:" + TQDir::currentDirPath() + "../media/" + theme;
- if( !KIO::NetAccess::exists( fullURL ) )
+ if( !TDEIO::NetAccess::exists( fullURL ) )
{
fullURL = "tar:" + TQDir::homeDirPath() + "/.knights/" + theme;
- if( !KIO::NetAccess::exists( fullURL ) )
+ if( !TDEIO::NetAccess::exists( fullURL ) )
{
kdWarning() << "The theme " << theme << " does not exist in any valid path." << endl;
return TQString();