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

List:       kde-commits
Subject:    playground/base/plasma/dataengines/presence
From:       George Goldberg <grundleborg () googlemail ! com>
Date:       2009-03-07 17:29:17
Message-ID: 1236446957.212876.14549.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 936455 by gberg:

Fix presence dataengine to compile against latest telepathy-qt4 bindings.

 M  +3 -4      presence.cpp  


--- trunk/playground/base/plasma/dataengines/presence/presence.cpp #936454:936455
@@ -21,6 +21,7 @@
 #include <TelepathyQt4/Client/AccountManager>
 #include <TelepathyQt4/Client/PendingReadyAccountManager>
 #include <TelepathyQt4/Client/PendingReadyAccount>
+#include <TelepathyQt4/Client/PendingReady>
 
 #include <KDebug>
 #include <KLocale>
@@ -211,12 +212,10 @@
     if(isOperationError(operation))
         return;
 
-    Telepathy::Client::PendingReadyAccount *pa = \
                dynamic_cast<Telepathy::Client::PendingReadyAccount *>(operation);
-    if(!pa)
+    Telepathy::Client::Account *account = qobject_cast<Telepathy::Client::Account \
*>(operation->parent()); +    if(!account)
         return;
 
-    Telepathy::Client::Account *account = pa->account();
-
     QString source;
     source = account->uniqueIdentifier();
     Telepathy::SimplePresence sp = account->currentPresence();


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

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