diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 09:22:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 09:22:00 +0000 |
commit | 0951e055d48aea46ff659fdc9e23fa5edfceabcf (patch) | |
tree | 8187d1d29a3db52d1ea5cf7ccb56b768fcd24525 | |
parent | 9f96d6383157631aa9a8d087b3966d47e7b06899 (diff) | |
download | tdelibs-0951e055d48aea46ff659fdc9e23fa5edfceabcf.tar.gz tdelibs-0951e055d48aea46ff659fdc9e23fa5edfceabcf.zip |
Minor API repair
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211206 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | kio/kio/global.cpp | 12 | ||||
-rw-r--r-- | kio/kio/global.h | 2 | ||||
-rw-r--r-- | kio/kio/kautomount.cpp | 4 | ||||
-rw-r--r-- | kio/kio/kmimetype.cpp | 8 | ||||
-rw-r--r-- | kio/tests/speed.cpp | 2 | ||||
-rw-r--r-- | kioslave/file/file.cc | 2 |
7 files changed, 16 insertions, 16 deletions
@@ -212,7 +212,7 @@ an alternative help->contents action) - KListView: merge setDropHighlighter and setDropVisualizer, add a setDnDMode to choose between "dnd to move items" (e.g. keditbookmarks) and "dnd onto items" (e.g. kmail). Unless Qt4 does it all :) -- Move KIO::tqfindDeviceMountPoint, tqfindPathMoundPoint, probably_slow_mounted, and testFileSystemFlag to KMountPoint, +- Move KIO::findDeviceMountPoint, tqfindPathMoundPoint, probably_slow_mounted, and testFileSystemFlag to KMountPoint, to merge that code. - Refactor the kio/bookmarks code so we don't need to use the static d-pointer trick anymore. diff --git a/kio/kio/global.cpp b/kio/kio/global.cpp index 44718fc91..a8bd85d17 100644 --- a/kio/kio/global.cpp +++ b/kio/kio/global.cpp @@ -1368,7 +1368,7 @@ extern "C" void endvfsent( ); #endif /* HAVE_GETMNTINFO */ -TQString KIO::tqfindDeviceMountPoint( const TQString& filename ) +TQString KIO::findDeviceMountPoint( const TQString& filename ) { TQString result; @@ -1383,13 +1383,13 @@ TQString KIO::tqfindDeviceMountPoint( const TQString& filename ) TQCString devname; if( (volpath = volmgt_root()) == NULL ) { - kdDebug( 7007 ) << "tqfindDeviceMountPoint: " + kdDebug( 7007 ) << "findDeviceMountPoint: " << "VOLMGT: can't tqfind volmgt root dir" << endl; return TQString::null; } if( (mnttab = fopen( MNTTAB, "r" )) == NULL ) { - kdDebug( 7007 ) << "tqfindDeviceMountPoint: " + kdDebug( 7007 ) << "findDeviceMountPoint: " << "VOLMGT: can't open mnttab" << endl; return TQString::null; } @@ -1398,7 +1398,7 @@ TQString KIO::tqfindDeviceMountPoint( const TQString& filename ) devname += TQFile::encodeName( filename ); devname += '/'; len = devname.length(); -// kdDebug( 7007 ) << "tqfindDeviceMountPoint: " +// kdDebug( 7007 ) << "findDeviceMountPoint: " // << "VOLMGT: searching mountpoint for \"" << devname << "\"" // << endl; @@ -1437,7 +1437,7 @@ TQString KIO::tqfindDeviceMountPoint( const TQString& filename ) // succes, use result from realpath realname = realpath_buffer; - //kdDebug(7007) << "tqfindDeviceMountPoint realname=" << realname << endl; + //kdDebug(7007) << "findDeviceMountPoint realname=" << realname << endl; #ifdef HAVE_GETMNTINFO @@ -1909,7 +1909,7 @@ static TQString get_mount_info(const TQString& filename, #else //!Q_OS_UNIX //dummy -TQString KIO::tqfindDeviceMountPoint( const TQString& filename ) +TQString KIO::findDeviceMountPoint( const TQString& filename ) { return TQString::null; } diff --git a/kio/kio/global.h b/kio/kio/global.h index 780bac6a2..fc18f1953 100644 --- a/kio/kio/global.h +++ b/kio/kio/global.h @@ -416,7 +416,7 @@ namespace KIO * right now. This means, it has to be mounted, not just * defined in fstab. */ - KIO_EXPORT TQString tqfindDeviceMountPoint( const TQString& device ); + KIO_EXPORT TQString findDeviceMountPoint( const TQString& device ); /** * Returns the mount point on which resides @p filename. diff --git a/kio/kio/kautomount.cpp b/kio/kio/kautomount.cpp index e7df61a0a..3bbe47c52 100644 --- a/kio/kio/kautomount.cpp +++ b/kio/kio/kautomount.cpp @@ -51,12 +51,12 @@ void KAutoMount::slotResult( KIO::Job * job ) else { KURL mountpoint; - mountpoint.setPath( KIO::tqfindDeviceMountPoint( m_strDevice ) ); + mountpoint.setPath( KIO::findDeviceMountPoint( m_strDevice ) ); //kdDebug(7015) << "KAutoMount: m_strDevice=" << m_strDevice << " -> mountpoint=" << mountpoint << endl; Q_ASSERT( mountpoint.isValid() ); if ( mountpoint.path().isEmpty() ) - kdWarning(7015) << m_strDevice << " was correctly mounted, but KIO::tqfindDeviceMountPoint didn't tqfind it. " + kdWarning(7015) << m_strDevice << " was correctly mounted, but KIO::findDeviceMountPoint didn't tqfind it. " << "This looks like a bug, please report it on http://bugs.kde.org, together with your /etc/fstab line" << endl; else if ( m_bShowFilemanagerWindow ) KRun::runURL( mountpoint, "inode/directory" ); diff --git a/kio/kio/kmimetype.cpp b/kio/kio/kmimetype.cpp index aa2bdd807..1e74f90de 100644 --- a/kio/kio/kmimetype.cpp +++ b/kio/kio/kmimetype.cpp @@ -717,7 +717,7 @@ TQString KDEDesktopMimeType::icon( const KURL& _url, bool _is_local ) const TQString dev = cfg.readEntry( "Dev" ); if ( !icon.isEmpty() && !unmount_icon.isEmpty() && !dev.isEmpty() ) { - TQString mp = KIO::tqfindDeviceMountPoint( dev ); + TQString mp = KIO::findDeviceMountPoint( dev ); // Is the device not mounted ? if ( mp.isNull() ) return unmount_icon; @@ -831,7 +831,7 @@ pid_t KDEDesktopMimeType::runFSDevice( const KURL& _url, const KSimpleConfig &cf return retval; } - TQString mp = KIO::tqfindDeviceMountPoint( dev ); + TQString mp = KIO::findDeviceMountPoint( dev ); // Is the device already mounted ? if ( !mp.isNull() ) { @@ -933,7 +933,7 @@ TQValueList<KDEDesktopMimeType::Service> KDEDesktopMimeType::builtinServices( co } else { - TQString mp = KIO::tqfindDeviceMountPoint( dev ); + TQString mp = KIO::findDeviceMountPoint( dev ); // not mounted ? if ( mp.isEmpty() ) { @@ -1114,7 +1114,7 @@ void KDEDesktopMimeType::executeService( const KURL::List& urls, KDEDesktopMimeT KMessageBoxWrapper::error( 0, tmp ); return; } - TQString mp = KIO::tqfindDeviceMountPoint( dev ); + TQString mp = KIO::findDeviceMountPoint( dev ); if ( _service.m_type == ST_MOUNT ) { diff --git a/kio/tests/speed.cpp b/kio/tests/speed.cpp index 08d039aa8..4b29e1815 100644 --- a/kio/tests/speed.cpp +++ b/kio/tests/speed.cpp @@ -81,7 +81,7 @@ int main(int argc, char **argv) { kdDebug() << url.url() << " is probably " << (KIO::probably_slow_mounted(url.path()) ? "slow" : "normal") << " mounted\n"; kdDebug() << url.url() << " is " << (KIO::manually_mounted(url.path()) ? "manually" : "system") << " mounted\n"; - TQString mp = KIO::tqfindDeviceMountPoint(url.path()); + TQString mp = KIO::findDeviceMountPoint(url.path()); if (mp.isEmpty()) { kdDebug() << "no mount point for device " << url.url() << " found\n"; } else diff --git a/kioslave/file/file.cc b/kioslave/file/file.cc index 31eb5f082..6d829ad7c 100644 --- a/kioslave/file/file.cc +++ b/kioslave/file/file.cc @@ -1472,7 +1472,7 @@ void FileProtocol::mount( bool _ro, const char *_fstype, const TQString& _dev, c else { // Didn't work - or maybe we just got a warning - TQString mp = KIO::tqfindDeviceMountPoint( _dev ); + TQString mp = KIO::findDeviceMountPoint( _dev ); // Is the device mounted ? if ( !mp.isEmpty() && mount_ret == 0) { |