Akonadi::SuperClass< Class > Struct Template Reference

#include <supertrait.h>

Inheritance diagram for Akonadi::SuperClass< Class >:

Additional Inherited Members

- Public Types inherited from Akonadi::SuperClassTrait< Class >
using Type = Class

Detailed Description

template<typename Class>
struct Akonadi::SuperClass< Class >

Type trait to provide information about a base class for a given class.

Used eg. for the Akonadi payload mechanism.

To provide base class introspection for own types, extend this trait as follows:

namespace Akonadi
template <> struct SuperClass<MyClass> : public SuperClassTrait<MyBaseClass>{};

Alternatively, define a typedef "SuperClass" in your type, pointing to the base class. This avoids having to include this header file if that's inconvenient from a dependency point of view.

Definition at line 46 of file supertrait.h.

The documentation for this struct was generated from the following file:
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 8 2022 04:03:06 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.