summaryrefslogtreecommitdiffstats
path: root/libk9copy/k9burndvd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libk9copy/k9burndvd.cpp')
-rw-r--r--libk9copy/k9burndvd.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/libk9copy/k9burndvd.cpp b/libk9copy/k9burndvd.cpp
index 3860b79..3975895 100644
--- a/libk9copy/k9burndvd.cpp
+++ b/libk9copy/k9burndvd.cpp
@@ -38,7 +38,7 @@ k9BurnDVD::k9BurnDVD()
iso=false;
m_filename="";
progress=new k9Progress(NULL,"progress",NULL);
- TQString s= KGlobal::dirs()->findResource( "data", "k9copy/anim.mng");
+ TQString s= TDEGlobal::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 KProcess();
+ TDEProcess *k3b = new TDEProcess();
*k3b << "k3b";
*k3b << TQDir::cleanDirPath(workDir +"/dvd/VIDEO_TS");
@@ -100,13 +100,13 @@ void k9BurnDVD::burnWithK3b() {
delete k3b;
}
-void k9BurnDVD::mkisoSizeStderr(KProcess *proc, char *buffer, int buflen) {
+void k9BurnDVD::mkisoSizeStderr(TDEProcess *proc, char *buffer, int buflen) {
TQString c=TQString::fromLatin1( buffer,buflen);// (proc2->readStderr());
imageSize=c.replace("\n","");
;
}
-void k9BurnDVD::mkisoSizeStdout(KProcess *proc, char *buffer, int buflen) {
+void k9BurnDVD::mkisoSizeStdout(TDEProcess *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(KProcess *, char *, int )),this, TQT_SLOT(mkisoSizeStderr(KProcess *, char *, int)) );
- connect( proc2, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),this, TQT_SLOT(mkisoSizeStdout(KProcess *, char *, int)) );
- if (proc2->start(KProcess::NotifyOnExit,KProcess::All)) {
+ connect( proc2, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int )),this, TQT_SLOT(mkisoSizeStderr(TDEProcess *, char *, int)) );
+ connect( proc2, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),this, TQT_SLOT(mkisoSizeStdout(TDEProcess *, char *, int)) );
+ if (proc2->start(TDEProcess::NotifyOnExit,TDEProcess::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(KProcess *, char *, int)),this, TQT_SLOT(growisoStderr(KProcess *, char *, int)) );
- connect( proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),this, TQT_SLOT(growisoStdout(KProcess *, char *, int)) );
+ connect( proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),this, TQT_SLOT(growisoStderr(TDEProcess *, char *, int)) );
+ connect( proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),this, TQT_SLOT(growisoStdout(TDEProcess *, char *, int)) );
} else {
*proc << "-print-size" << "-quiet";
- connect( proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int )),this, TQT_SLOT(mkisoSizeStderr(KProcess *, char *, int)) );
- connect( proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),this, TQT_SLOT(mkisoSizeStdout(KProcess *, char *, int)) );
+ connect( proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int )),this, TQT_SLOT(mkisoSizeStderr(TDEProcess *, char *, int)) );
+ connect( proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),this, TQT_SLOT(mkisoSizeStdout(TDEProcess *, 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,KProcess::All);
+ proc2->start(TDEProcess::NotifyOnExit,TDEProcess::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(KProcess *, char *, int)),this, TQT_SLOT(growisoStderr(KProcess *, char *, int)) );
- connect( proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),this, TQT_SLOT(growisoStdout(KProcess *, char *, int)) );
+ connect( proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),this, TQT_SLOT(growisoStderr(TDEProcess *, char *, int)) );
+ connect( proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),this, TQT_SLOT(growisoStdout(TDEProcess *, 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(KProcess *proc, char *buffer, int buflen) {
+void k9BurnDVD::growisoStderr(TDEProcess *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(KProcess *proc, char *buffer, int buflen) {
+void k9BurnDVD::growisoStdout(TDEProcess *proc, char *buffer, int buflen) {
TQString c=TQString::fromLatin1( buffer,buflen);// (proc->readStdout());
int pos;
pos=c.find("STAT");