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