|
|
|
|
@ -1364,25 +1364,27 @@ static const int numMdnMessageBoxes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int requestAdviceOnMDN( const char * what ) { |
|
|
|
|
for ( int i = 0 ; i < numMdnMessageBoxes ; ++i ) |
|
|
|
|
if ( !qstrcmp( what, mdnMessageBoxes[i].dontAskAgainID ) ) |
|
|
|
|
for ( int i = 0 ; i < numMdnMessageBoxes ; ++i ) { |
|
|
|
|
if ( !qstrcmp( what, mdnMessageBoxes[i].dontAskAgainID ) ) { |
|
|
|
|
if ( mdnMessageBoxes[i].canDeny ) { |
|
|
|
|
const KCursorSaver saver( QCursor::ArrowCursor ); |
|
|
|
|
int answer = QMessageBox::information( 0, |
|
|
|
|
i18n("Message Disposition Notification Request"), |
|
|
|
|
i18n( mdnMessageBoxes[i].text ), |
|
|
|
|
i18n("&Ignore"), i18n("Send \"&denied\""), i18n("&Send") ); |
|
|
|
|
return answer ? answer + 1 : 0 ; // map to "mode" in createMDN
|
|
|
|
|
const KCursorSaver saver( QCursor::ArrowCursor ); |
|
|
|
|
int answer = QMessageBox::information( 0, |
|
|
|
|
i18n("Message Disposition Notification Request"), |
|
|
|
|
i18n( mdnMessageBoxes[i].text ), |
|
|
|
|
i18n("&Ignore"), i18n("Send \"&denied\""), i18n("&Send") ); |
|
|
|
|
return answer ? answer + 1 : 0 ; // map to "mode" in createMDN
|
|
|
|
|
} else { |
|
|
|
|
const KCursorSaver saver( QCursor::ArrowCursor ); |
|
|
|
|
int answer = QMessageBox::information( 0, |
|
|
|
|
i18n("Message Disposition Notification Request"), |
|
|
|
|
i18n( mdnMessageBoxes[i].text ), |
|
|
|
|
i18n("&Ignore"), i18n("&Send") ); |
|
|
|
|
return answer ? answer + 2 : 0 ; // map to "mode" in createMDN
|
|
|
|
|
const KCursorSaver saver( QCursor::ArrowCursor ); |
|
|
|
|
int answer = QMessageBox::information( 0, |
|
|
|
|
i18n("Message Disposition Notification Request"), |
|
|
|
|
i18n( mdnMessageBoxes[i].text ), |
|
|
|
|
i18n("&Ignore"), i18n("&Send") ); |
|
|
|
|
return answer ? answer + 2 : 0 ; // map to "mode" in createMDN
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
kdWarning(5006) << "didn't find data for message box \"" |
|
|
|
|
<< what << "\"" << endl; |
|
|
|
|
<< what << "\"" << endl; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|