|
|
@ -25,7 +25,7 @@ Logger::Logger()
|
|
|
|
(*item)->file.setName( locateLocal("data",TQString("soundkonverter/log/%1.log").arg((*item)->id)) );
|
|
|
|
(*item)->file.setName( locateLocal("data",TQString("soundkonverter/log/%1.log").arg((*item)->id)) );
|
|
|
|
// TODO error handling
|
|
|
|
// TODO error handling
|
|
|
|
(*item)->file.open( IO_WriteOnly );
|
|
|
|
(*item)->file.open( IO_WriteOnly );
|
|
|
|
(*item)->textStream.setDevice( TQT_TQIODEVICE(&((*item)->file)) );
|
|
|
|
(*item)->textStream.setDevice( &((*item)->file) );
|
|
|
|
srand( (unsigned)time(NULL) );
|
|
|
|
srand( (unsigned)time(NULL) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -55,7 +55,7 @@ int Logger::registerProcess( const TQString& filename )
|
|
|
|
(*item)->file.setName( locateLocal("data",TQString("soundkonverter/log/%1.log").arg((*item)->id)) );
|
|
|
|
(*item)->file.setName( locateLocal("data",TQString("soundkonverter/log/%1.log").arg((*item)->id)) );
|
|
|
|
// TODO error handling
|
|
|
|
// TODO error handling
|
|
|
|
(*item)->file.open( IO_WriteOnly );
|
|
|
|
(*item)->file.open( IO_WriteOnly );
|
|
|
|
(*item)->textStream.setDevice( TQT_TQIODEVICE(&((*item)->file)) );
|
|
|
|
(*item)->textStream.setDevice( &((*item)->file) );
|
|
|
|
|
|
|
|
|
|
|
|
emit updateProcess( (*item)->id );
|
|
|
|
emit updateProcess( (*item)->id );
|
|
|
|
|
|
|
|
|
|
|
|