diff options
author | Timothy Pearson <[email protected]> | 2013-01-25 00:30:47 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-25 00:30:47 -0600 |
commit | cc74f360bb40da3d79f58048f8e8611804980aa6 (patch) | |
tree | c4385d2c16b904757b1c8bb998a4aec6993373f7 /kioslave/smb/kio_smb_file.cpp | |
parent | 79b21d47bce1ee428affc97534cd8b257232a871 (diff) | |
download | tdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.tar.gz tdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kioslave/smb/kio_smb_file.cpp')
-rw-r--r-- | kioslave/smb/kio_smb_file.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kioslave/smb/kio_smb_file.cpp b/kioslave/smb/kio_smb_file.cpp index 8c7867722..25137c8ce 100644 --- a/kioslave/smb/kio_smb_file.cpp +++ b/kioslave/smb/kio_smb_file.cpp @@ -44,7 +44,7 @@ void SMBSlave::get( const KURL& kurl ) // time_t curtime = 0; time_t lasttime = 0; time_t starttime = 0; - KIO::filesize_t totalbytesread = 0; + TDEIO::filesize_t totalbytesread = 0; TQByteArray filedata; SMBUrl url; @@ -68,13 +68,13 @@ void SMBSlave::get( const KURL& kurl ) if(cache_stat(url,&st) == -1 ) { if ( errno == EACCES ) - error( KIO::ERR_ACCESS_DENIED, url.prettyURL()); + error( TDEIO::ERR_ACCESS_DENIED, url.prettyURL()); else - error( KIO::ERR_DOES_NOT_EXIST, url.prettyURL()); + error( TDEIO::ERR_DOES_NOT_EXIST, url.prettyURL()); return; } if ( S_ISDIR( st.st_mode ) ) { - error( KIO::ERR_IS_DIRECTORY, url.prettyURL()); + error( TDEIO::ERR_IS_DIRECTORY, url.prettyURL()); return; } @@ -99,7 +99,7 @@ void SMBSlave::get( const KURL& kurl ) } else if(bytesread < 0) { - error( KIO::ERR_COULD_NOT_READ, url.prettyURL()); + error( TDEIO::ERR_COULD_NOT_READ, url.prettyURL()); return; } @@ -133,12 +133,12 @@ void SMBSlave::get( const KURL& kurl ) smbc_close(filefd); data( TQByteArray() ); - processedSize(static_cast<KIO::filesize_t>(st.st_size)); + processedSize(static_cast<TDEIO::filesize_t>(st.st_size)); } else { - error( KIO::ERR_CANNOT_OPEN_FOR_READING, url.prettyURL()); + error( TDEIO::ERR_CANNOT_OPEN_FOR_READING, url.prettyURL()); return; } @@ -172,12 +172,12 @@ void SMBSlave::put( const KURL& kurl, if (S_ISDIR(st.st_mode)) { kdDebug(KIO_SMB) << "SMBSlave::put on " << kurl <<" already isdir !!"<< endl; - error( KIO::ERR_DIR_ALREADY_EXIST, m_current_url.prettyURL()); + error( TDEIO::ERR_DIR_ALREADY_EXIST, m_current_url.prettyURL()); } else { kdDebug(KIO_SMB) << "SMBSlave::put on " << kurl <<" already exist !!"<< endl; - error( KIO::ERR_FILE_ALREADY_EXIST, m_current_url.prettyURL()); + error( TDEIO::ERR_FILE_ALREADY_EXIST, m_current_url.prettyURL()); } return; } @@ -216,12 +216,12 @@ void SMBSlave::put( const KURL& kurl, if ( errno == EACCES ) { kdDebug(KIO_SMB) << "SMBSlave::put error " << kurl <<" access denied !!"<< endl; - error( KIO::ERR_WRITE_ACCESS_DENIED, m_current_url.prettyURL()); + error( TDEIO::ERR_WRITE_ACCESS_DENIED, m_current_url.prettyURL()); } else { kdDebug(KIO_SMB) << "SMBSlave::put error " << kurl <<" can not open for writing !!"<< endl; - error( KIO::ERR_CANNOT_OPEN_FOR_WRITING, m_current_url.prettyURL()); + error( TDEIO::ERR_CANNOT_OPEN_FOR_WRITING, m_current_url.prettyURL()); } finished(); return; @@ -246,7 +246,7 @@ void SMBSlave::put( const KURL& kurl, if ( size < 0) { kdDebug(KIO_SMB) << "SMBSlave::put error " << kurl <<" could not write !!"<< endl; - error( KIO::ERR_COULD_NOT_WRITE, m_current_url.prettyURL()); + error( TDEIO::ERR_COULD_NOT_WRITE, m_current_url.prettyURL()); finished(); return; } @@ -257,7 +257,7 @@ void SMBSlave::put( const KURL& kurl, if(smbc_close(filefd)) { kdDebug(KIO_SMB) << "SMBSlave::put on " << kurl <<" could not write !!"<< endl; - error( KIO::ERR_COULD_NOT_WRITE, m_current_url.prettyURL()); + error( TDEIO::ERR_COULD_NOT_WRITE, m_current_url.prettyURL()); finished(); return; } |