summaryrefslogtreecommitdiffstats
path: root/tar/tar.cc
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-25 00:12:12 -0600
committerTimothy Pearson <[email protected]>2013-01-25 00:12:12 -0600
commit527c1d6eee022fbe0fed30d64ca6695c48925be2 (patch)
tree0ce098887e1f76dcba419110ebe925c51363604a /tar/tar.cc
parentb8fb4538e9eddfeb9eb0fa8def496f58cb7a9bf1 (diff)
downloadkrusader-527c1d6eee022fbe0fed30d64ca6695c48925be2.tar.gz
krusader-527c1d6eee022fbe0fed30d64ca6695c48925be2.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'tar/tar.cc')
-rw-r--r--tar/tar.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/tar/tar.cc b/tar/tar.cc
index 1187291..cb0d9f6 100644
--- a/tar/tar.cc
+++ b/tar/tar.cc
@@ -21,7 +21,7 @@
#include "tar.h"
-using namespace KIO;
+using namespace TDEIO;
#if KDE_IS_VERSION(3,4,0)
extern "C" { int KDE_EXPORT kdemain( int argc, char **argv ); }
@@ -230,7 +230,7 @@ void ArchiveProtocol::listDir( const KURL & url ) {
kdDebug( 7109 ) << "Checking (stat) on " << _path << endl;
struct stat buff;
if ( ::stat( _path.data(), &buff ) == -1 || !S_ISDIR( buff.st_mode ) ) {
- error( KIO::ERR_DOES_NOT_EXIST, url.prettyURL() );
+ error( TDEIO::ERR_DOES_NOT_EXIST, url.prettyURL() );
return ;
}
// It's a real dir -> redirect
@@ -262,11 +262,11 @@ void ArchiveProtocol::listDir( const KURL & url ) {
kdDebug( 7109 ) << TQString( "Looking for entry %1" ).arg( path ) << endl;
const KArchiveEntry* e = root->entry( path );
if ( !e ) {
- error( KIO::ERR_DOES_NOT_EXIST, url.prettyURL() );
+ error( TDEIO::ERR_DOES_NOT_EXIST, url.prettyURL() );
return ;
}
if ( ! e->isDirectory() ) {
- error( KIO::ERR_IS_FILE, url.prettyURL() );
+ error( TDEIO::ERR_IS_FILE, url.prettyURL() );
return ;
}
dir = ( KArchiveDirectory* ) e;
@@ -306,17 +306,17 @@ void ArchiveProtocol::stat( const KURL & url ) {
struct stat buff;
if ( ::stat( _path.data(), &buff ) == -1 || !S_ISDIR( buff.st_mode ) ) {
kdDebug( 7109 ) << "isdir=" << S_ISDIR( buff.st_mode ) << " errno=" << strerror( errno ) << endl;
- error( KIO::ERR_DOES_NOT_EXIST, url.path() );
+ error( TDEIO::ERR_DOES_NOT_EXIST, url.path() );
return ;
}
// Real directory. Return just enough information for KRun to work
UDSAtom atom;
- atom.m_uds = KIO::UDS_NAME;
+ atom.m_uds = TDEIO::UDS_NAME;
atom.m_str = url.fileName();
entry.append( atom );
kdDebug( 7109 ) << "ArchiveProtocol::stat returning name=" << url.fileName() << endl;
- atom.m_uds = KIO::UDS_FILE_TYPE;
+ atom.m_uds = TDEIO::UDS_FILE_TYPE;
atom.m_long = buff.st_mode & S_IFMT;
entry.append( atom );
@@ -339,7 +339,7 @@ void ArchiveProtocol::stat( const KURL & url ) {
archiveEntry = root->entry( path );
}
if ( !archiveEntry ) {
- error( KIO::ERR_DOES_NOT_EXIST, url.prettyURL() );
+ error( TDEIO::ERR_DOES_NOT_EXIST, url.prettyURL() );
return ;
}
@@ -354,7 +354,7 @@ void ArchiveProtocol::get( const KURL & url ) {
TQString path;
if ( !checkNewFile( url, path ) ) {
- error( KIO::ERR_DOES_NOT_EXIST, url.prettyURL() );
+ error( TDEIO::ERR_DOES_NOT_EXIST, url.prettyURL() );
return ;
}
@@ -362,11 +362,11 @@ void ArchiveProtocol::get( const KURL & url ) {
const KArchiveEntry* archiveEntry = root->entry( path );
if ( !archiveEntry ) {
- error( KIO::ERR_DOES_NOT_EXIST, url.prettyURL() );
+ error( TDEIO::ERR_DOES_NOT_EXIST, url.prettyURL() );
return ;
}
if ( archiveEntry->isDirectory() ) {
- error( KIO::ERR_IS_DIRECTORY, url.prettyURL() );
+ error( TDEIO::ERR_IS_DIRECTORY, url.prettyURL() );
return ;
}
const KArchiveFile* archiveFileEntry = static_cast<const KArchiveFile *>( archiveEntry );