From 10308be19ef7fa44699562cc75946e7ea1fdf6b9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 7 Jan 2011 03:45:53 +0000 Subject: Revert automated changes Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kio/kio/global.cpp | 64 +++++++++++++++++++++++++++--------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'kio/kio/global.cpp') diff --git a/kio/kio/global.cpp b/kio/kio/global.cpp index a8bd85d17..f99219524 100644 --- a/kio/kio/global.cpp +++ b/kio/kio/global.cpp @@ -97,7 +97,7 @@ KIO_EXPORT TQString KIO::number( KIO::filesize_t size ) { char charbuf[256]; sprintf(charbuf, "%lld", size); - return TQString::tqfromLatin1(charbuf); + return TQString::fromLatin1(charbuf); } KIO_EXPORT unsigned int KIO::calculateRemainingSeconds( KIO::filesize_t totalSize, @@ -167,13 +167,13 @@ KIO_EXPORT TQString KIO::encodeFileName( const TQString & _str ) TQString str( _str ); int i = 0; - while ( ( i = str.tqfind( "%", i ) ) != -1 ) + while ( ( i = str.find( "%", i ) ) != -1 ) { - str.tqreplace( i, 1, "%%"); + str.replace( i, 1, "%%"); i += 2; } - while ( ( i = str.tqfind( "/" ) ) != -1 ) - str.tqreplace( i, 1, "%2f"); + while ( ( i = str.find( "/" ) ) != -1 ) + str.replace( i, 1, "%2f"); return str; } @@ -284,7 +284,7 @@ KIO_EXPORT TQString KIO::buildErrorString(int errorCode, const TQString &errorTe result = i18n( "Could not create socket for accessing %1." ).arg( errorText ); break; case KIO::ERR_COULD_NOT_CONNECT: - result = i18n( "Could not connect to host %1." ).arg( errorText.isEmpty() ? TQString::tqfromLatin1("localhost") : errorText ); + result = i18n( "Could not connect to host %1." ).arg( errorText.isEmpty() ? TQString::fromLatin1("localhost") : errorText ); break; case KIO::ERR_CONNECTION_BROKEN: result = i18n( "Connection to host %1 is broken." ).arg( errorText ); @@ -477,16 +477,16 @@ KIO_EXPORT TQStringList KIO::Job::detailedErrorStrings( const KURL *reqUrl /*= 0 url = i18n( "(unknown)" ); } - datetime = KGlobal::locale()->formatDateTime( TQDateTime::tqcurrentDateTime(), + datetime = KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), false ); ret << errorName; - ret << TQString::tqfromLatin1( "

" ) + errorName + - TQString::tqfromLatin1( "

" ) + description + - TQString::tqfromLatin1( "

" ); - ret2 = TQString::tqfromLatin1( "

" ); + ret << TQString::fromLatin1( "

" ) + errorName + + TQString::fromLatin1( "

" ) + description + + TQString::fromLatin1( "

" ); + ret2 = TQString::fromLatin1( "

" ); if ( !techName.isEmpty() ) - ret2 += i18n( "Technical reason: " ) + techName + TQString::tqfromLatin1( "

" ); + ret2 += i18n( "Technical reason: " ) + techName + TQString::fromLatin1( "

" ); ret2 += i18n( "

Details of the request:" ); ret2 += i18n( "

  • URL: %1
  • " ).arg( url ); if ( !protocol.isEmpty() ) { @@ -497,12 +497,12 @@ KIO_EXPORT TQStringList KIO::Job::detailedErrorStrings( const KURL *reqUrl /*= 0 if ( !causes.isEmpty() ) { ret2 += i18n( "

    Possible causes:

    • " ); ret2 += causes.join( "
    • " ); - ret2 += TQString::tqfromLatin1( "
    " ); + ret2 += TQString::fromLatin1( "
" ); } if ( !solutions.isEmpty() ) { ret2 += i18n( "

Possible solutions:

  • " ); ret2 += solutions.join( "
  • " ); - ret2 += TQString::tqfromLatin1( "
" ); + ret2 += TQString::fromLatin1( "" ); } ret << ret2; return ret; @@ -559,7 +559,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT protocol = i18n( "(unknown)" ); } - datetime = KGlobal::locale()->formatDateTime( TQDateTime::tqcurrentDateTime(), + datetime = KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), false ); TQString errorName, techName, description; @@ -700,7 +700,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT causes << i18n( "This error is very much dependent on the KDE program. The " "additional information should give you more information than is available " "to the KDE input/output architecture." ); - solutions << i18n( "Attempt to tqfind another way to accomplish the same " + solutions << i18n( "Attempt to find another way to accomplish the same " "outcome." ); break; @@ -988,7 +988,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT break; case KIO::ERR_COULD_NOT_STAT: - errorName = i18n( "Could Not Determine Resource tqStatus" ); + errorName = i18n( "Could Not Determine Resource Status" ); techName = i18n( "Could Not Stat Resource" ); description = i18n( "An attempt to determine information about the status " "of the resource %1, such as the resource name, type, " @@ -1291,7 +1291,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT #include #include -/* AIX does not prototype mntctl anywhere that I can tqfind */ +/* AIX does not prototype mntctl anywhere that I can find */ #ifndef mntctl extern "C" { int mntctl(int command, int size, void* buffer); @@ -1384,7 +1384,7 @@ TQString KIO::findDeviceMountPoint( const TQString& filename ) if( (volpath = volmgt_root()) == NULL ) { kdDebug( 7007 ) << "findDeviceMountPoint: " - << "VOLMGT: can't tqfind volmgt root dir" << endl; + << "VOLMGT: can't find volmgt root dir" << endl; return TQString::null; } @@ -1403,7 +1403,7 @@ TQString KIO::findDeviceMountPoint( const TQString& filename ) // << endl; /* - * tqfind the mountpoint + * find the mountpoint * floppies: * /dev/disketteN => /dev/disketteN * CDROM, ZIP, and other media: @@ -1432,7 +1432,7 @@ TQString KIO::findDeviceMountPoint( const TQString& filename ) TQCString realname; realname = TQFile::encodeName(filename); - /* If the path tqcontains symlinks, get the real name */ + /* If the path contains symlinks, get the real name */ if (realpath(realname, realpath_buffer) != 0) // succes, use result from realpath realname = realpath_buffer; @@ -1453,7 +1453,7 @@ TQString KIO::findDeviceMountPoint( const TQString& filename ) TQCString device_name = mounted[i].f_mntfromname; - // If the path tqcontains symlinks, get + // If the path contains symlinks, get // the real name if (realpath(device_name, realpath_buffer) != 0) // succes, use result from realpath @@ -1546,7 +1546,7 @@ TQString KIO::findDeviceMountPoint( const TQString& filename ) return TQString::null; } - /* Loop over all file systems and see if we can tqfind our + /* Loop over all file systems and see if we can find our * mount point. * Note that this is the mount point with the longest match. * XXX: Fails if me->mnt_dir is not a realpath but goes @@ -1561,14 +1561,14 @@ TQString KIO::findDeviceMountPoint( const TQString& filename ) while (GETMNTENT(mtab, me)) { // There may be symbolic links into the /etc/mnttab - // So we have to tqfind the real device name here as well! + // So we have to find the real device name here as well! TQCString device_name = FSNAME(me); if (device_name.isEmpty() || (device_name == "none")) continue; //kdDebug( 7007 ) << "device_name=" << device_name << endl; - // If the path tqcontains symlinks, get + // If the path contains symlinks, get // the real name if (realpath(device_name, realpath_buffer) != 0) // succes, use result from realpath @@ -1690,7 +1690,7 @@ static TQString get_mount_info(const TQString& filename, memset(realname, 0, MAXPATHLEN); - /* If the path tqcontains symlinks, get the real name */ + /* If the path contains symlinks, get the real name */ if (realpath(TQFile::encodeName(filename), realname) == 0) { if( strlcpy(realname, TQFile::encodeName(filename), MAXPATHLEN)>=MAXPATHLEN) return TQString::null; @@ -1699,7 +1699,7 @@ static TQString get_mount_info(const TQString& filename, int max = 0; TQString mountPoint; - /* Loop over all file systems and see if we can tqfind our + /* Loop over all file systems and see if we can find our * mount point. * Note that this is the mount point with the longest match. * XXX: Fails if me->mnt_dir is not a realpath but goes @@ -1725,7 +1725,7 @@ static TQString get_mount_info(const TQString& filename, TQCString device_name = mounted[i].f_mntfromname; - // If the path tqcontains symlinks, get + // If the path contains symlinks, get // the real name if (realpath(device_name, realpath_buffer) != 0) // succes, use result from realpath @@ -1738,7 +1738,7 @@ static TQString get_mount_info(const TQString& filename, if ( is_my_mountpoint( mounted[i].f_mntonname, realname, max ) ) { mountPoint = TQFile::decodeName(mounted[i].f_mntonname); - fstype = TQString::tqfromLatin1(mounttype); + fstype = TQString::fromLatin1(mounttype); check_mount_point( mounttype, mounted[i].f_mntfromname, isautofs, isslow ); // keep going, looking for a potentially better one @@ -1805,12 +1805,12 @@ static TQString get_mount_info(const TQString& filename, if ( is_my_mountpoint( mountedto, realname, max ) ) { mountPoint = TQFile::decodeName(mountedto); - fstype = TQString::tqfromLatin1(ent->vfsent_name); + fstype = TQString::fromLatin1(ent->vfsent_name); check_mount_point(ent->vfsent_name, device_name, isautofs, isslow); if (ismanual == Unseen) { - // TODO: add check for ismanual, I couldn't tqfind any way + // TODO: add check for ismanual, I couldn't find any way // how to get the mount attribute from /etc/filesystems ismanual == Wrong; } @@ -1915,7 +1915,7 @@ TQString KIO::findDeviceMountPoint( const TQString& filename ) } #endif -TQString KIO::tqfindPathMountPoint(const TQString& filename) +TQString KIO::findPathMountPoint(const TQString& filename) { #ifdef Q_OS_UNIX MountState isautofs = Unseen, isslow = Unseen, ismanual = Wrong; -- cgit v1.2.3