|
|
|
@ -502,16 +502,16 @@ TQString k9Main::getDevice(TQComboBox *_combo)
|
|
|
|
|
#if TDE_VERSION >= TDE_MAKE_VERSION(3,4,0)
|
|
|
|
|
|
|
|
|
|
KURL url=KURL::fromPathOrURL(res);
|
|
|
|
|
//KIO::mount(true,0,res,"",true);
|
|
|
|
|
KIO::UDSEntry entry;
|
|
|
|
|
//TDEIO::mount(true,0,res,"",true);
|
|
|
|
|
TDEIO::UDSEntry entry;
|
|
|
|
|
//first call to mount the device
|
|
|
|
|
KIO::NetAccess::stat(KURL::fromPathOrURL(res+"/."),entry,0);
|
|
|
|
|
if (KIO::NetAccess::stat(url,entry,0) )
|
|
|
|
|
TDEIO::NetAccess::stat(KURL::fromPathOrURL(res+"/."),entry,0);
|
|
|
|
|
if (TDEIO::NetAccess::stat(url,entry,0) )
|
|
|
|
|
{
|
|
|
|
|
KIO::UDSEntry::iterator it;
|
|
|
|
|
TDEIO::UDSEntry::iterator it;
|
|
|
|
|
for ( it = entry.begin(); it != entry.end(); ++it )
|
|
|
|
|
{
|
|
|
|
|
if ( (*it).m_uds== KIO::UDS_LOCAL_PATH) {
|
|
|
|
|
if ( (*it).m_uds== TDEIO::UDS_LOCAL_PATH) {
|
|
|
|
|
res=(*it).m_str;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1440,7 +1440,7 @@ long k9Main::getFreeSpace(const TQString & _path)
|
|
|
|
|
|
|
|
|
|
connect(FreeSp,TQT_SIGNAL(foundMountPoint (const TQString &, unsigned long , unsigned long , unsigned long )),this,TQT_SLOT(foundMountPoint (const TQString &, unsigned long , unsigned long , unsigned long )));
|
|
|
|
|
connect(FreeSp,TQT_SIGNAL(done ( )),this,TQT_SLOT(fspDone ()));
|
|
|
|
|
TQString mountPoint = KIO::findPathMountPoint( _path );
|
|
|
|
|
TQString mountPoint = TDEIO::findPathMountPoint( _path );
|
|
|
|
|
FreeSp->readDF(mountPoint);
|
|
|
|
|
do
|
|
|
|
|
{
|
|
|
|
|