diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-04 15:38:58 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-04 15:38:58 -0200 |
commit | 82b253cc84564691ae261db6f271bf318a9405dd (patch) | |
tree | 46e16851c967a2f1315adec6df30b3e55a681632 /PySide/typesystem_templates.xml | |
parent | dd261e8b50bac7492f90c197c973a956cb585678 (diff) | |
parent | d942c8380c4970dd48f8b0ab44c5691e2c6836db (diff) |
Merge remote branch 'cgoncalves/master' (Initial QtNetwork bindings).
Conflicts:
PySide/typesystem_templates.xml
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'PySide/typesystem_templates.xml')
-rw-r--r-- | PySide/typesystem_templates.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/PySide/typesystem_templates.xml b/PySide/typesystem_templates.xml index c61673bf7..f28d26142 100644 --- a/PySide/typesystem_templates.xml +++ b/PySide/typesystem_templates.xml @@ -86,6 +86,14 @@ %CPPSELF.%FUNCTION_NAME(&a, &b, &c, &d, &e); %PYARG_0 = Shiboken::makeTuple(a, b, c, d, e); </template> + <template name="read_wrapper"> + char _data[%2]; + qint64 _size = %CPPSELF.%FUNCTION_NAME(_data, %2); + if (_size > 0) + return %CONVERTTOPYTHON[QByteArray](QByteArray(_data, _size)); + else + return %CONVERTTOPYTHON[QByteArray](QByteArray()); + </template> </typesystem> |