|
|
|
@ -39,28 +39,28 @@ void ProcessController::readStdout()
|
|
|
|
|
{
|
|
|
|
|
TQString tempOutput = myProcess->readStdout();
|
|
|
|
|
|
|
|
|
|
if( tempOutput.tqcontains( "ripping..." ))
|
|
|
|
|
if( tempOutput.contains( "ripping..." ))
|
|
|
|
|
{
|
|
|
|
|
TQString songname = tempOutput.mid( tempOutput.tqfind( "]" )+1, tempOutput.tqfindRev( "[" ) - tempOutput.tqfind( "]" ) - 1);
|
|
|
|
|
TQString songname = tempOutput.mid( tempOutput.find( "]" )+1, tempOutput.findRev( "[" ) - tempOutput.find( "]" ) - 1);
|
|
|
|
|
myParent->setText( 1, songname.stripWhiteSpace() );
|
|
|
|
|
|
|
|
|
|
TQString bytesR = tempOutput.mid( tempOutput.tqfindRev( "[" )+1, tempOutput.tqfindRev( "]" ) - tempOutput.tqfindRev( "[" ) - 1);
|
|
|
|
|
TQString bytesR = tempOutput.mid( tempOutput.findRev( "[" )+1, tempOutput.findRev( "]" ) - tempOutput.findRev( "[" ) - 1);
|
|
|
|
|
myParent->setText( 2, bytesR.stripWhiteSpace() );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if( tempOutput.tqcontains( "Connecting..." ))
|
|
|
|
|
if( tempOutput.contains( "Connecting..." ))
|
|
|
|
|
{
|
|
|
|
|
myParent->setText( 1, "Connecting..." );
|
|
|
|
|
myParent->setText( 2, "" );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if( tempOutput.tqcontains( "buffering" ))
|
|
|
|
|
if( tempOutput.contains( "buffering" ))
|
|
|
|
|
{
|
|
|
|
|
myParent->setText( 1, "Buffering..." );
|
|
|
|
|
myParent->setText( 2, "" );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if( tempOutput.tqcontains( "Time to stop is here" ))
|
|
|
|
|
if( tempOutput.contains( "Time to stop is here" ))
|
|
|
|
|
{
|
|
|
|
|
myParent->setText( 1, "Complete" );
|
|
|
|
|
myParent->setText( 2, "" );
|
|
|
|
|