@ -98,7 +98,7 @@ void Convert::get( ConvertItem* item )
logger - > log ( item - > logID , " cp \" " + source . path ( ) + " \" \" " + destination . path ( ) + " \" " ) ;
item - > convertProcess - > setPriority ( config - > data . general . priority ) ;
item - > convertProcess - > start ( KProcess: : NotifyOnExit , K Process: : AllOutput ) ;
item - > convertProcess - > start ( TDEProcess: : NotifyOnExit , TDE Process: : AllOutput ) ;
}
else {
item - > moveJob = new KIO : : FileCopyJob ( source , destination , - 1 , false , true , false , false ) ;
@ -139,7 +139,7 @@ void Convert::getCorrection( ConvertItem* item )
logger - > log ( item - > logID , " cp \" " + source . path ( ) + " \" \" " + destination . path ( ) + " \" " ) ;
item - > convertProcess - > setPriority ( config - > data . general . priority ) ;
item - > convertProcess - > start ( KProcess: : NotifyOnExit , K Process: : AllOutput ) ;
item - > convertProcess - > start ( TDEProcess: : NotifyOnExit , TDE Process: : AllOutput ) ;
}
else {
item - > moveJob = new KIO : : FileCopyJob ( source , destination , - 1 , false , true , false , false ) ;
@ -261,7 +261,7 @@ void Convert::rip( ConvertItem* item )
item - > fileListItem - > ripping = true ;
item - > convertProcess - > setPriority ( config - > data . general . priority ) ;
item - > convertProcess - > start ( KProcess: : NotifyOnExit , K Process: : AllOutput ) ;
item - > convertProcess - > start ( TDEProcess: : NotifyOnExit , TDE Process: : AllOutput ) ;
}
}
@ -314,7 +314,7 @@ void Convert::decode( ConvertItem* item )
item - > fileListItem - > setText ( fileList - > columnByName ( i18n ( " State " ) ) , i18n ( " Decoding " ) + " ... 00 % " ) ;
item - > convertProcess - > setPriority ( config - > data . general . priority ) ;
item - > convertProcess - > start ( KProcess: : NotifyOnExit , K Process: : AllOutput ) ;
item - > convertProcess - > start ( TDEProcess: : NotifyOnExit , TDE Process: : AllOutput ) ;
}
void Convert : : encode ( ConvertItem * item )
@ -420,7 +420,7 @@ void Convert::encode( ConvertItem* item )
//t_int -= t_int%plugin->enc.quality.step;
sQuality = TQString : : number ( t_int ) ;
}
if ( plugin - > enc . bin = = " oggenc " ) sQuality . replace ( TQChar ( ' . ' ) , K Global: : locale ( ) - > decimalSymbol ( ) ) ; // HACK make oggenc usable with all langauges
if ( plugin - > enc . bin = = " oggenc " ) sQuality . replace ( TQChar ( ' . ' ) , TDE Global: : locale ( ) - > decimalSymbol ( ) ) ; // HACK make oggenc usable with all langauges
else if ( plugin - > enc . lossy . quality . separator ! = ' . ' ) sQuality . replace ( TQChar ( ' . ' ) , plugin - > enc . lossy . quality . separator ) ;
}
else {
@ -555,7 +555,7 @@ void Convert::encode( ConvertItem* item )
item - > fileListItem - > setText ( fileList - > columnByName ( i18n ( " State " ) ) , i18n ( " Encoding " ) + " ... 00 % " ) ;
item - > convertProcess - > setPriority ( config - > data . general . priority ) ;
item - > convertProcess - > start ( KProcess: : NotifyOnExit , K Process: : AllOutput ) ;
item - > convertProcess - > start ( TDEProcess: : NotifyOnExit , TDE Process: : AllOutput ) ;
}
void Convert : : replaygain ( ConvertItem * item )
@ -631,7 +631,7 @@ void Convert::put( ConvertItem* item )
logger - > log ( item - > logID , " cp \" " + source . path ( ) + " \" \" " + destination . path ( ) + " \" " ) ;
item - > convertProcess - > setPriority ( config - > data . general . priority ) ;
item - > convertProcess - > start ( KProcess: : NotifyOnExit , K Process: : AllOutput ) ;
item - > convertProcess - > start ( TDEProcess: : NotifyOnExit , TDE Process: : AllOutput ) ;
}
else {
item - > moveJob = new KIO : : FileCopyJob ( source , destination , - 1 , false , false , false , false ) ;
@ -670,7 +670,7 @@ void Convert::putCorrection( ConvertItem* item )
logger - > log ( item - > logID , " cp \" " + source . path ( ) + " \" \" " + destination . path ( ) + " \" " ) ;
item - > convertProcess - > setPriority ( config - > data . general . priority ) ;
item - > convertProcess - > start ( KProcess: : NotifyOnExit , K Process: : AllOutput ) ;
item - > convertProcess - > start ( TDEProcess: : NotifyOnExit , TDE Process: : AllOutput ) ;
}
else {
item - > moveJob = new KIO : : FileCopyJob ( source , destination , - 1 , false , false , false , false ) ;
@ -705,7 +705,7 @@ void Convert::executeUserScript( ConvertItem* item )
logger - > log ( item - > logID , userscript + " \" " + source . path ( ) + " \" \" " + destination . path ( ) + " \" " ) ;
item - > convertProcess - > setPriority ( config - > data . general . priority ) ;
item - > convertProcess - > start ( KProcess: : NotifyOnExit , K Process: : AllOutput ) ;
item - > convertProcess - > start ( TDEProcess: : NotifyOnExit , TDE Process: : AllOutput ) ;
}
void Convert : : executeNextStep ( ConvertItem * item )
@ -924,7 +924,7 @@ void Convert::moveFinished( KIO::Job* job )
}
}
void Convert : : processOutput ( K Process* proc , char * data , int )
void Convert : : processOutput ( TDE Process* proc , char * data , int )
{
int iPercent = 0 , iTime = 0 , iPos = 0 , iNum = 0 ;
@ -1083,7 +1083,7 @@ void Convert::processOutput( KProcess* proc, char* data, int )
}
}
void Convert : : processExit ( K Process* proc )
void Convert : : processExit ( TDE Process* proc )
{
// search the item list for our item
for ( TQValueList < ConvertItem * > : : Iterator item = items . begin ( ) ; item ! = items . end ( ) ; item + + ) {
@ -1316,15 +1316,15 @@ void Convert::add( FileListItem* item )
( * newItem ) - > correctionOutputExtension = TQString ( ) ( ) ; */
// connect convertProcess of our new item with the slots of Convert
( * newItem ) - > convertProcess = new K Process( ) ;
connect ( ( * newItem ) - > convertProcess , TQT_SIGNAL ( receivedStdout ( K Process* , char * , int ) ) ,
this , TQT_SLOT ( processOutput ( K Process* , char * , int ) )
( * newItem ) - > convertProcess = new TDE Process( ) ;
connect ( ( * newItem ) - > convertProcess , TQT_SIGNAL ( receivedStdout ( TDE Process* , char * , int ) ) ,
this , TQT_SLOT ( processOutput ( TDE Process* , char * , int ) )
) ;
connect ( ( * newItem ) - > convertProcess , TQT_SIGNAL ( receivedStderr ( K Process* , char * , int ) ) ,
this , TQT_SLOT ( processOutput ( K Process* , char * , int ) )
connect ( ( * newItem ) - > convertProcess , TQT_SIGNAL ( receivedStderr ( TDE Process* , char * , int ) ) ,
this , TQT_SLOT ( processOutput ( TDE Process* , char * , int ) )
) ;
connect ( ( * newItem ) - > convertProcess , TQT_SIGNAL ( processExited ( K Process* ) ) ,
this , TQT_SLOT ( processExit ( K Process* ) )
connect ( ( * newItem ) - > convertProcess , TQT_SIGNAL ( processExited ( TDE Process* ) ) ,
this , TQT_SLOT ( processExit ( TDE Process* ) )
) ;
// NOTE the tempInFile is also created if the file is a audio cd track
@ -1486,7 +1486,7 @@ void Convert::remove( ConvertItem* item, int state )
paramSplinter . replace ( " %o " , item - > outputFilePathName ) ;
notify < < paramSplinter ;
}
notify . start ( K Process: : DontCare ) ;
notify . start ( TDE Process: : DontCare ) ;
}
item - > fileListItem - > converting = false ;
@ -1592,7 +1592,7 @@ void Convert::updateProgressIndicator()
// void Convert::priorityChanged( int priority )
// { // FIXME setting a higher priority does not work
// K Process pChangePriority;
// TDE Process pChangePriority;
//
// for( TQValueList<ConvertItem*>::Iterator it = items.begin(); it != items.end(); it++ ) {
// if( (*it)->convertProcess->isRunning() ) {
@ -1607,7 +1607,7 @@ void Convert::updateProgressIndicator()
// pChangePriority << pid;
// //TQString cmd;
// //cmd.sprintf( "renice %i %i", );
// pChangePriority.start( K Process::Block );
// pChangePriority.start( TDE Process::Block );
// }
// }
// }