Changeset View
Changeset View
Standalone View
Standalone View
agents/newmailnotifier/newmailnotifieragent.cpp
Show First 20 Lines • Show All 460 Lines • ▼ Show 20 Line(s) | 460 | texts.append(i18ncp("%2 = name of mail folder; %3 = name of Akonadi POP3/IMAP/etc resource (as user named it)", | |||
---|---|---|---|---|---|
461 | "One new email in %2 from \"%3\"", | 461 | "One new email in %2 from \"%3\"", | ||
462 | "%1 new emails in %2 from \"%3\"", numberOfEmails, displayName, | 462 | "%1 new emails in %2 from \"%3\"", numberOfEmails, displayName, | ||
463 | resourceName)); | 463 | resourceName)); | ||
464 | } | 464 | } | ||
465 | } | 465 | } | ||
466 | if (hasUniqMessage) { | 466 | if (hasUniqMessage) { | ||
467 | SpecialNotifierJob *job = new SpecialNotifierJob(mListEmails, currentPath, item, this); | 467 | SpecialNotifierJob *job = new SpecialNotifierJob(mListEmails, currentPath, item, this); | ||
468 | job->setDefaultPixmap(mDefaultPixmap); | 468 | job->setDefaultPixmap(mDefaultPixmap); | ||
469 | connect(job, &SpecialNotifierJob::displayNotification, this, &NewMailNotifierAgent::slotDisplayNotification); | | |||
470 | #ifdef HAVE_TEXTTOSPEECH | 469 | #ifdef HAVE_TEXTTOSPEECH | ||
471 | connect(job, &SpecialNotifierJob::say, this, &NewMailNotifierAgent::slotSay); | 470 | connect(job, &SpecialNotifierJob::say, this, &NewMailNotifierAgent::slotSay); | ||
472 | #endif | 471 | #endif | ||
473 | mNewMails.clear(); | 472 | mNewMails.clear(); | ||
474 | return; | 473 | return; | ||
475 | } else { | 474 | } else { | ||
476 | message = texts.join(QStringLiteral("<br>")); | 475 | message = texts.join(QStringLiteral("<br>")); | ||
477 | } | 476 | } | ||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |