Implemented DynamicMetaObject optiomizations.

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Lauro Neto <lauro.neto@openbossa.org>
This commit is contained in:
Renato Filho 2011-07-21 17:57:17 -03:00
commit 38e6275aad
8 changed files with 144 additions and 51 deletions

View file

@ -39,11 +39,11 @@ public:
~DynamicQMetaObject();
void addMethod(QMetaMethod::MethodType mtype, const char* signature, const char* type);
int addMethod(QMetaMethod::MethodType mtype, const char* signature, const char* type);
void removeMethod(QMetaMethod::MethodType mtype, uint index);
void addSignal(const char* signal, const char* type = 0);
void addSlot(const char* slot, const char* type = 0);
void addProperty(const char* property, PyObject* data);
int addSignal(const char* signal, const char* type = 0);
int addSlot(const char* slot, const char* type = 0);
int addProperty(const char* property, PyObject* data);
void addInfo(const char* key, const char* value);
void addInfo(QMap<QByteArray, QByteArray> info);
@ -51,6 +51,8 @@ public:
void removeSlot(uint index);
void removeProperty(uint index);
const QMetaObject* update() const;
private:
class DynamicQMetaObjectPrivate;
DynamicQMetaObjectPrivate* m_d;
@ -58,5 +60,6 @@ private:
void parsePythonType(PyTypeObject* type);
};
}
#endif