KDED
kmimeassociations.cpp
Go to the documentation of this file.
55 // Using the "merged view" from KConfig is not enough since we -add- at every level, we don't replace.
56 const QStringList mimeappsFiles = KGlobal::dirs()->findAllResources("xdgdata-apps", "mimeapps.list");
79 parseAddedAssociations(KConfigGroup(&profile, "Added KDE Service Associations"), file, basePreference);
83 void KMimeAssociations::parseAddedAssociations(const KConfigGroup& group, const QString& file, int basePreference)
94 //kDebug(7021) << "adding mime" << resolvedMimeName << "to service" << pService->entryPath() << "pref=" << pref;
95 m_offerHash.addServiceOffer(resolvedMimeName, KServiceOffer(pService, pref, 0, pService->allowAsDefault()));
102 void KMimeAssociations::parseRemovedAssociations(const KConfigGroup& group, const QString& file)
111 //kDebug(7021) << "removing mime" << mime << "from service" << pService.data() << pService->entryPath();
121 //kDebug(7021) << "Adding" << service->entryPath() << "to" << serviceType << offer.preference();
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Fri Jul 12 2013 08:55:52 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2013 The KDE developers.
Generated on Fri Jul 12 2013 08:55:52 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.