summaryrefslogtreecommitdiff
path: root/kdecore/services/kmimetype.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdecore/services/kmimetype.cpp')
-rw-r--r--kdecore/services/kmimetype.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/kdecore/services/kmimetype.cpp b/kdecore/services/kmimetype.cpp
index 955bf62..9360c93 100644
--- a/kdecore/services/kmimetype.cpp
+++ b/kdecore/services/kmimetype.cpp
@@ -32,7 +32,12 @@
#include <kurl.h>
#include <QtCore/QFile>
+#ifndef KDE_NO_DBUS
#include <QtDBus/QtDBus>
+#else
+#include <QStack>
+#include <QXmlStreamReader>
+#endif
#include <QBuffer>
extern int servicesDebugArea();
@@ -489,11 +494,15 @@ QString KMimeType::favIconForUrl( const KUrl& url )
|| !KMimeTypeRepository::self()->useFavIcons())
return QString();
+#ifndef KDE_NO_DBUS
QDBusInterface kded( QString::fromLatin1("org.kde.kded"),
QString::fromLatin1("/modules/favicons"),
QString::fromLatin1("org.kde.FavIcon") );
QDBusReply<QString> result = kded.call( QString::fromLatin1("iconForUrl"), url.url() );
return result; // default is QString()
+#else
+ return QString();
+#endif
}
QString KMimeType::comment( const KUrl &url) const