KDECore
kservice.h
Go to the documentation of this file.
58 class 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,
QString i18n(const char *text)
Returns a localized version of a string.
Definition: klocalizedstring.h:630
Definition: klibloader.h:170
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
#define T
Definition: kservice.h:685
Represent a service, like an application or plugin bound to one or several mimetypes (or servicetypes...
Definition: kservice.h:58
static T * createInstance(ServiceIterator begin, ServiceIterator end, QObject *parent, const QStringList &args, int *error=0)
Definition: kservice.h:660
A service type is, well, a type of service, where a service is an application or plugin.
Definition: kservicetype.h:43
static T * createInstance(const KService::Ptr &service, QObject *parent=0, const QVariantList &args=QVariantList(), QString *error=0)
Definition: kservice.h:591
bool unload()
ServiceTypeAndPreference()
Definition: kservice.h:687
This class can be used to dynamically load a plugin library at runtime.
Definition: kpluginloader.h:79
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
bool isEmpty() const
KPluginFactory * factory()
Used to obtain the factory object of the plugin.
Definition: kpluginloader.cpp:185
static T * createInstance(const KService::Ptr &service, QObject *parent, const QStringList &args, int *error=0)
Definition: kservice.h:604
Definition: kservice_p.h:29
static QString errorString(int componentLoadingError)
Converts a numerical error code into a human-readable error message.
Definition: klibloader.cpp:142
QDataStream & operator>>(QDataStream &stream, ActionReply &reply)
Definition: kauthactionreply.cpp:186
Definition: kuitsemantics.cpp:84
QString fromLatin1(const char *str, int size)
ServiceTypeAndPreference(int pref, const QString &servType)
Definition: kservice.h:689
QVariant property(const QString &name) const
Returns the requested property.
Definition: ksycocaentry.cpp:169
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
If you develop a library that is to be loaded dynamically at runtime, then you should return a pointe...
Definition: kpluginfactory.h:232
QDataStream & operator<<(QDataStream &d, const ActionReply &reply)
Definition: kauthactionreply.cpp:181
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.