/*
 * Module code.
 *
 * Generated by SIP 4.18.1
 *
 * Copyright (c) 2015 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt4.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQtScript.h"

#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptstring.sip"
#include <qscriptstring.h>
#line 32 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptclass.sip"
#include <qscriptclass.h>
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
#include <qscriptengine.h>
#line 38 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 41 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 269 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 44 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengineagent.sip"
#include <qscriptengineagent.h>
#line 47 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 50 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 53 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptclasspropertyiterator.sip"
#include <qscriptclasspropertyiterator.h>
#line 56 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptclass.sip"
#include <qscriptclass.h>
#line 59 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 62 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptcontextinfo.sip"
#include <qscriptcontextinfo.h>
#line 65 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
#include <qscriptengine.h>
#line 68 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 71 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

/* Define the strings used by this module. */
const char sipStrings_QtScript[] = {
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'E', 'n', 'g', 'i', 'n', 'e', ':', ':', 'Q', 'O', 'b', 'j', 'e', 'c', 't', 'W', 'r', 'a', 'p', 'O', 'p', 't', 'i', 'o', 'n', 's', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'E', 'n', 'g', 'i', 'n', 'e', ':', ':', 'Q', 'O', 'b', 'j', 'e', 'c', 't', 'W', 'r', 'a', 'p', 'O', 'p', 't', 'i', 'o', 'n', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'C', 'o', 'n', 't', 'e', 'x', 't', 'I', 'n', 'f', 'o', ':', ':', 'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', 'T', 'y', 'p', 'e', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'S', 'y', 'n', 't', 'a', 'x', 'C', 'h', 'e', 'c', 'k', 'R', 'e', 's', 'u', 'l', 't', ':', ':', 'S', 't', 'a', 't', 'e', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'C', 'o', 'n', 't', 'e', 'x', 't', ':', ':', 'E', 'x', 'e', 'c', 'u', 't', 'i', 'o', 'n', 'S', 't', 'a', 't', 'e', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'E', 'n', 'g', 'i', 'n', 'e', 'A', 'g', 'e', 'n', 't', ':', ':', 'E', 'x', 't', 'e', 'n', 's', 'i', 'o', 'n', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'E', 'n', 'g', 'i', 'n', 'e', ':', ':', 'V', 'a', 'l', 'u', 'e', 'O', 'w', 'n', 'e', 'r', 's', 'h', 'i', 'p', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'C', 'l', 'a', 's', 's', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 'I', 't', 'e', 'r', 'a', 't', 'o', 'r', 0,
    'P', 'y', 'Q', 't', '4', '.', 'Q', 't', 'C', 'o', 'r', 'e', '.', 'p', 'y', 'q', 't', 'W', 'r', 'a', 'p', 'p', 'e', 'r', 'T', 'y', 'p', 'e', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'V', 'a', 'l', 'u', 'e', ':', ':', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 'F', 'l', 'a', 'g', 's', 0,
    'u', 'n', 'c', 'a', 'u', 'g', 'h', 't', 'E', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 'L', 'i', 'n', 'e', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'P', 'r', 'e', 'f', 'e', 'r', 'E', 'x', 'i', 's', 't', 'i', 'n', 'g', 'W', 'r', 'a', 'p', 'p', 'e', 'r', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'A', 'u', 't', 'o', 'C', 'r', 'e', 'a', 't', 'e', 'D', 'y', 'n', 'a', 'm', 'i', 'c', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'i', 'e', 's', 0,
    'E', 'x', 'c', 'l', 'u', 'd', 'e', 'S', 'u', 'p', 'e', 'r', 'C', 'l', 'a', 's', 's', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'i', 'e', 's', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'V', 'a', 'l', 'u', 'e', ':', ':', 'S', 'p', 'e', 'c', 'i', 'a', 'l', 'V', 'a', 'l', 'u', 'e', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'V', 'a', 'l', 'u', 'e', ':', ':', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 'F', 'l', 'a', 'g', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'V', 'a', 'l', 'u', 'e', ':', ':', 'R', 'e', 's', 'o', 'l', 'v', 'e', 'F', 'l', 'a', 'g', 's', 0,
    'r', 'e', 'p', 'o', 'r', 't', 'A', 'd', 'd', 'i', 't', 'i', 'o', 'n', 'a', 'l', 'M', 'e', 'm', 'o', 'r', 'y', 'C', 'o', 's', 't', 0,
    'i', 'n', 's', 't', 'a', 'l', 'l', 'T', 'r', 'a', 'n', 's', 'l', 'a', 't', 'o', 'r', 'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', 's', 0,
    'u', 'n', 'c', 'a', 'u', 'g', 'h', 't', 'E', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 'B', 'a', 'c', 'k', 't', 'r', 'a', 'c', 'e', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'S', 'c', 'r', 'i', 'p', 't', 'C', 'o', 'n', 't', 'e', 'x', 't', 'I', 'n', 'f', 'o', '>', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'V', 'a', 'l', 'u', 'e', ':', ':', 'R', 'e', 's', 'o', 'l', 'v', 'e', 'F', 'l', 'a', 'g', 0,
    'D', 'e', 'b', 'u', 'g', 'g', 'e', 'r', 'I', 'n', 'v', 'o', 'c', 'a', 't', 'i', 'o', 'n', 'R', 'e', 'q', 'u', 'e', 's', 't', 0,
    'E', 'x', 'c', 'l', 'u', 'd', 'e', 'S', 'u', 'p', 'e', 'r', 'C', 'l', 'a', 's', 's', 'C', 'o', 'n', 't', 'e', 'n', 't', 's', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'S', 'y', 'n', 't', 'a', 'x', 'C', 'h', 'e', 'c', 'k', 'R', 'e', 's', 'u', 'l', 't', 0,
    's', 'e', 't', 'P', 'r', 'o', 'c', 'e', 's', 's', 'E', 'v', 'e', 'n', 't', 's', 'I', 'n', 't', 'e', 'r', 'v', 'a', 'l', 0,
    'S', 'k', 'i', 'p', 'M', 'e', 't', 'h', 'o', 'd', 's', 'I', 'n', 'E', 'n', 'u', 'm', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'E', 'x', 'c', 'l', 'u', 'd', 'e', 'S', 'u', 'p', 'e', 'r', 'C', 'l', 'a', 's', 's', 'M', 'e', 't', 'h', 'o', 'd', 's', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'C', 'l', 'a', 's', 's', ':', ':', 'Q', 'u', 'e', 'r', 'y', 'F', 'l', 'a', 'g', 's', 0,
    'f', 'u', 'n', 'c', 't', 'i', 'o', 'n', 'S', 't', 'a', 'r', 't', 'L', 'i', 'n', 'e', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'C', 'l', 'a', 's', 's', ':', ':', 'E', 'x', 't', 'e', 'n', 's', 'i', 'o', 'n', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'C', 'l', 'a', 's', 's', ':', ':', 'Q', 'u', 'e', 'r', 'y', 'F', 'l', 'a', 'g', 0,
    's', 'i', 'g', 'n', 'a', 'l', 'H', 'a', 'n', 'd', 'l', 'e', 'r', 'E', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 0,
    'f', 'u', 'n', 'c', 't', 'i', 'o', 'n', 'P', 'a', 'r', 'a', 'm', 'e', 't', 'e', 'r', 'N', 'a', 'm', 'e', 's', 0,
    'p', 'r', 'o', 'c', 'e', 's', 's', 'E', 'v', 'e', 'n', 't', 's', 'I', 'n', 't', 'e', 'r', 'v', 'a', 'l', 0,
    'f', 'u', 'n', 'c', 't', 'i', 'o', 'n', 'E', 'n', 'd', 'L', 'i', 'n', 'e', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'i', 's', 'C', 'a', 'l', 'l', 'e', 'd', 'A', 's', 'C', 'o', 'n', 's', 't', 'r', 'u', 'c', 't', 'o', 'r', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'C', 'o', 'n', 't', 'e', 'x', 't', ':', ':', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'V', 'a', 'l', 'u', 'e', 'I', 't', 'e', 'r', 'a', 't', 'o', 'r', 0,
    'h', 'a', 's', 'U', 'n', 'c', 'a', 'u', 'g', 'h', 't', 'E', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'S', 'c', 'r', 'i', 'p', 't', 'V', 'a', 'l', 'u', 'e', '>', 0,
    'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 'E', 'x', 't', 'e', 'n', 's', 'i', 'o', 'n', 's', 0,
    's', 'e', 't', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'P', 'r', 'o', 't', 'o', 't', 'y', 'p', 'e', 0,
    'E', 'x', 'c', 'l', 'u', 'd', 'e', 'C', 'h', 'i', 'l', 'd', 'O', 'b', 'j', 'e', 'c', 't', 's', 0,
    's', 'e', 't', 'A', 'c', 't', 'i', 'v', 'a', 't', 'i', 'o', 'n', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'E', 'n', 'g', 'i', 'n', 'e', 'A', 'g', 'e', 'n', 't', 0,
    'i', 'm', 'p', 'o', 'r', 't', 'e', 'd', 'E', 'x', 't', 'e', 'n', 's', 'i', 'o', 'n', 's', 0,
    'E', 'x', 'c', 'l', 'u', 'd', 'e', 'D', 'e', 'l', 'e', 't', 'e', 'L', 'a', 't', 'e', 'r', 0,
    'Q', 't', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'C', 'o', 'n', 't', 'e', 'x', 't', 'I', 'n', 'f', 'o', 0,
    'H', 'a', 'n', 'd', 'l', 'e', 's', 'W', 'r', 'i', 't', 'e', 'A', 'c', 'c', 'e', 's', 's', 0,
    'K', 'e', 'e', 'p', 'E', 'x', 'i', 's', 't', 'i', 'n', 'g', 'F', 'l', 'a', 'g', 's', 0,
    'S', 'k', 'i', 'p', 'I', 'n', 'E', 'n', 'u', 'm', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'e', 'r', 'r', 'o', 'r', 'C', 'o', 'l', 'u', 'm', 'n', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'q', 'S', 'c', 'r', 'i', 'p', 't', 'D', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 0,
    'u', 'n', 'c', 'a', 'u', 'g', 'h', 't', 'E', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 0,
    'f', 'u', 'n', 'c', 't', 'i', 'o', 'n', 'M', 'e', 't', 'a', 'I', 'n', 'd', 'e', 'x', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 's', 'E', 'x', 't', 'e', 'n', 's', 'i', 'o', 'n', 0,
    'H', 'a', 'n', 'd', 'l', 'e', 's', 'R', 'e', 'a', 'd', 'A', 'c', 'c', 'e', 's', 's', 0,
    's', 'e', 'n', 'd', 'e', 'r', 'S', 'i', 'g', 'n', 'a', 'l', 'I', 'n', 'd', 'e', 'x', 0,
    's', 'i', 'p', '.', 's', 'i', 'm', 'p', 'l', 'e', 'w', 'r', 'a', 'p', 'p', 'e', 'r', 0,
    'R', 'e', 's', 'o', 'l', 'v', 'e', 'P', 'r', 'o', 't', 'o', 't', 'y', 'p', 'e', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'P', 'r', 'o', 't', 'o', 't', 'y', 'p', 'e', 0,
    'a', 'c', 't', 'i', 'v', 'a', 't', 'i', 'o', 'n', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'd', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'N', 'o', 't', 'i', 'f', 'y', 0,
    'e', 'r', 'r', 'o', 'r', 'L', 'i', 'n', 'e', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    's', 'e', 't', 'G', 'l', 'o', 'b', 'a', 'l', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'c', 'l', 'e', 'a', 'r', 'E', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 's', 0,
    'a', 'b', 'o', 'r', 't', 'E', 'v', 'a', 'l', 'u', 'a', 't', 'i', 'o', 'n', 0,
    'i', 'm', 'p', 'o', 'r', 't', 'E', 'x', 't', 'e', 'n', 's', 'i', 'o', 'n', 0,
    'S', 'c', 'r', 'i', 'p', 't', 'O', 'w', 'n', 'e', 'r', 's', 'h', 'i', 'p', 0,
    'a', 'r', 'g', 'u', 'm', 'e', 'n', 't', 's', 'O', 'b', 'j', 'e', 'c', 't', 0,
    's', 'e', 't', 'S', 'c', 'r', 'i', 'p', 't', 'C', 'l', 'a', 's', 's', 0,
    's', 't', 'r', 'i', 'c', 't', 'l', 'y', 'E', 'q', 'u', 'a', 'l', 's', 0,
    'U', 'n', 'd', 'e', 'f', 'i', 'n', 'e', 'd', 'V', 'a', 'l', 'u', 'e', 0,
    'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 'S', 'e', 't', 't', 'e', 'r', 0,
    'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 'G', 'e', 't', 't', 'e', 'r', 0,
    'e', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 'C', 'a', 't', 'c', 'h', 0,
    'e', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 'T', 'h', 'r', 'o', 'w', 0,
    'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 0,
    'q', 'S', 'c', 'r', 'i', 'p', 't', 'C', 'o', 'n', 'n', 'e', 'c', 't', 0,
    't', 'o', 'S', 't', 'r', 'i', 'n', 'g', 'H', 'a', 'n', 'd', 'l', 'e', 0,
    'c', 'o', 'l', 'l', 'e', 'c', 't', 'G', 'a', 'r', 'b', 'a', 'g', 'e', 0,
    'n', 'e', 'w', 'Q', 'M', 'e', 't', 'a', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'u', 'n', 'd', 'e', 'f', 'i', 'n', 'e', 'd', 'V', 'a', 'l', 'u', 'e', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'C', 'o', 'n', 't', 'e', 'x', 't', 0,
    'N', 'a', 't', 'i', 'v', 'e', 'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', 0,
    'S', 'c', 'r', 'i', 'p', 't', 'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', 0,
    'R', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 'E', 'r', 'r', 'o', 'r', 0,
    'E', 'x', 'c', 'e', 'p', 't', 'i', 'o', 'n', 'S', 't', 'a', 't', 'e', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'C', 'o', 'n', 't', 'e', 'x', 't', 0,
    'P', 'y', 'Q', 't', '4', '.', 'Q', 't', 'S', 'c', 'r', 'i', 'p', 't', 0,
    't', 'o', 'Q', 'M', 'e', 't', 'a', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'i', 's', 'Q', 'M', 'e', 't', 'a', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'Q', 'O', 'b', 'j', 'e', 'c', 't', 'M', 'e', 'm', 'b', 'e', 'r', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'S', 't', 'r', 'i', 'n', 'g', 0,
    'f', 'u', 'n', 'c', 't', 'i', 'o', 'n', 'E', 'n', 't', 'r', 'y', 0,
    'A', 'u', 't', 'o', 'O', 'w', 'n', 'e', 'r', 's', 'h', 'i', 'p', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'E', 'n', 'g', 'i', 'n', 'e', 0,
    's', 'e', 't', 'T', 'h', 'i', 's', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'a', 'r', 'g', 'u', 'm', 'e', 'n', 't', 'C', 'o', 'u', 'n', 't', 0,
    'p', 'a', 'r', 'e', 'n', 't', 'C', 'o', 'n', 't', 'e', 'x', 't', 0,
    'p', 'r', 'o', 'p', 'e', 'r', 't', 'y', 'F', 'l', 'a', 'g', 's', 0,
    'q', 'u', 'e', 'r', 'y', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    's', 'e', 't', 'P', 'r', 'o', 't', 'o', 't', 'y', 'p', 'e', 0,
    'R', 'e', 's', 'o', 'l', 'v', 'e', 'S', 'c', 'o', 'p', 'e', 0,
    'R', 'e', 's', 'o', 'l', 'v', 'e', 'L', 'o', 'c', 'a', 'l', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'V', 'a', 'l', 'u', 'e', 0,
    't', 'o', 'A', 'r', 'r', 'a', 'y', 'I', 'n', 'd', 'e', 'x', 0,
    'f', 'u', 'n', 'c', 't', 'i', 'o', 'n', 'E', 'x', 'i', 't', 0,
    's', 'c', 'r', 'i', 'p', 't', 'U', 'n', 'l', 'o', 'a', 'd', 0,
    'e', 'r', 'r', 'o', 'r', 'M', 'e', 's', 's', 'a', 'g', 'e', 0,
    'I', 'n', 't', 'e', 'r', 'm', 'e', 'd', 'i', 'a', 't', 'e', 0,
    'i', 's', 'E', 'v', 'a', 'l', 'u', 'a', 't', 'i', 'n', 'g', 0,
    'g', 'l', 'o', 'b', 'a', 'l', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'E', 'x', 'c', 'l', 'u', 'd', 'e', 'S', 'l', 'o', 't', 's', 0,
    'f', 'u', 'n', 'c', 't', 'i', 'o', 'n', 'T', 'y', 'p', 'e', 0,
    'f', 'u', 'n', 'c', 't', 'i', 'o', 'n', 'N', 'a', 'm', 'e', 0,
    'Q', 'S', 'c', 'r', 'i', 'p', 't', 'C', 'l', 'a', 's', 's', 0,
    'c', 'o', 'l', 'u', 'm', 'n', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'E', 'r', 'r', 'o', 'r', 0,
    'i', 's', 'U', 'n', 'd', 'e', 'f', 'i', 'n', 'e', 'd', 0,
    'U', 'n', 'd', 'e', 'l', 'e', 't', 'a', 'b', 'l', 'e', 0,
    'R', 'e', 's', 'o', 'l', 'v', 'e', 'F', 'u', 'l', 'l', 0,
    'c', 'o', 'n', 't', 'e', 'x', 't', 'P', 'u', 's', 'h', 0,
    'c', 'h', 'e', 'c', 'k', 'S', 'y', 'n', 't', 'a', 'x', 0,
    's', 'c', 'r', 'i', 'p', 't', 'C', 'l', 'a', 's', 's', 0,
    'n', 'e', 'w', 'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', 0,
    'c', 'a', 'n', 'E', 'v', 'a', 'l', 'u', 'a', 't', 'e', 0,
    'p', 'u', 's', 'h', 'C', 'o', 'n', 't', 'e', 'x', 't', 0,
    'Q', 't', 'O', 'w', 'n', 'e', 'r', 's', 'h', 'i', 'p', 0,
    'S', 'y', 'n', 't', 'a', 'x', 'E', 'r', 'r', 'o', 'r', 0,
    'N', 'o', 'r', 'm', 'a', 'l', 'S', 't', 'a', 't', 'e', 0,
    'h', 'a', 's', 'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 0,
    'n', 'e', 'w', 'I', 't', 'e', 'r', 'a', 't', 'o', 'r', 0,
    'H', 'a', 's', 'I', 'n', 's', 't', 'a', 'n', 'c', 'e', 0,
    'c', 'u', 's', 't', 'o', 'm', 'E', 'v', 'e', 'n', 't', 0,
    's', 'e', 't', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'e', 'v', 'e', 'n', 't', 'F', 'i', 'l', 't', 'e', 'r', 0,
    's', 'c', 'r', 'i', 'p', 't', 'N', 'a', 'm', 'e', 0,
    'i', 'n', 's', 't', 'a', 'n', 'c', 'e', 'O', 'f', 0,
    'i', 's', 'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', 0,
    'c', 'o', 'n', 't', 'e', 'x', 't', 'P', 'o', 'p', 0,
    's', 'c', 'r', 'i', 'p', 't', 'L', 'o', 'a', 'd', 0,
    'n', 'e', 'w', 'Q', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'n', 'e', 'w', 'V', 'a', 'r', 'i', 'a', 'n', 't', 0,
    'p', 'o', 'p', 'C', 'o', 'n', 't', 'e', 'x', 't', 0,
    'Q', 't', 'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', 0,
    't', 'h', 'r', 'o', 'w', 'E', 'r', 'r', 'o', 'r', 0,
    't', 'h', 'r', 'o', 'w', 'V', 'a', 'l', 'u', 'e', 0,
    't', 'h', 'i', 's', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'R', 'a', 'n', 'g', 'e', 'E', 'r', 'r', 'o', 'r', 0,
    'l', 'i', 'n', 'e', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'f', 'i', 'e', 'l', 'd', 'W', 'i', 'd', 't', 'h', 0,
    'c', 'h', 'i', 'l', 'd', 'E', 'v', 'e', 'n', 't', 0,
    't', 'i', 'm', 'e', 'r', 'E', 'v', 'e', 'n', 't', 0,
    't', 'o', 'D', 'a', 't', 'e', 'T', 'i', 'm', 'e', 0,
    '_', '_', 'r', 's', 'h', 'i', 'f', 't', '_', '_', 0,
    '_', '_', 'l', 's', 'h', 'i', 'f', 't', '_', '_', 0,
    '_', '_', 'i', 'n', 'v', 'e', 'r', 't', '_', '_', 0,
    'c', 'o', 'n', 's', 't', 'r', 'u', 'c', 't', 0,
    't', 'o', 'Q', 'O', 'b', 'j', 'e', 'c', 't', 0,
    't', 'o', 'V', 'a', 'r', 'i', 'a', 'n', 't', 0,
    't', 'o', 'I', 'n', 't', 'e', 'g', 'e', 'r', 0,
    't', 'o', 'B', 'o', 'o', 'l', 'e', 'a', 'n', 0,
    'i', 's', 'Q', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'i', 's', 'V', 'a', 'r', 'i', 'a', 'n', 't', 0,
    'i', 's', 'B', 'o', 'o', 'l', 'e', 'a', 'n', 0,
    'N', 'u', 'l', 'l', 'V', 'a', 'l', 'u', 'e', 0,
    'U', 's', 'e', 'r', 'R', 'a', 'n', 'g', 'e', 0,
    'o', 'w', 'n', 'e', 'r', 's', 'h', 'i', 'p', 0,
    'n', 'e', 'w', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'n', 'e', 'w', 'R', 'e', 'g', 'E', 'x', 'p', 0,
    'n', 'u', 'l', 'l', 'V', 'a', 'l', 'u', 'e', 0,
    'b', 'a', 'c', 'k', 't', 'r', 'a', 'c', 'e', 0,
    'T', 'y', 'p', 'e', 'E', 'r', 'r', 'o', 'r', 0,
    'e', 'x', 't', 'e', 'n', 's', 'i', 'o', 'n', 0,
    'p', 'r', 'o', 't', 'o', 't', 'y', 'p', 'e', 0,
    'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', 0,
    'r', 'e', 'c', 'e', 'i', 'v', 'e', 'r', 's', 0,
    'p', 'r', 'e', 'c', 'i', 's', 'i', 'o', 'n', 0,
    'l', 'e', 's', 's', 'T', 'h', 'a', 'n', 0,
    't', 'o', 'U', 'I', 'n', 't', '1', '6', 0,
    't', 'o', 'U', 'I', 'n', 't', '3', '2', 0,
    't', 'o', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'i', 's', 'R', 'e', 'g', 'E', 'x', 'p', 0,
    'i', 's', 'S', 't', 'r', 'i', 'n', 'g', 0,
    't', 'o', 'O', 'b', 'j', 'e', 'c', 't', 0,
    's', 'e', 't', 'A', 'g', 'e', 'n', 't', 0,
    'n', 'e', 'w', 'A', 'r', 'r', 'a', 'y', 0,
    'e', 'v', 'a', 'l', 'u', 'a', 't', 'e', 0,
    's', 'c', 'r', 'i', 'p', 't', 'I', 'd', 0,
    'U', 'R', 'I', 'E', 'r', 'r', 'o', 'r', 0,
    'p', 'r', 'e', 'v', 'i', 'o', 'u', 's', 0,
    'a', 'r', 'g', 'u', 'm', 'e', 'n', 't', 0,
    'C', 'a', 'l', 'l', 'a', 'b', 'l', 'e', 0,
    't', 'o', 'R', 'e', 'g', 'E', 'x', 'p', 0,
    'b', 'e', 'h', 'a', 'v', 'i', 'o', 'r', 0,
    'f', 'i', 'l', 'l', 'C', 'h', 'a', 'r', 0,
    's', 'e', 't', 'V', 'a', 'l', 'u', 'e', 0,
    'p', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'R', 'e', 'a', 'd', 'O', 'n', 'l', 'y', 0,
    't', 'o', 'S', 't', 'r', 'i', 'n', 'g', 0,
    'i', 's', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    '_', '_', 'h', 'a', 's', 'h', '_', '_', 0,
    'f', 'i', 'l', 'e', 'N', 'a', 'm', 'e', 0,
    '_', '_', 'b', 'o', 'o', 'l', '_', '_', 0,
    '_', '_', 'i', 'x', 'o', 'r', '_', '_', 0,
    '_', '_', 'i', 'a', 'n', 'd', '_', '_', 0,
    't', 'o', 'I', 'n', 't', '3', '2', 0,
    'i', 's', 'E', 'r', 'r', 'o', 'r', 0,
    'i', 's', 'A', 'r', 'r', 'a', 'y', 0,
    'n', 'e', 'w', 'D', 'a', 't', 'e', 0,
    't', 'o', 'F', 'r', 'o', 'n', 't', 0,
    'o', 'p', 't', 'i', 'o', 'n', 's', 0,
    'e', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    's', 'e', 't', 'D', 'a', 't', 'a', 0,
    'i', 's', 'V', 'a', 'l', 'i', 'd', 0,
    'h', 'a', 's', 'N', 'e', 'x', 't', 0,
    'f', 'i', 'l', 't', 'e', 'r', 's', 0,
    '_', '_', 'a', 'n', 'd', '_', '_', 0,
    '_', '_', 'x', 'o', 'r', '_', '_', 0,
    '_', '_', 'i', 'n', 't', '_', '_', 0,
    '_', '_', 'i', 'o', 'r', '_', '_', 0,
    'e', 'q', 'u', 'a', 'l', 's', 0,
    'i', 's', 'D', 'a', 't', 'e', 0,
    'i', 's', 'B', 'o', 'o', 'l', 0,
    'c', 'a', 'l', 'l', 'e', 'e', 0,
    't', 'o', 'B', 'a', 'c', 'k', 0,
    'e', 'n', 'g', 'i', 'n', 'e', 0,
    't', 'o', 'B', 'o', 'o', 'l', 0,
    'p', 'r', 'o', 'p', 'e', 'r', 0,
    's', 'e', 'n', 'd', 'e', 'r', 0,
    'v', 'a', 'l', 'u', 'e', '9', 0,
    'v', 'a', 'l', 'u', 'e', '8', 0,
    'v', 'a', 'l', 'u', 'e', '7', 0,
    'v', 'a', 'l', 'u', 'e', '6', 0,
    'v', 'a', 'l', 'u', 'e', '5', 0,
    'v', 'a', 'l', 'u', 'e', '4', 0,
    'v', 'a', 'l', 'u', 'e', '3', 0,
    'v', 'a', 'l', 'u', 'e', '0', 0,
    's', 'y', 'm', 'b', 'o', 'l', 0,
    's', 'u', 'f', 'f', 'i', 'x', 0,
    'p', 'r', 'e', 'f', 'i', 'x', 0,
    'f', 'o', 'r', 'm', 'a', 't', 0,
    'l', 'e', 'n', 'g', 't', 'h', 0,
    'v', 'a', 'l', 'u', 'e', '2', 0,
    'v', 'a', 'l', 'u', 'e', '1', 0,
    'i', 's', 'N', 'u', 'l', 'l', 0,
    'r', 'e', 's', 'u', 'l', 't', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 0,
    'o', 'b', 'j', 'e', 'c', 't', 0,
    '_', '_', 'n', 'e', '_', '_', 0,
    '_', '_', 'e', 'q', '_', '_', 0,
    '_', '_', 'o', 'r', '_', '_', 0,
    'a', 'g', 'e', 'n', 't', 0,
    'v', 'a', 'l', 'u', 'e', 0,
    'f', 'l', 'a', 'g', 's', 0,
    'e', 'v', 'e', 'n', 't', 0,
    'm', 's', 'e', 'c', 's', 0,
    's', 't', 'a', 't', 'e', 0,
    'c', 'a', 'l', 'l', 0,
    'a', 'r', 'g', 's', 0,
    'm', 'o', 'd', 'e', 0,
    'n', 'a', 'm', 'e', 0,
    'b', 'a', 's', 'e', 0,
    'f', 'r', 'o', 'm', 0,
    's', 'o', 'r', 't', 0,
    'n', 'e', 'x', 't', 0,
    'd', 'a', 't', 'a', 0,
    'e', 'n', 'd', 0,
    'o', 'k', 0,
};
#line 25 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptclass.sip"
#include <qscriptclass.h>
#line 25 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptcontextinfo.sip"
#include <qscriptcontextinfo.h>
#line 25 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
#include <qscriptengine.h>
#line 25 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 356 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

QVariant sipVH_QtScript_0(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QScriptEngineAgent::Extension a0,const QVariant& a1)
{
    QVariant sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "FN",a0,sipType_QScriptEngineAgent_Extension,new QVariant(a1),sipType_QVariant,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QVariant, &sipRes);

    return sipRes;
}

bool sipVH_QtScript_1(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QScriptEngineAgent::Extension a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "F",a0,sipType_QScriptEngineAgent_Extension);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "b", &sipRes);

    return sipRes;
}

void sipVH_QtScript_2(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, PY_LONG_LONG a0,const QScriptValue& a1)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "nN",a0,new QScriptValue(a1),sipType_QScriptValue,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtScript_3(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, PY_LONG_LONG a0,const QScriptValue& a1,bool a2)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "nNb",a0,new QScriptValue(a1),sipType_QScriptValue,NULL,a2);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtScript_4(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, PY_LONG_LONG a0,int a1,int a2)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "nii",a0,a1,a2);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtScript_5(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, PY_LONG_LONG a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "n",a0);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtScript_6(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, PY_LONG_LONG a0,const QString& a1,const QString& a2,int a3)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "nNNi",a0,new QString(a1),sipType_QString,NULL,new QString(a2),sipType_QString,NULL,a3);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

QScriptValue::PropertyFlags sipVH_QtScript_7(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    QScriptValue::PropertyFlags sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QScriptValue_PropertyFlags, &sipRes);

    return sipRes;
}

uint sipVH_QtScript_8(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    uint sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "u", &sipRes);

    return sipRes;
}

QScriptString sipVH_QtScript_9(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    QScriptString sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QScriptString, &sipRes);

    return sipRes;
}

QVariant sipVH_QtScript_10(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QScriptClass::Extension a0,const QVariant& a1)
{
    QVariant sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "FN",a0,sipType_QScriptClass_Extension,new QVariant(a1),sipType_QVariant,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QVariant, &sipRes);

    return sipRes;
}

bool sipVH_QtScript_11(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QScriptClass::Extension a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "F",a0,sipType_QScriptClass_Extension);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "b", &sipRes);

    return sipRes;
}

QScriptValue sipVH_QtScript_12(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    QScriptValue sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QScriptValue, &sipRes);

    return sipRes;
}

QScriptClassPropertyIterator* sipVH_QtScript_13(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QScriptValue& a0)
{
    QScriptClassPropertyIterator* sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QScriptValue(a0),sipType_QScriptValue,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H0", sipType_QScriptClassPropertyIterator, &sipRes);

    return sipRes;
}

QScriptValue::PropertyFlags sipVH_QtScript_14(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QScriptValue& a0,const QScriptString& a1,uint a2)
{
    QScriptValue::PropertyFlags sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NNu",new QScriptValue(a0),sipType_QScriptValue,NULL,new QScriptString(a1),sipType_QScriptString,NULL,a2);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QScriptValue_PropertyFlags, &sipRes);

    return sipRes;
}

void sipVH_QtScript_15(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QScriptValue& a0,const QScriptString& a1,uint a2,const QScriptValue& a3)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "DNuN",&a0,sipType_QScriptValue,NULL,new QScriptString(a1),sipType_QScriptString,NULL,a2,new QScriptValue(a3),sipType_QScriptValue,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

QScriptValue sipVH_QtScript_16(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QScriptValue& a0,const QScriptString& a1,uint a2)
{
    QScriptValue sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NNu",new QScriptValue(a0),sipType_QScriptValue,NULL,new QScriptString(a1),sipType_QScriptString,NULL,a2);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QScriptValue, &sipRes);

    return sipRes;
}

QScriptClass::QueryFlags sipVH_QtScript_17(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QScriptValue& a0,const QScriptString& a1,QScriptClass::QueryFlags a2,uint*a3)
{
    QScriptClass::QueryFlags sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NNN",new QScriptValue(a0),sipType_QScriptValue,NULL,new QScriptString(a1),sipType_QScriptString,NULL,new QScriptClass::QueryFlags(a2),sipType_QScriptClass_QueryFlags,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "(H5u)", sipType_QScriptClass_QueryFlags, &sipRes, a3);

    return sipRes;
}


PyDoc_STRVAR(doc_qScriptDisconnect, "qScriptDisconnect(QObject, QT_SIGNAL, QScriptValue, QScriptValue) -> bool");

extern "C" {static PyObject *func_qScriptDisconnect(PyObject *,PyObject *);}
static PyObject *func_qScriptDisconnect(PyObject *,PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QObject* a0;
        char* a1;
        const QScriptValue* a2;
        const QScriptValue* a3;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8GJ9J9", sipType_QObject, &a0, &a1, sipType_QScriptValue, &a2, sipType_QScriptValue, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = qScriptDisconnect(a0,a1,*a2,*a3);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qScriptDisconnect, doc_qScriptDisconnect);

    return NULL;
}


PyDoc_STRVAR(doc_qScriptConnect, "qScriptConnect(QObject, QT_SIGNAL, QScriptValue, QScriptValue) -> bool");

extern "C" {static PyObject *func_qScriptConnect(PyObject *,PyObject *);}
static PyObject *func_qScriptConnect(PyObject *,PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QObject* a0;
        char* a1;
        const QScriptValue* a2;
        const QScriptValue* a3;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8GJ9J9", sipType_QObject, &a0, &a1, sipType_QScriptValue, &a2, sipType_QScriptValue, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = qScriptConnect(a0,a1,*a2,*a3);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qScriptConnect, doc_qScriptConnect);

    return NULL;
}


extern "C" {static PyObject *slot___rshift__(PyObject *,PyObject *);}
static PyObject *slot___rshift__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QDataStream* a0;
        QScriptContextInfo* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QScriptContextInfo, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot___lshift__(PyObject *,PyObject *);}
static PyObject *slot___lshift__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QDataStream* a0;
        const QScriptContextInfo* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QScriptContextInfo, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static void *init_type_QString_0(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QString_0(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QString *sipCpp = 0;

    {
        QScriptString* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QScriptString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QString(a0->operator QString());
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}

static sipInitExtenderDef initExtenders[] = {
    {0, init_type_QString_0, {197, 0, 0}, NULL},
    {-1, NULL, {0, 0, 0}, NULL}
};

static sipPySlotExtenderDef slotExtenders[] = {
    {(void *)slot___rshift__, rshift_slot, {0, 0, 0}},
    {(void *)slot___lshift__, lshift_slot, {0, 0, 0}},
    {NULL, (sipPySlotType)0, {0, 0, 0}}
};


/* Convert to a sub-class if possible. */
extern "C" {static const sipTypeDef *sipSubClass_QScriptEngine(void **);}
static const sipTypeDef *sipSubClass_QScriptEngine(void **sipCppRet)
{
    QObject *sipCpp = reinterpret_cast<QObject *>(*sipCppRet);
    const sipTypeDef *sipType;

#line 88 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
    sipType = (sipCpp->inherits(sipName_QScriptEngine) ? sipType_QScriptEngine : 0);
#line 691 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

    return sipType;
}


extern "C" {static PyObject *slot_QScriptValue_PropertyFlag___or__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_PropertyFlag___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptValue::PropertyFlag a0;
        QScriptValue::PropertyFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QScriptValue_PropertyFlag, &a0, sipType_QScriptValue_PropertyFlags, &a1, &a1State))
        {
            QScriptValue::PropertyFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue::PropertyFlags((a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QScriptValue_PropertyFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_PropertyFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QScriptValue_PropertyFlag[] = {
    {(void *)slot_QScriptValue_PropertyFlag___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QScriptValue_ResolveFlag___or__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_ResolveFlag___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptValue::ResolveFlag a0;
        QScriptValue::ResolveFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QScriptValue_ResolveFlag, &a0, sipType_QScriptValue_ResolveFlags, &a1, &a1State))
        {
            QScriptValue::ResolveFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue::ResolveFlags((a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QScriptValue_ResolveFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_ResolveFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QScriptValue_ResolveFlag[] = {
    {(void *)slot_QScriptValue_ResolveFlag___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QScriptEngine_QObjectWrapOption___or__(PyObject *,PyObject *);}
static PyObject *slot_QScriptEngine_QObjectWrapOption___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptEngine::QObjectWrapOption a0;
        QScriptEngine::QObjectWrapOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QScriptEngine_QObjectWrapOption, &a0, sipType_QScriptEngine_QObjectWrapOptions, &a1, &a1State))
        {
            QScriptEngine::QObjectWrapOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptEngine::QObjectWrapOptions((a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QScriptEngine_QObjectWrapOptions,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptEngine_QObjectWrapOptions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QScriptEngine_QObjectWrapOption[] = {
    {(void *)slot_QScriptEngine_QObjectWrapOption___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QScriptClass_QueryFlag___or__(PyObject *,PyObject *);}
static PyObject *slot_QScriptClass_QueryFlag___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptClass::QueryFlag a0;
        QScriptClass::QueryFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QScriptClass_QueryFlag, &a0, sipType_QScriptClass_QueryFlags, &a1, &a1State))
        {
            QScriptClass::QueryFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptClass::QueryFlags((a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QScriptClass_QueryFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptClass_QueryFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QScriptClass_QueryFlag[] = {
    {(void *)slot_QScriptClass_QueryFlag___or__, or_slot},
    {0, (sipPySlotType)0}
};

static sipEnumTypeDef enumTypes[] = {
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QScriptValue__SpecialValue, {0}}, sipNameNr_SpecialValue, 21, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QScriptValue__PropertyFlag, {0}}, sipNameNr_PropertyFlag, 21, slots_QScriptValue_PropertyFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QScriptValue__ResolveFlag, {0}}, sipNameNr_ResolveFlag, 21, slots_QScriptValue_ResolveFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QScriptEngineAgent__Extension, {0}}, sipNameNr_Extension, 16, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QScriptSyntaxCheckResult__State, {0}}, sipNameNr_State, 19, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QScriptEngine__QObjectWrapOption, {0}}, sipNameNr_QObjectWrapOption, 12, slots_QScriptEngine_QObjectWrapOption},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QScriptEngine__ValueOwnership, {0}}, sipNameNr_ValueOwnership, 12, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QScriptContextInfo__FunctionType, {0}}, sipNameNr_FunctionType, 10, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QScriptContext__Error, {0}}, sipNameNr_Error, 7, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QScriptContext__ExecutionState, {0}}, sipNameNr_ExecutionState, 7, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QScriptClass__Extension, {0}}, sipNameNr_Extension, 2, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QScriptClass__QueryFlag, {0}}, sipNameNr_QueryFlag, 2, slots_QScriptClass_QueryFlag},
};


/*
 * This defines each type in this module.
 */
static sipTypeDef *typesTable[] = {
    &sipTypeDef_QtScript_QList_0100QScriptContextInfo.mtd_base,
    &sipTypeDef_QtScript_QList_0100QScriptValue.mtd_base,
    &sipTypeDef_QtScript_QScriptClass.super.ctd_base,
    &enumTypes[10].etd_base,
    &enumTypes[11].etd_base,
    &sipTypeDef_QtScript_QScriptClass_QueryFlags.super.ctd_base,
    &sipTypeDef_QtScript_QScriptClassPropertyIterator.super.ctd_base,
    &sipTypeDef_QtScript_QScriptContext.super.ctd_base,
    &enumTypes[8].etd_base,
    &enumTypes[9].etd_base,
    &sipTypeDef_QtScript_QScriptContextInfo.super.ctd_base,
    &enumTypes[7].etd_base,
    &sipTypeDef_QtScript_QScriptEngine.super.ctd_base,
    &enumTypes[5].etd_base,
    &sipTypeDef_QtScript_QScriptEngine_QObjectWrapOptions.super.ctd_base,
    &enumTypes[6].etd_base,
    &sipTypeDef_QtScript_QScriptEngineAgent.super.ctd_base,
    &enumTypes[3].etd_base,
    &sipTypeDef_QtScript_QScriptString.super.ctd_base,
    &sipTypeDef_QtScript_QScriptSyntaxCheckResult.super.ctd_base,
    &enumTypes[4].etd_base,
    &sipTypeDef_QtScript_QScriptValue.super.ctd_base,
    &enumTypes[1].etd_base,
    &sipTypeDef_QtScript_QScriptValue_PropertyFlags.super.ctd_base,
    &enumTypes[2].etd_base,
    &sipTypeDef_QtScript_QScriptValue_ResolveFlags.super.ctd_base,
    &enumTypes[0].etd_base,
    &sipTypeDef_QtScript_QScriptValueIterator.super.ctd_base,
};


/*
 * These define each typedef in this module.
 */
static sipTypedefDef typedefsTable[] = {
    {"QScriptContextInfoList", "QList<QScriptContextInfo>"},
    {"QScriptValueList", "QList<QScriptValue>"},
    {"qsreal", "double"},
};


/*
 * This defines the virtual handlers that this module implements and can be
 * used by other modules.
 */
static sipVirtHandlerFunc virtHandlersTable[] = {
    (sipVirtHandlerFunc)sipVH_QtScript_0,
    (sipVirtHandlerFunc)sipVH_QtScript_1,
    (sipVirtHandlerFunc)sipVH_QtScript_2,
    (sipVirtHandlerFunc)sipVH_QtScript_3,
    (sipVirtHandlerFunc)sipVH_QtScript_4,
    (sipVirtHandlerFunc)sipVH_QtScript_5,
    (sipVirtHandlerFunc)sipVH_QtScript_6,
    (sipVirtHandlerFunc)sipVH_QtScript_7,
    (sipVirtHandlerFunc)sipVH_QtScript_8,
    (sipVirtHandlerFunc)sipVH_QtScript_9,
    (sipVirtHandlerFunc)sipVH_QtScript_10,
    (sipVirtHandlerFunc)sipVH_QtScript_11,
    (sipVirtHandlerFunc)sipVH_QtScript_12,
    (sipVirtHandlerFunc)sipVH_QtScript_13,
    (sipVirtHandlerFunc)sipVH_QtScript_14,
    (sipVirtHandlerFunc)sipVH_QtScript_15,
    (sipVirtHandlerFunc)sipVH_QtScript_16,
    (sipVirtHandlerFunc)sipVH_QtScript_17,
};


/* This defines the modules that this module needs to import. */
static sipImportedModuleDef importsTable[] = {
    {"PyQt4.QtCore", 1, NULL},
    {NULL, -1, NULL}
};


/* This defines the class sub-convertors that this module defines. */
static sipSubClassConvertorDef convertorsTable[] = {
    {sipSubClass_QScriptEngine, {141, 0, 0}, NULL},
    {NULL, {0, 0, 0}, NULL}
};


/* This defines this module. */
sipExportedModuleDef sipModuleAPI_QtScript = {
    0,
    SIP_API_MINOR_NR,
    sipNameNr_PyQt4_QtScript,
    0,
    -1,
    sipStrings_QtScript,
    importsTable,
    NULL,
    28,
    typesTable,
    NULL,
    0,
    NULL,
    3,
    typedefsTable,
    virtHandlersTable,
    NULL,
    convertorsTable,
    {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL},
    NULL,
    NULL,
    slotExtenders,
    initExtenders,
    NULL,
    NULL,
    NULL,
    NULL
};


/* The SIP API and the APIs of any imported modules. */
const sipAPIDef *sipAPI_QtScript;
const sipExportedModuleDef *sipModuleAPI_QtScript_QtCore;

sip_qt_metaobject_func sip_QtScript_qt_metaobject;
sip_qt_metacall_func sip_QtScript_qt_metacall;
sip_qt_metacast_func sip_QtScript_qt_metacast;


/* The Python module initialisation function. */
#if PY_MAJOR_VERSION >= 3
#define SIP_MODULE_ENTRY        PyInit_QtScript
#define SIP_MODULE_TYPE         PyObject *
#define SIP_MODULE_DISCARD(r)   Py_DECREF(r)
#define SIP_MODULE_RETURN(r)    return (r)
#else
#define SIP_MODULE_ENTRY        initQtScript
#define SIP_MODULE_TYPE         void
#define SIP_MODULE_DISCARD(r)
#define SIP_MODULE_RETURN(r)    return
#endif

#if defined(SIP_STATIC_MODULE)
extern "C" SIP_MODULE_TYPE SIP_MODULE_ENTRY()
#else
PyMODINIT_FUNC SIP_MODULE_ENTRY()
#endif
{
    static PyMethodDef sip_methods[] = {
        {SIP_MLNAME_CAST(sipName_qScriptDisconnect), func_qScriptDisconnect, METH_VARARGS, SIP_MLDOC_CAST(doc_qScriptDisconnect)},
        {SIP_MLNAME_CAST(sipName_qScriptConnect), func_qScriptConnect, METH_VARARGS, SIP_MLDOC_CAST(doc_qScriptConnect)},
        {0, 0, 0, 0}
    };

#if PY_MAJOR_VERSION >= 3
    static PyModuleDef sip_module_def = {
        PyModuleDef_HEAD_INIT,
        "PyQt4.QtScript",
        NULL,
        -1,
        sip_methods,
        NULL,
        NULL,
        NULL,
        NULL
    };
#endif

    PyObject *sipModule, *sipModuleDict;
    PyObject *sip_sipmod, *sip_capiobj;

    /* Initialise the module and get it's dictionary. */
#if PY_MAJOR_VERSION >= 3
    sipModule = PyModule_Create(&sip_module_def);
#elif PY_VERSION_HEX >= 0x02050000
    sipModule = Py_InitModule(sipName_PyQt4_QtScript, sip_methods);
#else
    sipModule = Py_InitModule(const_cast<char *>(sipName_PyQt4_QtScript), sip_methods);
#endif

    if (sipModule == NULL)
        SIP_MODULE_RETURN(NULL);

    sipModuleDict = PyModule_GetDict(sipModule);

    /* Get the SIP module's API. */
#if PY_VERSION_HEX >= 0x02050000
    sip_sipmod = PyImport_ImportModule(SIP_MODULE_NAME);
#else
    sip_sipmod = PyImport_ImportModule(const_cast<char *>(SIP_MODULE_NAME));
#endif

    if (sip_sipmod == NULL)
    {
        SIP_MODULE_DISCARD(sipModule);
        SIP_MODULE_RETURN(NULL);
    }

    sip_capiobj = PyDict_GetItemString(PyModule_GetDict(sip_sipmod), "_C_API");
    Py_DECREF(sip_sipmod);

#if defined(SIP_USE_PYCAPSULE)
    if (sip_capiobj == NULL || !PyCapsule_CheckExact(sip_capiobj))
#else
    if (sip_capiobj == NULL || !PyCObject_Check(sip_capiobj))
#endif
    {
        SIP_MODULE_DISCARD(sipModule);
        SIP_MODULE_RETURN(NULL);
    }

#if defined(SIP_USE_PYCAPSULE)
    sipAPI_QtScript = reinterpret_cast<const sipAPIDef *>(PyCapsule_GetPointer(sip_capiobj, SIP_MODULE_NAME "._C_API"));
#else
    sipAPI_QtScript = reinterpret_cast<const sipAPIDef *>(PyCObject_AsVoidPtr(sip_capiobj));
#endif

#if defined(SIP_USE_PYCAPSULE)
    if (sipAPI_QtScript == NULL)
    {
        SIP_MODULE_DISCARD(sipModule);
        SIP_MODULE_RETURN(NULL);
    }
#endif

    /* Export the module and publish it's API. */
    if (sipExportModule(&sipModuleAPI_QtScript,SIP_API_MAJOR_NR,SIP_API_MINOR_NR,0) < 0)
    {
        SIP_MODULE_DISCARD(sipModule);
        SIP_MODULE_RETURN(0);
    }

    sip_QtScript_qt_metaobject = (sip_qt_metaobject_func)sipImportSymbol("qtcore_qt_metaobject");
    sip_QtScript_qt_metacall = (sip_qt_metacall_func)sipImportSymbol("qtcore_qt_metacall");
    sip_QtScript_qt_metacast = (sip_qt_metacast_func)sipImportSymbol("qtcore_qt_metacast");

    if (!sip_QtScript_qt_metacast)
        Py_FatalError("Unable to import qtcore_qt_metacast");

    /* Initialise the module now all its dependencies have been set up. */
    if (sipInitModule(&sipModuleAPI_QtScript,sipModuleDict) < 0)
    {
        SIP_MODULE_DISCARD(sipModule);
        SIP_MODULE_RETURN(0);
    }

    /* Get the APIs of the modules that this one is dependent on. */
    sipModuleAPI_QtScript_QtCore = sipModuleAPI_QtScript.em_imports[0].im_module;

    SIP_MODULE_RETURN(sipModule);
}

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1118 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 1122 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


extern "C" {static void assign_QList_0100QScriptValue(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QScriptValue(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QScriptValue> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QScriptValue> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QScriptValue(SIP_SSIZE_T);}
static void *array_QList_0100QScriptValue(SIP_SSIZE_T sipNrElem)
{
    return new QList<QScriptValue>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QScriptValue(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QScriptValue(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QScriptValue>(reinterpret_cast<const QList<QScriptValue> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QScriptValue(void *, int);}
static void release_QList_0100QScriptValue(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<QScriptValue> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QList_0100QScriptValue(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QScriptValue(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QScriptValue> **sipCppPtr = reinterpret_cast<QList<QScriptValue> **>(sipCppPtrV);

#line 59 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qlist.sip"
    SIP_SSIZE_T len;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
            return 0;

        for (SIP_SSIZE_T i = 0; i < len; ++i)
        {
            PyObject *itm = PySequence_ITEM(sipPy, i);
            bool ok = (itm && sipCanConvertToType(itm, sipType_QScriptValue, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

    QList<QScriptValue> *ql = new QList<QScriptValue>;
    len = PySequence_Size(sipPy);
 
    for (SIP_SSIZE_T i = 0; i < len; ++i)
    {
        PyObject *itm = PySequence_ITEM(sipPy, i);
        int state;
        QScriptValue *t = reinterpret_cast<QScriptValue *>(sipConvertToType(itm, sipType_QScriptValue, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));

        Py_DECREF(itm);
 
        if (*sipIsErr)
        {
            sipReleaseType(t, sipType_QScriptValue, state);

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QScriptValue, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 1212 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QScriptValue(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QScriptValue(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QScriptValue> *sipCpp = reinterpret_cast<QList<QScriptValue> *>(sipCppV);

#line 32 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qlist.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QScriptValue *t = new QScriptValue(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromNewType(t, sipType_QScriptValue, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            delete t;

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 1246 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtScript_QList_0100QScriptValue = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1060,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QScriptValue,
    array_QList_0100QScriptValue,
    copy_QList_0100QScriptValue,
    release_QList_0100QScriptValue,
    convertTo_QList_0100QScriptValue,
    convertFrom_QList_0100QScriptValue
};

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1277 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptcontextinfo.sip"
#include <qscriptcontextinfo.h>
#line 1281 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


extern "C" {static void assign_QList_0100QScriptContextInfo(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QScriptContextInfo(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QScriptContextInfo> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QScriptContextInfo> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QScriptContextInfo(SIP_SSIZE_T);}
static void *array_QList_0100QScriptContextInfo(SIP_SSIZE_T sipNrElem)
{
    return new QList<QScriptContextInfo>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QScriptContextInfo(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QScriptContextInfo(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QScriptContextInfo>(reinterpret_cast<const QList<QScriptContextInfo> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QScriptContextInfo(void *, int);}
static void release_QList_0100QScriptContextInfo(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<QScriptContextInfo> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QList_0100QScriptContextInfo(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QScriptContextInfo(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QScriptContextInfo> **sipCppPtr = reinterpret_cast<QList<QScriptContextInfo> **>(sipCppPtrV);

#line 59 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qlist.sip"
    SIP_SSIZE_T len;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
            return 0;

        for (SIP_SSIZE_T i = 0; i < len; ++i)
        {
            PyObject *itm = PySequence_ITEM(sipPy, i);
            bool ok = (itm && sipCanConvertToType(itm, sipType_QScriptContextInfo, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

    QList<QScriptContextInfo> *ql = new QList<QScriptContextInfo>;
    len = PySequence_Size(sipPy);
 
    for (SIP_SSIZE_T i = 0; i < len; ++i)
    {
        PyObject *itm = PySequence_ITEM(sipPy, i);
        int state;
        QScriptContextInfo *t = reinterpret_cast<QScriptContextInfo *>(sipConvertToType(itm, sipType_QScriptContextInfo, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));

        Py_DECREF(itm);
 
        if (*sipIsErr)
        {
            sipReleaseType(t, sipType_QScriptContextInfo, state);

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QScriptContextInfo, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 1371 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QScriptContextInfo(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QScriptContextInfo(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QScriptContextInfo> *sipCpp = reinterpret_cast<QList<QScriptContextInfo> *>(sipCppV);

#line 32 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qlist.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QScriptContextInfo *t = new QScriptContextInfo(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromNewType(t, sipType_QScriptContextInfo, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            delete t;

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 1405 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtScript_QList_0100QScriptContextInfo = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_583,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QScriptContextInfo,
    array_QList_0100QScriptContextInfo,
    copy_QList_0100QScriptContextInfo,
    release_QList_0100QScriptContextInfo,
    convertTo_QList_0100QScriptContextInfo,
    convertFrom_QList_0100QScriptContextInfo
};

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalueiterator.sip"
#include <qscriptvalueiterator.h>
#line 1436 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 1440 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptstring.sip"
#include <qscriptstring.h>
#line 1443 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 1446 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1449 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


PyDoc_STRVAR(doc_QScriptValueIterator_hasNext, "hasNext(self) -> bool");

extern "C" {static PyObject *meth_QScriptValueIterator_hasNext(PyObject *, PyObject *);}
static PyObject *meth_QScriptValueIterator_hasNext(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValueIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValueIterator, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasNext();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValueIterator, sipName_hasNext, doc_QScriptValueIterator_hasNext);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValueIterator_next, "next(self)");

extern "C" {static PyObject *meth_QScriptValueIterator_next(PyObject *, PyObject *);}
static PyObject *meth_QScriptValueIterator_next(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptValueIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValueIterator, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->next();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValueIterator, sipName_next, doc_QScriptValueIterator_next);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValueIterator_hasPrevious, "hasPrevious(self) -> bool");

extern "C" {static PyObject *meth_QScriptValueIterator_hasPrevious(PyObject *, PyObject *);}
static PyObject *meth_QScriptValueIterator_hasPrevious(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValueIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValueIterator, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasPrevious();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValueIterator, sipName_hasPrevious, doc_QScriptValueIterator_hasPrevious);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValueIterator_previous, "previous(self)");

extern "C" {static PyObject *meth_QScriptValueIterator_previous(PyObject *, PyObject *);}
static PyObject *meth_QScriptValueIterator_previous(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptValueIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValueIterator, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->previous();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValueIterator, sipName_previous, doc_QScriptValueIterator_previous);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValueIterator_name, "name(self) -> object");

extern "C" {static PyObject *meth_QScriptValueIterator_name(PyObject *, PyObject *);}
static PyObject *meth_QScriptValueIterator_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValueIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValueIterator, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->name());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValueIterator, sipName_name, doc_QScriptValueIterator_name);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValueIterator_value, "value(self) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptValueIterator_value(PyObject *, PyObject *);}
static PyObject *meth_QScriptValueIterator_value(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValueIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValueIterator, &sipCpp))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->value());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValueIterator, sipName_value, doc_QScriptValueIterator_value);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValueIterator_setValue, "setValue(self, QScriptValue)");

extern "C" {static PyObject *meth_QScriptValueIterator_setValue(PyObject *, PyObject *);}
static PyObject *meth_QScriptValueIterator_setValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue* a0;
        QScriptValueIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScriptValueIterator, &sipCpp, sipType_QScriptValue, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setValue(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValueIterator, sipName_setValue, doc_QScriptValueIterator_setValue);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValueIterator_flags, "flags(self) -> QScriptValue.PropertyFlags");

extern "C" {static PyObject *meth_QScriptValueIterator_flags(PyObject *, PyObject *);}
static PyObject *meth_QScriptValueIterator_flags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValueIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValueIterator, &sipCpp))
        {
            QScriptValue::PropertyFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue::PropertyFlags(sipCpp->flags());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_PropertyFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValueIterator, sipName_flags, doc_QScriptValueIterator_flags);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValueIterator_remove, "remove(self)");

extern "C" {static PyObject *meth_QScriptValueIterator_remove(PyObject *, PyObject *);}
static PyObject *meth_QScriptValueIterator_remove(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptValueIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValueIterator, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->remove();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValueIterator, sipName_remove, doc_QScriptValueIterator_remove);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValueIterator_toFront, "toFront(self)");

extern "C" {static PyObject *meth_QScriptValueIterator_toFront(PyObject *, PyObject *);}
static PyObject *meth_QScriptValueIterator_toFront(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptValueIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValueIterator, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->toFront();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValueIterator, sipName_toFront, doc_QScriptValueIterator_toFront);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValueIterator_toBack, "toBack(self)");

extern "C" {static PyObject *meth_QScriptValueIterator_toBack(PyObject *, PyObject *);}
static PyObject *meth_QScriptValueIterator_toBack(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptValueIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValueIterator, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->toBack();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValueIterator, sipName_toBack, doc_QScriptValueIterator_toBack);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValueIterator_scriptName, "scriptName(self) -> QScriptString");

extern "C" {static PyObject *meth_QScriptValueIterator_scriptName(PyObject *, PyObject *);}
static PyObject *meth_QScriptValueIterator_scriptName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValueIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValueIterator, &sipCpp))
        {
            QScriptString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptString(sipCpp->scriptName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValueIterator, sipName_scriptName, doc_QScriptValueIterator_scriptName);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScriptValueIterator(void *, int);}
static void release_QScriptValueIterator(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QScriptValueIterator *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QScriptValueIterator(sipSimpleWrapper *);}
static void dealloc_QScriptValueIterator(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QScriptValueIterator(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QScriptValueIterator(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QScriptValueIterator(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QScriptValueIterator *sipCpp = 0;

    {
        const QScriptValue* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QScriptValue, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValueIterator(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QScriptValueIterator[] = {
    {SIP_MLNAME_CAST(sipName_flags), meth_QScriptValueIterator_flags, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValueIterator_flags)},
    {SIP_MLNAME_CAST(sipName_hasNext), meth_QScriptValueIterator_hasNext, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValueIterator_hasNext)},
    {SIP_MLNAME_CAST(sipName_hasPrevious), meth_QScriptValueIterator_hasPrevious, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValueIterator_hasPrevious)},
    {SIP_MLNAME_CAST(sipName_name), meth_QScriptValueIterator_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValueIterator_name)},
    {SIP_MLNAME_CAST(sipName_next), meth_QScriptValueIterator_next, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValueIterator_next)},
    {SIP_MLNAME_CAST(sipName_previous), meth_QScriptValueIterator_previous, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValueIterator_previous)},
    {SIP_MLNAME_CAST(sipName_remove), meth_QScriptValueIterator_remove, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValueIterator_remove)},
    {SIP_MLNAME_CAST(sipName_scriptName), meth_QScriptValueIterator_scriptName, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValueIterator_scriptName)},
    {SIP_MLNAME_CAST(sipName_setValue), meth_QScriptValueIterator_setValue, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValueIterator_setValue)},
    {SIP_MLNAME_CAST(sipName_toBack), meth_QScriptValueIterator_toBack, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValueIterator_toBack)},
    {SIP_MLNAME_CAST(sipName_toFront), meth_QScriptValueIterator_toFront, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValueIterator_toFront)},
    {SIP_MLNAME_CAST(sipName_value), meth_QScriptValueIterator_value, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValueIterator_value)}
};

PyDoc_STRVAR(doc_QScriptValueIterator, "\1QScriptValueIterator(QScriptValue)");


pyqt4ClassTypeDef sipTypeDef_QtScript_QScriptValueIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QScriptValueIterator,
        {0}
    },
    {
        sipNameNr_QScriptValueIterator,
        {0, 0, 1},
        12, methods_QScriptValueIterator,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QScriptValueIterator,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QScriptValueIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScriptValueIterator,
    0,
    0,
    0,
    release_QScriptValueIterator,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 1925 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 1929 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


extern "C" {static int slot_QScriptValue_PropertyFlags___bool__(PyObject *);}
static int slot_QScriptValue_PropertyFlags___bool__(PyObject *sipSelf)
{
    QScriptValue::PropertyFlags *sipCpp = reinterpret_cast<QScriptValue::PropertyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_PropertyFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 389 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QScriptValue::PropertyFlags::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 1951 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QScriptValue_PropertyFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_PropertyFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QScriptValue::PropertyFlags *sipCpp = reinterpret_cast<QScriptValue::PropertyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_PropertyFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QScriptValue::PropertyFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptValue_PropertyFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 380 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QScriptValue::PropertyFlags::Int() != a0->operator QScriptValue::PropertyFlags::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 1985 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(const_cast<QScriptValue::PropertyFlags *>(a0),sipType_QScriptValue_PropertyFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,ne_slot,sipType_QScriptValue_PropertyFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QScriptValue_PropertyFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_PropertyFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QScriptValue::PropertyFlags *sipCpp = reinterpret_cast<QScriptValue::PropertyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_PropertyFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QScriptValue::PropertyFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptValue_PropertyFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 371 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QScriptValue::PropertyFlags::Int() == a0->operator QScriptValue::PropertyFlags::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 2025 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(const_cast<QScriptValue::PropertyFlags *>(a0),sipType_QScriptValue_PropertyFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,eq_slot,sipType_QScriptValue_PropertyFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QScriptValue_PropertyFlags___invert__(PyObject *);}
static PyObject *slot_QScriptValue_PropertyFlags___invert__(PyObject *sipSelf)
{
    QScriptValue::PropertyFlags *sipCpp = reinterpret_cast<QScriptValue::PropertyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_PropertyFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QScriptValue::PropertyFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue::PropertyFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_PropertyFlags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QScriptValue_PropertyFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_PropertyFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptValue::PropertyFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QScriptValue_PropertyFlags, &a0, &a0State, &a1))
        {
            QScriptValue::PropertyFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue::PropertyFlags((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptValue_PropertyFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_PropertyFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QScriptValue_PropertyFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_PropertyFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptValue::PropertyFlags* a0;
        int a0State = 0;
        QScriptValue::PropertyFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QScriptValue_PropertyFlags, &a0, &a0State, sipType_QScriptValue_PropertyFlags, &a1, &a1State))
        {
            QScriptValue::PropertyFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue::PropertyFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptValue_PropertyFlags,a0State);
            sipReleaseType(a1,sipType_QScriptValue_PropertyFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_PropertyFlags,NULL);
        }
    }

    {
        QScriptValue::PropertyFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QScriptValue_PropertyFlags, &a0, &a0State, &a1))
        {
            QScriptValue::PropertyFlags*sipRes = 0;

#line 365 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QScriptValue::PropertyFlags(*a0 ^ a1);
#line 2134 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(a0,sipType_QScriptValue_PropertyFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_PropertyFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QScriptValue_PropertyFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_PropertyFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptValue::PropertyFlags* a0;
        int a0State = 0;
        QScriptValue::PropertyFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QScriptValue_PropertyFlags, &a0, &a0State, sipType_QScriptValue_PropertyFlags, &a1, &a1State))
        {
            QScriptValue::PropertyFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue::PropertyFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptValue_PropertyFlags,a0State);
            sipReleaseType(a1,sipType_QScriptValue_PropertyFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_PropertyFlags,NULL);
        }
    }

    {
        QScriptValue::PropertyFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QScriptValue_PropertyFlags, &a0, &a0State, &a1))
        {
            QScriptValue::PropertyFlags*sipRes = 0;

#line 360 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QScriptValue::PropertyFlags(*a0 | a1);
#line 2186 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(a0,sipType_QScriptValue_PropertyFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_PropertyFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QScriptValue_PropertyFlags___int__(PyObject *);}
static PyObject *slot_QScriptValue_PropertyFlags___int__(PyObject *sipSelf)
{
    QScriptValue::PropertyFlags *sipCpp = reinterpret_cast<QScriptValue::PropertyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_PropertyFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QScriptValue_PropertyFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_PropertyFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QScriptValue_PropertyFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QScriptValue::PropertyFlags *sipCpp = reinterpret_cast<QScriptValue::PropertyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_PropertyFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QScriptValue::PropertyFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptValue_PropertyFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QScriptValue::PropertyFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptValue_PropertyFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QScriptValue_PropertyFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_PropertyFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QScriptValue_PropertyFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QScriptValue::PropertyFlags *sipCpp = reinterpret_cast<QScriptValue::PropertyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_PropertyFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QScriptValue::PropertyFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptValue_PropertyFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QScriptValue::PropertyFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptValue_PropertyFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QScriptValue_PropertyFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_PropertyFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QScriptValue_PropertyFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QScriptValue::PropertyFlags *sipCpp = reinterpret_cast<QScriptValue::PropertyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_PropertyFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QScriptValue::PropertyFlags::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScriptValue_PropertyFlags(void *, int);}
static void release_QScriptValue_PropertyFlags(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QScriptValue::PropertyFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QScriptValue_PropertyFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_QScriptValue_PropertyFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QScriptValue::PropertyFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QScriptValue::PropertyFlags *>(sipSrc);
}


extern "C" {static void *array_QScriptValue_PropertyFlags(SIP_SSIZE_T);}
static void *array_QScriptValue_PropertyFlags(SIP_SSIZE_T sipNrElem)
{
    return new QScriptValue::PropertyFlags[sipNrElem];
}


extern "C" {static void *copy_QScriptValue_PropertyFlags(const void *, SIP_SSIZE_T);}
static void *copy_QScriptValue_PropertyFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QScriptValue::PropertyFlags(reinterpret_cast<const QScriptValue::PropertyFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QScriptValue_PropertyFlags(sipSimpleWrapper *);}
static void dealloc_QScriptValue_PropertyFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QScriptValue_PropertyFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QScriptValue_PropertyFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QScriptValue_PropertyFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QScriptValue::PropertyFlags *sipCpp = 0;

    {
        const QScriptValue::PropertyFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QScriptValue_PropertyFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue::PropertyFlags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QScriptValue::PropertyFlags *>(a0),sipType_QScriptValue_PropertyFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue::PropertyFlags(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue::PropertyFlags();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QScriptValue_PropertyFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_QScriptValue_PropertyFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QScriptValue::PropertyFlags **sipCppPtr = reinterpret_cast<QScriptValue::PropertyFlags **>(sipCppPtrV);

#line 398 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QScriptValue::PropertyFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QScriptValue_PropertyFlag)) ||
            sipCanConvertToType(sipPy, sipType_QScriptValue_PropertyFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QScriptValue_PropertyFlag)))
{
    *sipCppPtr = new QScriptValue::PropertyFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QScriptValue::PropertyFlags *>(sipConvertToType(sipPy, sipType_QScriptValue_PropertyFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 2470 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QScriptValue_PropertyFlags[] = {
    {(void *)slot_QScriptValue_PropertyFlags___bool__, bool_slot},
    {(void *)slot_QScriptValue_PropertyFlags___ne__, ne_slot},
    {(void *)slot_QScriptValue_PropertyFlags___eq__, eq_slot},
    {(void *)slot_QScriptValue_PropertyFlags___invert__, invert_slot},
    {(void *)slot_QScriptValue_PropertyFlags___and__, and_slot},
    {(void *)slot_QScriptValue_PropertyFlags___xor__, xor_slot},
    {(void *)slot_QScriptValue_PropertyFlags___or__, or_slot},
    {(void *)slot_QScriptValue_PropertyFlags___int__, int_slot},
    {(void *)slot_QScriptValue_PropertyFlags___ixor__, ixor_slot},
    {(void *)slot_QScriptValue_PropertyFlags___ior__, ior_slot},
    {(void *)slot_QScriptValue_PropertyFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QScriptValue_PropertyFlags, "\1QScriptValue.PropertyFlags(QScriptValue.PropertyFlags)\n"
    "QScriptValue.PropertyFlags(int)\n"
    "QScriptValue.PropertyFlags()");


pyqt4ClassTypeDef sipTypeDef_QtScript_QScriptValue_PropertyFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QScriptValue__PropertyFlags,
        {0}
    },
    {
        sipNameNr_PropertyFlags,
        {21, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QScriptValue_PropertyFlags,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QScriptValue_PropertyFlags,
    init_type_QScriptValue_PropertyFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScriptValue_PropertyFlags,
    assign_QScriptValue_PropertyFlags,
    array_QScriptValue_PropertyFlags,
    copy_QScriptValue_PropertyFlags,
    release_QScriptValue_PropertyFlags,
    0,
    convertTo_QScriptValue_PropertyFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 2551 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 2555 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


extern "C" {static int slot_QScriptValue_ResolveFlags___bool__(PyObject *);}
static int slot_QScriptValue_ResolveFlags___bool__(PyObject *sipSelf)
{
    QScriptValue::ResolveFlags *sipCpp = reinterpret_cast<QScriptValue::ResolveFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_ResolveFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 389 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QScriptValue::ResolveFlags::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 2577 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QScriptValue_ResolveFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_ResolveFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QScriptValue::ResolveFlags *sipCpp = reinterpret_cast<QScriptValue::ResolveFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_ResolveFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QScriptValue::ResolveFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptValue_ResolveFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 380 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QScriptValue::ResolveFlags::Int() != a0->operator QScriptValue::ResolveFlags::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 2611 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(const_cast<QScriptValue::ResolveFlags *>(a0),sipType_QScriptValue_ResolveFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,ne_slot,sipType_QScriptValue_ResolveFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QScriptValue_ResolveFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_ResolveFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QScriptValue::ResolveFlags *sipCpp = reinterpret_cast<QScriptValue::ResolveFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_ResolveFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QScriptValue::ResolveFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptValue_ResolveFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 371 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QScriptValue::ResolveFlags::Int() == a0->operator QScriptValue::ResolveFlags::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 2651 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(const_cast<QScriptValue::ResolveFlags *>(a0),sipType_QScriptValue_ResolveFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,eq_slot,sipType_QScriptValue_ResolveFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QScriptValue_ResolveFlags___invert__(PyObject *);}
static PyObject *slot_QScriptValue_ResolveFlags___invert__(PyObject *sipSelf)
{
    QScriptValue::ResolveFlags *sipCpp = reinterpret_cast<QScriptValue::ResolveFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_ResolveFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QScriptValue::ResolveFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue::ResolveFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_ResolveFlags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QScriptValue_ResolveFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_ResolveFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptValue::ResolveFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QScriptValue_ResolveFlags, &a0, &a0State, &a1))
        {
            QScriptValue::ResolveFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue::ResolveFlags((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptValue_ResolveFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_ResolveFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QScriptValue_ResolveFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_ResolveFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptValue::ResolveFlags* a0;
        int a0State = 0;
        QScriptValue::ResolveFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QScriptValue_ResolveFlags, &a0, &a0State, sipType_QScriptValue_ResolveFlags, &a1, &a1State))
        {
            QScriptValue::ResolveFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue::ResolveFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptValue_ResolveFlags,a0State);
            sipReleaseType(a1,sipType_QScriptValue_ResolveFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_ResolveFlags,NULL);
        }
    }

    {
        QScriptValue::ResolveFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QScriptValue_ResolveFlags, &a0, &a0State, &a1))
        {
            QScriptValue::ResolveFlags*sipRes = 0;

#line 365 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QScriptValue::ResolveFlags(*a0 ^ a1);
#line 2760 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(a0,sipType_QScriptValue_ResolveFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_ResolveFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QScriptValue_ResolveFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_ResolveFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptValue::ResolveFlags* a0;
        int a0State = 0;
        QScriptValue::ResolveFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QScriptValue_ResolveFlags, &a0, &a0State, sipType_QScriptValue_ResolveFlags, &a1, &a1State))
        {
            QScriptValue::ResolveFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue::ResolveFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptValue_ResolveFlags,a0State);
            sipReleaseType(a1,sipType_QScriptValue_ResolveFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_ResolveFlags,NULL);
        }
    }

    {
        QScriptValue::ResolveFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QScriptValue_ResolveFlags, &a0, &a0State, &a1))
        {
            QScriptValue::ResolveFlags*sipRes = 0;

#line 360 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QScriptValue::ResolveFlags(*a0 | a1);
#line 2812 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(a0,sipType_QScriptValue_ResolveFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_ResolveFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QScriptValue_ResolveFlags___int__(PyObject *);}
static PyObject *slot_QScriptValue_ResolveFlags___int__(PyObject *sipSelf)
{
    QScriptValue::ResolveFlags *sipCpp = reinterpret_cast<QScriptValue::ResolveFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_ResolveFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QScriptValue_ResolveFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_ResolveFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QScriptValue_ResolveFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QScriptValue::ResolveFlags *sipCpp = reinterpret_cast<QScriptValue::ResolveFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_ResolveFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QScriptValue::ResolveFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptValue_ResolveFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QScriptValue::ResolveFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptValue_ResolveFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QScriptValue_ResolveFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_ResolveFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QScriptValue_ResolveFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QScriptValue::ResolveFlags *sipCpp = reinterpret_cast<QScriptValue::ResolveFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_ResolveFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QScriptValue::ResolveFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptValue_ResolveFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QScriptValue::ResolveFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptValue_ResolveFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QScriptValue_ResolveFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_QScriptValue_ResolveFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QScriptValue_ResolveFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QScriptValue::ResolveFlags *sipCpp = reinterpret_cast<QScriptValue::ResolveFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptValue_ResolveFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QScriptValue::ResolveFlags::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScriptValue_ResolveFlags(void *, int);}
static void release_QScriptValue_ResolveFlags(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QScriptValue::ResolveFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QScriptValue_ResolveFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_QScriptValue_ResolveFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QScriptValue::ResolveFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QScriptValue::ResolveFlags *>(sipSrc);
}


extern "C" {static void *array_QScriptValue_ResolveFlags(SIP_SSIZE_T);}
static void *array_QScriptValue_ResolveFlags(SIP_SSIZE_T sipNrElem)
{
    return new QScriptValue::ResolveFlags[sipNrElem];
}


extern "C" {static void *copy_QScriptValue_ResolveFlags(const void *, SIP_SSIZE_T);}
static void *copy_QScriptValue_ResolveFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QScriptValue::ResolveFlags(reinterpret_cast<const QScriptValue::ResolveFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QScriptValue_ResolveFlags(sipSimpleWrapper *);}
static void dealloc_QScriptValue_ResolveFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QScriptValue_ResolveFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QScriptValue_ResolveFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QScriptValue_ResolveFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QScriptValue::ResolveFlags *sipCpp = 0;

    {
        const QScriptValue::ResolveFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QScriptValue_ResolveFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue::ResolveFlags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QScriptValue::ResolveFlags *>(a0),sipType_QScriptValue_ResolveFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue::ResolveFlags(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue::ResolveFlags();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QScriptValue_ResolveFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_QScriptValue_ResolveFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QScriptValue::ResolveFlags **sipCppPtr = reinterpret_cast<QScriptValue::ResolveFlags **>(sipCppPtrV);

#line 398 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QScriptValue::ResolveFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QScriptValue_ResolveFlag)) ||
            sipCanConvertToType(sipPy, sipType_QScriptValue_ResolveFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QScriptValue_ResolveFlag)))
{
    *sipCppPtr = new QScriptValue::ResolveFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QScriptValue::ResolveFlags *>(sipConvertToType(sipPy, sipType_QScriptValue_ResolveFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 3096 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QScriptValue_ResolveFlags[] = {
    {(void *)slot_QScriptValue_ResolveFlags___bool__, bool_slot},
    {(void *)slot_QScriptValue_ResolveFlags___ne__, ne_slot},
    {(void *)slot_QScriptValue_ResolveFlags___eq__, eq_slot},
    {(void *)slot_QScriptValue_ResolveFlags___invert__, invert_slot},
    {(void *)slot_QScriptValue_ResolveFlags___and__, and_slot},
    {(void *)slot_QScriptValue_ResolveFlags___xor__, xor_slot},
    {(void *)slot_QScriptValue_ResolveFlags___or__, or_slot},
    {(void *)slot_QScriptValue_ResolveFlags___int__, int_slot},
    {(void *)slot_QScriptValue_ResolveFlags___ixor__, ixor_slot},
    {(void *)slot_QScriptValue_ResolveFlags___ior__, ior_slot},
    {(void *)slot_QScriptValue_ResolveFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QScriptValue_ResolveFlags, "\1QScriptValue.ResolveFlags(QScriptValue.ResolveFlags)\n"
    "QScriptValue.ResolveFlags(int)\n"
    "QScriptValue.ResolveFlags()");


pyqt4ClassTypeDef sipTypeDef_QtScript_QScriptValue_ResolveFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QScriptValue__ResolveFlags,
        {0}
    },
    {
        sipNameNr_ResolveFlags,
        {21, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QScriptValue_ResolveFlags,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QScriptValue_ResolveFlags,
    init_type_QScriptValue_ResolveFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScriptValue_ResolveFlags,
    assign_QScriptValue_ResolveFlags,
    array_QScriptValue_ResolveFlags,
    copy_QScriptValue_ResolveFlags,
    release_QScriptValue_ResolveFlags,
    0,
    convertTo_QScriptValue_ResolveFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 3177 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
#include <qscriptengine.h>
#line 3181 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3184 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptclass.sip"
#include <qscriptclass.h>
#line 3187 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3190 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 3193 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 3196 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptstring.sip"
#include <qscriptstring.h>
#line 3199 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3202 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 401 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 3205 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3208 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3211 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 269 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3214 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


PyDoc_STRVAR(doc_QScriptValue_engine, "engine(self) -> QScriptEngine");

extern "C" {static PyObject *meth_QScriptValue_engine(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_engine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            QScriptEngine*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->engine();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QScriptEngine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_engine, doc_QScriptValue_engine);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isValid, "isValid(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isValid(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isValid, doc_QScriptValue_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isBool, "isBool(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isBool(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isBool(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBool();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isBool, doc_QScriptValue_isBool);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isBoolean, "isBoolean(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isBoolean(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isBoolean(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBoolean();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isBoolean, doc_QScriptValue_isBoolean);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isNumber, "isNumber(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isNumber(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNumber();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isNumber, doc_QScriptValue_isNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isFunction, "isFunction(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isFunction(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isFunction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isFunction();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isFunction, doc_QScriptValue_isFunction);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isNull, "isNull(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isNull(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isNull, doc_QScriptValue_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isString, "isString(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isString(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isString();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isString, doc_QScriptValue_isString);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isUndefined, "isUndefined(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isUndefined(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isUndefined(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUndefined();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isUndefined, doc_QScriptValue_isUndefined);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isVariant, "isVariant(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isVariant(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isVariant(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isVariant();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isVariant, doc_QScriptValue_isVariant);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isQObject, "isQObject(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isQObject(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isQObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isQObject();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isQObject, doc_QScriptValue_isQObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isQMetaObject, "isQMetaObject(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isQMetaObject(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isQMetaObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isQMetaObject();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isQMetaObject, doc_QScriptValue_isQMetaObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isObject, "isObject(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isObject(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isObject();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isObject, doc_QScriptValue_isObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isDate, "isDate(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isDate(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isDate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDate();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isDate, doc_QScriptValue_isDate);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isRegExp, "isRegExp(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isRegExp(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isRegExp(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isRegExp();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isRegExp, doc_QScriptValue_isRegExp);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isArray, "isArray(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isArray(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isArray(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isArray();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isArray, doc_QScriptValue_isArray);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_isError, "isError(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_isError(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_isError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isError();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_isError, doc_QScriptValue_isError);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_toString, "toString(self) -> object");

extern "C" {static PyObject *meth_QScriptValue_toString(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_toString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->toString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_toString, doc_QScriptValue_toString);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_toNumber, "toNumber(self) -> float");

extern "C" {static PyObject *meth_QScriptValue_toNumber(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_toNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            qsreal sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toNumber();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_toNumber, doc_QScriptValue_toNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_toBool, "toBool(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_toBool(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_toBool(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toBool();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_toBool, doc_QScriptValue_toBool);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_toBoolean, "toBoolean(self) -> bool");

extern "C" {static PyObject *meth_QScriptValue_toBoolean(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_toBoolean(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toBoolean();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_toBoolean, doc_QScriptValue_toBoolean);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_toInteger, "toInteger(self) -> float");

extern "C" {static PyObject *meth_QScriptValue_toInteger(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_toInteger(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            qsreal sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toInteger();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_toInteger, doc_QScriptValue_toInteger);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_toInt32, "toInt32(self) -> int");

extern "C" {static PyObject *meth_QScriptValue_toInt32(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_toInt32(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            qint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toInt32();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_toInt32, doc_QScriptValue_toInt32);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_toUInt32, "toUInt32(self) -> int");

extern "C" {static PyObject *meth_QScriptValue_toUInt32(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_toUInt32(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            quint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toUInt32();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_toUInt32, doc_QScriptValue_toUInt32);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_toUInt16, "toUInt16(self) -> int");

extern "C" {static PyObject *meth_QScriptValue_toUInt16(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_toUInt16(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            quint16 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toUInt16();
            Py_END_ALLOW_THREADS

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_toUInt16, doc_QScriptValue_toUInt16);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_toVariant, "toVariant(self) -> object");

extern "C" {static PyObject *meth_QScriptValue_toVariant(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_toVariant(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->toVariant());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_toVariant, doc_QScriptValue_toVariant);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_toQObject, "toQObject(self) -> QObject");

extern "C" {static PyObject *meth_QScriptValue_toQObject(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_toQObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            QObject*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toQObject();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_toQObject, doc_QScriptValue_toQObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_toQMetaObject, "toQMetaObject(self) -> QMetaObject");

extern "C" {static PyObject *meth_QScriptValue_toQMetaObject(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_toQMetaObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            const QMetaObject*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toQMetaObject();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast<QMetaObject *>(sipRes),sipType_QMetaObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_toQMetaObject, doc_QScriptValue_toQMetaObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_toObject, "toObject(self) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptValue_toObject(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_toObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->toObject());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_toObject, doc_QScriptValue_toObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_toDateTime, "toDateTime(self) -> QDateTime");

extern "C" {static PyObject *meth_QScriptValue_toDateTime(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_toDateTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            QDateTime*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->toDateTime());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_toDateTime, doc_QScriptValue_toDateTime);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_toRegExp, "toRegExp(self) -> QRegExp");

extern "C" {static PyObject *meth_QScriptValue_toRegExp(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_toRegExp(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            QRegExp*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QRegExp(sipCpp->toRegExp());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QRegExp,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_toRegExp, doc_QScriptValue_toRegExp);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_instanceOf, "instanceOf(self, QScriptValue) -> bool");

extern "C" {static PyObject *meth_QScriptValue_instanceOf(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_instanceOf(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue* a0;
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QScriptValue, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->instanceOf(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_instanceOf, doc_QScriptValue_instanceOf);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_lessThan, "lessThan(self, QScriptValue) -> bool");

extern "C" {static PyObject *meth_QScriptValue_lessThan(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_lessThan(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue* a0;
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QScriptValue, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->lessThan(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_lessThan, doc_QScriptValue_lessThan);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_equals, "equals(self, QScriptValue) -> bool");

extern "C" {static PyObject *meth_QScriptValue_equals(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_equals(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue* a0;
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QScriptValue, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->equals(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_equals, doc_QScriptValue_equals);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_strictlyEquals, "strictlyEquals(self, QScriptValue) -> bool");

extern "C" {static PyObject *meth_QScriptValue_strictlyEquals(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_strictlyEquals(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue* a0;
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QScriptValue, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->strictlyEquals(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_strictlyEquals, doc_QScriptValue_strictlyEquals);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_prototype, "prototype(self) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptValue_prototype(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_prototype(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->prototype());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_prototype, doc_QScriptValue_prototype);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_setPrototype, "setPrototype(self, QScriptValue)");

extern "C" {static PyObject *meth_QScriptValue_setPrototype(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_setPrototype(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue* a0;
        QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QScriptValue, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPrototype(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_setPrototype, doc_QScriptValue_setPrototype);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_property, "property(self, object, mode: QScriptValue.ResolveFlags = QScriptValue.ResolvePrototype) -> QScriptValue\n"
    "property(self, QScriptString, mode: QScriptValue.ResolveFlags = QScriptValue.ResolvePrototype) -> QScriptValue\n"
    "property(self, int, mode: QScriptValue.ResolveFlags = QScriptValue.ResolvePrototype) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptValue_property(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_property(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QScriptValue::ResolveFlags& a1def = QScriptValue::ResolvePrototype;
        const QScriptValue::ResolveFlags* a1 = &a1def;
        int a1State = 0;
        const QScriptValue *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J1", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QString,&a0, &a0State, sipType_QScriptValue_ResolveFlags, &a1, &a1State))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->property(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QScriptValue::ResolveFlags *>(a1),sipType_QScriptValue_ResolveFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    {
        const QScriptString* a0;
        const QScriptValue::ResolveFlags& a1def = QScriptValue::ResolvePrototype;
        const QScriptValue::ResolveFlags* a1 = &a1def;
        int a1State = 0;
        const QScriptValue *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|J1", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QScriptString, &a0, sipType_QScriptValue_ResolveFlags, &a1, &a1State))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->property(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QScriptValue::ResolveFlags *>(a1),sipType_QScriptValue_ResolveFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    {
        quint32 a0;
        const QScriptValue::ResolveFlags& a1def = QScriptValue::ResolvePrototype;
        const QScriptValue::ResolveFlags* a1 = &a1def;
        int a1State = 0;
        const QScriptValue *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bu|J1", &sipSelf, sipType_QScriptValue, &sipCpp, &a0, sipType_QScriptValue_ResolveFlags, &a1, &a1State))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->property(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QScriptValue::ResolveFlags *>(a1),sipType_QScriptValue_ResolveFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_property, doc_QScriptValue_property);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_setProperty, "setProperty(self, object, QScriptValue, flags: QScriptValue.PropertyFlags = QScriptValue.KeepExistingFlags)\n"
    "setProperty(self, QScriptString, QScriptValue, flags: QScriptValue.PropertyFlags = QScriptValue.KeepExistingFlags)\n"
    "setProperty(self, int, QScriptValue, flags: QScriptValue.PropertyFlags = QScriptValue.KeepExistingFlags)");

extern "C" {static PyObject *meth_QScriptValue_setProperty(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_setProperty(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QScriptValue* a1;
        const QScriptValue::PropertyFlags& a2def = QScriptValue::KeepExistingFlags;
        const QScriptValue::PropertyFlags* a2 = &a2def;
        int a2State = 0;
        QScriptValue *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1J9|J1", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QString,&a0, &a0State, sipType_QScriptValue, &a1, sipType_QScriptValue_PropertyFlags, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProperty(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QScriptValue::PropertyFlags *>(a2),sipType_QScriptValue_PropertyFlags,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QScriptString* a0;
        const QScriptValue* a1;
        const QScriptValue::PropertyFlags& a2def = QScriptValue::KeepExistingFlags;
        const QScriptValue::PropertyFlags* a2 = &a2def;
        int a2State = 0;
        QScriptValue *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9J9|J1", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QScriptString, &a0, sipType_QScriptValue, &a1, sipType_QScriptValue_PropertyFlags, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProperty(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QScriptValue::PropertyFlags *>(a2),sipType_QScriptValue_PropertyFlags,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        quint32 a0;
        const QScriptValue* a1;
        const QScriptValue::PropertyFlags& a2def = QScriptValue::KeepExistingFlags;
        const QScriptValue::PropertyFlags* a2 = &a2def;
        int a2State = 0;
        QScriptValue *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BuJ9|J1", &sipSelf, sipType_QScriptValue, &sipCpp, &a0, sipType_QScriptValue, &a1, sipType_QScriptValue_PropertyFlags, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProperty(a0,*a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QScriptValue::PropertyFlags *>(a2),sipType_QScriptValue_PropertyFlags,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_setProperty, doc_QScriptValue_setProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_propertyFlags, "propertyFlags(self, object, mode: QScriptValue.ResolveFlags = QScriptValue.ResolvePrototype) -> QScriptValue.PropertyFlags\n"
    "propertyFlags(self, QScriptString, mode: QScriptValue.ResolveFlags = QScriptValue.ResolvePrototype) -> QScriptValue.PropertyFlags");

extern "C" {static PyObject *meth_QScriptValue_propertyFlags(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_propertyFlags(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QScriptValue::ResolveFlags& a1def = QScriptValue::ResolvePrototype;
        const QScriptValue::ResolveFlags* a1 = &a1def;
        int a1State = 0;
        const QScriptValue *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J1", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QString,&a0, &a0State, sipType_QScriptValue_ResolveFlags, &a1, &a1State))
        {
            QScriptValue::PropertyFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue::PropertyFlags(sipCpp->propertyFlags(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QScriptValue::ResolveFlags *>(a1),sipType_QScriptValue_ResolveFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_PropertyFlags,NULL);
        }
    }

    {
        const QScriptString* a0;
        const QScriptValue::ResolveFlags& a1def = QScriptValue::ResolvePrototype;
        const QScriptValue::ResolveFlags* a1 = &a1def;
        int a1State = 0;
        const QScriptValue *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|J1", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QScriptString, &a0, sipType_QScriptValue_ResolveFlags, &a1, &a1State))
        {
            QScriptValue::PropertyFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue::PropertyFlags(sipCpp->propertyFlags(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QScriptValue::ResolveFlags *>(a1),sipType_QScriptValue_ResolveFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_PropertyFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_propertyFlags, doc_QScriptValue_propertyFlags);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_call, "call(self, thisObject: QScriptValue = QScriptValue(), args: object = QScriptValueList()) -> QScriptValue\n"
    "call(self, QScriptValue, QScriptValue) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptValue_call(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_call(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue& a0def = QScriptValue();
        const QScriptValue* a0 = &a0def;
        const QScriptValueList& a1def = QScriptValueList();
        const QScriptValueList* a1 = &a1def;
        int a1State = 0;
        QScriptValue *sipCpp;

        static const char *sipKwdList[] = {
            sipName_thisObject,
            sipName_args,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J9J1", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QScriptValue, &a0, sipType_QList_0100QScriptValue,&a1, &a1State))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->call(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QScriptValueList *>(a1),sipType_QList_0100QScriptValue,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    {
        const QScriptValue* a0;
        const QScriptValue* a1;
        QScriptValue *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QScriptValue, &a0, sipType_QScriptValue, &a1))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->call(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_call, doc_QScriptValue_call);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_construct, "construct(self, args: object = QScriptValueList()) -> QScriptValue\n"
    "construct(self, QScriptValue) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptValue_construct(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_construct(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValueList& a0def = QScriptValueList();
        const QScriptValueList* a0 = &a0def;
        int a0State = 0;
        QScriptValue *sipCpp;

        static const char *sipKwdList[] = {
            sipName_args,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QList_0100QScriptValue,&a0, &a0State))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->construct(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QScriptValueList *>(a0),sipType_QList_0100QScriptValue,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    {
        const QScriptValue* a0;
        QScriptValue *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QScriptValue, &a0))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->construct(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_construct, doc_QScriptValue_construct);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_data, "data(self) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptValue_data(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->data());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_data, doc_QScriptValue_data);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_setData, "setData(self, QScriptValue)");

extern "C" {static PyObject *meth_QScriptValue_setData(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_setData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue* a0;
        QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScriptValue, &sipCpp, sipType_QScriptValue, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setData(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_setData, doc_QScriptValue_setData);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_scriptClass, "scriptClass(self) -> QScriptClass");

extern "C" {static PyObject *meth_QScriptValue_scriptClass(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_scriptClass(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptValue, &sipCpp))
        {
            QScriptClass*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->scriptClass();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QScriptClass,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_scriptClass, doc_QScriptValue_scriptClass);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptValue_setScriptClass, "setScriptClass(self, QScriptClass)");

extern "C" {static PyObject *meth_QScriptValue_setScriptClass(PyObject *, PyObject *);}
static PyObject *meth_QScriptValue_setScriptClass(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptClass* a0;
        PyObject *a0Keep;
        QScriptValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B@J8", &sipSelf, sipType_QScriptValue, &sipCpp, &a0Keep, sipType_QScriptClass, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setScriptClass(a0);
            Py_END_ALLOW_THREADS

            sipKeepReference(sipSelf, -1, a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptValue, sipName_setScriptClass, doc_QScriptValue_setScriptClass);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScriptValue(void *, int);}
static void release_QScriptValue(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QScriptValue *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QScriptValue(void *, SIP_SSIZE_T, const void *);}
static void assign_QScriptValue(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QScriptValue *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QScriptValue *>(sipSrc);
}


extern "C" {static void *array_QScriptValue(SIP_SSIZE_T);}
static void *array_QScriptValue(SIP_SSIZE_T sipNrElem)
{
    return new QScriptValue[sipNrElem];
}


extern "C" {static void *copy_QScriptValue(const void *, SIP_SSIZE_T);}
static void *copy_QScriptValue(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QScriptValue(reinterpret_cast<const QScriptValue *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QScriptValue(sipSimpleWrapper *);}
static void dealloc_QScriptValue(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QScriptValue(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QScriptValue(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QScriptValue(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QScriptValue *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QScriptValue* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QScriptValue, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        QScriptValue::SpecialValue a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "XE", sipType_QScriptValue_SpecialValue, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        QScriptEngine* a0;
        QScriptValue::SpecialValue a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8XE", sipType_QScriptEngine, &a0, sipType_QScriptValue_SpecialValue, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue(a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        bool a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "Xb", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        QScriptEngine* a0;
        bool a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8Xb", sipType_QScriptEngine, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue(a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "Xi", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        QScriptEngine* a0;
        int a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8Xi", sipType_QScriptEngine, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue(a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        qsreal a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "Xd", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        QScriptEngine* a0;
        qsreal a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8Xd", sipType_QScriptEngine, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue(a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        QScriptEngine* a0;
        const QString* a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1", sipType_QScriptEngine, &a0, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptValue(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QScriptValue[] = {
    {SIP_MLNAME_CAST(sipName_call), (PyCFunction)meth_QScriptValue_call, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptValue_call)},
    {SIP_MLNAME_CAST(sipName_construct), (PyCFunction)meth_QScriptValue_construct, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptValue_construct)},
    {SIP_MLNAME_CAST(sipName_data), meth_QScriptValue_data, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_data)},
    {SIP_MLNAME_CAST(sipName_engine), meth_QScriptValue_engine, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_engine)},
    {SIP_MLNAME_CAST(sipName_equals), meth_QScriptValue_equals, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_equals)},
    {SIP_MLNAME_CAST(sipName_instanceOf), meth_QScriptValue_instanceOf, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_instanceOf)},
    {SIP_MLNAME_CAST(sipName_isArray), meth_QScriptValue_isArray, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isArray)},
    {SIP_MLNAME_CAST(sipName_isBool), meth_QScriptValue_isBool, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isBool)},
    {SIP_MLNAME_CAST(sipName_isBoolean), meth_QScriptValue_isBoolean, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isBoolean)},
    {SIP_MLNAME_CAST(sipName_isDate), meth_QScriptValue_isDate, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isDate)},
    {SIP_MLNAME_CAST(sipName_isError), meth_QScriptValue_isError, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isError)},
    {SIP_MLNAME_CAST(sipName_isFunction), meth_QScriptValue_isFunction, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isFunction)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QScriptValue_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isNull)},
    {SIP_MLNAME_CAST(sipName_isNumber), meth_QScriptValue_isNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isNumber)},
    {SIP_MLNAME_CAST(sipName_isObject), meth_QScriptValue_isObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isObject)},
    {SIP_MLNAME_CAST(sipName_isQMetaObject), meth_QScriptValue_isQMetaObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isQMetaObject)},
    {SIP_MLNAME_CAST(sipName_isQObject), meth_QScriptValue_isQObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isQObject)},
    {SIP_MLNAME_CAST(sipName_isRegExp), meth_QScriptValue_isRegExp, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isRegExp)},
    {SIP_MLNAME_CAST(sipName_isString), meth_QScriptValue_isString, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isString)},
    {SIP_MLNAME_CAST(sipName_isUndefined), meth_QScriptValue_isUndefined, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isUndefined)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QScriptValue_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isValid)},
    {SIP_MLNAME_CAST(sipName_isVariant), meth_QScriptValue_isVariant, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_isVariant)},
    {SIP_MLNAME_CAST(sipName_lessThan), meth_QScriptValue_lessThan, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_lessThan)},
    {SIP_MLNAME_CAST(sipName_property), (PyCFunction)meth_QScriptValue_property, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptValue_property)},
    {SIP_MLNAME_CAST(sipName_propertyFlags), (PyCFunction)meth_QScriptValue_propertyFlags, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptValue_propertyFlags)},
    {SIP_MLNAME_CAST(sipName_prototype), meth_QScriptValue_prototype, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_prototype)},
    {SIP_MLNAME_CAST(sipName_scriptClass), meth_QScriptValue_scriptClass, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_scriptClass)},
    {SIP_MLNAME_CAST(sipName_setData), meth_QScriptValue_setData, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_setData)},
    {SIP_MLNAME_CAST(sipName_setProperty), (PyCFunction)meth_QScriptValue_setProperty, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptValue_setProperty)},
    {SIP_MLNAME_CAST(sipName_setPrototype), meth_QScriptValue_setPrototype, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_setPrototype)},
    {SIP_MLNAME_CAST(sipName_setScriptClass), meth_QScriptValue_setScriptClass, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_setScriptClass)},
    {SIP_MLNAME_CAST(sipName_strictlyEquals), meth_QScriptValue_strictlyEquals, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_strictlyEquals)},
    {SIP_MLNAME_CAST(sipName_toBool), meth_QScriptValue_toBool, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_toBool)},
    {SIP_MLNAME_CAST(sipName_toBoolean), meth_QScriptValue_toBoolean, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_toBoolean)},
    {SIP_MLNAME_CAST(sipName_toDateTime), meth_QScriptValue_toDateTime, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_toDateTime)},
    {SIP_MLNAME_CAST(sipName_toInt32), meth_QScriptValue_toInt32, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_toInt32)},
    {SIP_MLNAME_CAST(sipName_toInteger), meth_QScriptValue_toInteger, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_toInteger)},
    {SIP_MLNAME_CAST(sipName_toNumber), meth_QScriptValue_toNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_toNumber)},
    {SIP_MLNAME_CAST(sipName_toObject), meth_QScriptValue_toObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_toObject)},
    {SIP_MLNAME_CAST(sipName_toQMetaObject), meth_QScriptValue_toQMetaObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_toQMetaObject)},
    {SIP_MLNAME_CAST(sipName_toQObject), meth_QScriptValue_toQObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_toQObject)},
    {SIP_MLNAME_CAST(sipName_toRegExp), meth_QScriptValue_toRegExp, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_toRegExp)},
    {SIP_MLNAME_CAST(sipName_toString), meth_QScriptValue_toString, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_toString)},
    {SIP_MLNAME_CAST(sipName_toUInt16), meth_QScriptValue_toUInt16, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_toUInt16)},
    {SIP_MLNAME_CAST(sipName_toUInt32), meth_QScriptValue_toUInt32, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_toUInt32)},
    {SIP_MLNAME_CAST(sipName_toVariant), meth_QScriptValue_toVariant, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptValue_toVariant)}
};

static sipEnumMemberDef enummembers_QScriptValue[] = {
    {sipName_KeepExistingFlags, static_cast<int>(QScriptValue::KeepExistingFlags), 22},
    {sipName_NullValue, static_cast<int>(QScriptValue::NullValue), 26},
    {sipName_PropertyGetter, static_cast<int>(QScriptValue::PropertyGetter), 22},
    {sipName_PropertySetter, static_cast<int>(QScriptValue::PropertySetter), 22},
    {sipName_QObjectMember, static_cast<int>(QScriptValue::QObjectMember), 22},
    {sipName_ReadOnly, static_cast<int>(QScriptValue::ReadOnly), 22},
    {sipName_ResolveFull, static_cast<int>(QScriptValue::ResolveFull), 24},
    {sipName_ResolveLocal, static_cast<int>(QScriptValue::ResolveLocal), 24},
    {sipName_ResolvePrototype, static_cast<int>(QScriptValue::ResolvePrototype), 24},
    {sipName_ResolveScope, static_cast<int>(QScriptValue::ResolveScope), 24},
    {sipName_SkipInEnumeration, static_cast<int>(QScriptValue::SkipInEnumeration), 22},
    {sipName_UndefinedValue, static_cast<int>(QScriptValue::UndefinedValue), 26},
    {sipName_Undeletable, static_cast<int>(QScriptValue::Undeletable), 22},
    {sipName_UserRange, static_cast<int>(QScriptValue::UserRange), 22},
};

PyDoc_STRVAR(doc_QScriptValue, "\1QScriptValue()\n"
    "QScriptValue(QScriptValue)\n"
    "QScriptValue(QScriptValue.SpecialValue)\n"
    "QScriptValue(QScriptEngine, QScriptValue.SpecialValue)\n"
    "QScriptValue(bool)\n"
    "QScriptValue(QScriptEngine, bool)\n"
    "QScriptValue(int)\n"
    "QScriptValue(QScriptEngine, int)\n"
    "QScriptValue(float)\n"
    "QScriptValue(QScriptEngine, float)\n"
    "QScriptValue(object)\n"
    "QScriptValue(QScriptEngine, object)");


pyqt4ClassTypeDef sipTypeDef_QtScript_QScriptValue = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QScriptValue,
        {0}
    },
    {
        sipNameNr_QScriptValue,
        {0, 0, 1},
        46, methods_QScriptValue,
        14, enummembers_QScriptValue,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QScriptValue,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QScriptValue,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScriptValue,
    assign_QScriptValue,
    array_QScriptValue,
    copy_QScriptValue,
    release_QScriptValue,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptstring.sip"
#include <qscriptstring.h>
#line 5189 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5193 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptstring.sip"
#include <QHash>
#line 5196 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


PyDoc_STRVAR(doc_QScriptString_isValid, "isValid(self) -> bool");

extern "C" {static PyObject *meth_QScriptString_isValid(PyObject *, PyObject *);}
static PyObject *meth_QScriptString_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptString, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptString, sipName_isValid, doc_QScriptString_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptString_toString, "toString(self) -> object");

extern "C" {static PyObject *meth_QScriptString_toString(PyObject *, PyObject *);}
static PyObject *meth_QScriptString_toString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptString, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->toString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptString, sipName_toString, doc_QScriptString_toString);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptString_toArrayIndex, "toArrayIndex(self) -> Tuple[int, bool]");

extern "C" {static PyObject *meth_QScriptString_toArrayIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptString_toArrayIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        const QScriptString *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QScriptString, &sipCpp))
        {
            quint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toArrayIndex(&a0);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(ub)",sipRes,a0);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptString, sipName_toArrayIndex, doc_QScriptString_toArrayIndex);

    return NULL;
}


extern "C" {static PyObject *slot_QScriptString___ne__(PyObject *,PyObject *);}
static PyObject *slot_QScriptString___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QScriptString *sipCpp = reinterpret_cast<QScriptString *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptString));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QScriptString* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QScriptString, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QScriptString::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,ne_slot,sipType_QScriptString,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QScriptString___eq__(PyObject *,PyObject *);}
static PyObject *slot_QScriptString___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QScriptString *sipCpp = reinterpret_cast<QScriptString *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptString));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QScriptString* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QScriptString, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QScriptString::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,eq_slot,sipType_QScriptString,sipSelf,sipArg);
}


extern "C" {static long slot_QScriptString___hash__(PyObject *);}
static long slot_QScriptString___hash__(PyObject *sipSelf)
{
    QScriptString *sipCpp = reinterpret_cast<QScriptString *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptString));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 42 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptstring.sip"
        sipRes = qHash(*sipCpp);
#line 5373 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScriptString(void *, int);}
static void release_QScriptString(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QScriptString *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QScriptString(void *, SIP_SSIZE_T, const void *);}
static void assign_QScriptString(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QScriptString *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QScriptString *>(sipSrc);
}


extern "C" {static void *array_QScriptString(SIP_SSIZE_T);}
static void *array_QScriptString(SIP_SSIZE_T sipNrElem)
{
    return new QScriptString[sipNrElem];
}


extern "C" {static void *copy_QScriptString(const void *, SIP_SSIZE_T);}
static void *copy_QScriptString(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QScriptString(reinterpret_cast<const QScriptString *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QScriptString(sipSimpleWrapper *);}
static void dealloc_QScriptString(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QScriptString(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QScriptString(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QScriptString(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QScriptString *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptString();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QScriptString* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QScriptString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptString(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QScriptString[] = {
    {(void *)slot_QScriptString___ne__, ne_slot},
    {(void *)slot_QScriptString___eq__, eq_slot},
    {(void *)slot_QScriptString___hash__, hash_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QScriptString[] = {
    {SIP_MLNAME_CAST(sipName_isValid), meth_QScriptString_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptString_isValid)},
    {SIP_MLNAME_CAST(sipName_toArrayIndex), (PyCFunction)meth_QScriptString_toArrayIndex, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptString_toArrayIndex)},
    {SIP_MLNAME_CAST(sipName_toString), meth_QScriptString_toString, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptString_toString)}
};

PyDoc_STRVAR(doc_QScriptString, "\1QScriptString()\n"
    "QScriptString(QScriptString)");


pyqt4ClassTypeDef sipTypeDef_QtScript_QScriptString = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QScriptString,
        {0}
    },
    {
        sipNameNr_QScriptString,
        {0, 0, 1},
        3, methods_QScriptString,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QScriptString,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QScriptString,
    init_type_QScriptString,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScriptString,
    assign_QScriptString,
    array_QScriptString,
    copy_QScriptString,
    release_QScriptString,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengineagent.sip"
#include <qscriptengineagent.h>
#line 5534 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
#include <qscriptengine.h>
#line 5538 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 269 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5541 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 5544 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5547 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


class sipQScriptEngineAgent : public QScriptEngineAgent
{
public:
    sipQScriptEngineAgent(QScriptEngine*);
    virtual ~sipQScriptEngineAgent();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QVariant extension(QScriptEngineAgent::Extension,const QVariant&);
    bool supportsExtension(QScriptEngineAgent::Extension) const;
    void exceptionCatch(qint64,const QScriptValue&);
    void exceptionThrow(qint64,const QScriptValue&,bool);
    void positionChange(qint64,int,int);
    void functionExit(qint64,const QScriptValue&);
    void functionEntry(qint64);
    void contextPop();
    void contextPush();
    void scriptUnload(qint64);
    void scriptLoad(qint64,const QString&,const QString&,int);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQScriptEngineAgent(const sipQScriptEngineAgent &);
    sipQScriptEngineAgent &operator = (const sipQScriptEngineAgent &);

    char sipPyMethods[11];
};

sipQScriptEngineAgent::sipQScriptEngineAgent(QScriptEngine*a0): QScriptEngineAgent(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQScriptEngineAgent::~sipQScriptEngineAgent()
{
    sipCommonDtor(sipPySelf);
}

QVariant sipQScriptEngineAgent::extension(QScriptEngineAgent::Extension a0,const QVariant& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_extension);

    if (!sipMeth)
        return QScriptEngineAgent::extension(a0,a1);

    extern QVariant sipVH_QtScript_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QScriptEngineAgent::Extension,const QVariant&);

    return sipVH_QtScript_0(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQScriptEngineAgent::supportsExtension(QScriptEngineAgent::Extension a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_supportsExtension);

    if (!sipMeth)
        return QScriptEngineAgent::supportsExtension(a0);

    extern bool sipVH_QtScript_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QScriptEngineAgent::Extension);

    return sipVH_QtScript_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQScriptEngineAgent::exceptionCatch(qint64 a0,const QScriptValue& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_exceptionCatch);

    if (!sipMeth)
    {
        QScriptEngineAgent::exceptionCatch(a0,a1);
        return;
    }

    extern void sipVH_QtScript_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG,const QScriptValue&);

    sipVH_QtScript_2(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipQScriptEngineAgent::exceptionThrow(qint64 a0,const QScriptValue& a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_exceptionThrow);

    if (!sipMeth)
    {
        QScriptEngineAgent::exceptionThrow(a0,a1,a2);
        return;
    }

    extern void sipVH_QtScript_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG,const QScriptValue&,bool);

    sipVH_QtScript_3(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipQScriptEngineAgent::positionChange(qint64 a0,int a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_positionChange);

    if (!sipMeth)
    {
        QScriptEngineAgent::positionChange(a0,a1,a2);
        return;
    }

    extern void sipVH_QtScript_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG,int,int);

    sipVH_QtScript_4(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipQScriptEngineAgent::functionExit(qint64 a0,const QScriptValue& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_functionExit);

    if (!sipMeth)
    {
        QScriptEngineAgent::functionExit(a0,a1);
        return;
    }

    extern void sipVH_QtScript_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG,const QScriptValue&);

    sipVH_QtScript_2(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipQScriptEngineAgent::functionEntry(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_functionEntry);

    if (!sipMeth)
    {
        QScriptEngineAgent::functionEntry(a0);
        return;
    }

    extern void sipVH_QtScript_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    sipVH_QtScript_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQScriptEngineAgent::contextPop()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_contextPop);

    if (!sipMeth)
    {
        QScriptEngineAgent::contextPop();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtScript_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQScriptEngineAgent::contextPush()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_contextPush);

    if (!sipMeth)
    {
        QScriptEngineAgent::contextPush();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtScript_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQScriptEngineAgent::scriptUnload(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_scriptUnload);

    if (!sipMeth)
    {
        QScriptEngineAgent::scriptUnload(a0);
        return;
    }

    extern void sipVH_QtScript_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    sipVH_QtScript_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQScriptEngineAgent::scriptLoad(qint64 a0,const QString& a1,const QString& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_scriptLoad);

    if (!sipMeth)
    {
        QScriptEngineAgent::scriptLoad(a0,a1,a2,a3);
        return;
    }

    extern void sipVH_QtScript_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG,const QString&,const QString&,int);

    sipVH_QtScript_6(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}


PyDoc_STRVAR(doc_QScriptEngineAgent_scriptLoad, "scriptLoad(self, int, object, object, int)");

extern "C" {static PyObject *meth_QScriptEngineAgent_scriptLoad(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngineAgent_scriptLoad(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        int a3;
        QScriptEngineAgent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BnJ1J1i", &sipSelf, sipType_QScriptEngineAgent, &sipCpp, &a0, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QScriptEngineAgent::scriptLoad(a0,*a1,*a2,a3) : sipCpp->scriptLoad(a0,*a1,*a2,a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngineAgent, sipName_scriptLoad, doc_QScriptEngineAgent_scriptLoad);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngineAgent_scriptUnload, "scriptUnload(self, int)");

extern "C" {static PyObject *meth_QScriptEngineAgent_scriptUnload(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngineAgent_scriptUnload(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        QScriptEngineAgent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QScriptEngineAgent, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QScriptEngineAgent::scriptUnload(a0) : sipCpp->scriptUnload(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngineAgent, sipName_scriptUnload, doc_QScriptEngineAgent_scriptUnload);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngineAgent_contextPush, "contextPush(self)");

extern "C" {static PyObject *meth_QScriptEngineAgent_contextPush(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngineAgent_contextPush(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QScriptEngineAgent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngineAgent, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QScriptEngineAgent::contextPush() : sipCpp->contextPush());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngineAgent, sipName_contextPush, doc_QScriptEngineAgent_contextPush);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngineAgent_contextPop, "contextPop(self)");

extern "C" {static PyObject *meth_QScriptEngineAgent_contextPop(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngineAgent_contextPop(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QScriptEngineAgent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngineAgent, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QScriptEngineAgent::contextPop() : sipCpp->contextPop());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngineAgent, sipName_contextPop, doc_QScriptEngineAgent_contextPop);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngineAgent_functionEntry, "functionEntry(self, int)");

extern "C" {static PyObject *meth_QScriptEngineAgent_functionEntry(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngineAgent_functionEntry(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        QScriptEngineAgent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QScriptEngineAgent, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QScriptEngineAgent::functionEntry(a0) : sipCpp->functionEntry(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngineAgent, sipName_functionEntry, doc_QScriptEngineAgent_functionEntry);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngineAgent_functionExit, "functionExit(self, int, QScriptValue)");

extern "C" {static PyObject *meth_QScriptEngineAgent_functionExit(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngineAgent_functionExit(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        const QScriptValue* a1;
        QScriptEngineAgent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BnJ9", &sipSelf, sipType_QScriptEngineAgent, &sipCpp, &a0, sipType_QScriptValue, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QScriptEngineAgent::functionExit(a0,*a1) : sipCpp->functionExit(a0,*a1));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngineAgent, sipName_functionExit, doc_QScriptEngineAgent_functionExit);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngineAgent_positionChange, "positionChange(self, int, int, int)");

extern "C" {static PyObject *meth_QScriptEngineAgent_positionChange(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngineAgent_positionChange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        int a1;
        int a2;
        QScriptEngineAgent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bnii", &sipSelf, sipType_QScriptEngineAgent, &sipCpp, &a0, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QScriptEngineAgent::positionChange(a0,a1,a2) : sipCpp->positionChange(a0,a1,a2));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngineAgent, sipName_positionChange, doc_QScriptEngineAgent_positionChange);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngineAgent_exceptionThrow, "exceptionThrow(self, int, QScriptValue, bool)");

extern "C" {static PyObject *meth_QScriptEngineAgent_exceptionThrow(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngineAgent_exceptionThrow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        const QScriptValue* a1;
        bool a2;
        QScriptEngineAgent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BnJ9b", &sipSelf, sipType_QScriptEngineAgent, &sipCpp, &a0, sipType_QScriptValue, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QScriptEngineAgent::exceptionThrow(a0,*a1,a2) : sipCpp->exceptionThrow(a0,*a1,a2));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngineAgent, sipName_exceptionThrow, doc_QScriptEngineAgent_exceptionThrow);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngineAgent_exceptionCatch, "exceptionCatch(self, int, QScriptValue)");

extern "C" {static PyObject *meth_QScriptEngineAgent_exceptionCatch(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngineAgent_exceptionCatch(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        const QScriptValue* a1;
        QScriptEngineAgent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BnJ9", &sipSelf, sipType_QScriptEngineAgent, &sipCpp, &a0, sipType_QScriptValue, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QScriptEngineAgent::exceptionCatch(a0,*a1) : sipCpp->exceptionCatch(a0,*a1));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngineAgent, sipName_exceptionCatch, doc_QScriptEngineAgent_exceptionCatch);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngineAgent_supportsExtension, "supportsExtension(self, QScriptEngineAgent.Extension) -> bool");

extern "C" {static PyObject *meth_QScriptEngineAgent_supportsExtension(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngineAgent_supportsExtension(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QScriptEngineAgent::Extension a0;
        const QScriptEngineAgent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QScriptEngineAgent, &sipCpp, sipType_QScriptEngineAgent_Extension, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QScriptEngineAgent::supportsExtension(a0) : sipCpp->supportsExtension(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngineAgent, sipName_supportsExtension, doc_QScriptEngineAgent_supportsExtension);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngineAgent_extension, "extension(self, QScriptEngineAgent.Extension, argument: object = None) -> object");

extern "C" {static PyObject *meth_QScriptEngineAgent_extension(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngineAgent_extension(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QScriptEngineAgent::Extension a0;
        const QVariant& a1def = QVariant();
        const QVariant* a1 = &a1def;
        int a1State = 0;
        QScriptEngineAgent *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_argument,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BE|J1", &sipSelf, sipType_QScriptEngineAgent, &sipCpp, sipType_QScriptEngineAgent_Extension, &a0, sipType_QVariant,&a1, &a1State))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->QScriptEngineAgent::extension(a0,*a1) : sipCpp->extension(a0,*a1)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngineAgent, sipName_extension, doc_QScriptEngineAgent_extension);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngineAgent_engine, "engine(self) -> QScriptEngine");

extern "C" {static PyObject *meth_QScriptEngineAgent_engine(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngineAgent_engine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptEngineAgent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngineAgent, &sipCpp))
        {
            QScriptEngine*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->engine();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QScriptEngine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngineAgent, sipName_engine, doc_QScriptEngineAgent_engine);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScriptEngineAgent(void *, int);}
static void release_QScriptEngineAgent(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQScriptEngineAgent *>(sipCppV);
    else
        delete reinterpret_cast<QScriptEngineAgent *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QScriptEngineAgent(sipSimpleWrapper *);}
static void dealloc_QScriptEngineAgent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQScriptEngineAgent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QScriptEngineAgent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QScriptEngineAgent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QScriptEngineAgent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQScriptEngineAgent *sipCpp = 0;

    {
        QScriptEngine* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QScriptEngine, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQScriptEngineAgent(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QScriptEngineAgent[] = {
    {SIP_MLNAME_CAST(sipName_contextPop), meth_QScriptEngineAgent_contextPop, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngineAgent_contextPop)},
    {SIP_MLNAME_CAST(sipName_contextPush), meth_QScriptEngineAgent_contextPush, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngineAgent_contextPush)},
    {SIP_MLNAME_CAST(sipName_engine), meth_QScriptEngineAgent_engine, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngineAgent_engine)},
    {SIP_MLNAME_CAST(sipName_exceptionCatch), meth_QScriptEngineAgent_exceptionCatch, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngineAgent_exceptionCatch)},
    {SIP_MLNAME_CAST(sipName_exceptionThrow), meth_QScriptEngineAgent_exceptionThrow, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngineAgent_exceptionThrow)},
    {SIP_MLNAME_CAST(sipName_extension), (PyCFunction)meth_QScriptEngineAgent_extension, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptEngineAgent_extension)},
    {SIP_MLNAME_CAST(sipName_functionEntry), meth_QScriptEngineAgent_functionEntry, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngineAgent_functionEntry)},
    {SIP_MLNAME_CAST(sipName_functionExit), meth_QScriptEngineAgent_functionExit, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngineAgent_functionExit)},
    {SIP_MLNAME_CAST(sipName_positionChange), meth_QScriptEngineAgent_positionChange, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngineAgent_positionChange)},
    {SIP_MLNAME_CAST(sipName_scriptLoad), meth_QScriptEngineAgent_scriptLoad, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngineAgent_scriptLoad)},
    {SIP_MLNAME_CAST(sipName_scriptUnload), meth_QScriptEngineAgent_scriptUnload, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngineAgent_scriptUnload)},
    {SIP_MLNAME_CAST(sipName_supportsExtension), meth_QScriptEngineAgent_supportsExtension, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngineAgent_supportsExtension)}
};

static sipEnumMemberDef enummembers_QScriptEngineAgent[] = {
    {sipName_DebuggerInvocationRequest, static_cast<int>(QScriptEngineAgent::DebuggerInvocationRequest), 17},
};

PyDoc_STRVAR(doc_QScriptEngineAgent, "\1QScriptEngineAgent(QScriptEngine)");


pyqt4ClassTypeDef sipTypeDef_QtScript_QScriptEngineAgent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QScriptEngineAgent,
        {0}
    },
    {
        sipNameNr_QScriptEngineAgent,
        {0, 0, 1},
        12, methods_QScriptEngineAgent,
        1, enummembers_QScriptEngineAgent,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QScriptEngineAgent,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_QScriptEngineAgent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScriptEngineAgent,
    0,
    0,
    0,
    release_QScriptEngineAgent,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 276 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
#include <qscriptengine.h>
#line 6309 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6313 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


PyDoc_STRVAR(doc_QScriptSyntaxCheckResult_state, "state(self) -> QScriptSyntaxCheckResult.State");

extern "C" {static PyObject *meth_QScriptSyntaxCheckResult_state(PyObject *, PyObject *);}
static PyObject *meth_QScriptSyntaxCheckResult_state(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptSyntaxCheckResult *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptSyntaxCheckResult, &sipCpp))
        {
            QScriptSyntaxCheckResult::State sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->state();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QScriptSyntaxCheckResult_State);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptSyntaxCheckResult, sipName_state, doc_QScriptSyntaxCheckResult_state);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptSyntaxCheckResult_errorLineNumber, "errorLineNumber(self) -> int");

extern "C" {static PyObject *meth_QScriptSyntaxCheckResult_errorLineNumber(PyObject *, PyObject *);}
static PyObject *meth_QScriptSyntaxCheckResult_errorLineNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptSyntaxCheckResult *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptSyntaxCheckResult, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->errorLineNumber();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptSyntaxCheckResult, sipName_errorLineNumber, doc_QScriptSyntaxCheckResult_errorLineNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptSyntaxCheckResult_errorColumnNumber, "errorColumnNumber(self) -> int");

extern "C" {static PyObject *meth_QScriptSyntaxCheckResult_errorColumnNumber(PyObject *, PyObject *);}
static PyObject *meth_QScriptSyntaxCheckResult_errorColumnNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptSyntaxCheckResult *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptSyntaxCheckResult, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->errorColumnNumber();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptSyntaxCheckResult, sipName_errorColumnNumber, doc_QScriptSyntaxCheckResult_errorColumnNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptSyntaxCheckResult_errorMessage, "errorMessage(self) -> object");

extern "C" {static PyObject *meth_QScriptSyntaxCheckResult_errorMessage(PyObject *, PyObject *);}
static PyObject *meth_QScriptSyntaxCheckResult_errorMessage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptSyntaxCheckResult *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptSyntaxCheckResult, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->errorMessage());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptSyntaxCheckResult, sipName_errorMessage, doc_QScriptSyntaxCheckResult_errorMessage);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScriptSyntaxCheckResult(void *, int);}
static void release_QScriptSyntaxCheckResult(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QScriptSyntaxCheckResult *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QScriptSyntaxCheckResult(sipSimpleWrapper *);}
static void dealloc_QScriptSyntaxCheckResult(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QScriptSyntaxCheckResult(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QScriptSyntaxCheckResult(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QScriptSyntaxCheckResult(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QScriptSyntaxCheckResult *sipCpp = 0;

    {
        const QScriptSyntaxCheckResult* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QScriptSyntaxCheckResult, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptSyntaxCheckResult(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QScriptSyntaxCheckResult[] = {
    {SIP_MLNAME_CAST(sipName_errorColumnNumber), meth_QScriptSyntaxCheckResult_errorColumnNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptSyntaxCheckResult_errorColumnNumber)},
    {SIP_MLNAME_CAST(sipName_errorLineNumber), meth_QScriptSyntaxCheckResult_errorLineNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptSyntaxCheckResult_errorLineNumber)},
    {SIP_MLNAME_CAST(sipName_errorMessage), meth_QScriptSyntaxCheckResult_errorMessage, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptSyntaxCheckResult_errorMessage)},
    {SIP_MLNAME_CAST(sipName_state), meth_QScriptSyntaxCheckResult_state, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptSyntaxCheckResult_state)}
};

static sipEnumMemberDef enummembers_QScriptSyntaxCheckResult[] = {
    {sipName_Error, static_cast<int>(QScriptSyntaxCheckResult::Error), 20},
    {sipName_Intermediate, static_cast<int>(QScriptSyntaxCheckResult::Intermediate), 20},
    {sipName_Valid, static_cast<int>(QScriptSyntaxCheckResult::Valid), 20},
};

PyDoc_STRVAR(doc_QScriptSyntaxCheckResult, "\1QScriptSyntaxCheckResult(QScriptSyntaxCheckResult)");


pyqt4ClassTypeDef sipTypeDef_QtScript_QScriptSyntaxCheckResult = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QScriptSyntaxCheckResult,
        {0}
    },
    {
        sipNameNr_QScriptSyntaxCheckResult,
        {0, 0, 1},
        4, methods_QScriptSyntaxCheckResult,
        3, enummembers_QScriptSyntaxCheckResult,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QScriptSyntaxCheckResult,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QScriptSyntaxCheckResult,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScriptSyntaxCheckResult,
    0,
    0,
    0,
    release_QScriptSyntaxCheckResult,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
#include <qscriptengine.h>
#line 6552 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
#include <qscriptengine.h>
#line 6556 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


extern "C" {static int slot_QScriptEngine_QObjectWrapOptions___bool__(PyObject *);}
static int slot_QScriptEngine_QObjectWrapOptions___bool__(PyObject *sipSelf)
{
    QScriptEngine::QObjectWrapOptions *sipCpp = reinterpret_cast<QScriptEngine::QObjectWrapOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptEngine_QObjectWrapOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 389 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QScriptEngine::QObjectWrapOptions::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 6578 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QScriptEngine_QObjectWrapOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_QScriptEngine_QObjectWrapOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QScriptEngine::QObjectWrapOptions *sipCpp = reinterpret_cast<QScriptEngine::QObjectWrapOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptEngine_QObjectWrapOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QScriptEngine::QObjectWrapOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptEngine_QObjectWrapOptions, &a0, &a0State))
        {
            bool sipRes = 0;

#line 380 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QScriptEngine::QObjectWrapOptions::Int() != a0->operator QScriptEngine::QObjectWrapOptions::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 6612 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(const_cast<QScriptEngine::QObjectWrapOptions *>(a0),sipType_QScriptEngine_QObjectWrapOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,ne_slot,sipType_QScriptEngine_QObjectWrapOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QScriptEngine_QObjectWrapOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_QScriptEngine_QObjectWrapOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QScriptEngine::QObjectWrapOptions *sipCpp = reinterpret_cast<QScriptEngine::QObjectWrapOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptEngine_QObjectWrapOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QScriptEngine::QObjectWrapOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptEngine_QObjectWrapOptions, &a0, &a0State))
        {
            bool sipRes = 0;

#line 371 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QScriptEngine::QObjectWrapOptions::Int() == a0->operator QScriptEngine::QObjectWrapOptions::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 6652 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(const_cast<QScriptEngine::QObjectWrapOptions *>(a0),sipType_QScriptEngine_QObjectWrapOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,eq_slot,sipType_QScriptEngine_QObjectWrapOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QScriptEngine_QObjectWrapOptions___invert__(PyObject *);}
static PyObject *slot_QScriptEngine_QObjectWrapOptions___invert__(PyObject *sipSelf)
{
    QScriptEngine::QObjectWrapOptions *sipCpp = reinterpret_cast<QScriptEngine::QObjectWrapOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptEngine_QObjectWrapOptions));

    if (!sipCpp)
        return 0;


    {
        {
            QScriptEngine::QObjectWrapOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptEngine::QObjectWrapOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptEngine_QObjectWrapOptions,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QScriptEngine_QObjectWrapOptions___and__(PyObject *,PyObject *);}
static PyObject *slot_QScriptEngine_QObjectWrapOptions___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptEngine::QObjectWrapOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QScriptEngine_QObjectWrapOptions, &a0, &a0State, &a1))
        {
            QScriptEngine::QObjectWrapOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptEngine::QObjectWrapOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptEngine_QObjectWrapOptions,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptEngine_QObjectWrapOptions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QScriptEngine_QObjectWrapOptions___xor__(PyObject *,PyObject *);}
static PyObject *slot_QScriptEngine_QObjectWrapOptions___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptEngine::QObjectWrapOptions* a0;
        int a0State = 0;
        QScriptEngine::QObjectWrapOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QScriptEngine_QObjectWrapOptions, &a0, &a0State, sipType_QScriptEngine_QObjectWrapOptions, &a1, &a1State))
        {
            QScriptEngine::QObjectWrapOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptEngine::QObjectWrapOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptEngine_QObjectWrapOptions,a0State);
            sipReleaseType(a1,sipType_QScriptEngine_QObjectWrapOptions,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptEngine_QObjectWrapOptions,NULL);
        }
    }

    {
        QScriptEngine::QObjectWrapOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QScriptEngine_QObjectWrapOptions, &a0, &a0State, &a1))
        {
            QScriptEngine::QObjectWrapOptions*sipRes = 0;

#line 365 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QScriptEngine::QObjectWrapOptions(*a0 ^ a1);
#line 6761 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(a0,sipType_QScriptEngine_QObjectWrapOptions,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptEngine_QObjectWrapOptions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QScriptEngine_QObjectWrapOptions___or__(PyObject *,PyObject *);}
static PyObject *slot_QScriptEngine_QObjectWrapOptions___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptEngine::QObjectWrapOptions* a0;
        int a0State = 0;
        QScriptEngine::QObjectWrapOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QScriptEngine_QObjectWrapOptions, &a0, &a0State, sipType_QScriptEngine_QObjectWrapOptions, &a1, &a1State))
        {
            QScriptEngine::QObjectWrapOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptEngine::QObjectWrapOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptEngine_QObjectWrapOptions,a0State);
            sipReleaseType(a1,sipType_QScriptEngine_QObjectWrapOptions,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptEngine_QObjectWrapOptions,NULL);
        }
    }

    {
        QScriptEngine::QObjectWrapOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QScriptEngine_QObjectWrapOptions, &a0, &a0State, &a1))
        {
            QScriptEngine::QObjectWrapOptions*sipRes = 0;

#line 360 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QScriptEngine::QObjectWrapOptions(*a0 | a1);
#line 6813 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(a0,sipType_QScriptEngine_QObjectWrapOptions,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptEngine_QObjectWrapOptions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QScriptEngine_QObjectWrapOptions___int__(PyObject *);}
static PyObject *slot_QScriptEngine_QObjectWrapOptions___int__(PyObject *sipSelf)
{
    QScriptEngine::QObjectWrapOptions *sipCpp = reinterpret_cast<QScriptEngine::QObjectWrapOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptEngine_QObjectWrapOptions));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QScriptEngine_QObjectWrapOptions___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QScriptEngine_QObjectWrapOptions___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QScriptEngine_QObjectWrapOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QScriptEngine::QObjectWrapOptions *sipCpp = reinterpret_cast<QScriptEngine::QObjectWrapOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptEngine_QObjectWrapOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QScriptEngine::QObjectWrapOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptEngine_QObjectWrapOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QScriptEngine::QObjectWrapOptions::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptEngine_QObjectWrapOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QScriptEngine_QObjectWrapOptions___ior__(PyObject *,PyObject *);}
static PyObject *slot_QScriptEngine_QObjectWrapOptions___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QScriptEngine_QObjectWrapOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QScriptEngine::QObjectWrapOptions *sipCpp = reinterpret_cast<QScriptEngine::QObjectWrapOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptEngine_QObjectWrapOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QScriptEngine::QObjectWrapOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptEngine_QObjectWrapOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QScriptEngine::QObjectWrapOptions::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptEngine_QObjectWrapOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QScriptEngine_QObjectWrapOptions___iand__(PyObject *,PyObject *);}
static PyObject *slot_QScriptEngine_QObjectWrapOptions___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QScriptEngine_QObjectWrapOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QScriptEngine::QObjectWrapOptions *sipCpp = reinterpret_cast<QScriptEngine::QObjectWrapOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptEngine_QObjectWrapOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QScriptEngine::QObjectWrapOptions::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScriptEngine_QObjectWrapOptions(void *, int);}
static void release_QScriptEngine_QObjectWrapOptions(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QScriptEngine::QObjectWrapOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QScriptEngine_QObjectWrapOptions(void *, SIP_SSIZE_T, const void *);}
static void assign_QScriptEngine_QObjectWrapOptions(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QScriptEngine::QObjectWrapOptions *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QScriptEngine::QObjectWrapOptions *>(sipSrc);
}


extern "C" {static void *array_QScriptEngine_QObjectWrapOptions(SIP_SSIZE_T);}
static void *array_QScriptEngine_QObjectWrapOptions(SIP_SSIZE_T sipNrElem)
{
    return new QScriptEngine::QObjectWrapOptions[sipNrElem];
}


extern "C" {static void *copy_QScriptEngine_QObjectWrapOptions(const void *, SIP_SSIZE_T);}
static void *copy_QScriptEngine_QObjectWrapOptions(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QScriptEngine::QObjectWrapOptions(reinterpret_cast<const QScriptEngine::QObjectWrapOptions *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QScriptEngine_QObjectWrapOptions(sipSimpleWrapper *);}
static void dealloc_QScriptEngine_QObjectWrapOptions(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QScriptEngine_QObjectWrapOptions(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QScriptEngine_QObjectWrapOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QScriptEngine_QObjectWrapOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QScriptEngine::QObjectWrapOptions *sipCpp = 0;

    {
        const QScriptEngine::QObjectWrapOptions* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QScriptEngine_QObjectWrapOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptEngine::QObjectWrapOptions(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QScriptEngine::QObjectWrapOptions *>(a0),sipType_QScriptEngine_QObjectWrapOptions,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptEngine::QObjectWrapOptions(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptEngine::QObjectWrapOptions();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QScriptEngine_QObjectWrapOptions(PyObject *, void **, int *, PyObject *);}
static int convertTo_QScriptEngine_QObjectWrapOptions(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QScriptEngine::QObjectWrapOptions **sipCppPtr = reinterpret_cast<QScriptEngine::QObjectWrapOptions **>(sipCppPtrV);

#line 398 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QScriptEngine::QObjectWrapOptions is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QScriptEngine_QObjectWrapOption)) ||
            sipCanConvertToType(sipPy, sipType_QScriptEngine_QObjectWrapOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QScriptEngine_QObjectWrapOption)))
{
    *sipCppPtr = new QScriptEngine::QObjectWrapOptions(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QScriptEngine::QObjectWrapOptions *>(sipConvertToType(sipPy, sipType_QScriptEngine_QObjectWrapOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 7097 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QScriptEngine_QObjectWrapOptions[] = {
    {(void *)slot_QScriptEngine_QObjectWrapOptions___bool__, bool_slot},
    {(void *)slot_QScriptEngine_QObjectWrapOptions___ne__, ne_slot},
    {(void *)slot_QScriptEngine_QObjectWrapOptions___eq__, eq_slot},
    {(void *)slot_QScriptEngine_QObjectWrapOptions___invert__, invert_slot},
    {(void *)slot_QScriptEngine_QObjectWrapOptions___and__, and_slot},
    {(void *)slot_QScriptEngine_QObjectWrapOptions___xor__, xor_slot},
    {(void *)slot_QScriptEngine_QObjectWrapOptions___or__, or_slot},
    {(void *)slot_QScriptEngine_QObjectWrapOptions___int__, int_slot},
    {(void *)slot_QScriptEngine_QObjectWrapOptions___ixor__, ixor_slot},
    {(void *)slot_QScriptEngine_QObjectWrapOptions___ior__, ior_slot},
    {(void *)slot_QScriptEngine_QObjectWrapOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QScriptEngine_QObjectWrapOptions, "\1QScriptEngine.QObjectWrapOptions(QScriptEngine.QObjectWrapOptions)\n"
    "QScriptEngine.QObjectWrapOptions(int)\n"
    "QScriptEngine.QObjectWrapOptions()");


pyqt4ClassTypeDef sipTypeDef_QtScript_QScriptEngine_QObjectWrapOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QScriptEngine__QObjectWrapOptions,
        {0}
    },
    {
        sipNameNr_QObjectWrapOptions,
        {12, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QScriptEngine_QObjectWrapOptions,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QScriptEngine_QObjectWrapOptions,
    init_type_QScriptEngine_QObjectWrapOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScriptEngine_QObjectWrapOptions,
    assign_QScriptEngine_QObjectWrapOptions,
    array_QScriptEngine_QObjectWrapOptions,
    copy_QScriptEngine_QObjectWrapOptions,
    release_QScriptEngine_QObjectWrapOptions,
    0,
    convertTo_QScriptEngine_QObjectWrapOptions,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
#include <qscriptengine.h>
#line 7178 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 7182 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 7185 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 276 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
#include <qscriptengine.h>
#line 7188 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7191 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptstring.sip"
#include <qscriptstring.h>
#line 7194 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengineagent.sip"
#include <qscriptengineagent.h>
#line 7197 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 7200 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7203 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
#include <qscriptengine.h>
#line 7206 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 401 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 7209 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptclass.sip"
#include <qscriptclass.h>
#line 7212 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7215 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 269 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7218 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptcontext.sip"
#include <qscriptcontext.h>
#line 7221 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7224 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 368 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7227 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 351 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7230 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7233 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7236 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7239 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 115 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7242 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 7245 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 38 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
#if QT_VERSION >= 0x040400

// Save a Python callable in a QScriptValue so that it can be retrieved later
// by the handler.
static void qtscript_func_wrapper(QScriptEngine *eng, QScriptValue *qsv, PyObject *py)
{
    QString addr = QString::number((qulonglong)py);
    qsv->setData(QScriptValue(eng, addr));

    // Make sure that the callable isn't garbage collected.  This shouldn't be
    // a problem as we wouldn't normally be called in a loop.
    Py_INCREF(py);
}


// Invoke the saved Python callable on behalf of C++.
static QScriptValue qtscript_func_handler(QScriptContext *context, QScriptEngine *eng)
{
    QScriptValue qsv;

    QString addr = context->callee().data().toString();
    PyObject *py = (PyObject *)addr.toULongLong();

    SIP_BLOCK_THREADS

    PyObject *res_obj = sipCallMethod(0, py, "DD", context, sipType_QScriptContext, NULL, eng, sipType_QScriptEngine, NULL);

    if (!res_obj)
        PyErr_Print();
    else
    {
        QScriptValue *res;

        if (sipParseResult(0, py, res_obj, "D5", sipType_QScriptValue, &res) < 0)
            PyErr_Print();
        else
            qsv = *res;
    }

    Py_XDECREF(res_obj);

    SIP_UNBLOCK_THREADS

    return qsv;
}

#endif
#line 7294 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


class sipQScriptEngine : public QScriptEngine
{
public:
    sipQScriptEngine();
    sipQScriptEngine(QObject*);
    virtual ~sipQScriptEngine();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const char*);
    void sipProtectVirt_disconnectNotify(bool,const char*);
    int sipProtect_senderSignalIndex() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQScriptEngine(const sipQScriptEngine &);
    sipQScriptEngine &operator = (const sipQScriptEngine &);

    char sipPyMethods[7];
};

sipQScriptEngine::sipQScriptEngine(): QScriptEngine(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQScriptEngine::sipQScriptEngine(QObject*a0): QScriptEngine(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQScriptEngine::~sipQScriptEngine()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQScriptEngine::metaObject() const
{
    return sip_QtScript_qt_metaobject(sipPySelf,sipType_QScriptEngine);
}

int sipQScriptEngine::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QScriptEngine::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtScript_qt_metacall(sipPySelf,sipType_QScriptEngine,_c,_id,_a);

    return _id;
}

void *sipQScriptEngine::qt_metacast(const char *_clname)
{
    return (sip_QtScript_qt_metacast(sipPySelf, sipType_QScriptEngine, _clname)) ? this : QScriptEngine::qt_metacast(_clname);
}

void sipQScriptEngine::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QScriptEngine::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtScript_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQScriptEngine::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QScriptEngine::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtScript_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQScriptEngine::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QScriptEngine::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtScript_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQScriptEngine::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QScriptEngine::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtScript_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQScriptEngine::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QScriptEngine::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtScript_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQScriptEngine::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QScriptEngine::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtScript_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQScriptEngine::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QScriptEngine::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtScript_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QObject* sipQScriptEngine::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQScriptEngine::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQScriptEngine::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQScriptEngine::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQScriptEngine::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQScriptEngine::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQScriptEngine::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQScriptEngine::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}


PyDoc_STRVAR(doc_QScriptEngine_sender, "sender(self) -> QObject");

extern "C" {static PyObject *meth_QScriptEngine_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQScriptEngine *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            QObject*sipRes = 0;

#line 638 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (helper)
            sipRes = helper(sipRes);
#line 7578 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_sender, doc_QScriptEngine_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_receivers, "receivers(self, QT_SIGNAL) -> int");

extern "C" {static PyObject *meth_QScriptEngine_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        char* a0;
        const sipQScriptEngine *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QScriptEngine, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 664 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        // PyQt5: Get rid of the const casts.
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(const_cast<QObject *>(sipCpp), a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 7624 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_receivers, doc_QScriptEngine_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_timerEvent, "timerEvent(self, QTimerEvent)");

extern "C" {static PyObject *meth_QScriptEngine_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQScriptEngine *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_timerEvent, doc_QScriptEngine_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_childEvent, "childEvent(self, QChildEvent)");

extern "C" {static PyObject *meth_QScriptEngine_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQScriptEngine *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_childEvent, doc_QScriptEngine_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_customEvent, "customEvent(self, QEvent)");

extern "C" {static PyObject *meth_QScriptEngine_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQScriptEngine *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_customEvent, doc_QScriptEngine_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_connectNotify, "connectNotify(self, QT_SIGNAL)");

extern "C" {static PyObject *meth_QScriptEngine_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQScriptEngine *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QScriptEngine, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_connectNotify, doc_QScriptEngine_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_disconnectNotify, "disconnectNotify(self, QT_SIGNAL)");

extern "C" {static PyObject *meth_QScriptEngine_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQScriptEngine *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QScriptEngine, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_disconnectNotify, doc_QScriptEngine_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_senderSignalIndex, "senderSignalIndex(self) -> int");

extern "C" {static PyObject *meth_QScriptEngine_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQScriptEngine *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_senderSignalIndex();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_senderSignalIndex, doc_QScriptEngine_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_globalObject, "globalObject(self) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_globalObject(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_globalObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->globalObject());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_globalObject, doc_QScriptEngine_globalObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_currentContext, "currentContext(self) -> QScriptContext");

extern "C" {static PyObject *meth_QScriptEngine_currentContext(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_currentContext(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            QScriptContext*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currentContext();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QScriptContext,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_currentContext, doc_QScriptEngine_currentContext);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_pushContext, "pushContext(self) -> QScriptContext");

extern "C" {static PyObject *meth_QScriptEngine_pushContext(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_pushContext(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            QScriptContext*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->pushContext();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QScriptContext,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_pushContext, doc_QScriptEngine_pushContext);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_popContext, "popContext(self)");

extern "C" {static PyObject *meth_QScriptEngine_popContext(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_popContext(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->popContext();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_popContext, doc_QScriptEngine_popContext);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_canEvaluate, "canEvaluate(self, object) -> bool");

extern "C" {static PyObject *meth_QScriptEngine_canEvaluate(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_canEvaluate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->canEvaluate(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_canEvaluate, doc_QScriptEngine_canEvaluate);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_evaluate, "evaluate(self, object, fileName: object = '', lineNumber: int = 1) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_evaluate(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_evaluate(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        int a2 = 1;
        QScriptEngine *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_fileName,
            sipName_lineNumber,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J1i", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, &a2))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->evaluate(*a0,*a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_evaluate, doc_QScriptEngine_evaluate);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_hasUncaughtException, "hasUncaughtException(self) -> bool");

extern "C" {static PyObject *meth_QScriptEngine_hasUncaughtException(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_hasUncaughtException(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasUncaughtException();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_hasUncaughtException, doc_QScriptEngine_hasUncaughtException);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_uncaughtExceptionBacktrace, "uncaughtExceptionBacktrace(self) -> object");

extern "C" {static PyObject *meth_QScriptEngine_uncaughtExceptionBacktrace(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_uncaughtExceptionBacktrace(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->uncaughtExceptionBacktrace());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_uncaughtExceptionBacktrace, doc_QScriptEngine_uncaughtExceptionBacktrace);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_uncaughtException, "uncaughtException(self) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_uncaughtException(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_uncaughtException(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->uncaughtException());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_uncaughtException, doc_QScriptEngine_uncaughtException);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_uncaughtExceptionLineNumber, "uncaughtExceptionLineNumber(self) -> int");

extern "C" {static PyObject *meth_QScriptEngine_uncaughtExceptionLineNumber(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_uncaughtExceptionLineNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->uncaughtExceptionLineNumber();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_uncaughtExceptionLineNumber, doc_QScriptEngine_uncaughtExceptionLineNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_nullValue, "nullValue(self) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_nullValue(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_nullValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->nullValue());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_nullValue, doc_QScriptEngine_nullValue);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_undefinedValue, "undefinedValue(self) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_undefinedValue(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_undefinedValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->undefinedValue());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_undefinedValue, doc_QScriptEngine_undefinedValue);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_newFunction, "newFunction(self, Callable[..., None], length: int = 0) -> QScriptValue\n"
    "newFunction(self, Callable[..., None], QScriptValue, length: int = 0) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_newFunction(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_newFunction(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        int a1 = 0;
        QScriptEngine *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_length,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BF|i", &sipSelf, sipType_QScriptEngine, &sipCpp, &a0, &a1))
        {
            QScriptValue*sipRes = 0;

#line 141 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
        // This is implemented for Qt v4.4 and later because we rely on the
        // QScriptValue::setData() support.
        
        Py_BEGIN_ALLOW_THREADS
        sipRes = new QScriptValue(sipCpp->newFunction(qtscript_func_handler, a1));
        Py_END_ALLOW_THREADS
        
        qtscript_func_wrapper(sipCpp, sipRes, a0);
#line 8231 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    {
        PyObject * a0;
        const QScriptValue* a1;
        int a2 = 0;
        QScriptEngine *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_length,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BFJ9|i", &sipSelf, sipType_QScriptEngine, &sipCpp, &a0, sipType_QScriptValue, &a1, &a2))
        {
            QScriptValue*sipRes = 0;

#line 155 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
        // This is implemented for Qt v4.4 and later because we rely on the
        // QScriptValue::setData() support.
        
        Py_BEGIN_ALLOW_THREADS
        sipRes = new QScriptValue(sipCpp->newFunction(qtscript_func_handler, *a1, a2));
        Py_END_ALLOW_THREADS
        
        qtscript_func_wrapper(sipCpp, sipRes, a0);
#line 8262 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_newFunction, doc_QScriptEngine_newFunction);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_newVariant, "newVariant(self, object) -> QScriptValue\n"
    "newVariant(self, QScriptValue, object) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_newVariant(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_newVariant(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVariant* a0;
        int a0State = 0;
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QVariant,&a0, &a0State))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->newVariant(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    {
        const QScriptValue* a0;
        const QVariant* a1;
        int a1State = 0;
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QScriptValue, &a0, sipType_QVariant,&a1, &a1State))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->newVariant(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_newVariant, doc_QScriptEngine_newVariant);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_newRegExp, "newRegExp(self, QRegExp) -> QScriptValue\n"
    "newRegExp(self, object, object) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_newRegExp(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_newRegExp(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegExp* a0;
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QRegExp, &a0))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->newRegExp(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->newRegExp(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_newRegExp, doc_QScriptEngine_newRegExp);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_newObject, "newObject(self) -> QScriptValue\n"
    "newObject(self, QScriptClass, data: QScriptValue = QScriptValue()) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_newObject(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_newObject(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptEngine *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->newObject());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    {
        QScriptClass* a0;
        const QScriptValue& a1def = QScriptValue();
        const QScriptValue* a1 = &a1def;
        QScriptEngine *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_data,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8|J9", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QScriptClass, &a0, sipType_QScriptValue, &a1))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->newObject(a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_newObject, doc_QScriptEngine_newObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_newArray, "newArray(self, length: int = 0) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_newArray(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_newArray(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        uint a0 = 0;
        QScriptEngine *sipCpp;

        static const char *sipKwdList[] = {
            sipName_length,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|u", &sipSelf, sipType_QScriptEngine, &sipCpp, &a0))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->newArray(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_newArray, doc_QScriptEngine_newArray);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_newDate, "newDate(self, float) -> QScriptValue\n"
    "newDate(self, QDateTime) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_newDate(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_newDate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qsreal a0;
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QScriptEngine, &sipCpp, &a0))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->newDate(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    {
        const QDateTime* a0;
        int a0State = 0;
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->newDate(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_newDate, doc_QScriptEngine_newDate);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_newQObject, "newQObject(self, QObject, ownership: QScriptEngine.ValueOwnership = QScriptEngine.QtOwnership, options: QScriptEngine.QObjectWrapOptions = 0) -> QScriptValue\n"
    "newQObject(self, QScriptValue, QObject, ownership: QScriptEngine.ValueOwnership = QScriptEngine.QtOwnership, options: QScriptEngine.QObjectWrapOptions = 0) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_newQObject(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_newQObject(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QObject* a0;
        PyObject *a0Wrapper;
        QScriptEngine::ValueOwnership a1 = QScriptEngine::QtOwnership;
        const QScriptEngine::QObjectWrapOptions& a2def = 0;
        const QScriptEngine::QObjectWrapOptions* a2 = &a2def;
        int a2State = 0;
        QScriptEngine *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_ownership,
            sipName_options,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B@J8|EJ1", &sipSelf, sipType_QScriptEngine, &sipCpp, &a0Wrapper, sipType_QObject, &a0, sipType_QScriptEngine_ValueOwnership, &a1, sipType_QScriptEngine_QObjectWrapOptions, &a2, &a2State))
        {
            QScriptValue*sipRes = 0;

#line 181 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
        // We have to handle the object ownership manually.
        Py_BEGIN_ALLOW_THREADS
        sipRes = new QScriptValue(sipCpp->newQObject(a0, a1, *a2));
        Py_END_ALLOW_THREADS
        
        if (a1 == QScriptEngine::ScriptOwnership || (a1 == QScriptEngine::AutoOwnership && !a0->parent()))
            sipTransferTo(a0Wrapper, sipSelf);
#line 8561 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(const_cast<QScriptEngine::QObjectWrapOptions *>(a2),sipType_QScriptEngine_QObjectWrapOptions,a2State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    {
        const QScriptValue* a0;
        QObject* a1;
        PyObject *a1Wrapper;
        QScriptEngine::ValueOwnership a2 = QScriptEngine::QtOwnership;
        const QScriptEngine::QObjectWrapOptions& a3def = 0;
        const QScriptEngine::QObjectWrapOptions* a3 = &a3def;
        int a3State = 0;
        QScriptEngine *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_ownership,
            sipName_options,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9@J8|EJ1", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QScriptValue, &a0, &a1Wrapper, sipType_QObject, &a1, sipType_QScriptEngine_ValueOwnership, &a2, sipType_QScriptEngine_QObjectWrapOptions, &a3, &a3State))
        {
            QScriptValue*sipRes = 0;

#line 193 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
        // We have to handle the object ownership manually.
        Py_BEGIN_ALLOW_THREADS
        sipRes = new QScriptValue(sipCpp->newQObject(*a0, a1, a2, *a3));
        Py_END_ALLOW_THREADS
        
        if (a2 == QScriptEngine::ScriptOwnership || (a2 == QScriptEngine::AutoOwnership && !a1->parent()))
            sipTransferTo(a1Wrapper, sipSelf);
#line 8597 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(const_cast<QScriptEngine::QObjectWrapOptions *>(a3),sipType_QScriptEngine_QObjectWrapOptions,a3State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_newQObject, doc_QScriptEngine_newQObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_newQMetaObject, "newQMetaObject(self, QMetaObject, ctor: QScriptValue = QScriptValue()) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_newQMetaObject(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_newQMetaObject(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaObject* a0;
        const QScriptValue& a1def = QScriptValue();
        const QScriptValue* a1 = &a1def;
        QScriptEngine *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_ctor,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8|J9", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QMetaObject, &a0, sipType_QScriptValue, &a1))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->newQMetaObject(a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_newQMetaObject, doc_QScriptEngine_newQMetaObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_defaultPrototype, "defaultPrototype(self, int) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_defaultPrototype(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_defaultPrototype(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QScriptEngine, &sipCpp, &a0))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->defaultPrototype(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_defaultPrototype, doc_QScriptEngine_defaultPrototype);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_setDefaultPrototype, "setDefaultPrototype(self, int, QScriptValue)");

extern "C" {static PyObject *meth_QScriptEngine_setDefaultPrototype(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_setDefaultPrototype(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QScriptValue* a1;
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QScriptEngine, &sipCpp, &a0, sipType_QScriptValue, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDefaultPrototype(a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_setDefaultPrototype, doc_QScriptEngine_setDefaultPrototype);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_importExtension, "importExtension(self, object) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_importExtension(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_importExtension(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->importExtension(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_importExtension, doc_QScriptEngine_importExtension);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_collectGarbage, "collectGarbage(self)");

extern "C" {static PyObject *meth_QScriptEngine_collectGarbage(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_collectGarbage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->collectGarbage();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_collectGarbage, doc_QScriptEngine_collectGarbage);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_setProcessEventsInterval, "setProcessEventsInterval(self, int)");

extern "C" {static PyObject *meth_QScriptEngine_setProcessEventsInterval(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_setProcessEventsInterval(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QScriptEngine, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProcessEventsInterval(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_setProcessEventsInterval, doc_QScriptEngine_setProcessEventsInterval);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_processEventsInterval, "processEventsInterval(self) -> int");

extern "C" {static PyObject *meth_QScriptEngine_processEventsInterval(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_processEventsInterval(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->processEventsInterval();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_processEventsInterval, doc_QScriptEngine_processEventsInterval);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_isEvaluating, "isEvaluating(self) -> bool");

extern "C" {static PyObject *meth_QScriptEngine_isEvaluating(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_isEvaluating(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEvaluating();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_isEvaluating, doc_QScriptEngine_isEvaluating);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_abortEvaluation, "abortEvaluation(self, result: QScriptValue = QScriptValue())");

extern "C" {static PyObject *meth_QScriptEngine_abortEvaluation(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_abortEvaluation(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue& a0def = QScriptValue();
        const QScriptValue* a0 = &a0def;
        QScriptEngine *sipCpp;

        static const char *sipKwdList[] = {
            sipName_result,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J9", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QScriptValue, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->abortEvaluation(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_abortEvaluation, doc_QScriptEngine_abortEvaluation);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_clearExceptions, "clearExceptions(self)");

extern "C" {static PyObject *meth_QScriptEngine_clearExceptions(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_clearExceptions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearExceptions();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_clearExceptions, doc_QScriptEngine_clearExceptions);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_availableExtensions, "availableExtensions(self) -> object");

extern "C" {static PyObject *meth_QScriptEngine_availableExtensions(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_availableExtensions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->availableExtensions());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_availableExtensions, doc_QScriptEngine_availableExtensions);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_importedExtensions, "importedExtensions(self) -> object");

extern "C" {static PyObject *meth_QScriptEngine_importedExtensions(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_importedExtensions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->importedExtensions());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_importedExtensions, doc_QScriptEngine_importedExtensions);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_setAgent, "setAgent(self, QScriptEngineAgent)");

extern "C" {static PyObject *meth_QScriptEngine_setAgent(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_setAgent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptEngineAgent* a0;
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QScriptEngineAgent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAgent(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_setAgent, doc_QScriptEngine_setAgent);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_agent, "agent(self) -> QScriptEngineAgent");

extern "C" {static PyObject *meth_QScriptEngine_agent(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_agent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptEngine, &sipCpp))
        {
            QScriptEngineAgent*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->agent();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QScriptEngineAgent,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_agent, doc_QScriptEngine_agent);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_toStringHandle, "toStringHandle(self, object) -> QScriptString");

extern "C" {static PyObject *meth_QScriptEngine_toStringHandle(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_toStringHandle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QScriptString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptString(sipCpp->toStringHandle(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_toStringHandle, doc_QScriptEngine_toStringHandle);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_setGlobalObject, "setGlobalObject(self, QScriptValue)");

extern "C" {static PyObject *meth_QScriptEngine_setGlobalObject(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_setGlobalObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue* a0;
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QScriptValue, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setGlobalObject(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_setGlobalObject, doc_QScriptEngine_setGlobalObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_checkSyntax, "checkSyntax(object) -> QScriptSyntaxCheckResult");

extern "C" {static PyObject *meth_QScriptEngine_checkSyntax(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_checkSyntax(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QScriptSyntaxCheckResult*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptSyntaxCheckResult(QScriptEngine::checkSyntax(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptSyntaxCheckResult,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_checkSyntax, doc_QScriptEngine_checkSyntax);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_installTranslatorFunctions, "installTranslatorFunctions(self, object: QScriptValue = QScriptValue())");

extern "C" {static PyObject *meth_QScriptEngine_installTranslatorFunctions(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_installTranslatorFunctions(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue& a0def = QScriptValue();
        const QScriptValue* a0 = &a0def;
        QScriptEngine *sipCpp;

        static const char *sipKwdList[] = {
            sipName_object,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J9", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QScriptValue, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->installTranslatorFunctions(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_installTranslatorFunctions, doc_QScriptEngine_installTranslatorFunctions);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_toObject, "toObject(self, QScriptValue) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptEngine_toObject(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_toObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue* a0;
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScriptEngine, &sipCpp, sipType_QScriptValue, &a0))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->toObject(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_toObject, doc_QScriptEngine_toObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptEngine_reportAdditionalMemoryCost, "reportAdditionalMemoryCost(self, int)");

extern "C" {static PyObject *meth_QScriptEngine_reportAdditionalMemoryCost(PyObject *, PyObject *);}
static PyObject *meth_QScriptEngine_reportAdditionalMemoryCost(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QScriptEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QScriptEngine, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->reportAdditionalMemoryCost(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptEngine, sipName_reportAdditionalMemoryCost, doc_QScriptEngine_reportAdditionalMemoryCost);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScriptEngine(void *, int);}
static void release_QScriptEngine(void *sipCppV,int)
{
    QScriptEngine *sipCpp = reinterpret_cast<QScriptEngine *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QScriptEngine(sipSimpleWrapper *);}
static void dealloc_QScriptEngine(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQScriptEngine *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QScriptEngine(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QScriptEngine(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QScriptEngine(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQScriptEngine *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQScriptEngine();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQScriptEngine(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QScriptEngine[] = {{141, 0, 1}};


static PyMethodDef methods_QScriptEngine[] = {
    {SIP_MLNAME_CAST(sipName_abortEvaluation), (PyCFunction)meth_QScriptEngine_abortEvaluation, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptEngine_abortEvaluation)},
    {SIP_MLNAME_CAST(sipName_agent), meth_QScriptEngine_agent, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_agent)},
    {SIP_MLNAME_CAST(sipName_availableExtensions), meth_QScriptEngine_availableExtensions, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_availableExtensions)},
    {SIP_MLNAME_CAST(sipName_canEvaluate), meth_QScriptEngine_canEvaluate, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_canEvaluate)},
    {SIP_MLNAME_CAST(sipName_checkSyntax), meth_QScriptEngine_checkSyntax, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_checkSyntax)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QScriptEngine_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_clearExceptions), meth_QScriptEngine_clearExceptions, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_clearExceptions)},
    {SIP_MLNAME_CAST(sipName_collectGarbage), meth_QScriptEngine_collectGarbage, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_collectGarbage)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QScriptEngine_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_currentContext), meth_QScriptEngine_currentContext, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_currentContext)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QScriptEngine_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultPrototype), meth_QScriptEngine_defaultPrototype, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_defaultPrototype)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QScriptEngine_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_evaluate), (PyCFunction)meth_QScriptEngine_evaluate, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptEngine_evaluate)},
    {SIP_MLNAME_CAST(sipName_globalObject), meth_QScriptEngine_globalObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_globalObject)},
    {SIP_MLNAME_CAST(sipName_hasUncaughtException), meth_QScriptEngine_hasUncaughtException, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_hasUncaughtException)},
    {SIP_MLNAME_CAST(sipName_importExtension), meth_QScriptEngine_importExtension, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_importExtension)},
    {SIP_MLNAME_CAST(sipName_importedExtensions), meth_QScriptEngine_importedExtensions, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_importedExtensions)},
    {SIP_MLNAME_CAST(sipName_installTranslatorFunctions), (PyCFunction)meth_QScriptEngine_installTranslatorFunctions, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptEngine_installTranslatorFunctions)},
    {SIP_MLNAME_CAST(sipName_isEvaluating), meth_QScriptEngine_isEvaluating, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_isEvaluating)},
    {SIP_MLNAME_CAST(sipName_newArray), (PyCFunction)meth_QScriptEngine_newArray, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptEngine_newArray)},
    {SIP_MLNAME_CAST(sipName_newDate), meth_QScriptEngine_newDate, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_newDate)},
    {SIP_MLNAME_CAST(sipName_newFunction), (PyCFunction)meth_QScriptEngine_newFunction, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptEngine_newFunction)},
    {SIP_MLNAME_CAST(sipName_newObject), (PyCFunction)meth_QScriptEngine_newObject, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptEngine_newObject)},
    {SIP_MLNAME_CAST(sipName_newQMetaObject), (PyCFunction)meth_QScriptEngine_newQMetaObject, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptEngine_newQMetaObject)},
    {SIP_MLNAME_CAST(sipName_newQObject), (PyCFunction)meth_QScriptEngine_newQObject, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptEngine_newQObject)},
    {SIP_MLNAME_CAST(sipName_newRegExp), meth_QScriptEngine_newRegExp, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_newRegExp)},
    {SIP_MLNAME_CAST(sipName_newVariant), meth_QScriptEngine_newVariant, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_newVariant)},
    {SIP_MLNAME_CAST(sipName_nullValue), meth_QScriptEngine_nullValue, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_nullValue)},
    {SIP_MLNAME_CAST(sipName_popContext), meth_QScriptEngine_popContext, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_popContext)},
    {SIP_MLNAME_CAST(sipName_processEventsInterval), meth_QScriptEngine_processEventsInterval, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_processEventsInterval)},
    {SIP_MLNAME_CAST(sipName_pushContext), meth_QScriptEngine_pushContext, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_pushContext)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QScriptEngine_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_reportAdditionalMemoryCost), meth_QScriptEngine_reportAdditionalMemoryCost, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_reportAdditionalMemoryCost)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QScriptEngine_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QScriptEngine_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setAgent), meth_QScriptEngine_setAgent, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_setAgent)},
    {SIP_MLNAME_CAST(sipName_setDefaultPrototype), meth_QScriptEngine_setDefaultPrototype, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_setDefaultPrototype)},
    {SIP_MLNAME_CAST(sipName_setGlobalObject), meth_QScriptEngine_setGlobalObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_setGlobalObject)},
    {SIP_MLNAME_CAST(sipName_setProcessEventsInterval), meth_QScriptEngine_setProcessEventsInterval, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_setProcessEventsInterval)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QScriptEngine_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_toObject), meth_QScriptEngine_toObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_toObject)},
    {SIP_MLNAME_CAST(sipName_toStringHandle), meth_QScriptEngine_toStringHandle, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_toStringHandle)},
    {SIP_MLNAME_CAST(sipName_uncaughtException), meth_QScriptEngine_uncaughtException, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_uncaughtException)},
    {SIP_MLNAME_CAST(sipName_uncaughtExceptionBacktrace), meth_QScriptEngine_uncaughtExceptionBacktrace, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_uncaughtExceptionBacktrace)},
    {SIP_MLNAME_CAST(sipName_uncaughtExceptionLineNumber), meth_QScriptEngine_uncaughtExceptionLineNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_uncaughtExceptionLineNumber)},
    {SIP_MLNAME_CAST(sipName_undefinedValue), meth_QScriptEngine_undefinedValue, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptEngine_undefinedValue)}
};

static sipEnumMemberDef enummembers_QScriptEngine[] = {
    {sipName_AutoCreateDynamicProperties, static_cast<int>(QScriptEngine::AutoCreateDynamicProperties), 13},
    {sipName_AutoOwnership, static_cast<int>(QScriptEngine::AutoOwnership), 15},
    {sipName_ExcludeChildObjects, static_cast<int>(QScriptEngine::ExcludeChildObjects), 13},
    {sipName_ExcludeDeleteLater, static_cast<int>(QScriptEngine::ExcludeDeleteLater), 13},
    {sipName_ExcludeSlots, static_cast<int>(QScriptEngine::ExcludeSlots), 13},
    {sipName_ExcludeSuperClassContents, static_cast<int>(QScriptEngine::ExcludeSuperClassContents), 13},
    {sipName_ExcludeSuperClassMethods, static_cast<int>(QScriptEngine::ExcludeSuperClassMethods), 13},
    {sipName_ExcludeSuperClassProperties, static_cast<int>(QScriptEngine::ExcludeSuperClassProperties), 13},
    {sipName_PreferExistingWrapperObject, static_cast<int>(QScriptEngine::PreferExistingWrapperObject), 13},
    {sipName_QtOwnership, static_cast<int>(QScriptEngine::QtOwnership), 15},
    {sipName_ScriptOwnership, static_cast<int>(QScriptEngine::ScriptOwnership), 15},
    {sipName_SkipMethodsInEnumeration, static_cast<int>(QScriptEngine::SkipMethodsInEnumeration), 13},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_QScriptEngine[] = {
    {"signalHandlerException(QScriptValue)", "\1signalHandlerException(self, QScriptValue)", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QScriptEngine, "\1QScriptEngine()\n"
    "QScriptEngine(QObject)");


pyqt4ClassTypeDef sipTypeDef_QtScript_QScriptEngine = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QScriptEngine,
        {0}
    },
    {
        sipNameNr_QScriptEngine,
        {0, 0, 1},
        47, methods_QScriptEngine,
        12, enummembers_QScriptEngine,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QScriptEngine,
    -1,
    -1,
    supers_QScriptEngine,
    0,
    init_type_QScriptEngine,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScriptEngine,
    0,
    0,
    0,
    release_QScriptEngine,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QScriptEngine::staticMetaObject,
    0,
    signals_QScriptEngine,
};

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptcontextinfo.sip"
#include <qscriptcontextinfo.h>
#line 9441 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptcontext.sip"
#include <qscriptcontext.h>
#line 9445 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 9448 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9451 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


PyDoc_STRVAR(doc_QScriptContextInfo_isNull, "isNull(self) -> bool");

extern "C" {static PyObject *meth_QScriptContextInfo_isNull(PyObject *, PyObject *);}
static PyObject *meth_QScriptContextInfo_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContextInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContextInfo, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContextInfo, sipName_isNull, doc_QScriptContextInfo_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContextInfo_scriptId, "scriptId(self) -> int");

extern "C" {static PyObject *meth_QScriptContextInfo_scriptId(PyObject *, PyObject *);}
static PyObject *meth_QScriptContextInfo_scriptId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContextInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContextInfo, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->scriptId();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContextInfo, sipName_scriptId, doc_QScriptContextInfo_scriptId);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContextInfo_fileName, "fileName(self) -> object");

extern "C" {static PyObject *meth_QScriptContextInfo_fileName(PyObject *, PyObject *);}
static PyObject *meth_QScriptContextInfo_fileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContextInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContextInfo, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->fileName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContextInfo, sipName_fileName, doc_QScriptContextInfo_fileName);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContextInfo_lineNumber, "lineNumber(self) -> int");

extern "C" {static PyObject *meth_QScriptContextInfo_lineNumber(PyObject *, PyObject *);}
static PyObject *meth_QScriptContextInfo_lineNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContextInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContextInfo, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->lineNumber();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContextInfo, sipName_lineNumber, doc_QScriptContextInfo_lineNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContextInfo_columnNumber, "columnNumber(self) -> int");

extern "C" {static PyObject *meth_QScriptContextInfo_columnNumber(PyObject *, PyObject *);}
static PyObject *meth_QScriptContextInfo_columnNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContextInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContextInfo, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->columnNumber();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContextInfo, sipName_columnNumber, doc_QScriptContextInfo_columnNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContextInfo_functionName, "functionName(self) -> object");

extern "C" {static PyObject *meth_QScriptContextInfo_functionName(PyObject *, PyObject *);}
static PyObject *meth_QScriptContextInfo_functionName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContextInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContextInfo, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->functionName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContextInfo, sipName_functionName, doc_QScriptContextInfo_functionName);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContextInfo_functionType, "functionType(self) -> QScriptContextInfo.FunctionType");

extern "C" {static PyObject *meth_QScriptContextInfo_functionType(PyObject *, PyObject *);}
static PyObject *meth_QScriptContextInfo_functionType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContextInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContextInfo, &sipCpp))
        {
            QScriptContextInfo::FunctionType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->functionType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QScriptContextInfo_FunctionType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContextInfo, sipName_functionType, doc_QScriptContextInfo_functionType);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContextInfo_functionParameterNames, "functionParameterNames(self) -> object");

extern "C" {static PyObject *meth_QScriptContextInfo_functionParameterNames(PyObject *, PyObject *);}
static PyObject *meth_QScriptContextInfo_functionParameterNames(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContextInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContextInfo, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->functionParameterNames());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContextInfo, sipName_functionParameterNames, doc_QScriptContextInfo_functionParameterNames);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContextInfo_functionStartLineNumber, "functionStartLineNumber(self) -> int");

extern "C" {static PyObject *meth_QScriptContextInfo_functionStartLineNumber(PyObject *, PyObject *);}
static PyObject *meth_QScriptContextInfo_functionStartLineNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContextInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContextInfo, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->functionStartLineNumber();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContextInfo, sipName_functionStartLineNumber, doc_QScriptContextInfo_functionStartLineNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContextInfo_functionEndLineNumber, "functionEndLineNumber(self) -> int");

extern "C" {static PyObject *meth_QScriptContextInfo_functionEndLineNumber(PyObject *, PyObject *);}
static PyObject *meth_QScriptContextInfo_functionEndLineNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContextInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContextInfo, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->functionEndLineNumber();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContextInfo, sipName_functionEndLineNumber, doc_QScriptContextInfo_functionEndLineNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContextInfo_functionMetaIndex, "functionMetaIndex(self) -> int");

extern "C" {static PyObject *meth_QScriptContextInfo_functionMetaIndex(PyObject *, PyObject *);}
static PyObject *meth_QScriptContextInfo_functionMetaIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContextInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContextInfo, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->functionMetaIndex();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContextInfo, sipName_functionMetaIndex, doc_QScriptContextInfo_functionMetaIndex);

    return NULL;
}


extern "C" {static PyObject *slot_QScriptContextInfo___ne__(PyObject *,PyObject *);}
static PyObject *slot_QScriptContextInfo___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QScriptContextInfo *sipCpp = reinterpret_cast<QScriptContextInfo *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptContextInfo));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QScriptContextInfo* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QScriptContextInfo, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QScriptContextInfo::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,ne_slot,sipType_QScriptContextInfo,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QScriptContextInfo___eq__(PyObject *,PyObject *);}
static PyObject *slot_QScriptContextInfo___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QScriptContextInfo *sipCpp = reinterpret_cast<QScriptContextInfo *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptContextInfo));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QScriptContextInfo* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QScriptContextInfo, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QScriptContextInfo::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,eq_slot,sipType_QScriptContextInfo,sipSelf,sipArg);
}


/* Call the instance's destructor. */
extern "C" {static void release_QScriptContextInfo(void *, int);}
static void release_QScriptContextInfo(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QScriptContextInfo *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QScriptContextInfo(void *, SIP_SSIZE_T, const void *);}
static void assign_QScriptContextInfo(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QScriptContextInfo *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QScriptContextInfo *>(sipSrc);
}


extern "C" {static void *array_QScriptContextInfo(SIP_SSIZE_T);}
static void *array_QScriptContextInfo(SIP_SSIZE_T sipNrElem)
{
    return new QScriptContextInfo[sipNrElem];
}


extern "C" {static void *copy_QScriptContextInfo(const void *, SIP_SSIZE_T);}
static void *copy_QScriptContextInfo(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QScriptContextInfo(reinterpret_cast<const QScriptContextInfo *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QScriptContextInfo(sipSimpleWrapper *);}
static void dealloc_QScriptContextInfo(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QScriptContextInfo(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QScriptContextInfo(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QScriptContextInfo(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QScriptContextInfo *sipCpp = 0;

    {
        const QScriptContext* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QScriptContext, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptContextInfo(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QScriptContextInfo* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QScriptContextInfo, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptContextInfo(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptContextInfo();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QScriptContextInfo[] = {
    {(void *)slot_QScriptContextInfo___ne__, ne_slot},
    {(void *)slot_QScriptContextInfo___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QScriptContextInfo[] = {
    {SIP_MLNAME_CAST(sipName_columnNumber), meth_QScriptContextInfo_columnNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContextInfo_columnNumber)},
    {SIP_MLNAME_CAST(sipName_fileName), meth_QScriptContextInfo_fileName, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContextInfo_fileName)},
    {SIP_MLNAME_CAST(sipName_functionEndLineNumber), meth_QScriptContextInfo_functionEndLineNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContextInfo_functionEndLineNumber)},
    {SIP_MLNAME_CAST(sipName_functionMetaIndex), meth_QScriptContextInfo_functionMetaIndex, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContextInfo_functionMetaIndex)},
    {SIP_MLNAME_CAST(sipName_functionName), meth_QScriptContextInfo_functionName, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContextInfo_functionName)},
    {SIP_MLNAME_CAST(sipName_functionParameterNames), meth_QScriptContextInfo_functionParameterNames, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContextInfo_functionParameterNames)},
    {SIP_MLNAME_CAST(sipName_functionStartLineNumber), meth_QScriptContextInfo_functionStartLineNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContextInfo_functionStartLineNumber)},
    {SIP_MLNAME_CAST(sipName_functionType), meth_QScriptContextInfo_functionType, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContextInfo_functionType)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QScriptContextInfo_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContextInfo_isNull)},
    {SIP_MLNAME_CAST(sipName_lineNumber), meth_QScriptContextInfo_lineNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContextInfo_lineNumber)},
    {SIP_MLNAME_CAST(sipName_scriptId), meth_QScriptContextInfo_scriptId, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContextInfo_scriptId)}
};

static sipEnumMemberDef enummembers_QScriptContextInfo[] = {
    {sipName_NativeFunction, static_cast<int>(QScriptContextInfo::NativeFunction), 11},
    {sipName_QtFunction, static_cast<int>(QScriptContextInfo::QtFunction), 11},
    {sipName_QtPropertyFunction, static_cast<int>(QScriptContextInfo::QtPropertyFunction), 11},
    {sipName_ScriptFunction, static_cast<int>(QScriptContextInfo::ScriptFunction), 11},
};

PyDoc_STRVAR(doc_QScriptContextInfo, "\1QScriptContextInfo(QScriptContext)\n"
    "QScriptContextInfo(QScriptContextInfo)\n"
    "QScriptContextInfo()");


pyqt4ClassTypeDef sipTypeDef_QtScript_QScriptContextInfo = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QScriptContextInfo,
        {0}
    },
    {
        sipNameNr_QScriptContextInfo,
        {0, 0, 1},
        11, methods_QScriptContextInfo,
        4, enummembers_QScriptContextInfo,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QScriptContextInfo,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QScriptContextInfo,
    init_type_QScriptContextInfo,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScriptContextInfo,
    assign_QScriptContextInfo,
    array_QScriptContextInfo,
    copy_QScriptContextInfo,
    release_QScriptContextInfo,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptcontext.sip"
#include <qscriptcontext.h>
#line 10031 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10035 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 10038 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 10041 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
#include <qscriptengine.h>
#line 10044 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


PyDoc_STRVAR(doc_QScriptContext_parentContext, "parentContext(self) -> QScriptContext");

extern "C" {static PyObject *meth_QScriptContext_parentContext(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_parentContext(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContext, &sipCpp))
        {
            QScriptContext*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->parentContext();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QScriptContext,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_parentContext, doc_QScriptContext_parentContext);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContext_engine, "engine(self) -> QScriptEngine");

extern "C" {static PyObject *meth_QScriptContext_engine(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_engine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContext, &sipCpp))
        {
            QScriptEngine*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->engine();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QScriptEngine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_engine, doc_QScriptContext_engine);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContext_state, "state(self) -> QScriptContext.ExecutionState");

extern "C" {static PyObject *meth_QScriptContext_state(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_state(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContext, &sipCpp))
        {
            QScriptContext::ExecutionState sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->state();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QScriptContext_ExecutionState);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_state, doc_QScriptContext_state);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContext_callee, "callee(self) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptContext_callee(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_callee(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContext, &sipCpp))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->callee());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_callee, doc_QScriptContext_callee);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContext_argumentCount, "argumentCount(self) -> int");

extern "C" {static PyObject *meth_QScriptContext_argumentCount(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_argumentCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContext, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->argumentCount();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_argumentCount, doc_QScriptContext_argumentCount);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContext_argument, "argument(self, int) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptContext_argument(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_argument(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QScriptContext, &sipCpp, &a0))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->argument(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_argument, doc_QScriptContext_argument);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContext_argumentsObject, "argumentsObject(self) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptContext_argumentsObject(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_argumentsObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContext, &sipCpp))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->argumentsObject());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_argumentsObject, doc_QScriptContext_argumentsObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContext_activationObject, "activationObject(self) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptContext_activationObject(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_activationObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContext, &sipCpp))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->activationObject());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_activationObject, doc_QScriptContext_activationObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContext_setActivationObject, "setActivationObject(self, QScriptValue)");

extern "C" {static PyObject *meth_QScriptContext_setActivationObject(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_setActivationObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue* a0;
        QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScriptContext, &sipCpp, sipType_QScriptValue, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setActivationObject(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_setActivationObject, doc_QScriptContext_setActivationObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContext_thisObject, "thisObject(self) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptContext_thisObject(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_thisObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContext, &sipCpp))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->thisObject());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_thisObject, doc_QScriptContext_thisObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContext_setThisObject, "setThisObject(self, QScriptValue)");

extern "C" {static PyObject *meth_QScriptContext_setThisObject(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_setThisObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue* a0;
        QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScriptContext, &sipCpp, sipType_QScriptValue, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setThisObject(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_setThisObject, doc_QScriptContext_setThisObject);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContext_isCalledAsConstructor, "isCalledAsConstructor(self) -> bool");

extern "C" {static PyObject *meth_QScriptContext_isCalledAsConstructor(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_isCalledAsConstructor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContext, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isCalledAsConstructor();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_isCalledAsConstructor, doc_QScriptContext_isCalledAsConstructor);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContext_backtrace, "backtrace(self) -> object");

extern "C" {static PyObject *meth_QScriptContext_backtrace(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_backtrace(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContext, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->backtrace());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_backtrace, doc_QScriptContext_backtrace);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContext_throwValue, "throwValue(self, QScriptValue) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptContext_throwValue(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_throwValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptValue* a0;
        QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScriptContext, &sipCpp, sipType_QScriptValue, &a0))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->throwValue(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_throwValue, doc_QScriptContext_throwValue);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContext_throwError, "throwError(self, QScriptContext.Error, object) -> QScriptValue\n"
    "throwError(self, object) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptContext_throwError(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_throwError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptContext::Error a0;
        const QString* a1;
        int a1State = 0;
        QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_QScriptContext, &sipCpp, sipType_QScriptContext_Error, &a0, sipType_QString,&a1, &a1State))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->throwError(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QScriptContext, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->throwError(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_throwError, doc_QScriptContext_throwError);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptContext_toString, "toString(self) -> object");

extern "C" {static PyObject *meth_QScriptContext_toString(PyObject *, PyObject *);}
static PyObject *meth_QScriptContext_toString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptContext, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->toString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptContext, sipName_toString, doc_QScriptContext_toString);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScriptContext(void *, int);}
static void release_QScriptContext(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QScriptContext *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QScriptContext(sipSimpleWrapper *);}
static void dealloc_QScriptContext(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QScriptContext(sipGetAddress(sipSelf),0);
    }
}


static PyMethodDef methods_QScriptContext[] = {
    {SIP_MLNAME_CAST(sipName_activationObject), meth_QScriptContext_activationObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_activationObject)},
    {SIP_MLNAME_CAST(sipName_argument), meth_QScriptContext_argument, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_argument)},
    {SIP_MLNAME_CAST(sipName_argumentCount), meth_QScriptContext_argumentCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_argumentCount)},
    {SIP_MLNAME_CAST(sipName_argumentsObject), meth_QScriptContext_argumentsObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_argumentsObject)},
    {SIP_MLNAME_CAST(sipName_backtrace), meth_QScriptContext_backtrace, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_backtrace)},
    {SIP_MLNAME_CAST(sipName_callee), meth_QScriptContext_callee, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_callee)},
    {SIP_MLNAME_CAST(sipName_engine), meth_QScriptContext_engine, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_engine)},
    {SIP_MLNAME_CAST(sipName_isCalledAsConstructor), meth_QScriptContext_isCalledAsConstructor, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_isCalledAsConstructor)},
    {SIP_MLNAME_CAST(sipName_parentContext), meth_QScriptContext_parentContext, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_parentContext)},
    {SIP_MLNAME_CAST(sipName_setActivationObject), meth_QScriptContext_setActivationObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_setActivationObject)},
    {SIP_MLNAME_CAST(sipName_setThisObject), meth_QScriptContext_setThisObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_setThisObject)},
    {SIP_MLNAME_CAST(sipName_state), meth_QScriptContext_state, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_state)},
    {SIP_MLNAME_CAST(sipName_thisObject), meth_QScriptContext_thisObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_thisObject)},
    {SIP_MLNAME_CAST(sipName_throwError), meth_QScriptContext_throwError, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_throwError)},
    {SIP_MLNAME_CAST(sipName_throwValue), meth_QScriptContext_throwValue, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_throwValue)},
    {SIP_MLNAME_CAST(sipName_toString), meth_QScriptContext_toString, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptContext_toString)}
};

static sipEnumMemberDef enummembers_QScriptContext[] = {
    {sipName_ExceptionState, static_cast<int>(QScriptContext::ExceptionState), 9},
    {sipName_NormalState, static_cast<int>(QScriptContext::NormalState), 9},
    {sipName_RangeError, static_cast<int>(QScriptContext::RangeError), 8},
    {sipName_ReferenceError, static_cast<int>(QScriptContext::ReferenceError), 8},
    {sipName_SyntaxError, static_cast<int>(QScriptContext::SyntaxError), 8},
    {sipName_TypeError, static_cast<int>(QScriptContext::TypeError), 8},
    {sipName_URIError, static_cast<int>(QScriptContext::URIError), 8},
    {sipName_UnknownError, static_cast<int>(QScriptContext::UnknownError), 8},
};


pyqt4ClassTypeDef sipTypeDef_QtScript_QScriptContext = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QScriptContext,
        {0}
    },
    {
        sipNameNr_QScriptContext,
        {0, 0, 1},
        16, methods_QScriptContext,
        8, enummembers_QScriptContext,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScriptContext,
    0,
    0,
    0,
    release_QScriptContext,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptclasspropertyiterator.sip"
#include <qscriptclasspropertyiterator.h>
#line 10661 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 10665 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 10668 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptstring.sip"
#include <qscriptstring.h>
#line 10671 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


class sipQScriptClassPropertyIterator : public QScriptClassPropertyIterator
{
public:
    sipQScriptClassPropertyIterator(const QScriptValue&);
    virtual ~sipQScriptClassPropertyIterator();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QScriptValue::PropertyFlags flags() const;
    uint id() const;
    QScriptString name() const;
    void toBack();
    void toFront();
    void previous();
    bool hasPrevious() const;
    void next();
    bool hasNext() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQScriptClassPropertyIterator(const sipQScriptClassPropertyIterator &);
    sipQScriptClassPropertyIterator &operator = (const sipQScriptClassPropertyIterator &);

    char sipPyMethods[9];
};

sipQScriptClassPropertyIterator::sipQScriptClassPropertyIterator(const QScriptValue& a0): QScriptClassPropertyIterator(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQScriptClassPropertyIterator::~sipQScriptClassPropertyIterator()
{
    sipCommonDtor(sipPySelf);
}

QScriptValue::PropertyFlags sipQScriptClassPropertyIterator::flags() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_flags);

    if (!sipMeth)
        return QScriptClassPropertyIterator::flags();

    extern QScriptValue::PropertyFlags sipVH_QtScript_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtScript_7(sipGILState, 0, sipPySelf, sipMeth);
}

uint sipQScriptClassPropertyIterator::id() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_id);

    if (!sipMeth)
        return QScriptClassPropertyIterator::id();

    extern uint sipVH_QtScript_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtScript_8(sipGILState, 0, sipPySelf, sipMeth);
}

QScriptString sipQScriptClassPropertyIterator::name() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,sipName_QScriptClassPropertyIterator,sipName_name);

    if (!sipMeth)
        return QScriptString();

    extern QScriptString sipVH_QtScript_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtScript_9(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQScriptClassPropertyIterator::toBack()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_QScriptClassPropertyIterator,sipName_toBack);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtScript_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQScriptClassPropertyIterator::toFront()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,sipName_QScriptClassPropertyIterator,sipName_toFront);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtScript_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQScriptClassPropertyIterator::previous()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,sipName_QScriptClassPropertyIterator,sipName_previous);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtScript_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQScriptClassPropertyIterator::hasPrevious() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,sipName_QScriptClassPropertyIterator,sipName_hasPrevious);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtScript_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQScriptClassPropertyIterator::next()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_QScriptClassPropertyIterator,sipName_next);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtScript_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQScriptClassPropertyIterator::hasNext() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,sipName_QScriptClassPropertyIterator,sipName_hasNext);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtScript_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}


PyDoc_STRVAR(doc_QScriptClassPropertyIterator_object, "object(self) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptClassPropertyIterator_object(PyObject *, PyObject *);}
static PyObject *meth_QScriptClassPropertyIterator_object(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptClassPropertyIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptClassPropertyIterator, &sipCpp))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue(sipCpp->object());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClassPropertyIterator, sipName_object, doc_QScriptClassPropertyIterator_object);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClassPropertyIterator_hasNext, "hasNext(self) -> bool");

extern "C" {static PyObject *meth_QScriptClassPropertyIterator_hasNext(PyObject *, PyObject *);}
static PyObject *meth_QScriptClassPropertyIterator_hasNext(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QScriptClassPropertyIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptClassPropertyIterator, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QScriptClassPropertyIterator, sipName_hasNext);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasNext();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClassPropertyIterator, sipName_hasNext, doc_QScriptClassPropertyIterator_hasNext);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClassPropertyIterator_next, "next(self)");

extern "C" {static PyObject *meth_QScriptClassPropertyIterator_next(PyObject *, PyObject *);}
static PyObject *meth_QScriptClassPropertyIterator_next(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QScriptClassPropertyIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptClassPropertyIterator, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QScriptClassPropertyIterator, sipName_next);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->next();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClassPropertyIterator, sipName_next, doc_QScriptClassPropertyIterator_next);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClassPropertyIterator_hasPrevious, "hasPrevious(self) -> bool");

extern "C" {static PyObject *meth_QScriptClassPropertyIterator_hasPrevious(PyObject *, PyObject *);}
static PyObject *meth_QScriptClassPropertyIterator_hasPrevious(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QScriptClassPropertyIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptClassPropertyIterator, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QScriptClassPropertyIterator, sipName_hasPrevious);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasPrevious();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClassPropertyIterator, sipName_hasPrevious, doc_QScriptClassPropertyIterator_hasPrevious);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClassPropertyIterator_previous, "previous(self)");

extern "C" {static PyObject *meth_QScriptClassPropertyIterator_previous(PyObject *, PyObject *);}
static PyObject *meth_QScriptClassPropertyIterator_previous(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QScriptClassPropertyIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptClassPropertyIterator, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QScriptClassPropertyIterator, sipName_previous);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->previous();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClassPropertyIterator, sipName_previous, doc_QScriptClassPropertyIterator_previous);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClassPropertyIterator_toFront, "toFront(self)");

extern "C" {static PyObject *meth_QScriptClassPropertyIterator_toFront(PyObject *, PyObject *);}
static PyObject *meth_QScriptClassPropertyIterator_toFront(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QScriptClassPropertyIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptClassPropertyIterator, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QScriptClassPropertyIterator, sipName_toFront);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->toFront();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClassPropertyIterator, sipName_toFront, doc_QScriptClassPropertyIterator_toFront);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClassPropertyIterator_toBack, "toBack(self)");

extern "C" {static PyObject *meth_QScriptClassPropertyIterator_toBack(PyObject *, PyObject *);}
static PyObject *meth_QScriptClassPropertyIterator_toBack(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QScriptClassPropertyIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptClassPropertyIterator, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QScriptClassPropertyIterator, sipName_toBack);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->toBack();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClassPropertyIterator, sipName_toBack, doc_QScriptClassPropertyIterator_toBack);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClassPropertyIterator_name, "name(self) -> QScriptString");

extern "C" {static PyObject *meth_QScriptClassPropertyIterator_name(PyObject *, PyObject *);}
static PyObject *meth_QScriptClassPropertyIterator_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QScriptClassPropertyIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptClassPropertyIterator, &sipCpp))
        {
            QScriptString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QScriptClassPropertyIterator, sipName_name);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptString(sipCpp->name());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClassPropertyIterator, sipName_name, doc_QScriptClassPropertyIterator_name);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClassPropertyIterator_id, "id(self) -> int");

extern "C" {static PyObject *meth_QScriptClassPropertyIterator_id(PyObject *, PyObject *);}
static PyObject *meth_QScriptClassPropertyIterator_id(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QScriptClassPropertyIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptClassPropertyIterator, &sipCpp))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QScriptClassPropertyIterator::id() : sipCpp->id());
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClassPropertyIterator, sipName_id, doc_QScriptClassPropertyIterator_id);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClassPropertyIterator_flags, "flags(self) -> QScriptValue.PropertyFlags");

extern "C" {static PyObject *meth_QScriptClassPropertyIterator_flags(PyObject *, PyObject *);}
static PyObject *meth_QScriptClassPropertyIterator_flags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QScriptClassPropertyIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptClassPropertyIterator, &sipCpp))
        {
            QScriptValue::PropertyFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue::PropertyFlags((sipSelfWasArg ? sipCpp->QScriptClassPropertyIterator::flags() : sipCpp->flags()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_PropertyFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClassPropertyIterator, sipName_flags, doc_QScriptClassPropertyIterator_flags);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScriptClassPropertyIterator(void *, int);}
static void release_QScriptClassPropertyIterator(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQScriptClassPropertyIterator *>(sipCppV);
    else
        delete reinterpret_cast<QScriptClassPropertyIterator *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QScriptClassPropertyIterator(sipSimpleWrapper *);}
static void dealloc_QScriptClassPropertyIterator(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQScriptClassPropertyIterator *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QScriptClassPropertyIterator(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QScriptClassPropertyIterator(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QScriptClassPropertyIterator(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQScriptClassPropertyIterator *sipCpp = 0;

    {
        const QScriptValue* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QScriptValue, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQScriptClassPropertyIterator(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QScriptClassPropertyIterator[] = {
    {SIP_MLNAME_CAST(sipName_flags), meth_QScriptClassPropertyIterator_flags, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClassPropertyIterator_flags)},
    {SIP_MLNAME_CAST(sipName_hasNext), meth_QScriptClassPropertyIterator_hasNext, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClassPropertyIterator_hasNext)},
    {SIP_MLNAME_CAST(sipName_hasPrevious), meth_QScriptClassPropertyIterator_hasPrevious, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClassPropertyIterator_hasPrevious)},
    {SIP_MLNAME_CAST(sipName_id), meth_QScriptClassPropertyIterator_id, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClassPropertyIterator_id)},
    {SIP_MLNAME_CAST(sipName_name), meth_QScriptClassPropertyIterator_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClassPropertyIterator_name)},
    {SIP_MLNAME_CAST(sipName_next), meth_QScriptClassPropertyIterator_next, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClassPropertyIterator_next)},
    {SIP_MLNAME_CAST(sipName_object), meth_QScriptClassPropertyIterator_object, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClassPropertyIterator_object)},
    {SIP_MLNAME_CAST(sipName_previous), meth_QScriptClassPropertyIterator_previous, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClassPropertyIterator_previous)},
    {SIP_MLNAME_CAST(sipName_toBack), meth_QScriptClassPropertyIterator_toBack, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClassPropertyIterator_toBack)},
    {SIP_MLNAME_CAST(sipName_toFront), meth_QScriptClassPropertyIterator_toFront, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClassPropertyIterator_toFront)}
};

PyDoc_STRVAR(doc_QScriptClassPropertyIterator, "\1QScriptClassPropertyIterator(QScriptValue)");


pyqt4ClassTypeDef sipTypeDef_QtScript_QScriptClassPropertyIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_QScriptClassPropertyIterator,
        {0}
    },
    {
        sipNameNr_QScriptClassPropertyIterator,
        {0, 0, 1},
        10, methods_QScriptClassPropertyIterator,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QScriptClassPropertyIterator,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QScriptClassPropertyIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScriptClassPropertyIterator,
    0,
    0,
    0,
    release_QScriptClassPropertyIterator,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptclass.sip"
#include <qscriptclass.h>
#line 11322 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptclass.sip"
#include <qscriptclass.h>
#line 11326 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


extern "C" {static int slot_QScriptClass_QueryFlags___bool__(PyObject *);}
static int slot_QScriptClass_QueryFlags___bool__(PyObject *sipSelf)
{
    QScriptClass::QueryFlags *sipCpp = reinterpret_cast<QScriptClass::QueryFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptClass_QueryFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 389 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QScriptClass::QueryFlags::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 11348 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QScriptClass_QueryFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_QScriptClass_QueryFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QScriptClass::QueryFlags *sipCpp = reinterpret_cast<QScriptClass::QueryFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptClass_QueryFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QScriptClass::QueryFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptClass_QueryFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 380 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QScriptClass::QueryFlags::Int() != a0->operator QScriptClass::QueryFlags::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 11382 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(const_cast<QScriptClass::QueryFlags *>(a0),sipType_QScriptClass_QueryFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,ne_slot,sipType_QScriptClass_QueryFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QScriptClass_QueryFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_QScriptClass_QueryFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QScriptClass::QueryFlags *sipCpp = reinterpret_cast<QScriptClass::QueryFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptClass_QueryFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QScriptClass::QueryFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptClass_QueryFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 371 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QScriptClass::QueryFlags::Int() == a0->operator QScriptClass::QueryFlags::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 11422 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(const_cast<QScriptClass::QueryFlags *>(a0),sipType_QScriptClass_QueryFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,eq_slot,sipType_QScriptClass_QueryFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QScriptClass_QueryFlags___invert__(PyObject *);}
static PyObject *slot_QScriptClass_QueryFlags___invert__(PyObject *sipSelf)
{
    QScriptClass::QueryFlags *sipCpp = reinterpret_cast<QScriptClass::QueryFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptClass_QueryFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QScriptClass::QueryFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptClass::QueryFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptClass_QueryFlags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QScriptClass_QueryFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_QScriptClass_QueryFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptClass::QueryFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QScriptClass_QueryFlags, &a0, &a0State, &a1))
        {
            QScriptClass::QueryFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptClass::QueryFlags((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptClass_QueryFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptClass_QueryFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QScriptClass_QueryFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QScriptClass_QueryFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptClass::QueryFlags* a0;
        int a0State = 0;
        QScriptClass::QueryFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QScriptClass_QueryFlags, &a0, &a0State, sipType_QScriptClass_QueryFlags, &a1, &a1State))
        {
            QScriptClass::QueryFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptClass::QueryFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptClass_QueryFlags,a0State);
            sipReleaseType(a1,sipType_QScriptClass_QueryFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptClass_QueryFlags,NULL);
        }
    }

    {
        QScriptClass::QueryFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QScriptClass_QueryFlags, &a0, &a0State, &a1))
        {
            QScriptClass::QueryFlags*sipRes = 0;

#line 365 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QScriptClass::QueryFlags(*a0 ^ a1);
#line 11531 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(a0,sipType_QScriptClass_QueryFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptClass_QueryFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QScriptClass_QueryFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QScriptClass_QueryFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QScriptClass::QueryFlags* a0;
        int a0State = 0;
        QScriptClass::QueryFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QScriptClass_QueryFlags, &a0, &a0State, sipType_QScriptClass_QueryFlags, &a1, &a1State))
        {
            QScriptClass::QueryFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptClass::QueryFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptClass_QueryFlags,a0State);
            sipReleaseType(a1,sipType_QScriptClass_QueryFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QScriptClass_QueryFlags,NULL);
        }
    }

    {
        QScriptClass::QueryFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QScriptClass_QueryFlags, &a0, &a0State, &a1))
        {
            QScriptClass::QueryFlags*sipRes = 0;

#line 360 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QScriptClass::QueryFlags(*a0 | a1);
#line 11583 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
            sipReleaseType(a0,sipType_QScriptClass_QueryFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QScriptClass_QueryFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtScript,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QScriptClass_QueryFlags___int__(PyObject *);}
static PyObject *slot_QScriptClass_QueryFlags___int__(PyObject *sipSelf)
{
    QScriptClass::QueryFlags *sipCpp = reinterpret_cast<QScriptClass::QueryFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptClass_QueryFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QScriptClass_QueryFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QScriptClass_QueryFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QScriptClass_QueryFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QScriptClass::QueryFlags *sipCpp = reinterpret_cast<QScriptClass::QueryFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptClass_QueryFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QScriptClass::QueryFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptClass_QueryFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QScriptClass::QueryFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptClass_QueryFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QScriptClass_QueryFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_QScriptClass_QueryFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QScriptClass_QueryFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QScriptClass::QueryFlags *sipCpp = reinterpret_cast<QScriptClass::QueryFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptClass_QueryFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QScriptClass::QueryFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QScriptClass_QueryFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QScriptClass::QueryFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QScriptClass_QueryFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QScriptClass_QueryFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_QScriptClass_QueryFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QScriptClass_QueryFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QScriptClass::QueryFlags *sipCpp = reinterpret_cast<QScriptClass::QueryFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QScriptClass_QueryFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QScriptClass::QueryFlags::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScriptClass_QueryFlags(void *, int);}
static void release_QScriptClass_QueryFlags(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QScriptClass::QueryFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QScriptClass_QueryFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_QScriptClass_QueryFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QScriptClass::QueryFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QScriptClass::QueryFlags *>(sipSrc);
}


extern "C" {static void *array_QScriptClass_QueryFlags(SIP_SSIZE_T);}
static void *array_QScriptClass_QueryFlags(SIP_SSIZE_T sipNrElem)
{
    return new QScriptClass::QueryFlags[sipNrElem];
}


extern "C" {static void *copy_QScriptClass_QueryFlags(const void *, SIP_SSIZE_T);}
static void *copy_QScriptClass_QueryFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QScriptClass::QueryFlags(reinterpret_cast<const QScriptClass::QueryFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QScriptClass_QueryFlags(sipSimpleWrapper *);}
static void dealloc_QScriptClass_QueryFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QScriptClass_QueryFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QScriptClass_QueryFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QScriptClass_QueryFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QScriptClass::QueryFlags *sipCpp = 0;

    {
        const QScriptClass::QueryFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QScriptClass_QueryFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptClass::QueryFlags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QScriptClass::QueryFlags *>(a0),sipType_QScriptClass_QueryFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptClass::QueryFlags(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QScriptClass::QueryFlags();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QScriptClass_QueryFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_QScriptClass_QueryFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QScriptClass::QueryFlags **sipCppPtr = reinterpret_cast<QScriptClass::QueryFlags **>(sipCppPtrV);

#line 398 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QScriptClass::QueryFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QScriptClass_QueryFlag)) ||
            sipCanConvertToType(sipPy, sipType_QScriptClass_QueryFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QScriptClass_QueryFlag)))
{
    *sipCppPtr = new QScriptClass::QueryFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QScriptClass::QueryFlags *>(sipConvertToType(sipPy, sipType_QScriptClass_QueryFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 11867 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QScriptClass_QueryFlags[] = {
    {(void *)slot_QScriptClass_QueryFlags___bool__, bool_slot},
    {(void *)slot_QScriptClass_QueryFlags___ne__, ne_slot},
    {(void *)slot_QScriptClass_QueryFlags___eq__, eq_slot},
    {(void *)slot_QScriptClass_QueryFlags___invert__, invert_slot},
    {(void *)slot_QScriptClass_QueryFlags___and__, and_slot},
    {(void *)slot_QScriptClass_QueryFlags___xor__, xor_slot},
    {(void *)slot_QScriptClass_QueryFlags___or__, or_slot},
    {(void *)slot_QScriptClass_QueryFlags___int__, int_slot},
    {(void *)slot_QScriptClass_QueryFlags___ixor__, ixor_slot},
    {(void *)slot_QScriptClass_QueryFlags___ior__, ior_slot},
    {(void *)slot_QScriptClass_QueryFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QScriptClass_QueryFlags, "\1QScriptClass.QueryFlags(QScriptClass.QueryFlags)\n"
    "QScriptClass.QueryFlags(int)\n"
    "QScriptClass.QueryFlags()");


pyqt4ClassTypeDef sipTypeDef_QtScript_QScriptClass_QueryFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QScriptClass__QueryFlags,
        {0}
    },
    {
        sipNameNr_QueryFlags,
        {2, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QScriptClass_QueryFlags,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QScriptClass_QueryFlags,
    init_type_QScriptClass_QueryFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScriptClass_QueryFlags,
    assign_QScriptClass_QueryFlags,
    array_QScriptClass_QueryFlags,
    copy_QScriptClass_QueryFlags,
    release_QScriptClass_QueryFlags,
    0,
    convertTo_QScriptClass_QueryFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptclass.sip"
#include <qscriptclass.h>
#line 11948 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptengine.sip"
#include <qscriptengine.h>
#line 11952 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 269 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11955 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 11958 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 11961 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptclasspropertyiterator.sip"
#include <qscriptclasspropertyiterator.h>
#line 11964 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptvalue.sip"
#include <qscriptvalue.h>
#line 11967 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptstring.sip"
#include <qscriptstring.h>
#line 11970 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/sip/QtScript/qscriptclass.sip"
#include <qscriptclass.h>
#line 11973 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-2.x86_64/build/QtScript/sipQtScriptpart0.cpp"


class sipQScriptClass : public QScriptClass
{
public:
    sipQScriptClass(QScriptEngine*);
    virtual ~sipQScriptClass();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QVariant extension(QScriptClass::Extension,const QVariant&);
    bool supportsExtension(QScriptClass::Extension) const;
    QString name() const;
    QScriptValue prototype() const;
    QScriptClassPropertyIterator* newIterator(const QScriptValue&);
    QScriptValue::PropertyFlags propertyFlags(const QScriptValue&,const QScriptString&,uint);
    void setProperty(QScriptValue&,const QScriptString&,uint,const QScriptValue&);
    QScriptValue property(const QScriptValue&,const QScriptString&,uint);
    QScriptClass::QueryFlags queryProperty(const QScriptValue&,const QScriptString&,QScriptClass::QueryFlags,uint*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQScriptClass(const sipQScriptClass &);
    sipQScriptClass &operator = (const sipQScriptClass &);

    char sipPyMethods[9];
};

sipQScriptClass::sipQScriptClass(QScriptEngine*a0): QScriptClass(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQScriptClass::~sipQScriptClass()
{
    sipCommonDtor(sipPySelf);
}

QVariant sipQScriptClass::extension(QScriptClass::Extension a0,const QVariant& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_extension);

    if (!sipMeth)
        return QScriptClass::extension(a0,a1);

    extern QVariant sipVH_QtScript_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QScriptClass::Extension,const QVariant&);

    return sipVH_QtScript_10(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQScriptClass::supportsExtension(QScriptClass::Extension a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_supportsExtension);

    if (!sipMeth)
        return QScriptClass::supportsExtension(a0);

    extern bool sipVH_QtScript_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QScriptClass::Extension);

    return sipVH_QtScript_11(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QString sipQScriptClass::name() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_name);

    if (!sipMeth)
        return QScriptClass::name();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_QtScript_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

QScriptValue sipQScriptClass::prototype() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_prototype);

    if (!sipMeth)
        return QScriptClass::prototype();

    extern QScriptValue sipVH_QtScript_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtScript_12(sipGILState, 0, sipPySelf, sipMeth);
}

QScriptClassPropertyIterator* sipQScriptClass::newIterator(const QScriptValue& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_newIterator);

    if (!sipMeth)
        return QScriptClass::newIterator(a0);

    extern QScriptClassPropertyIterator* sipVH_QtScript_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QScriptValue&);

    return sipVH_QtScript_13(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QScriptValue::PropertyFlags sipQScriptClass::propertyFlags(const QScriptValue& a0,const QScriptString& a1,uint a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_propertyFlags);

    if (!sipMeth)
        return QScriptClass::propertyFlags(a0,a1,a2);

    extern QScriptValue::PropertyFlags sipVH_QtScript_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QScriptValue&,const QScriptString&,uint);

    return sipVH_QtScript_14(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipQScriptClass::setProperty(QScriptValue& a0,const QScriptString& a1,uint a2,const QScriptValue& a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_setProperty);

    if (!sipMeth)
    {
        QScriptClass::setProperty(a0,a1,a2,a3);
        return;
    }

    extern void sipVH_QtScript_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QScriptValue&,const QScriptString&,uint,const QScriptValue&);

    sipVH_QtScript_15(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}

QScriptValue sipQScriptClass::property(const QScriptValue& a0,const QScriptString& a1,uint a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_property);

    if (!sipMeth)
        return QScriptClass::property(a0,a1,a2);

    extern QScriptValue sipVH_QtScript_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QScriptValue&,const QScriptString&,uint);

    return sipVH_QtScript_16(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

QScriptClass::QueryFlags sipQScriptClass::queryProperty(const QScriptValue& a0,const QScriptString& a1,QScriptClass::QueryFlags a2,uint*a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_queryProperty);

    if (!sipMeth)
        return QScriptClass::queryProperty(a0,a1,a2,a3);

    extern QScriptClass::QueryFlags sipVH_QtScript_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QScriptValue&,const QScriptString&,QScriptClass::QueryFlags,uint*);

    return sipVH_QtScript_17(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}


PyDoc_STRVAR(doc_QScriptClass_engine, "engine(self) -> QScriptEngine");

extern "C" {static PyObject *meth_QScriptClass_engine(PyObject *, PyObject *);}
static PyObject *meth_QScriptClass_engine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScriptClass *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptClass, &sipCpp))
        {
            QScriptEngine*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->engine();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QScriptEngine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClass, sipName_engine, doc_QScriptClass_engine);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClass_queryProperty, "queryProperty(self, QScriptValue, QScriptString, QScriptClass.QueryFlags) -> Tuple[QScriptClass.QueryFlags, int]");

extern "C" {static PyObject *meth_QScriptClass_queryProperty(PyObject *, PyObject *);}
static PyObject *meth_QScriptClass_queryProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QScriptValue* a0;
        const QScriptString* a1;
        QScriptClass::QueryFlags* a2;
        int a2State = 0;
        uint a3;
        QScriptClass *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J1", &sipSelf, sipType_QScriptClass, &sipCpp, sipType_QScriptValue, &a0, sipType_QScriptString, &a1, sipType_QScriptClass_QueryFlags, &a2, &a2State))
        {
            QScriptClass::QueryFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptClass::QueryFlags((sipSelfWasArg ? sipCpp->QScriptClass::queryProperty(*a0,*a1,*a2,&a3) : sipCpp->queryProperty(*a0,*a1,*a2,&a3)));
            Py_END_ALLOW_THREADS
            sipReleaseType(a2,sipType_QScriptClass_QueryFlags,a2State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QScriptClass_QueryFlags,NULL);
            return sipBuildResult(0,"(Ru)",sipResObj,a3);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClass, sipName_queryProperty, doc_QScriptClass_queryProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClass_property, "property(self, QScriptValue, QScriptString, int) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptClass_property(PyObject *, PyObject *);}
static PyObject *meth_QScriptClass_property(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QScriptValue* a0;
        const QScriptString* a1;
        uint a2;
        QScriptClass *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9u", &sipSelf, sipType_QScriptClass, &sipCpp, sipType_QScriptValue, &a0, sipType_QScriptString, &a1, &a2))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue((sipSelfWasArg ? sipCpp->QScriptClass::property(*a0,*a1,a2) : sipCpp->property(*a0,*a1,a2)));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClass, sipName_property, doc_QScriptClass_property);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClass_setProperty, "setProperty(self, QScriptValue, QScriptString, int, QScriptValue)");

extern "C" {static PyObject *meth_QScriptClass_setProperty(PyObject *, PyObject *);}
static PyObject *meth_QScriptClass_setProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QScriptValue* a0;
        const QScriptString* a1;
        uint a2;
        const QScriptValue* a3;
        QScriptClass *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9uJ9", &sipSelf, sipType_QScriptClass, &sipCpp, sipType_QScriptValue, &a0, sipType_QScriptString, &a1, &a2, sipType_QScriptValue, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QScriptClass::setProperty(*a0,*a1,a2,*a3) : sipCpp->setProperty(*a0,*a1,a2,*a3));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClass, sipName_setProperty, doc_QScriptClass_setProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClass_propertyFlags, "propertyFlags(self, QScriptValue, QScriptString, int) -> QScriptValue.PropertyFlags");

extern "C" {static PyObject *meth_QScriptClass_propertyFlags(PyObject *, PyObject *);}
static PyObject *meth_QScriptClass_propertyFlags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QScriptValue* a0;
        const QScriptString* a1;
        uint a2;
        QScriptClass *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9u", &sipSelf, sipType_QScriptClass, &sipCpp, sipType_QScriptValue, &a0, sipType_QScriptString, &a1, &a2))
        {
            QScriptValue::PropertyFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue::PropertyFlags((sipSelfWasArg ? sipCpp->QScriptClass::propertyFlags(*a0,*a1,a2) : sipCpp->propertyFlags(*a0,*a1,a2)));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue_PropertyFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClass, sipName_propertyFlags, doc_QScriptClass_propertyFlags);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClass_newIterator, "newIterator(self, QScriptValue) -> QScriptClassPropertyIterator");

extern "C" {static PyObject *meth_QScriptClass_newIterator(PyObject *, PyObject *);}
static PyObject *meth_QScriptClass_newIterator(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QScriptValue* a0;
        QScriptClass *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScriptClass, &sipCpp, sipType_QScriptValue, &a0))
        {
            QScriptClassPropertyIterator*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QScriptClass::newIterator(*a0) : sipCpp->newIterator(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QScriptClassPropertyIterator,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClass, sipName_newIterator, doc_QScriptClass_newIterator);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClass_prototype, "prototype(self) -> QScriptValue");

extern "C" {static PyObject *meth_QScriptClass_prototype(PyObject *, PyObject *);}
static PyObject *meth_QScriptClass_prototype(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QScriptClass *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptClass, &sipCpp))
        {
            QScriptValue*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QScriptValue((sipSelfWasArg ? sipCpp->QScriptClass::prototype() : sipCpp->prototype()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QScriptValue,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClass, sipName_prototype, doc_QScriptClass_prototype);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClass_name, "name(self) -> object");

extern "C" {static PyObject *meth_QScriptClass_name(PyObject *, PyObject *);}
static PyObject *meth_QScriptClass_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QScriptClass *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScriptClass, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->QScriptClass::name() : sipCpp->name()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClass, sipName_name, doc_QScriptClass_name);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClass_supportsExtension, "supportsExtension(self, QScriptClass.Extension) -> bool");

extern "C" {static PyObject *meth_QScriptClass_supportsExtension(PyObject *, PyObject *);}
static PyObject *meth_QScriptClass_supportsExtension(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QScriptClass::Extension a0;
        const QScriptClass *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QScriptClass, &sipCpp, sipType_QScriptClass_Extension, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QScriptClass::supportsExtension(a0) : sipCpp->supportsExtension(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClass, sipName_supportsExtension, doc_QScriptClass_supportsExtension);

    return NULL;
}


PyDoc_STRVAR(doc_QScriptClass_extension, "extension(self, QScriptClass.Extension, argument: object = None) -> object");

extern "C" {static PyObject *meth_QScriptClass_extension(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScriptClass_extension(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QScriptClass::Extension a0;
        const QVariant& a1def = QVariant();
        const QVariant* a1 = &a1def;
        int a1State = 0;
        QScriptClass *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_argument,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BE|J1", &sipSelf, sipType_QScriptClass, &sipCpp, sipType_QScriptClass_Extension, &a0, sipType_QVariant,&a1, &a1State))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant((sipSelfWasArg ? sipCpp->QScriptClass::extension(a0,*a1) : sipCpp->extension(a0,*a1)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScriptClass, sipName_extension, doc_QScriptClass_extension);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScriptClass(void *, int);}
static void release_QScriptClass(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQScriptClass *>(sipCppV);
    else
        delete reinterpret_cast<QScriptClass *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QScriptClass(sipSimpleWrapper *);}
static void dealloc_QScriptClass(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQScriptClass *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QScriptClass(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QScriptClass(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QScriptClass(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQScriptClass *sipCpp = 0;

    {
        QScriptEngine* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QScriptEngine, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQScriptClass(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QScriptClass[] = {
    {SIP_MLNAME_CAST(sipName_engine), meth_QScriptClass_engine, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClass_engine)},
    {SIP_MLNAME_CAST(sipName_extension), (PyCFunction)meth_QScriptClass_extension, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScriptClass_extension)},
    {SIP_MLNAME_CAST(sipName_name), meth_QScriptClass_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClass_name)},
    {SIP_MLNAME_CAST(sipName_newIterator), meth_QScriptClass_newIterator, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClass_newIterator)},
    {SIP_MLNAME_CAST(sipName_property), meth_QScriptClass_property, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClass_property)},
    {SIP_MLNAME_CAST(sipName_propertyFlags), meth_QScriptClass_propertyFlags, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClass_propertyFlags)},
    {SIP_MLNAME_CAST(sipName_prototype), meth_QScriptClass_prototype, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClass_prototype)},
    {SIP_MLNAME_CAST(sipName_queryProperty), meth_QScriptClass_queryProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClass_queryProperty)},
    {SIP_MLNAME_CAST(sipName_setProperty), meth_QScriptClass_setProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClass_setProperty)},
    {SIP_MLNAME_CAST(sipName_supportsExtension), meth_QScriptClass_supportsExtension, METH_VARARGS, SIP_MLDOC_CAST(doc_QScriptClass_supportsExtension)}
};

static sipEnumMemberDef enummembers_QScriptClass[] = {
    {sipName_Callable, static_cast<int>(QScriptClass::Callable), 3},
    {sipName_HandlesReadAccess, static_cast<int>(QScriptClass::HandlesReadAccess), 4},
    {sipName_HandlesWriteAccess, static_cast<int>(QScriptClass::HandlesWriteAccess), 4},
    {sipName_HasInstance, static_cast<int>(QScriptClass::HasInstance), 3},
};

PyDoc_STRVAR(doc_QScriptClass, "\1QScriptClass(QScriptEngine)");


pyqt4ClassTypeDef sipTypeDef_QtScript_QScriptClass = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QScriptClass,
        {0}
    },
    {
        sipNameNr_QScriptClass,
        {0, 0, 1},
        10, methods_QScriptClass,
        4, enummembers_QScriptClass,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QScriptClass,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QScriptClass,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScriptClass,
    0,
    0,
    0,
    release_QScriptClass,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
