comparison generator/typesystem_core.xml @ 99:e252fcf214c5

constructor for QDataStream
author eldar
date Fri, 29 May 2009 00:33:37 +0000
parents ba63040afbf2
children 87f833f309d7
comparison
equal deleted inserted replaced
98:3d55d274e001 99:e252fcf214c5
2658 operator<<(*qtStream, qtString); 2658 operator<<(*qtStream, qtString);
2659 } 2659 }
2660 } 2660 }
2661 */ 2661 */
2662 </inject-code> 2662 </inject-code>
2663 2663 <!--
2664 <template name="core.stream_constructor_bytearray"> 2664 <template name="core.stream_constructor_bytearray">
2665 /* // Hold reference to byte array which goes away when the stream dies 2665 // Hold reference to byte array which goes away when the stream dies
2666 private QByteArray byteArray = null; 2666 private QByteArray byteArray = null;
2667 public %CLASSNAME(QByteArray a, QIODevice.OpenMode mode) { 2667 public %CLASSNAME(QByteArray a, QIODevice.OpenMode mode) {
2668 this(a.nativePointer(), mode); 2668 this(a.nativePointer(), mode);
2669 byteArray = a; 2669 byteArray = a;
2670 } 2670 }
2671 2671
2672 public %CLASSNAME(QByteArray a, QIODevice.OpenModeFlag ... mode) { 2672 public %CLASSNAME(QByteArray a, QIODevice.OpenModeFlag ... mode) {
2673 this(a.nativePointer(), mode); 2673 this(a.nativePointer(), mode);
2674 byteArray = a; 2674 byteArray = a;
2675 } */ 2675 }
2676 </template> 2676 </template>
2677 2677
2678 <modify-function signature="QDataStream(QByteArray*,QFlags&lt;QIODevice::OpenModeFlag&gt;)"> 2678 <modify-function signature="QDataStream(QByteArray*,QFlags&lt;QIODevice::OpenModeFlag&gt;)">
2679 <access modifier="private"/> 2679 <access modifier="private"/>
2680 </modify-function> 2680 </modify-function>
2681 <inject-code> 2681 <inject-code>
2682 <insert-template name="core.stream_constructor_bytearray"> 2682 <insert-template name="core.stream_constructor_bytearray">
2683 <replace from="%CLASSNAME" to="QDataStream"/> 2683 <replace from="%CLASSNAME" to="QDataStream"/>
2684 </insert-template> 2684 </insert-template>
2685 </inject-code> 2685 </inject-code>
2686 2686 -->
2687 <template name="core.qdatastream_readorwrite_bytes"> 2687 <template name="core.qdatastream_readorwrite_bytes">
2688 extern "C" JNIEXPORT jint JNICALL QTJAMBI_FUNCTION_PREFIX(Java_com_trolltech_qt_core_QDataStream_%FUNCTION_NAME%) 2688 extern "C" JNIEXPORT jint JNICALL QTJAMBI_FUNCTION_PREFIX(Java_com_trolltech_qt_core_QDataStream_%FUNCTION_NAME%)
2689 (JNIEnv *env, jobject, jlong stream, jbyteArray array, jint length) 2689 (JNIEnv *env, jobject, jlong stream, jbyteArray array, jint length)
2690 { 2690 {
2691 QTJAMBI_DEBUG_TRACE("(native) entering: QDataStream::%FUNCTION_NAME%"); 2691 QTJAMBI_DEBUG_TRACE("(native) entering: QDataStream::%FUNCTION_NAME%");