SVN commit 534722 by thiago: Porting KMimeType to DBus. This one-entry change to show how simple the porting is. Unfortunately, I don't think this can be scripted (the example shows: you cannot pass a KUrl). M +4 -8 kmimetype.cpp --- branches/work/kdelibs4-dbus/kio/kio/kmimetype.cpp #534721:534722 @@ -27,8 +27,6 @@ #include -#include -#include #include #include #include @@ -41,6 +39,7 @@ #include #include #include +#include #include #include @@ -496,12 +495,9 @@ || !useFavIcons ) return QString(); - DCOPRef kded( "kded", "favicons" ); - DCOPReply result = kded.call( "iconForURL(KUrl)", url ); - if ( result.isValid() ) - return result; - - return QString(); + QDBusRef kded( "org.kde.kded", "/modules/favicons" ); + QDBusReply result = kded->call( "iconForURL", url.url() ); + return result; // default is QString() } QString KMimeType::parentMimeType() const