diff --git a/kmailIface.h b/kmailIface.h index 217d07530..efc1cc68a 100644 --- a/kmailIface.h +++ b/kmailIface.h @@ -97,6 +97,9 @@ k_dcop: virtual QStringList folderList() const =0; virtual DCOPRef getFolder( const QString& vpath ) =0; +k_dcop_signals: + void unreadCountChanged(); + k_dcop_hidden: virtual bool showMail( Q_UINT32 serialNumber, QString messageId ) = 0; }; diff --git a/kmmainwidget.cpp b/kmmainwidget.cpp index 0359ac555..2e847b41f 100644 --- a/kmmainwidget.cpp +++ b/kmmainwidget.cpp @@ -750,6 +750,7 @@ void KMMainWidget::slotMailChecked(bool newMail, bool sendOnCheck) if (mBeepOnNew) { KNotifyClient::beep(); } + kapp->dcopClient()->emitDCOPSignal( "unreadCountChanged()", QByteArray() ); // Todo: // scroll mHeaders to show new items if current item would