From 9e4c2f273b53ef963b2961a47b62c0cece17e866 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Wed, 20 Jun 2007 10:19:24 +0000 Subject: [PATCH] Dbus port: emit signal so we can update kmail kontact plugin now svn path=/trunk/KDE/kdepim/; revision=677983 --- kmcommands.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kmcommands.cpp b/kmcommands.cpp index 1f6bf895d..e9c96a4c0 100644 --- a/kmcommands.cpp +++ b/kmcommands.cpp @@ -133,7 +133,8 @@ using namespace KMime; #include #include - +#include +#include class LaterDeleterWithCommandCompletion : public KMail::Util::LaterDeleter { @@ -1647,8 +1648,9 @@ KMCommand::Result KMSetStatusCommand::execute() f->setStatus( (*it2), mStatus, mToggle ); ++it2; } - //kapp->dcopClient()->emitDCOPSignal( "unreadCountChanged()", QByteArray() ); - + QDBusMessage message = + QDBusMessage::createSignal("/KMail", "org.kde.kmail.kmail", "unreadCountChanged"); + QDBusConnection::sessionBus().send(message); return OK; }