13 #ifndef _BERRY_IADAPTABLE_H_
14 #define _BERRY_IADAPTABLE_H_
70 const char* typeName = qobject_interface_iid<A*>();
71 if (typeName ==
nullptr)
74 <<
"Cannot get the interface id for type '" << Reflection::GetClassName<A>()
75 <<
"'. It is probably missing a Q_DECLARE_INTERFACE macro in its header.";
78 return dynamic_cast<A*
>(this->GetAdapter(typeName));
Light weight base class for most BlueBerry classes.
org_blueberry_core_runtime_EXPORT QString DemangleName(const char *typeName)
#define org_blueberry_core_runtime_EXPORT
virtual Object * GetAdapter(const QString &adapterType) const =0