Minor API repair

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211206 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 9f96d63831
commit 0951e055d4

@ -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.

@ -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;
}

@ -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.

@ -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" );

@ -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 )
{

@ -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

@ -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)
{

Loading…
Cancel
Save