KPluginFactory::InheritanceWithMetaDataChecker< impl > Struct Template Reference

#include <kpluginfactory.h>

Public Member Functions

CreateInstanceWithMetaDataFunction createInstanceFunction (KParts::Part *)
CreateInstanceWithMetaDataFunction createInstanceFunction (QWidget *)
CreateInstanceWithMetaDataFunction createInstanceFunction (...)

Static Public Attributes

static constexpr bool enabled

Detailed Description

template<class impl>
struct KPluginFactory::InheritanceWithMetaDataChecker< impl >

This is used to detect the arguments need for the constructor of metadata-taking plugin classes.

You can inherit it, if you want to add new classes and still keep support for the old ones.

Definition at line 528 of file kpluginfactory.h.

Member Data Documentation

template<class impl>
constexpr bool KPluginFactory::InheritanceWithMetaDataChecker< impl >::enabled
Initial value:
std::is_constructible<impl, QWidget *, QObject *, const KPluginMetaData &, const QVariantList &>::value ||
std::is_constructible<impl, QWidget *, const KPluginMetaData &, const QVariantList &>::value ||
std::is_constructible<impl, QObject *, const KPluginMetaData &, const QVariantList &>::value

property to control the availability of the registerPlugin overload taking default values

Definition at line 530 of file kpluginfactory.h.

The documentation for this struct was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 26 2021 23:01:52 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.