KDECore
kservicefactory.cpp
Go to the documentation of this file.
184 kError(7011) << "KServiceFactory: unexpected object entry in KSycoca database (type=" << int(type) << ")";
232 list.append( KServiceOffer( servPtr, initialPreference, mimeTypeInheritanceLevel, servPtr->allowAsDefault() ) );
280bool KServiceFactory::hasOffer( int serviceTypeOffset, int serviceOffersOffset, int testedServiceOffset )
KService::List serviceOffers(int serviceTypeOffset, int serviceOffersOffset)
Definition kservicefactory.cpp:245
KServiceOfferList offers(int serviceTypeOffset, int serviceOffersOffset)
Definition kservicefactory.cpp:209
bool hasOffer(int serviceTypeOffset, int serviceOffersOffset, int testedServiceOffset)
Test if a specific service is associated with a specific servicetype.
Definition kservicefactory.cpp:280
virtual KService::Ptr findServiceByDesktopPath(const QString &_name)
Find a service ( by desktop path, e.g.
Definition kservicefactory.cpp:127
virtual KService::Ptr findServiceByMenuId(const QString &_menuId)
Find a service ( by menu id, e.g.
Definition kservicefactory.cpp:154
virtual KService::Ptr findServiceByDesktopName(const QString &_name)
Find a service (by desktop file name, e.g.
Definition kservicefactory.cpp:107
virtual void virtual_hook(int id, void *data)
Virtual hook, used to add new "virtual" functions while maintaining binary compatibility.
Definition kservicefactory.cpp:312
virtual KSycocaEntry * createEntry(const QString &, const char *) const
Construct a KService from a config file.
Definition kservicefactory.h:54
KService::Ptr findServiceByName(const QString &_name)
Find a service (by translated name, e.g.
Definition kservicefactory.cpp:86
Represent a service, like an application or plugin bound to one or several mimetypes (or servicetypes...
Definition kservice.h:59
QString desktopEntryName() const
Returns the filename of the service desktop entry without any extension.
Definition kservice.cpp:889
bool allowAsDefault() const
Set to true if it is allowed to use this service as the default (main) action for the files it suppor...
Definition kservice.cpp:955
Definition ksycocadict_p.h:37
int find_string(const QString &key) const
Looks up an entry identified by 'key'.
Definition ksycocadict.cpp:146
Template for making it easier to define a threadsafe singleton for each factory, with support for kbu...
Definition ksycocafactory.h:177
virtual KSycocaEntry::List allEntries() const
Get a list of all entries from the database.
Definition ksycocafactory.cpp:183
virtual void virtual_hook(int id, void *data)
Virtual hook, used to add new "virtual" functions while maintaining binary compatibility.
Definition ksycocafactory.cpp:246
KSycocaFactory(KSycocaFactoryId factory_id)
Create a factory which can be used to lookup from/create a database (depending on KSycoca::isBuilding...
Definition ksycocafactory.cpp:50
static KSycoca * self()
Get or create the only instance of KSycoca (read-only)
Definition ksycoca.cpp:293
Definition kaboutdata.h:33
#define K_GLOBAL_STATIC(TYPE, NAME)
This macro makes it easy to use non-POD types as global statics.
Definition kglobal.h:221
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.