[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/plasma/dataengines/presence
From:       Dariusz Mikulski <dariusz.mikulski () gmail ! com>
Date:       2009-01-12 18:52:26
Message-ID: 1231786346.962252.26833.nullmailer () svn ! kde ! org
[Download RAW message or body]

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
      *
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic