KDECore
kservice.h
Go to the documentation of this file.
58class KDECORE_EXPORT KService : public KSycocaEntry // TODO KDE5: inherit kshared, but move KSycocaEntry to Private
637 static KDE_DEPRECATED T *createInstance(ServiceIterator begin, ServiceIterator end, QObject *parent = 0,
static QString errorString(int componentLoadingError)
Converts a numerical error code into a human-readable error message.
Definition: klibloader.cpp:142
If you develop a library that is to be loaded dynamically at runtime, then you should return a pointe...
Definition: kpluginfactory.h:233
This class can be used to dynamically load a plugin library at runtime.
Definition: kpluginloader.h:80
KPluginFactory * factory()
Used to obtain the factory object of the plugin.
Definition: kpluginloader.cpp:185
Definition: kservice_p.h:30
A service type is, well, a type of service, where a service is an application or plugin.
Definition: kservicetype.h:44
Represent a service, like an application or plugin bound to one or several mimetypes (or servicetypes...
Definition: kservice.h:59
T * createInstance(QWidget *parentWidget, QObject *parent, const QVariantList &args=QVariantList(), QString *error=0) const
This template allows to load the library for the specified service and ask the factory to create an i...
Definition: kservice.h:567
static T * createInstance(const KService::Ptr &service, QObject *parent=0, const QVariantList &args=QVariantList(), QString *error=0)
Definition: kservice.h:591
static T * createInstance(ServiceIterator begin, ServiceIterator end, QObject *parent, const QStringList &args, int *error=0)
Definition: kservice.h:660
static T * createInstance(const KService::Ptr &service, QObject *parent, const QStringList &args, int *error=0)
Definition: kservice.h:604
T * createInstance(QObject *parent=0, const QVariantList &args=QVariantList(), QString *error=0) const
This template allows to load the library for the specified service and ask the factory to create an i...
Definition: kservice.h:547
static T * createInstance(ServiceIterator begin, ServiceIterator end, QObject *parent=0, const QVariantList &args=QVariantList(), QString *error=0)
This template allows to create a component from a list of services, usually coming from a trader quer...
Definition: kservice.h:637
QVariant property(const QString &name) const
Returns the requested property.
Definition: ksycocaentry.cpp:169
Definition: kaboutdata.h:33
QDataStream & operator>>(QDataStream &s, KDateTime::Spec &spec)
Read a KDateTime::Spec object into spec from in, in binary format.
Definition: kdatetime.cpp:274
QString i18n(const char *text)
Returns a localized version of a string.
Definition: klocalizedstring.h:630
#define T
Definition: kservice.h:686
ServiceTypeAndPreference(int pref, const QString &servType)
Definition: kservice.h:689
ServiceTypeAndPreference()
Definition: kservice.h:687
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.