summaryrefslogtreecommitdiffstats
path: root/kaudiocreator/ripper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaudiocreator/ripper.cpp')
-rw-r--r--kaudiocreator/ripper.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kaudiocreator/ripper.cpp b/kaudiocreator/ripper.cpp
index f68c1001..e2366fd7 100644
--- a/kaudiocreator/ripper.cpp
+++ b/kaudiocreator/ripper.cpp
@@ -49,16 +49,16 @@ void Ripper::loadSettings(){
*/
Ripper::~Ripper(){
pendingJobs.clear();
- TQMap<KIO::Job*, Job*>::Iterator it;
+ TQMap<TDEIO::Job*, Job*>::Iterator it;
for( it = jobs.begin(); it != jobs.end(); ++it ){
- KIO::Job* ioJob = it.key();
+ TDEIO::Job* ioJob = it.key();
Job *job = it.data();
delete job;
if(ioJob){
- KIO::FileCopyJob *copyJob = static_cast<KIO::FileCopyJob*> (ioJob);
- disconnect(copyJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(copyJobResult(KIO::Job*)));
- disconnect(copyJob, TQT_SIGNAL(percent ( KIO::Job *, unsigned long)), this, TQT_SLOT(updateProgress ( KIO::Job *, unsigned long)));
+ TDEIO::FileCopyJob *copyJob = static_cast<TDEIO::FileCopyJob*> (ioJob);
+ disconnect(copyJob, TQT_SIGNAL(result(TDEIO::Job*)), this, TQT_SLOT(copyJobResult(TDEIO::Job*)));
+ disconnect(copyJob, TQT_SIGNAL(percent ( TDEIO::Job *, unsigned long)), this, TQT_SLOT(updateProgress ( TDEIO::Job *, unsigned long)));
TQString fileDestination = (copyJob->destURL()).path();
copyJob->kill();
TQFile file( fileDestination );
@@ -89,10 +89,10 @@ int Ripper::pendingJobCount() {
* @param id the id number of the job to remove.
*/
void Ripper::removeJob(int id){
- TQMap<KIO::Job*, Job*>::Iterator it;
+ TQMap<TDEIO::Job*, Job*>::Iterator it;
for( it = jobs.begin(); it != jobs.end(); ++it ){
if(it.data()->id == id){
- KIO::FileCopyJob *copyJob = dynamic_cast<KIO::FileCopyJob*> (it.key());
+ TDEIO::FileCopyJob *copyJob = dynamic_cast<TDEIO::FileCopyJob*> (it.key());
if(copyJob){
TQString fileDestination = (copyJob->destURL()).path();
copyJob->kill();
@@ -182,10 +182,10 @@ void Ripper::tendToNewJobs(){
KURL source(wavFile);
KURL dest(tmp.name());
- KIO::FileCopyJob *copyJob = new KIO::FileCopyJob(source, dest, 0644, false, true, false, false);
+ TDEIO::FileCopyJob *copyJob = new TDEIO::FileCopyJob(source, dest, 0644, false, true, false, false);
jobs.insert(copyJob, job);
- connect(copyJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(copyJobResult(KIO::Job*)));
- connect(copyJob, TQT_SIGNAL(percent ( KIO::Job *, unsigned long)), this, TQT_SLOT(updateProgress ( KIO::Job *, unsigned long)));
+ connect(copyJob, TQT_SIGNAL(result(TDEIO::Job*)), this, TQT_SLOT(copyJobResult(TDEIO::Job*)));
+ connect(copyJob, TQT_SIGNAL(percent ( TDEIO::Job *, unsigned long)), this, TQT_SLOT(updateProgress ( TDEIO::Job *, unsigned long)));
emit jobsChanged();
}
@@ -195,10 +195,10 @@ void Ripper::tendToNewJobs(){
* information dialog.
* @param copyjob the IO job to copy from
*/
-void Ripper::copyJobResult(KIO::Job *copyjob){
+void Ripper::copyJobResult(TDEIO::Job *copyjob){
if(!copyjob)
return;
- KIO::FileCopyJob *copyJob = dynamic_cast<KIO::FileCopyJob*> (copyjob);
+ TDEIO::FileCopyJob *copyJob = dynamic_cast<TDEIO::FileCopyJob*> (copyjob);
KNotifyClient::event("track ripped");
if(jobs.find(copyjob) == jobs.end())
@@ -251,7 +251,7 @@ void Ripper::ejectNow(){
* @param job the current ioslave job in progress
* @param percent the current percent that the ioslave has done.
*/
-void Ripper::updateProgress( KIO::Job *job, unsigned long percent){
+void Ripper::updateProgress( TDEIO::Job *job, unsigned long percent){
if(job){
Job *ripJob = (jobs[job]);
if(ripJob)