@ -38,7 +38,7 @@ k9BurnDVD::k9BurnDVD()
iso = false ;
m_filename = " " ;
progress = new k9Progress ( NULL , " progress " , NULL ) ;
TQString s = K Global: : dirs ( ) - > findResource ( " data " , " k9copy/anim.mng " ) ;
TQString s = TDE Global: : dirs ( ) - > findResource ( " data " , " k9copy/anim.mng " ) ;
progress - > setMovie ( s ) ;
m_cdrkit = k9Tools : : checkProgram ( " genisoimage " ) & & k9Tools : : checkProgram ( " wodim " ) ;
}
@ -90,7 +90,7 @@ void k9BurnDVD::burn() {
}
void k9BurnDVD : : burnWithK3b ( ) {
KProcess * k3b = new K Process( ) ;
TDEProcess * k3b = new TDE Process( ) ;
* k3b < < " k3b " ;
* k3b < < TQDir : : cleanDirPath ( workDir + " /dvd/VIDEO_TS " ) ;
@ -100,13 +100,13 @@ void k9BurnDVD::burnWithK3b() {
delete k3b ;
}
void k9BurnDVD : : mkisoSizeStderr ( K Process * proc , char * buffer , int buflen ) {
void k9BurnDVD : : mkisoSizeStderr ( TDE Process * proc , char * buffer , int buflen ) {
TQString c = TQString : : fromLatin1 ( buffer , buflen ) ; // (proc2->readStderr());
imageSize = c . replace ( " \n " , " " ) ;
;
}
void k9BurnDVD : : mkisoSizeStdout ( K Process * proc , char * buffer , int buflen ) {
void k9BurnDVD : : mkisoSizeStdout ( TDE Process * proc , char * buffer , int buflen ) {
TQString c = TQString : : fromLatin1 ( buffer , buflen ) ; // (proc2->readStdout());
imageSize = c . replace ( " \n " , " " ) ;
;
@ -125,9 +125,9 @@ const TQString k9BurnDVD::getImageSize() {
* proc2 < < " -V " + volId ;
* proc2 < < TQDir : : cleanDirPath ( workDir + " /dvd " ) ;
connect ( proc2 , TQT_SIGNAL ( receivedStderr ( K Process * , char * , int ) ) , this , TQT_SLOT ( mkisoSizeStderr ( K Process * , char * , int ) ) ) ;
connect ( proc2 , TQT_SIGNAL ( receivedStdout ( K Process * , char * , int ) ) , this , TQT_SLOT ( mkisoSizeStdout ( K Process * , char * , int ) ) ) ;
if ( proc2 - > start ( KProcess: : NotifyOnExit , K Process: : All ) ) {
connect ( proc2 , TQT_SIGNAL ( receivedStderr ( TDE Process * , char * , int ) ) , this , TQT_SLOT ( mkisoSizeStderr ( TDE Process * , char * , int ) ) ) ;
connect ( proc2 , TQT_SIGNAL ( receivedStdout ( TDE Process * , char * , int ) ) , this , TQT_SLOT ( mkisoSizeStdout ( TDE Process * , char * , int ) ) ) ;
if ( proc2 - > start ( TDEProcess: : NotifyOnExit , TDE Process: : All ) ) {
// while (proc2->isRunning()) {
// tqApp->processEvents();
// }
@ -158,12 +158,12 @@ void k9BurnDVD::getGenisoimageCmd(k9Process *proc,TQString _fileName,bool _print
* proc < < " -o " ;
* proc < < _fileName ;
}
connect ( proc , TQT_SIGNAL ( receivedStderr ( K Process * , char * , int ) ) , this , TQT_SLOT ( growisoStderr ( K Process * , char * , int ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStdout ( K Process * , char * , int ) ) , this , TQT_SLOT ( growisoStdout ( K Process * , char * , int ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStderr ( TDE Process * , char * , int ) ) , this , TQT_SLOT ( growisoStderr ( TDE Process * , char * , int ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStdout ( TDE Process * , char * , int ) ) , this , TQT_SLOT ( growisoStdout ( TDE Process * , char * , int ) ) ) ;
} else {
* proc < < " -print-size " < < " -quiet " ;
connect ( proc , TQT_SIGNAL ( receivedStderr ( K Process * , char * , int ) ) , this , TQT_SLOT ( mkisoSizeStderr ( K Process * , char * , int ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStdout ( K Process * , char * , int ) ) , this , TQT_SLOT ( mkisoSizeStdout ( K Process * , char * , int ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStderr ( TDE Process * , char * , int ) ) , this , TQT_SLOT ( mkisoSizeStderr ( TDE Process * , char * , int ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStdout ( TDE Process * , char * , int ) ) , this , TQT_SLOT ( mkisoSizeStdout ( TDE Process * , char * , int ) ) ) ;
}
* proc < < TQDir : : cleanDirPath ( workDir + " /dvd " ) ;
@ -207,7 +207,7 @@ void k9BurnDVD::burnWithGenisoimage() {
if ( ! iso ) {
k9Process * proc2 = new k9Process ( NULL , NULL ) ;
getGenisoimageCmd ( proc2 , " " , true ) ;
proc2 - > start ( KProcess: : NotifyOnExit , K Process: : All ) ;
proc2 - > start ( TDEProcess: : NotifyOnExit , TDE Process: : All ) ;
proc2 - > sync ( ) ;
getWodimCmd ( proc ) ;
proc - > setUseShell ( true ) ;
@ -296,8 +296,8 @@ void k9BurnDVD::burnWithGrowisofs() {
* proc < < " -V " + volId ;
* proc < < TQDir : : cleanDirPath ( workDir + " /dvd " ) ;
connect ( proc , TQT_SIGNAL ( receivedStderr ( K Process * , char * , int ) ) , this , TQT_SLOT ( growisoStderr ( K Process * , char * , int ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStdout ( K Process * , char * , int ) ) , this , TQT_SLOT ( growisoStdout ( K Process * , char * , int ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStderr ( TDE Process * , char * , int ) ) , this , TQT_SLOT ( growisoStderr ( TDE Process * , char * , int ) ) ) ;
connect ( proc , TQT_SIGNAL ( receivedStdout ( TDE Process * , char * , int ) ) , this , TQT_SLOT ( growisoStdout ( TDE Process * , char * , int ) ) ) ;
if ( ! autoBurn & & ! iso ) {
c = i18n ( " Insert a recordable DVD " ) ;
if ( KMessageBox : : warningContinueCancel ( 0 , c , i18n ( " DVD burning " ) ) ! = KMessageBox : : Continue )
@ -330,7 +330,7 @@ void k9BurnDVD::burnWithGrowisofs() {
}
/** No descriptions */
void k9BurnDVD : : growisoStderr ( K Process * proc , char * buffer , int buflen ) {
void k9BurnDVD : : growisoStderr ( TDE Process * proc , char * buffer , int buflen ) {
TQString c = TQString : : fromLatin1 ( buffer , buflen ) ; // (proc->readStderr());
char s [ 255 ] ;
int a , b ;
@ -370,7 +370,7 @@ void k9BurnDVD::growisoStderr(KProcess *proc, char *buffer, int buflen) {
}
}
}
void k9BurnDVD : : growisoStdout ( K Process * proc , char * buffer , int buflen ) {
void k9BurnDVD : : growisoStdout ( TDE Process * proc , char * buffer , int buflen ) {
TQString c = TQString : : fromLatin1 ( buffer , buflen ) ; // (proc->readStdout());
int pos ;
pos = c . find ( " STAT " ) ;