summaryrefslogtreecommitdiffstats
path: root/kioslave/audiocd/plugins/lame/encoderlame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kioslave/audiocd/plugins/lame/encoderlame.cpp')
-rw-r--r--kioslave/audiocd/plugins/lame/encoderlame.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kioslave/audiocd/plugins/lame/encoderlame.cpp b/kioslave/audiocd/plugins/lame/encoderlame.cpp
index 1b8568a2..6e3d3ff3 100644
--- a/kioslave/audiocd/plugins/lame/encoderlame.cpp
+++ b/kioslave/audiocd/plugins/lame/encoderlame.cpp
@@ -53,7 +53,7 @@ public:
TQString lastErrorMessage;
TQStringList genreList;
uint lastSize;
- KProcess *currentEncodeProcess;
+ TDEProcess *currentEncodeProcess;
KTempFile *tempFile;
};
@@ -71,7 +71,7 @@ EncoderLame::~EncoderLame(){
TQWidget* EncoderLame::getConfigureWidget(KConfigSkeleton** manager) const {
(*manager) = Settings::self();
- KGlobal::locale()->insertCatalogue("audiocd_encoder_lame");
+ TDEGlobal::locale()->insertCatalogue("audiocd_encoder_lame");
EncoderLameConfig *config = new EncoderLameConfig();
config->cbr_settings->hide();
return config;
@@ -86,7 +86,7 @@ bool EncoderLame::init(){
// e.g. lame --tg 'Vocal Jazz'
CollectingProcess proc;
proc << "lame" << "--genre-list";
- proc.start(KProcess::Block, KProcess::Stdout);
+ proc.start(TDEProcess::Block, TDEProcess::Stdout);
if(proc.exitStatus() != 0)
return false;
@@ -210,8 +210,8 @@ unsigned long EncoderLame::size(long time_secs) const {
}
long EncoderLame::readInit(long /*size*/){
- // Create KProcess
- d->currentEncodeProcess = new KProcess(0);
+ // Create TDEProcess
+ d->currentEncodeProcess = new TDEProcess(0);
TQString prefix = locateLocal("tmp", "");
d->tempFile = new KTempFile(prefix, ".mp3");
d->tempFile->setAutoDelete(true);
@@ -237,38 +237,38 @@ long EncoderLame::readInit(long /*size*/){
//kdDebug(7117) << d->currentEncodeProcess->args() << endl;
- connect(d->currentEncodeProcess, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),
- this, TQT_SLOT(receivedStdout(KProcess *, char *, int)));
- connect(d->currentEncodeProcess, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)),
- this, TQT_SLOT(receivedStderr(KProcess *, char *, int)));
- connect(d->currentEncodeProcess, TQT_SIGNAL(wroteStdin(KProcess *)),
- this, TQT_SLOT(wroteStdin(KProcess *)));
+ connect(d->currentEncodeProcess, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
+ this, TQT_SLOT(receivedStdout(TDEProcess *, char *, int)));
+ connect(d->currentEncodeProcess, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ this, TQT_SLOT(receivedStderr(TDEProcess *, char *, int)));
+ connect(d->currentEncodeProcess, TQT_SIGNAL(wroteStdin(TDEProcess *)),
+ this, TQT_SLOT(wroteStdin(TDEProcess *)));
- connect(d->currentEncodeProcess, TQT_SIGNAL(processExited(KProcess *)),
- this, TQT_SLOT(processExited(KProcess *)));
+ connect(d->currentEncodeProcess, TQT_SIGNAL(processExited(TDEProcess *)),
+ this, TQT_SLOT(processExited(TDEProcess *)));
// Launch!
- d->currentEncodeProcess->start(KProcess::NotifyOnExit, KShellProcess::All);
+ d->currentEncodeProcess->start(TDEProcess::NotifyOnExit, KShellProcess::All);
return 0;
}
-void EncoderLame::processExited ( KProcess *process ){
+void EncoderLame::processExited ( TDEProcess *process ){
kdDebug(7117) << "Lame Encoding process exited with: " << process->exitStatus() << endl;
d->processHasExited = true;
}
-void EncoderLame::receivedStderr( KProcess * /*process*/, char *buffer, int /*buflen*/ ){
+void EncoderLame::receivedStderr( TDEProcess * /*process*/, char *buffer, int /*buflen*/ ){
kdDebug(7117) << "Lame stderr: " << buffer << endl;
if ( !d->lastErrorMessage.isEmpty() )
d->lastErrorMessage += '\t';
d->lastErrorMessage += TQString::fromLocal8Bit( buffer );
}
-void EncoderLame::receivedStdout( KProcess * /*process*/, char *buffer, int /*length*/ ){
+void EncoderLame::receivedStdout( TDEProcess * /*process*/, char *buffer, int /*length*/ ){
kdDebug(7117) << "Lame stdout: " << buffer << endl;
}
-void EncoderLame::wroteStdin( KProcess * /*procces*/ ){
+void EncoderLame::wroteStdin( TDEProcess * /*procces*/ ){
d->waitingForWrite = false;
}