aboutsummaryrefslogtreecommitdiffstats
path: root/libpyside/pysideproperty.h
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-12-08 15:06:52 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:47:56 -0300
commitb4d1a3a4b616dffcd41247dc5584846372083db6 (patch)
tree30dd46ba82e819a5b639e72752aa45ed682a71e2 /libpyside/pysideproperty.h
parente76fffc6173a43189b6133873fcc8e310bf6aa48 (diff)
Add support for extension into PySide properties.
This is used by PySide implementation of QDeclarativeListProperty.
Diffstat (limited to 'libpyside/pysideproperty.h')
-rw-r--r--libpyside/pysideproperty.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libpyside/pysideproperty.h b/libpyside/pysideproperty.h
index f137e8076..b5bad18d4 100644
--- a/libpyside/pysideproperty.h
+++ b/libpyside/pysideproperty.h
@@ -41,6 +41,9 @@ extern "C"
namespace PySide { namespace Property {
+typedef void (*MetaCallHandler)(PySideProperty*,PyObject*,QMetaObject::Call, void**);
+
+
PYSIDE_API bool isPropertyType(PyObject* pyObj);
/**
@@ -82,6 +85,13 @@ PYSIDE_API const char* getNotifyName(PySideProperty* self);
**/
PYSIDE_API PySideProperty* getObject(PyObject* source, PyObject* name);
+PYSIDE_API void setMetaCallHandler(PySideProperty* self, MetaCallHandler handler);
+
+PYSIDE_API void setTypeName(PySideProperty* self, const char* typeName);
+
+PYSIDE_API void setUserData(PySideProperty* self, void* data);
+PYSIDE_API void* userData(PySideProperty* self);
+
} //namespace Property
} //namespace PySide