Akonadi::SuperClass Struct
template <typename Class> struct Akonadi::SuperClass| Header: | #include <Akonadi/Supertrait> |
| CMake: | find_package(KPim6Akonadi REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::AkonadiCore) |
Detailed Description
* * * 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.