I imlemented reflection for signals/slots connections, so my connector class is able to do something like:
QObject::connect (Object1, SIGNAL(Object1->*m_functionMap[SignalName](Params*)), Object2, SLOT (Object2->*m_functionmap[SlotName](Params*));
SignalName and SlotName are string parameters and known. Params* is a pointer to known registered parameter class.
Are there any ideas how to reflect parameters so i can change signature to :
QObject::connect (Object1, SIGNAL(Object1->*m_functionMap[SignalName])(OBject1->parameters[ParamName]), Object2, SLOT (Object2->*m_functionmap[SlotName] (OBject2->parameters[ParamName]));
Aucun commentaire:
Enregistrer un commentaire