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

List:       kde-commits
Subject:    KDE/kdeaddons/konq-plugins
From:       Richard Lärkäng <richard () goteborg ! utfors ! se>
Date:       2007-08-19 20:34:16
Message-ID: 1187555656.189967.20680.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 701969 by larkang:

port reparseSlaveConfiguration signal


 M  +4 -9      khtmlsettingsplugin/settingsplugin.cpp  
 M  +6 -6      uachanger/uachangerplugin.cpp  


--- trunk/KDE/kdeaddons/konq-plugins/khtmlsettingsplugin/settingsplugin.cpp \
#701968:701969 @@ -305,15 +305,10 @@
 
 void SettingsPlugin::updateIOSlaves()
 {
-#ifdef __GNUC__
-#warning "kde4 DBUS: port reparseSlaveConfiguration signal"
-#endif
-#if 0
-    QString protocol; // null -> all of them
-    stream << protocol;
-    client->send( "*", "KIO::Scheduler",
-                  "reparseSlaveConfiguration(QString)", data );
-#endif
+    QDBusMessage message =
+            QDBusMessage::createSignal("/KIO/Scheduler", "org.kde.KIO.Scheduler", \
"reparseSlaveConfiguration"); +    message << QString();
+    QDBusConnection::sessionBus().send(message);
 }
 
 #include "settingsplugin.moc"
--- trunk/KDE/kdeaddons/konq-plugins/uachanger/uachangerplugin.cpp #701968:701969
@@ -21,6 +21,8 @@
 #include <sys/utsname.h>
 
 #include <qregexp.h>
+#include <QDBusConnection>
+#include <QDBusMessage>
 #include <kicon.h>
 #include <kactionmenu.h>
 #include <kservicetypetrader.h>
@@ -335,14 +337,12 @@
 
 void UAChangerPlugin::updateIOSlaves ()
 {
-#ifdef __GNUC__
-#warning "kde4: dbus: port reparseSlaveConfiguration "
-#endif	
-#if 0
   // Inform running http(s) io-slaves about the change...
-  if (!DCOPRef("*", "KIO::Scheduler").send("reparseSlaveConfiguration", QString()))
+  QDBusMessage message =
+          QDBusMessage::createSignal("/KIO/Scheduler", "org.kde.KIO.Scheduler", \
"reparseSlaveConfiguration"); +  message << QString();
+  if (!QDBusConnection::sessionBus().send(message))
     kWarning() << "UAChangerPlugin::updateIOSlaves: Unable to update running \
                application!" ;
-#endif
 }
 
 QString UAChangerPlugin::filterHost(const QString &hostname)


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

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