KCoreAddons

KPluginFactory::InheritanceWithMetaDataChecker< impl > Struct Template Reference

#include <kpluginfactory.h>

Public Member Functions

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

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 453 of file kpluginfactory.h.

Member Function Documentation

◆ createInstanceFunction() [1/3]

template<class impl >
CreateInstanceWithMetaDataFunction KPluginFactory::InheritanceWithMetaDataChecker< impl >::createInstanceFunction ( ...)
inline

Definition at line 470 of file kpluginfactory.h.

◆ createInstanceFunction() [2/3]

template<class impl >
CreateInstanceWithMetaDataFunction KPluginFactory::InheritanceWithMetaDataChecker< impl >::createInstanceFunction ( KParts::Part * )
inline

Definition at line 462 of file kpluginfactory.h.

◆ createInstanceFunction() [3/3]

template<class impl >
CreateInstanceWithMetaDataFunction KPluginFactory::InheritanceWithMetaDataChecker< impl >::createInstanceFunction ( QWidget * )
inline

Definition at line 466 of file kpluginfactory.h.

Member Data Documentation

◆ enabled

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

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

Definition at line 455 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-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.