|
|
|
@ -47,13 +47,13 @@ kio_umountwrapper::kio_umountwrapper(const TQString& url)
|
|
|
|
|
connect(t, TQT_SIGNAL(timeout()), TQT_SLOT(progressAdvance()));
|
|
|
|
|
t->start(10, FALSE);
|
|
|
|
|
|
|
|
|
|
KProcess *p = new KProcess(TQT_TQOBJECT(this));
|
|
|
|
|
TDEProcess *p = new TDEProcess(TQT_TQOBJECT(this));
|
|
|
|
|
*p << "kio_media_mounthelper";
|
|
|
|
|
*p << "-s";
|
|
|
|
|
*p << url;
|
|
|
|
|
kdDebug() << "KProcess: " << url << endl;
|
|
|
|
|
connect(p, TQT_SIGNAL(processExited(KProcess *)),
|
|
|
|
|
this, TQT_SLOT(processFinished(KProcess *)));
|
|
|
|
|
kdDebug() << "TDEProcess: " << url << endl;
|
|
|
|
|
connect(p, TQT_SIGNAL(processExited(TDEProcess *)),
|
|
|
|
|
this, TQT_SLOT(processFinished(TDEProcess *)));
|
|
|
|
|
p->start();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -62,7 +62,7 @@ void kio_umountwrapper::progressAdvance()
|
|
|
|
|
m_progress->progressBar()->advance(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void kio_umountwrapper::processFinished(KProcess* p)
|
|
|
|
|
void kio_umountwrapper::processFinished(TDEProcess* p)
|
|
|
|
|
{
|
|
|
|
|
if (p->normalExit() && p->exitStatus() == 0)
|
|
|
|
|
{
|
|
|
|
|