Fix FTBFS with GCC6

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 8 years ago
parent 2164bb7275
commit dfbb57e394

@ -594,7 +594,7 @@ bool K3b::mount( K3bDevice::Device* dev )
#if KDE_IS_VERSION(3,4,0) #if KDE_IS_VERSION(3,4,0)
// first try to mount it the standard way // first try to mount it the standard way
if( TDEIO::NetAccess::synchronousRun( TDEIO::mount( true, 0, mntDev, false ), 0 ) ) if( TDEIO::NetAccess::synchronousRun( TDEIO::mount( true, 0, mntDev, 0, false ), 0 ) )
return true; return true;
#endif #endif

@ -936,7 +936,7 @@ void K3bCdrdaoWriter::parseCdrdaoWrote( const TQString& line )
void K3bCdrdaoWriter::parseCdrdaoMessage() void K3bCdrdaoWriter::parseCdrdaoMessage()
{ {
static const char msgSync[] = { 0xff, 0x00, 0xff, 0x00 }; static const char msgSync[] = { '\xff', '\x00', '\xff', '\x00' };
unsigned int avail = m_comSock->bytesAvailable(); unsigned int avail = m_comSock->bytesAvailable();
unsigned int msgs = avail / ( sizeof(msgSync)+d->progressMsgSize ); unsigned int msgs = avail / ( sizeof(msgSync)+d->progressMsgSize );
unsigned int count = 0; unsigned int count = 0;

@ -112,17 +112,17 @@ void K3bWaveFileWriter::writeEmptyHeader()
{ {
static const char riffHeader[] = static const char riffHeader[] =
{ {
0x52, 0x49, 0x46, 0x46, // 0 "RIFF" '\x52', '\x49', '\x46', '\x46', // 0 "RIFF"
0x00, 0x00, 0x00, 0x00, // 4 wavSize '\x00', '\x00', '\x00', '\x00', // 4 wavSize
0x57, 0x41, 0x56, 0x45, // 8 "WAVE" '\x57', '\x41', '\x56', '\x45', // 8 "WAVE"
0x66, 0x6d, 0x74, 0x20, // 12 "fmt " '\x66', '\x6d', '\x74', '\x20', // 12 "fmt "
0x10, 0x00, 0x00, 0x00, // 16 '\x10', '\x00', '\x00', '\x00', // 16
0x01, 0x00, 0x02, 0x00, // 20 '\x01', '\x00', '\x02', '\x00', // 20
0x44, 0xac, 0x00, 0x00, // 24 '\x44', '\xac', '\x00', '\x00', // 24
0x10, 0xb1, 0x02, 0x00, // 28 '\x10', '\xb1', '\x02', '\x00', // 28
0x04, 0x00, 0x10, 0x00, // 32 '\x04', '\x00', '\x10', '\x00', // 32
0x64, 0x61, 0x74, 0x61, // 36 "data" '\x64', '\x61', '\x74', '\x61', // 36 "data"
0x00, 0x00, 0x00, 0x00 // 40 byteCount '\x00', '\x00', '\x00', '\x00' // 40 byteCount
}; };
m_outputStream.writeRawBytes( riffHeader, 44 ); m_outputStream.writeRawBytes( riffHeader, 44 );

@ -40,17 +40,17 @@ K_EXPORT_COMPONENT_FACTORY( libk3bexternalencoder, K3bPluginFactory<K3bExternalE
static const char s_riffHeader[] = static const char s_riffHeader[] =
{ {
0x52, 0x49, 0x46, 0x46, // 0 "RIFF" '\x52', '\x49', '\x46', '\x46', // 0 "RIFF"
0x00, 0x00, 0x00, 0x00, // 4 wavSize '\x00', '\x00', '\x00', '\x00', // 4 wavSize
0x57, 0x41, 0x56, 0x45, // 8 "WAVE" '\x57', '\x41', '\x56', '\x45', // 8 "WAVE"
0x66, 0x6d, 0x74, 0x20, // 12 "fmt " '\x66', '\x6d', '\x74', '\x20', // 12 "fmt "
0x10, 0x00, 0x00, 0x00, // 16 '\x10', '\x00', '\x00', '\x00', // 16
0x01, 0x00, 0x02, 0x00, // 20 '\x01', '\x00', '\x02', '\x00', // 20
0x44, 0xac, 0x00, 0x00, // 24 '\x44', '\xac', '\x00', '\x00', // 24
0x10, 0xb1, 0x02, 0x00, // 28 '\x10', '\xb1', '\x02', '\x00', // 28
0x04, 0x00, 0x10, 0x00, // 32 '\x04', '\x00', '\x10', '\x00', // 32
0x64, 0x61, 0x74, 0x61, // 36 "data" '\x64', '\x61', '\x74', '\x61', // 36 "data"
0x00, 0x00, 0x00, 0x00 // 40 byteCount '\x00', '\x00', '\x00', '\x00' // 40 byteCount
}; };

@ -174,18 +174,19 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
TQValueList<K3bSystemProblem> problems; TQValueList<K3bSystemProblem> problems;
if( k3bcore->deviceManager()->cdWriter().isEmpty() ) { if( k3bcore->deviceManager()->cdWriter().isEmpty() ) {
problems.append( K3bSystemProblem( K3bSystemProblem::NON_CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::NON_CRITICAL),
i18n("No CD/DVD writer found."), i18n("No CD/DVD writer found."),
i18n("K3b did not find an optical writing device in your system. Thus, " i18n("K3b did not find an optical writing device in your system. Thus, "
"you will not be able to burn CDs or DVDs. However, you can still " "you will not be able to burn CDs or DVDs. However, you can still "
"use other K3b features like audio track extraction or audio " "use other K3b features like audio track extraction or audio "
"transcoding or ISO9660 image creation."), "transcoding or ISO9660 image creation."),
0,
false ) ); false ) );
} }
else { else {
// 1. cdrecord, cdrdao // 1. cdrecord, cdrdao
if( !k3bcore->externalBinManager()->foundBin( "cdrecord" ) ) { if( !k3bcore->externalBinManager()->foundBin( "cdrecord" ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
i18n("Unable to find %1 executable").arg("cdrecord"), i18n("Unable to find %1 executable").arg("cdrecord"),
i18n("K3b uses cdrecord to actually write CDs."), i18n("K3b uses cdrecord to actually write CDs."),
i18n("Install the cdrtools package which contains " i18n("Install the cdrtools package which contains "
@ -194,7 +195,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
} }
else { else {
if( k3bcore->externalBinManager()->binObject( "cdrecord" )->hasFeature( "outdated" ) ) { if( k3bcore->externalBinManager()->binObject( "cdrecord" )->hasFeature( "outdated" ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::NON_CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::NON_CRITICAL),
i18n("Used %1 version %2 is outdated").arg("cdrecord").arg(k3bcore->externalBinManager()->binObject( "cdrecord" )->version), i18n("Used %1 version %2 is outdated").arg("cdrecord").arg(k3bcore->externalBinManager()->binObject( "cdrecord" )->version),
i18n("Although K3b supports all cdrtools versions since " i18n("Although K3b supports all cdrtools versions since "
"1.10 it is highly recommended to at least use " "1.10 it is highly recommended to at least use "
@ -216,7 +217,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
k3bcore->externalBinManager()->binObject( "cdrecord" )->version < K3bVersion( 2, 1, 1, "a05" ) && k3bcore->externalBinManager()->binObject( "cdrecord" )->version < K3bVersion( 2, 1, 1, "a05" ) &&
!k3bcore->externalBinManager()->binObject( "cdrecord" )->hasFeature( "wodim" ) ) { !k3bcore->externalBinManager()->binObject( "cdrecord" )->hasFeature( "wodim" ) ) {
if( k3bcore->externalBinManager()->binObject( "cdrecord" )->hasFeature( "suidroot" ) ) if( k3bcore->externalBinManager()->binObject( "cdrecord" )->hasFeature( "suidroot" ) )
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
i18n("%1 will be run with root privileges on kernel >= 2.6.8").arg("cdrecord <= 2.01.01a05"), i18n("%1 will be run with root privileges on kernel >= 2.6.8").arg("cdrecord <= 2.01.01a05"),
i18n("Since Linux kernel 2.6.8 %1 will not work when run suid " i18n("Since Linux kernel 2.6.8 %1 will not work when run suid "
"root for security reasons anymore.").arg("cdrecord <= 2.01.01a05"), "root for security reasons anymore.").arg("cdrecord <= 2.01.01a05"),
@ -225,7 +226,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
} }
#ifdef CDRECORD_SUID_ROOT_CHECK #ifdef CDRECORD_SUID_ROOT_CHECK
else if( !k3bcore->externalBinManager()->binObject( "cdrecord" )->hasFeature( "suidroot" ) && getuid() != 0 ) // not root else if( !k3bcore->externalBinManager()->binObject( "cdrecord" )->hasFeature( "suidroot" ) && getuid() != 0 ) // not root
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
i18n("%1 will be run without root privileges").arg("cdrecord"), i18n("%1 will be run without root privileges").arg("cdrecord"),
i18n("It is highly recommended to configure cdrecord " i18n("It is highly recommended to configure cdrecord "
"to run with root privileges. Only then cdrecord " "to run with root privileges. Only then cdrecord "
@ -241,7 +242,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
*/ */
} }
if( !k3bcore->externalBinManager()->foundBin( "cdrdao" ) ) { if( !k3bcore->externalBinManager()->foundBin( "cdrdao" ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
i18n("Unable to find %1 executable").arg("cdrdao"), i18n("Unable to find %1 executable").arg("cdrdao"),
i18n("K3b uses cdrdao to actually write CDs."), i18n("K3b uses cdrdao to actually write CDs."),
i18n("Install the cdrdao package."), i18n("Install the cdrdao package."),
@ -252,7 +253,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
#ifdef Q_OS_LINUX #ifdef Q_OS_LINUX
#ifdef CDRECORD_SUID_ROOT_CHECK #ifdef CDRECORD_SUID_ROOT_CHECK
if( !k3bcore->externalBinManager()->binObject( "cdrdao" )->hasFeature( "suidroot" ) && getuid() != 0 ) if( !k3bcore->externalBinManager()->binObject( "cdrdao" )->hasFeature( "suidroot" ) && getuid() != 0 )
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
i18n("%1 will be run without root privileges").arg("cdrdao"), i18n("%1 will be run without root privileges").arg("cdrdao"),
i18n("It is highly recommended to configure cdrdao " i18n("It is highly recommended to configure cdrdao "
"to run with root privileges to increase the " "to run with root privileges to increase the "
@ -267,7 +268,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
if( !k3bcore->deviceManager()->dvdWriter().isEmpty() ) { if( !k3bcore->deviceManager()->dvdWriter().isEmpty() ) {
if( !k3bcore->externalBinManager()->foundBin( "growisofs" ) ) { if( !k3bcore->externalBinManager()->foundBin( "growisofs" ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
i18n("Unable to find %1 executable").arg("growisofs"), i18n("Unable to find %1 executable").arg("growisofs"),
i18n("K3b uses growisofs to actually write dvds. " i18n("K3b uses growisofs to actually write dvds. "
"Without growisofs you will not be able to write dvds. " "Without growisofs you will not be able to write dvds. "
@ -277,7 +278,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
} }
else { else {
if( k3bcore->externalBinManager()->binObject( "growisofs" )->version < K3bVersion( 5, 10 ) ) { if( k3bcore->externalBinManager()->binObject( "growisofs" )->version < K3bVersion( 5, 10 ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
i18n("Used %1 version %2 is outdated").arg("growisofs").arg(k3bcore->externalBinManager()->binObject( "growisofs" )->version), i18n("Used %1 version %2 is outdated").arg("growisofs").arg(k3bcore->externalBinManager()->binObject( "growisofs" )->version),
i18n("K3b needs at least growisofs version 5.10 to write dvds. " i18n("K3b needs at least growisofs version 5.10 to write dvds. "
"All older versions will not work and K3b will refuse to use them."), "All older versions will not work and K3b will refuse to use them."),
@ -285,7 +286,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
false ) ); false ) );
} }
else if( k3bcore->externalBinManager()->binObject( "growisofs" )->version < K3bVersion( 5, 12 ) ) { else if( k3bcore->externalBinManager()->binObject( "growisofs" )->version < K3bVersion( 5, 12 ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::NON_CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::NON_CRITICAL),
i18n("Used %1 version %2 is outdated").arg("growisofs").arg(k3bcore->externalBinManager()->binObject( "growisofs" )->version), i18n("Used %1 version %2 is outdated").arg("growisofs").arg(k3bcore->externalBinManager()->binObject( "growisofs" )->version),
i18n("K3b will not be able to copy DVDs on-the-fly or write a DVD+RW in multiple " i18n("K3b will not be able to copy DVDs on-the-fly or write a DVD+RW in multiple "
"sessions using a growisofs " "sessions using a growisofs "
@ -294,7 +295,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
false ) ); false ) );
} }
else if( k3bcore->externalBinManager()->binObject( "growisofs" )->version < K3bVersion( 7, 0 ) ) { else if( k3bcore->externalBinManager()->binObject( "growisofs" )->version < K3bVersion( 7, 0 ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::NON_CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::NON_CRITICAL),
i18n("Used %1 version %2 is outdated").arg("growisofs").arg(k3bcore->externalBinManager()->binObject( "growisofs" )->version), i18n("Used %1 version %2 is outdated").arg("growisofs").arg(k3bcore->externalBinManager()->binObject( "growisofs" )->version),
i18n("It is highly recommended to use growisofs 7.0 or higher. " i18n("It is highly recommended to use growisofs 7.0 or higher. "
"K3b won't be able to write a DVD+RW in multiple " "K3b won't be able to write a DVD+RW in multiple "
@ -304,7 +305,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
} }
// for now we ignore the suid root bit becasue of the memorylocked issue // for now we ignore the suid root bit becasue of the memorylocked issue
// else if( !k3bcore->externalBinManager()->binObject( "growisofs" )->hasFeature( "suidroot" ) ) { // else if( !k3bcore->externalBinManager()->binObject( "growisofs" )->hasFeature( "suidroot" ) ) {
// problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, // problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
// i18n("%1 will be run without root privileges").arg("growisofs"), // i18n("%1 will be run without root privileges").arg("growisofs"),
// i18n("It is highly recommended to configure growisofs " // i18n("It is highly recommended to configure growisofs "
// "to run with root privileges. Only then growisofs " // "to run with root privileges. Only then growisofs "
@ -316,7 +317,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
} }
if( !k3bcore->externalBinManager()->foundBin( "dvd+rw-format" ) ) { if( !k3bcore->externalBinManager()->foundBin( "dvd+rw-format" ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
i18n("Unable to find %1 executable").arg("dvd+rw-format"), i18n("Unable to find %1 executable").arg("dvd+rw-format"),
i18n("K3b uses dvd+rw-format to format DVD-RWs and DVD+RWs."), i18n("K3b uses dvd+rw-format to format DVD-RWs and DVD+RWs."),
i18n("Install the dvd+rw-tools package."), i18n("Install the dvd+rw-tools package."),
@ -328,7 +329,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
} }
else if( k3bcore->externalBinManager()->binObject( "mkisofs" )->hasFeature( "outdated" ) ) { else if( k3bcore->externalBinManager()->binObject( "mkisofs" )->hasFeature( "outdated" ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
i18n("Used %1 version %2 is outdated") i18n("Used %1 version %2 is outdated")
.arg("mkisofs") .arg("mkisofs")
.arg(k3bcore->externalBinManager()->binObject( "mkisofs" )->version), .arg(k3bcore->externalBinManager()->binObject( "mkisofs" )->version),
@ -355,7 +356,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
TQPtrList<K3bDevice::Device> automountedDevices = checkForAutomounting(); TQPtrList<K3bDevice::Device> automountedDevices = checkForAutomounting();
for( TQPtrListIterator<K3bDevice::Device> it( automountedDevices ); for( TQPtrListIterator<K3bDevice::Device> it( automountedDevices );
it.current(); ++it ) { it.current(); ++it ) {
problems.append( K3bSystemProblem( K3bSystemProblem::NON_CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::NON_CRITICAL),
i18n("Device %1 - %2 is automounted.") i18n("Device %1 - %2 is automounted.")
.arg(it.current()->vendor()).arg(it.current()->description()), .arg(it.current()->vendor()).arg(it.current()->description()),
i18n("K3b is not able to unmount automounted devices. Thus, especially " i18n("K3b is not able to unmount automounted devices. Thus, especially "
@ -371,7 +372,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
if( atapiWriter ) { if( atapiWriter ) {
if( !K3b::plainAtapiSupport() && if( !K3b::plainAtapiSupport() &&
!K3b::hackedAtapiSupport() ) { !K3b::hackedAtapiSupport() ) {
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
i18n("No ATAPI writing support in kernel"), i18n("No ATAPI writing support in kernel"),
i18n("Your kernel does not support writing without " i18n("Your kernel does not support writing without "
"SCSI emulation but there is at least one " "SCSI emulation but there is at least one "
@ -393,7 +394,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
K3b::hackedAtapiSupport() ) && K3b::hackedAtapiSupport() ) &&
!( k3bcore->externalBinManager()->binObject( "cdrecord" )->hasFeature( "plain-atapi" ) && !( k3bcore->externalBinManager()->binObject( "cdrecord" )->hasFeature( "plain-atapi" ) &&
K3b::plainAtapiSupport() ) ) { K3b::plainAtapiSupport() ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
i18n("%1 %2 does not support ATAPI").arg("cdrecord").arg(k3bcore->externalBinManager()->binObject("cdrecord")->version), i18n("%1 %2 does not support ATAPI").arg("cdrecord").arg(k3bcore->externalBinManager()->binObject("cdrecord")->version),
i18n("The configured version of %1 does not " i18n("The configured version of %1 does not "
"support writing to ATAPI devices without " "support writing to ATAPI devices without "
@ -413,7 +414,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
if( !k3bcore->externalBinManager()->binObject( "cdrdao" )->hasFeature( "hacked-atapi" ) && if( !k3bcore->externalBinManager()->binObject( "cdrdao" )->hasFeature( "hacked-atapi" ) &&
!k3bcore->externalBinManager()->binObject( "cdrdao" )->hasFeature( "plain-atapi") ) { !k3bcore->externalBinManager()->binObject( "cdrdao" )->hasFeature( "plain-atapi") ) {
// FIXME: replace ">" with "&gt;" // FIXME: replace ">" with "&gt;"
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
i18n("%1 %2 does not support ATAPI") i18n("%1 %2 does not support ATAPI")
.arg("cdrdao").arg(k3bcore->externalBinManager()->binObject("cdrdao")->version), .arg("cdrdao").arg(k3bcore->externalBinManager()->binObject("cdrdao")->version),
i18n("The configured version of %1 does not " i18n("The configured version of %1 does not "
@ -436,7 +437,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
if( dvd_r_dl && k3bcore->externalBinManager()->foundBin( "growisofs" ) ) { if( dvd_r_dl && k3bcore->externalBinManager()->foundBin( "growisofs" ) ) {
if( k3bcore->externalBinManager()->binObject( "growisofs" )->version < K3bVersion( 6, 0 ) ) if( k3bcore->externalBinManager()->binObject( "growisofs" )->version < K3bVersion( 6, 0 ) )
problems.append( K3bSystemProblem( K3bSystemProblem::NON_CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::NON_CRITICAL),
i18n("Used %1 version %2 is outdated").arg("growisofs").arg(k3bcore->externalBinManager()->binObject( "growisofs" )->version), i18n("Used %1 version %2 is outdated").arg("growisofs").arg(k3bcore->externalBinManager()->binObject( "growisofs" )->version),
i18n("K3b won't be able to write DVD-R Dual Layer media using a growisofs " i18n("K3b won't be able to write DVD-R Dual Layer media using a growisofs "
"version older than 6.0."), "version older than 6.0."),
@ -449,7 +450,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
K3bDevice::Device* dev = it.current(); K3bDevice::Device* dev = it.current();
if( !TQFileInfo( dev->blockDeviceName() ).isWritable() ) if( !TQFileInfo( dev->blockDeviceName() ).isWritable() )
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
i18n("No write access to device %1").arg(dev->blockDeviceName()), i18n("No write access to device %1").arg(dev->blockDeviceName()),
i18n("K3b needs write access to all the devices to perform certain tasks. " i18n("K3b needs write access to all the devices to perform certain tasks. "
"Without it you might encounter problems with %1 - %2").arg(dev->vendor()).arg(dev->description()), "Without it you might encounter problems with %1 - %2").arg(dev->vendor()).arg(dev->description()),
@ -460,7 +461,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
if( !dev->genericDevice().isEmpty() && if( !dev->genericDevice().isEmpty() &&
!TQFileInfo( dev->genericDevice() ).isWritable() ) !TQFileInfo( dev->genericDevice() ).isWritable() )
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
i18n("No write access to generic SCSI device %1").arg(dev->genericDevice()), i18n("No write access to generic SCSI device %1").arg(dev->genericDevice()),
i18n("Without write access to the generic device you might " i18n("Without write access to the generic device you might "
"encounter problems with Audio CD ripping from %1 - %2").arg(dev->vendor()).arg(dev->description()), "encounter problems with Audio CD ripping from %1 - %2").arg(dev->vendor()).arg(dev->description()),
@ -469,7 +470,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
false ) ); false ) );
if( dev->interfaceType() == K3bDevice::IDE && !dmaActivated( dev ) ) if( dev->interfaceType() == K3bDevice::IDE && !dmaActivated( dev ) )
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::CRITICAL),
i18n("DMA disabled on device %1 - %2").arg(dev->vendor()).arg(dev->description()), i18n("DMA disabled on device %1 - %2").arg(dev->vendor()).arg(dev->description()),
i18n("With most modern CD/DVD devices enabling DMA highly increases " i18n("With most modern CD/DVD devices enabling DMA highly increases "
"read/write performance. If you experience very low writing speeds " "read/write performance. If you experience very low writing speeds "
@ -486,7 +487,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
it != programMap.constEnd(); ++it ) { it != programMap.constEnd(); ++it ) {
const K3bExternalProgram* p = it.data(); const K3bExternalProgram* p = it.data();
if( !p->userParameters().isEmpty() ) { if( !p->userParameters().isEmpty() ) {
problems.append( K3bSystemProblem( K3bSystemProblem::WARNING, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::WARNING),
i18n("User parameters specified for external program %1").arg(p->name()), i18n("User parameters specified for external program %1").arg(p->name()),
i18n("Sometimes it may be nessessary to specify user parameters in addition to " i18n("Sometimes it may be nessessary to specify user parameters in addition to "
"the parameters generated by K3b. This is simply a warning to make sure that " "the parameters generated by K3b. This is simply a warning to make sure that "
@ -512,7 +513,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
} }
} }
if( !haveMp3Decoder ) { if( !haveMp3Decoder ) {
problems.append( K3bSystemProblem( K3bSystemProblem::WARNING, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::WARNING),
i18n("Mp3 Audio Decoder plugin not found."), i18n("Mp3 Audio Decoder plugin not found."),
i18n("K3b could not load or find the Mp3 decoder plugin. This means that you will not " i18n("K3b could not load or find the Mp3 decoder plugin. This means that you will not "
"be able to create Audio CDs from Mp3 files. Many Linux distributions do not " "be able to create Audio CDs from Mp3 files. Many Linux distributions do not "
@ -533,7 +534,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
// It is very unlikely that one would set the locale to ANSI_X3.4-1968 // It is very unlikely that one would set the locale to ANSI_X3.4-1968
// intentionally // intentionally
// //
problems.append( K3bSystemProblem( K3bSystemProblem::WARNING, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::WARNING),
i18n("System locale charset is ANSI_X3.4-1968"), i18n("System locale charset is ANSI_X3.4-1968"),
i18n("Your system's locale charset (i.e. the charset used to encode filenames) " i18n("Your system's locale charset (i.e. the charset used to encode filenames) "
"is set to ANSI_X3.4-1968. It is highly unlikely that this has been done " "is set to ANSI_X3.4-1968. It is highly unlikely that this has been done "
@ -551,7 +552,7 @@ void K3bSystemProblemDialog::checkSystem( TQWidget* parent,
// the tdelibs refuse it. // the tdelibs refuse it.
// //
if( ::getuid() == 0 ) { if( ::getuid() == 0 ) {
problems.append( K3bSystemProblem( K3bSystemProblem::WARNING, problems.append( K3bSystemProblem( static_cast<int>(K3bSystemProblem::WARNING),
i18n("Running K3b as root user"), i18n("Running K3b as root user"),
i18n("It is not recommended to run K3b under the root user account. " i18n("It is not recommended to run K3b under the root user account. "
"This introduces unnecessary security risks."), "This introduces unnecessary security risks."),

Loading…
Cancel
Save