Akonadi

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
 

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>{};
}
Helper integration between Akonadi and Qt.
Type trait to provide information about a base class for a given class.
Definition supertrait.h:50

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 50 of file supertrait.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 Tue Mar 26 2024 11:13:39 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.