From kde-commits Mon Jan 12 18:52:26 2009 From: Dariusz Mikulski Date: Mon, 12 Jan 2009 18:52:26 +0000 To: kde-commits Subject: playground/base/plasma/dataengines/presence Message-Id: <1231786346.962252.26833.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=123178635503932 SVN commit 910129 by mikulski: add identifier for datasource M +6 -5 presence.cpp --- trunk/playground/base/plasma/dataengines/presence/presence.cpp #910128:910129 @@ -46,13 +46,13 @@ QString source; // \todo: FIXME // source = account.uniqueIdentifier(); + source = path.path(); + Telepathy::SimplePresence sp = account->currentPresence(); QVariant vsp; vsp.setValue(sp); parent->setData(source, "current_presence", vsp); - // emit parent->sourceAdded(account->uniqueIdentifier()); - // \todo: remove /* QString source; @@ -74,8 +74,6 @@ setData(source, "status_message", itr.value().toMap().value("status_message").toString()); } } - - emit parent->sourceAdded(account->uniqueIdentifier()); */ } @@ -92,6 +90,8 @@ parent->removeSource(identifier); emit parent->sourceRemoved(identifier); */ + QString identifier = path.path(); + parent->removeSource(identifier); } Telepathy::Client::Account *accountFromObjectPath(const QDBusObjectPath &path) @@ -190,6 +190,7 @@ */ bool PresenceEngine::sourceRequestEvent(const QString & name) { + kDebug() << "sourceRequestEvent() called"; /* * if the visualisation requests a * source that is not already there @@ -269,7 +270,7 @@ */ void PresenceEngine::accountRemoved(const QDBusObjectPath &path) { - kDebug() << "uint handle() called"; + kDebug() << "accountRemoved() called"; /* * slot called when an account has been deleted *