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