/*
 * Module code.
 *
 * Generated by SIP 4.16.7
 *
 * Copyright (c) 2014 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt.
 * 
 * This file may be used under the terms of the GNU General Public
 * License versions 2.0 or 3.0 as published by the Free Software
 * Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
 * included in the packaging of this file.  Alternatively you may (at
 * your option) use any later version of the GNU General Public
 * License if such license has been publicly approved by Riverbank
 * Computing Limited (or its successors, if any) and the KDE Free Qt
 * Foundation. In addition, as a special exception, Riverbank gives you
 * certain additional rights. These rights are described in the Riverbank
 * GPL Exception version 1.1, which can be found in the file
 * GPL_EXCEPTION.txt in this package.
 * 
 * If you are unsure which license is appropriate for your use, please
 * contact the sales department at sales@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 "sipAPIQtNetwork.h"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 406 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qtcpsocket.sip"
#include <qtcpsocket.h>
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 46 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 128 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 49 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 52 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 148 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qabstractnetworkcache.h>
#line 55 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 107 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 58 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 61 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkcookie.sip"
#include <qnetworkcookie.h>
#line 64 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkreply.sip"
#include <qnetworkreply.h>
#line 67 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkaccessmanager.sip"
#include <qnetworkaccessmanager.h>
#line 70 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkrequest.sip"
#include <qnetworkrequest.h>
#line 73 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 455 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 76 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qlocalsocket.sip"
#include <qlocalsocket.h>
#line 79 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 82 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 85 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 88 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 91 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostinfo.sip"
#include <qhostinfo.h>
#line 94 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 74 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 97 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 99 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 100 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhttpmultipart.sip"
#include <qhttpmultipart.h>
#line 103 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 39 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfigmanager.sip"
#include <qnetworkconfigmanager.h>
#line 106 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 109 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 112 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 39 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 115 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 75 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 118 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 75 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 121 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 124 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 127 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 130 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslconfiguration.sip"
#include <qsslconfiguration.h>
#line 133 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslcipher.sip"
#include <qsslcipher.h>
#line 136 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 139 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslkey.sip"
#include <qsslkey.h>
#line 142 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qudpsocket.sip"
#include <qudpsocket.h>
#line 145 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qurlinfo.sip"
#include <qurlinfo.h>
#line 148 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

/* Define the strings used by this module. */
const char sipStrings_QtNetwork[] = {
    'Q', 'M', 'u', 'l', 't', 'i', 'M', 'a', 'p', '<', 'Q', 'S', 's', 'l', ':', ':', 'A', 'l', 't', 'e', 'r', 'n', 'a', 't', 'e', 'N', 'a', 'm', 'e', 'E', 'n', 't', 'r', 'y', 'T', 'y', 'p', 'e', ',', 'Q', 'S', 't', 'r', 'i', 'n', 'g', '>', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'A', 'c', 'c', 'e', 's', 's', 'M', 'a', 'n', 'a', 'g', 'e', 'r', ':', ':', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'A', 'c', 'c', 'e', 's', 's', 'i', 'b', 'i', 'l', 'i', 't', 'y', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 'M', 'a', 'n', 'a', 'g', 'e', 'r', ':', ':', 'C', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'i', 'e', 's', 0,
    'Q', 'H', 'a', 's', 'h', '<', 'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'R', 'e', 'q', 'u', 'e', 's', 't', ':', ':', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', ',', 'Q', 'V', 'a', 'r', 'i', 'a', 'n', 't', '>', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 'M', 'a', 'n', 'a', 'g', 'e', 'r', ':', ':', 'C', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'y', 0,
    'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'S', 'o', 'c', 'k', 'e', 't', ':', ':', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'L', 'a', 'y', 'e', 'r', 'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', 0,
    'S', 's', 'l', 'O', 'p', 't', 'i', 'o', 'n', 'D', 'i', 's', 'a', 'b', 'l', 'e', 'S', 'e', 'r', 'v', 'e', 'r', 'N', 'a', 'm', 'e', 'I', 'n', 'd', 'i', 'c', 'a', 't', 'i', 'o', 'n', 0,
    'A', 'u', 't', 'h', 'o', 'r', 'i', 't', 'y', 'I', 's', 's', 'u', 'e', 'r', 'S', 'e', 'r', 'i', 'a', 'l', 'N', 'u', 'm', 'b', 'e', 'r', 'M', 'i', 's', 'm', 'a', 't', 'c', 'h', 0,
    'U', 'n', 'a', 'b', 'l', 'e', 'T', 'o', 'D', 'e', 'c', 'r', 'y', 'p', 't', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 'S', 'i', 'g', 'n', 'a', 't', 'u', 'r', 'e', 0,
    'S', 's', 'l', 'O', 'p', 't', 'i', 'o', 'n', 'D', 'i', 's', 'a', 'b', 'l', 'e', 'L', 'e', 'g', 'a', 'c', 'y', 'R', 'e', 'n', 'e', 'g', 'o', 't', 'i', 'a', 't', 'i', 'o', 'n', 0,
    'U', 'n', 'a', 'b', 'l', 'e', 'T', 'o', 'G', 'e', 't', 'L', 'o', 'c', 'a', 'l', 'I', 's', 's', 'u', 'e', 'r', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'R', 'e', 'q', 'u', 'e', 's', 't', ':', ':', 'C', 'a', 'c', 'h', 'e', 'L', 'o', 'a', 'd', 'C', 'o', 'n', 't', 'r', 'o', 'l', 0,
    'C', 'o', 'n', 't', 'e', 'n', 't', 'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 'N', 'o', 't', 'P', 'e', 'r', 'm', 'i', 't', 't', 'e', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', ':', ':', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 'F', 'l', 'a', 'g', 's', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', ':', ':', 'B', 'e', 'a', 'r', 'e', 'r', 'T', 'y', 'p', 'e', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', ':', ':', 'S', 't', 'a', 't', 'e', 'F', 'l', 'a', 'g', 's', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', ':', ':', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 'F', 'l', 'a', 'g', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', ':', ':', 'S', 't', 'a', 't', 'e', 'F', 'l', 'a', 'g', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'A', 'c', 'c', 'e', 's', 's', 'M', 'a', 'n', 'a', 'g', 'e', 'r', ':', ':', 'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'd', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'F', 'r', 'o', 'm', 'H', 'o', 's', 't', 'I', 'm', 'p', 'l', 'e', 'm', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 0,
    'P', 'r', 'o', 'x', 'y', 'A', 'u', 't', 'h', 'e', 'n', 't', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'R', 'e', 'q', 'u', 'i', 'r', 'e', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'U', 'n', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'S', 'o', 'c', 'k', 'e', 't', 'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 'E', 'r', 'r', 'o', 'r', 0,
    'U', 'n', 'a', 'b', 'l', 'e', 'T', 'o', 'V', 'e', 'r', 'i', 'f', 'y', 'F', 'i', 'r', 's', 't', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 0,
    'S', 's', 'l', 'O', 'p', 't', 'i', 'o', 'n', 'D', 'i', 's', 'a', 'b', 'l', 'e', 'S', 'e', 's', 's', 'i', 'o', 'n', 'T', 'i', 'c', 'k', 'e', 't', 's', 0,
    'S', 's', 'l', 'O', 'p', 't', 'i', 'o', 'n', 'D', 'i', 's', 'a', 'b', 'l', 'e', 'E', 'm', 'p', 't', 'y', 'F', 'r', 'a', 'g', 'm', 'e', 'n', 't', 's', 0,
    'H', 't', 't', 'p', 'P', 'i', 'p', 'e', 'l', 'i', 'n', 'i', 'n', 'g', 'W', 'a', 's', 'U', 's', 'e', 'd', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    'H', 't', 't', 'p', 'P', 'i', 'p', 'e', 'l', 'i', 'n', 'i', 'n', 'g', 'A', 'l', 'l', 'o', 'w', 'e', 'd', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    'D', 'o', 'N', 'o', 't', 'B', 'u', 'f', 'f', 'e', 'r', 'U', 'p', 'l', 'o', 'a', 'd', 'D', 'a', 't', 'a', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', ':', ':', 'P', 'u', 'r', 'p', 'o', 's', 'e', 0,
    'Q', 'L', 'o', 'c', 'a', 'l', 'S', 'o', 'c', 'k', 'e', 't', ':', ':', 'L', 'o', 'c', 'a', 'l', 'S', 'o', 'c', 'k', 'e', 't', 'S', 't', 'a', 't', 'e', 0,
    'Q', 'L', 'o', 'c', 'a', 'l', 'S', 'o', 'c', 'k', 'e', 't', ':', ':', 'L', 'o', 'c', 'a', 'l', 'S', 'o', 'c', 'k', 'e', 't', 'E', 'r', 'r', 'o', 'r', 0,
    'U', 'n', 'f', 'i', 'n', 'i', 's', 'h', 'e', 'd', 'S', 'o', 'c', 'k', 'e', 't', 'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 'E', 'r', 'r', 'o', 'r', 0,
    'S', 'o', 'c', 'k', 'e', 't', 'A', 'd', 'd', 'r', 'e', 's', 's', 'N', 'o', 't', 'A', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 'E', 'r', 'r', 'o', 'r', 0,
    'U', 'n', 'a', 'b', 'l', 'e', 'T', 'o', 'D', 'e', 'c', 'o', 'd', 'e', 'I', 's', 's', 'u', 'e', 'r', 'P', 'u', 'b', 'l', 'i', 'c', 'K', 'e', 'y', 0,
    'p', 'r', 'e', 'f', 'e', 'r', 'r', 'e', 'd', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'S', 'e', 's', 's', 'i', 'o', 'n', ':', ':', 'S', 'e', 's', 's', 'i', 'o', 'n', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'R', 'e', 'q', 'u', 'e', 's', 't', ':', ':', 'K', 'n', 'o', 'w', 'n', 'H', 'e', 'a', 'd', 'e', 'r', 's', 0,
    'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', 'I', 'n', 'v', 'a', 'l', 'i', 'd', 'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'P', 'r', 'o', 'x', 'y', 'Q', 'u', 'e', 'r', 'y', ':', ':', 'Q', 'u', 'e', 'r', 'y', 'T', 'y', 'p', 'e', 0,
    'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'S', 'o', 'c', 'k', 'e', 't', ':', ':', 'S', 'o', 'c', 'k', 'e', 't', 'O', 'p', 't', 'i', 'o', 'n', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', '>', 0,
    'S', 'e', 'l', 'f', 'S', 'i', 'g', 'n', 'e', 'd', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 'I', 'n', 'C', 'h', 'a', 'i', 'n', 0,
    'U', 'n', 'a', 'b', 'l', 'e', 'T', 'o', 'G', 'e', 't', 'I', 's', 's', 'u', 'e', 'r', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 0,
    'Q', 'S', 's', 'l', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', ':', ':', 'S', 'u', 'b', 'j', 'e', 'c', 't', 'I', 'n', 'f', 'o', 0,
    'Q', 'S', 's', 'l', ':', ':', 'A', 'l', 't', 'e', 'r', 'n', 'a', 't', 'e', 'N', 'a', 'm', 'e', 'E', 'n', 't', 'r', 'y', 'T', 'y', 'p', 'e', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'R', 'e', 'q', 'u', 'e', 's', 't', ':', ':', 'L', 'o', 'a', 'd', 'C', 'o', 'n', 't', 'r', 'o', 'l', 0,
    'A', 'u', 't', 'h', 'e', 'n', 't', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'R', 'e', 'u', 's', 'e', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'E', 'n', 'c', 'r', 'y', 'p', 't', 'e', 'd', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    'T', 'e', 'm', 'p', 'o', 'r', 'a', 'r', 'y', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'F', 'a', 'i', 'l', 'u', 'r', 'e', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 'M', 'a', 'n', 'a', 'g', 'e', 'r', 0,
    'Q', 'H', 'o', 's', 't', 'A', 'd', 'd', 'r', 'e', 's', 's', ':', ':', 'S', 'p', 'e', 'c', 'i', 'a', 'l', 'A', 'd', 'd', 'r', 'e', 's', 's', 0,
    'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'S', 'o', 'c', 'k', 'e', 't', ':', ':', 'S', 'o', 'c', 'k', 'e', 't', 'S', 't', 'a', 't', 'e', 0,
    'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'S', 'o', 'c', 'k', 'e', 't', ':', ':', 'S', 'o', 'c', 'k', 'e', 't', 'E', 'r', 'r', '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', 'L', 'i', 's', 't', '<', 'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'A', 'd', 'd', 'r', 'e', 's', 's', 'E', 'n', 't', 'r', 'y', '>', 0,
    'S', 's', 'l', 'O', 'p', 't', 'i', 'o', 'n', 'D', 'i', 's', 'a', 'b', 'l', 'e', 'C', 'o', 'm', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'R', 'e', 'p', 'l', 'y', ':', ':', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'P', 'r', 'o', 'x', 'y', ':', ':', 'C', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'i', 'e', 's', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', ':', ':', 'T', 'y', 'p', 'e', 0,
    'c', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 'F', 'r', 'o', 'm', 'I', 'd', 'e', 'n', 't', 'i', 'f', 'i', 'e', 'r', 0,
    'Q', 'H', 't', 't', 'p', 'M', 'u', 'l', 't', 'i', 'P', 'a', 'r', 't', ':', ':', 'C', 'o', 'n', 't', 'e', 'n', 't', 'T', 'y', 'p', 'e', 0,
    'c', 'o', 'n', 'n', 'e', 'c', 't', 'T', 'o', 'H', 'o', 's', 't', 'I', 'm', 'p', 'l', 'e', 'm', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 0,
    'p', 'r', 'o', 'x', 'y', 'A', 'u', 't', 'h', 'e', 'n', 't', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'R', 'e', 'q', 'u', 'i', 'r', 'e', 'd', 0,
    'P', 'r', 'o', 'x', 'y', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'T', 'i', 'm', 'e', 'o', 'u', 't', 'E', 'r', 'r', 'o', 'r', 0,
    'P', 'r', 'o', 'x', 'y', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'R', 'e', 'f', 'u', 's', 'e', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'L', 'a', 'y', 'e', 'r', 'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', 0,
    'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'S', 'o', 'c', 'k', 'e', 't', ':', ':', 'S', 'o', 'c', 'k', 'e', 't', 'T', 'y', 'p', 'e', 0,
    'Q', 'S', 's', 'l', 'S', 'o', 'c', 'k', 'e', 't', ':', ':', 'P', 'e', 'e', 'r', 'V', 'e', 'r', 'i', 'f', 'y', 'M', 'o', 'd', 'e', 0,
    'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 'S', 'i', 'g', 'n', 'a', 't', 'u', 'r', 'e', 'F', 'a', 'i', 'l', 'e', 'd', 0,
    'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 'N', 'o', 't', 'S', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'C', 'o', 'o', 'k', 'i', 'e', 'S', 'a', 'v', 'e', 'C', 'o', 'n', 't', 'r', 'o', 'l', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    'C', 'o', 'o', 'k', 'i', 'e', 'L', 'o', 'a', 'd', 'C', 'o', 'n', 't', 'r', 'o', 'l', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    'S', 'o', 'u', 'r', 'c', 'e', 'I', 's', 'F', 'r', 'o', 'm', 'C', 'a', 'c', 'h', 'e', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    'R', 'e', 'd', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 'T', 'a', 'r', 'g', 'e', 't', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'R', 'e', 'q', 'u', 'e', 's', 't', ':', ':', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    's', 'e', 't', 'A', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'P', 'r', 'o', 'x', 'y', 'F', 'a', 'c', 't', 'o', 'r', 'y', 0,
    'P', 'r', 'o', 'x', 'y', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'C', 'l', 'o', 's', 'e', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'n', 'e', 'w', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 'A', 'c', 't', 'i', 'v', 'a', 't', 'e', 'd', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'R', 'e', 'q', 'u', 'e', 's', 't', ':', ':', 'P', 'r', 'i', 'o', 'r', 'i', 't', 'y', 0,
    'C', 'a', 'c', 'h', 'e', 'S', 'a', 'v', 'e', 'C', 'o', 'n', 't', 'r', 'o', 'l', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    'C', 'a', 'c', 'h', 'e', 'L', 'o', 'a', 'd', 'C', 'o', 'n', 't', 'r', 'o', 'l', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    'H', 't', 't', 'p', 'R', 'e', 'a', 's', 'o', 'n', 'P', 'h', 'r', 'a', 's', 'e', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    's', 'e', 't', 'U', 's', 'e', 'S', 'y', 's', 't', 'e', 'm', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'P', 'r', 'o', 'x', 'y', ':', ':', 'C', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'y', 0,
    'C', 'a', 'n', 'S', 't', 'a', 'r', 't', 'A', 'n', 'd', 'S', 't', 'o', 'p', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 's', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', '>', 0,
    'Q', 'U', 'r', 'l', 'I', 'n', 'f', 'o', ':', ':', 'P', 'e', 'r', 'm', 'i', 's', 's', 'i', 'o', 'n', 'S', 'p', 'e', 'c', 0,
    's', 'e', 't', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'C', 'a', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 's', 0,
    'a', 'd', 'd', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'C', 'a', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 's', 0,
    'C', 'o', 'n', 't', 'e', 'n', 't', 'D', 'i', 's', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'H', 'e', 'a', 'd', 'e', 'r', 0,
    'H', 'o', 's', 't', 'N', 'a', 'm', 'e', 'L', 'o', 'o', 'k', 'u', 'p', 'C', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'y', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'P', 'r', 'o', 'x', 'y', ':', ':', 'P', 'r', 'o', 'x', 'y', 'T', 'y', 'p', 'e', 0,
    'n', 'e', 't', 'w', 'o', 'r', 'k', 'A', 'c', 'c', 'e', 's', 's', 'i', 'b', 'l', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'M', 'a', 'x', 'P', 'e', 'n', 'd', 'i', 'n', 'g', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 's', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    'Q', 'H', 'o', 's', 't', 'I', 'n', 'f', 'o', ':', ':', 'H', 'o', 's', 't', 'I', 'n', 'f', 'o', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'P', 'a', 'i', 'r', '<', 'Q', 'H', 'o', 's', 't', 'A', 'd', 'd', 'r', 'e', 's', 's', ',', 'i', 'n', 't', '>', 0,
    'e', 'n', 'c', 'r', 'y', 'p', 't', 'e', 'd', 'B', 'y', 't', 'e', 's', 'A', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0,
    'a', 'd', 'd', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'C', 'a', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 0,
    's', 'e', 't', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'H', 't', 't', 'p', 'S', 't', 'a', 't', 'u', 's', 'C', 'o', 'd', 'e', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    's', 'e', 't', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'o', 'k', 'i', 'e', ':', ':', 'R', 'a', 'w', 'F', 'o', 'r', 'm', 0,
    'A', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'L', 'e', 'v', 'e', 'l', 'R', 'o', 'a', 'm', 'i', 'n', 'g', 0,
    'D', 'i', 'r', 'e', 'c', 't', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'R', 'o', 'u', 't', 'i', 'n', 'g', 0,
    'M', 'u', 'l', 't', 'i', 'c', 'a', 's', 't', 'L', 'o', 'o', 'p', 'b', 'a', 'c', 'k', 'O', 'p', 't', 'i', 'o', 'n', 0,
    'S', 's', 'l', 'H', 'a', 'n', 'd', 's', 'h', 'a', 'k', 'e', 'F', 'a', 'i', 'l', 'e', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'S', 's', 'l', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', '>', 0,
    'c', 'o', 'n', 'n', 'e', 'c', 't', 'T', 'o', 'H', 'o', 's', 't', 'E', 'n', 'c', 'r', 'y', 'p', 't', 'e', 'd', 0,
    'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 'B', 'l', 'a', 'c', 'k', 'l', 'i', 's', 't', 'e', 'd', 0,
    'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 'N', 'o', 't', 'Y', 'e', 't', 'V', 'a', 'l', 'i', 'd', 0,
    'O', 'r', 'g', 'a', 'n', 'i', 'z', 'a', 't', 'i', 'o', 'n', 'a', 'l', 'U', 'n', 'i', 't', 'N', 'a', 'm', 'e', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'S', 'e', 's', 's', 'i', 'o', 'n', ':', ':', 'S', 't', 'a', 't', 'e', 0,
    'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 'C', 'a', 'n', 'c', 'e', 'l', 'e', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'U', 'd', 'p', 'T', 'u', 'n', 'n', 'e', 'l', 'i', 'n', 'g', 'C', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'y', 0,
    'S', 'e', 'r', 'v', 'i', 'c', 'e', 'S', 'p', 'e', 'c', 'i', 'f', 'i', 'c', 'P', 'u', 'r', 'p', 'o', 's', 'e', 0,
    'N', 'e', 't', 'w', 'o', 'r', 'k', 'S', 'e', 's', 's', 'i', 'o', 'n', 'R', 'e', 'q', 'u', 'i', 'r', 'e', 'd', 0,
    'a', 'u', 't', 'h', 'e', 'n', 't', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'R', 'e', 'q', 'u', 'i', 'r', 'e', 'd', 0,
    'r', 'e', 's', 'p', 'o', 'n', 's', 'e', 'H', 'e', 'a', 'd', 'e', 'r', 'R', 'e', 'c', 'e', 'i', 'v', 'e', 'd', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'o', 'k', 'i', 'e', '>', 0,
    's', 'e', 't', 'M', 'u', 'l', 't', 'i', 'c', 'a', 's', 't', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 0,
    'e', 'n', 'c', 'r', 'y', 'p', 't', 'e', 'd', 'B', 'y', 't', 'e', 's', 'W', 'r', 'i', 't', 't', 'e', 'n', 0,
    'e', 'n', 'c', 'r', 'y', 'p', 't', 'e', 'd', 'B', 'y', 't', 'e', 's', 'T', 'o', 'W', 'r', 'i', 't', 'e', 0,
    's', 't', 'a', 'r', 't', 'S', 'e', 'r', 'v', 'e', 'r', 'E', 'n', 'c', 'r', 'y', 'p', 't', 'i', 'o', 'n', 0,
    's', 't', 'a', 'r', 't', 'C', 'l', 'i', 'e', 'n', 't', 'E', 'n', 'c', 'r', 'y', 'p', 't', 'i', 'o', 'n', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'C', 'a', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 's', 0,
    'S', 'u', 'b', 'j', 'e', 'c', 't', 'I', 's', 's', 'u', 'e', 'r', 'M', 'i', 's', 'm', 'a', 't', 'c', 'h', 0,
    'S', 'e', 'l', 'f', 'S', 'i', 'g', 'n', 'e', 'd', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'N', 'o', 't', 'B', 'e', 'f', 'o', 'r', 'e', 'F', 'i', 'e', 'l', 'd', 0,
    'a', 'l', 't', 'e', 'r', 'n', 'a', 't', 'e', 'S', 'u', 'b', 'j', 'e', 'c', 't', 'N', 'a', 'm', 'e', 's', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'A', 'c', 'c', 'e', 's', 's', 'M', 'a', 'n', 'a', 'g', 'e', 'r', 0,
    'n', 'e', 'x', 't', 'P', 'e', 'n', 'd', 'i', 'n', 'g', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'm', 'a', 'x', 'P', 'e', 'n', 'd', 'i', 'n', 'g', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 's', 0,
    'h', 'a', 's', 'P', 'e', 'n', 'd', 'i', 'n', 'g', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 's', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'R', 'e', 's', 'p', 'o', 'n', 's', 'e', 'H', 'e', 'a', 'd', 'e', 'r', 0,
    'Q', 'H', 't', 't', 'p', ':', ':', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', 0,
    'D', 'a', 't', 'a', 'g', 'r', 'a', 'm', 'T', 'o', 'o', 'L', 'a', 'r', 'g', 'e', 'E', 'r', 'r', 'o', 'r', 0,
    'R', 'e', 'm', 'o', 't', 'e', 'H', 'o', 's', 't', 'C', 'l', 'o', 's', 'e', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'a', 'c', 'h', 'e', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'a', 'c', 'h', 'e', 'M', 'e', 't', 'a', 'D', 'a', 't', 'a', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'P', 'r', 'o', 'x', 'y', '>', 0,
    'Q', 'U', 'd', 'p', 'S', 'o', 'c', 'k', 'e', 't', ':', ':', 'B', 'i', 'n', 'd', 'M', 'o', 'd', 'e', 0,
    'Q', 'U', 'd', 'p', 'S', 'o', 'c', 'k', 'e', 't', ':', ':', 'B', 'i', 'n', 'd', 'F', 'l', 'a', 'g', 0,
    'a', 'd', 'd', 'P', 'e', 'n', 'd', 'i', 'n', 'g', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 0,
    's', 'y', 's', 't', 'e', 'm', 'C', 'a', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 's', 0,
    'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 'U', 'n', 't', 'r', 'u', 's', 't', 'e', 'd', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'C', 'a', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'N', 'o', 't', 'A', 'f', 't', 'e', 'r', 'F', 'i', 'e', 'l', 'd', 0,
    'a', 'u', 't', 'h', 'e', 'n', 't', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'M', 'e', 't', 'h', 'o', 'd', 0,
    'p', 'e', 'e', 'r', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 'C', 'h', 'a', 'i', 'n', 0,
    'Q', 'S', 's', 'l', ':', ':', 'E', 'n', 'c', 'o', 'd', 'i', 'n', 'g', 'F', 'o', 'r', 'm', 'a', 't', 0,
    's', 'e', 't', 'O', 'r', 'i', 'g', 'i', 'n', 'a', 't', 'i', 'n', 'g', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', 'U', 'n', 'k', 'n', 'o', 'w', 'n', 'E', 'r', 'r', 'o', 'r', 0,
    'C', 'o', 'n', 't', 'e', 'n', 't', 'N', 'o', 't', 'F', 'o', 'u', 'n', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'P', 'r', 'o', 'x', 'y', 'F', 'a', 'c', 't', 'o', 'r', 'y', 0,
    'n', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'A', 'd', 'd', 'r', 'e', 's', 's', 'E', 'n', 't', 'r', 'y', 0,
    'c', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'c', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 'R', 'e', 'm', 'o', 'v', 'e', 'd', 0,
    'u', 'p', 'd', 'a', 't', 'e', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 's', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'S', 'y', 's', 't', 'e', 'm', 'S', 'e', 's', 's', 'i', 'o', 'n', 'S', 'u', 'p', 'p', 'o', 'r', 't', 0,
    's', 'e', 't', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'A', 'c', 'c', 'e', 's', 's', 'i', 'b', 'l', 'e', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'A', 'c', 'c', 'e', 's', 's', 'i', 'b', 'i', 'l', 'i', 't', 'y', 0,
    'd', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'F', 'r', 'o', 'm', 'S', 'e', 'r', 'v', 'e', 'r', 0,
    'w', 'a', 'i', 't', 'F', 'o', 'r', 'N', 'e', 'w', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'c', 'l', 'e', 'a', 'r', 'P', 'e', 'n', 'd', 'i', 'n', 'g', 'R', 'e', 'q', 'u', 'e', 's', 't', 's', 0,
    'd', 'a', 't', 'a', 'T', 'r', 'a', 'n', 's', 'f', 'e', 'r', 'P', 'r', 'o', 'g', 'r', 'e', 's', 's', 0,
    'c', 'l', 'e', 'a', 'r', 'P', 'e', 'n', 'd', 'i', 'n', 'g', 'C', 'o', 'm', 'm', 'a', 'n', 'd', 's', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'H', 'o', 's', 't', 'A', 'd', 'd', 'r', 'e', 's', 's', '>', 0,
    'l', 'e', 'a', 'v', 'e', 'M', 'u', 'l', 't', 'i', 'c', 'a', 's', 't', 'G', 'r', 'o', 'u', 'p', 0,
    'p', 'e', 'n', 'd', 'i', 'n', 'g', 'D', 'a', 't', 'a', 'g', 'r', 'a', 'm', 'S', 'i', 'z', 'e', 0,
    'h', 'a', 's', 'P', 'e', 'n', 'd', 'i', 'n', 'g', 'D', 'a', 't', 'a', 'g', 'r', 'a', 'm', 's', 0,
    'Q', 'S', 's', 'l', 'S', 'o', 'c', 'k', 'e', 't', ':', ':', 'S', 's', 'l', 'M', 'o', 'd', 'e', 0,
    'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 'R', 'e', 'j', 'e', 'c', 't', 'e', 'd', 0,
    'Q', 'S', 's', 'l', 'E', 'r', 'r', 'o', 'r', ':', ':', 'S', 's', 'l', 'E', 'r', 'r', 'o', 'r', 0,
    's', 'e', 't', 'L', 'o', 'c', 'a', 'l', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 0,
    'S', 't', 'a', 't', 'e', 'O', 'r', 'P', 'r', 'o', 'v', 'i', 'n', 'c', 'e', 'N', 'a', 'm', 'e', 0,
    'S', 'e', 's', 's', 'i', 'o', 'n', 'A', 'b', 'o', 'r', 't', 'e', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'S', 'e', 's', 's', 'i', 'o', 'n', 'E', 'r', 'r', 'o', 'r', 0,
    'C', 'u', 's', 't', 'o', 'm', 'V', 'e', 'r', 'b', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    'C', 'o', 'n', 't', 'e', 'n', 't', 'L', 'e', 'n', 'g', 't', 'h', 'H', 'e', 'a', 'd', 'e', 'r', 0,
    's', 'e', 't', 'S', 's', 'l', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'C', 'o', 'n', 't', 'e', 'n', 't', 'E', 'r', 'r', 'o', 'r', 0,
    'C', 'o', 'n', 't', 'e', 'n', 't', 'A', 'c', 'c', 'e', 's', 's', 'D', 'e', 'n', 'i', 'e', 'd', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'E', 'r', 'r', 'o', 'r', 0,
    's', 'y', 's', 't', 'e', 'm', 'P', 'r', 'o', 'x', 'y', 'F', 'o', 'r', 'Q', 'u', 'e', 'r', 'y', 0,
    'L', 'i', 's', 't', 'e', 'n', 'i', 'n', 'g', 'C', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'y', 0,
    's', 'e', 't', 'A', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'P', 'r', 'o', 'x', 'y', 0,
    's', 'e', 't', 'M', 'a', 'x', 'i', 'm', 'u', 'm', 'C', 'a', 'c', 'h', 'e', 'S', 'i', 'z', 'e', 0,
    'I', 'n', 't', 'e', 'r', 'n', 'e', 't', 'A', 'c', 'c', 'e', 's', 's', 'P', 'o', 'i', 'n', 't', 0,
    'a', 'c', 't', 'i', 'v', 'e', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'S', 'e', 'r', 'v', 'e', 'r', 'N', 'o', 't', 'F', 'o', 'u', 'n', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'S', 'o', 'u', 'r', 'c', 'e', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', 'H', 't', 't', 'p', 's', 0,
    'Q', 'H', 't', 't', 'p', 'R', 'e', 's', 'p', 'o', 'n', 's', 'e', 'H', 'e', 'a', 'd', 'e', 'r', 0,
    'w', 'a', 'i', 't', 'F', 'o', 'r', 'D', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd', 0,
    's', 'e', 't', 'S', 'o', 'c', 'k', 'e', 't', 'D', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', 0,
    'S', 'o', 'c', 'k', 'e', 't', 'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', 'E', 'r', 'r', 'o', 'r', 0,
    'w', 'a', 'i', 't', 'F', 'o', 'r', 'B', 'y', 't', 'e', 's', 'W', 'r', 'i', 't', 't', 'e', 'n', 0,
    'm', 'u', 'l', 't', 'i', 'c', 'a', 's', 't', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 0,
    'j', 'o', 'i', 'n', 'M', 'u', 'l', 't', 'i', 'c', 'a', 's', 't', 'G', 'r', 'o', 'u', 'p', 0,
    'D', 'e', 'f', 'a', 'u', 'l', 't', 'F', 'o', 'r', 'P', 'l', 'a', 't', 'f', 'o', 'r', 'm', 0,
    'P', 'a', 't', 'h', 'L', 'e', 'n', 'g', 't', 'h', 'E', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0,
    'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 'R', 'e', 'v', 'o', 'k', 'e', 'd', 0,
    'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 'E', 'x', 'p', 'i', 'r', 'e', 'd', 0,
    's', 'e', 't', 'P', 'e', 'e', 'r', 'V', 'e', 'r', 'i', 'f', 'y', 'D', 'e', 'p', 't', 'h', 0,
    'Q', 'S', 's', 'l', ':', ':', 'K', 'e', 'y', 'A', 'l', 'g', 'o', 'r', 'i', 't', 'h', 'm', 0,
    's', 'e', 't', 'S', 'e', 's', 's', 'i', 'o', 'n', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'L', 'a', 's', 't', 'M', 'o', 'd', 'i', 'f', 'i', 'e', 'd', 'H', 'e', 'a', 'd', 'e', 'r', 0,
    'C', 'o', 'n', 't', 'e', 'n', 't', 'R', 'e', 'S', 'e', 'n', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'P', 'r', 'o', 'x', 'y', 'Q', 'u', 'e', 'r', 'y', 0,
    'i', 's', 'T', 'r', 'a', 'n', 's', 'p', 'a', 'r', 'e', 'n', 't', 'P', 'r', 'o', 'x', 'y', 0,
    'i', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 'F', 'r', 'o', 'm', 'I', 'n', 'd', 'e', 'x', 0,
    'i', 's', 'R', 'o', 'a', 'm', 'i', 'n', 'g', 'A', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0,
    'o', 'n', 'l', 'i', 'n', 'e', 'S', 't', 'a', 't', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'c', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 'A', 'd', 'd', 'e', 'd', 0,
    'i', 'n', 'c', 'o', 'm', 'i', 'n', 'g', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'h', 'a', 's', 'P', 'e', 'n', 'd', 'i', 'n', 'g', 'R', 'e', 'q', 'u', 'e', 's', 't', 's', 0,
    'W', 'r', 'o', 'n', 'g', 'C', 'o', 'n', 't', 'e', 'n', 't', 'L', 'e', 'n', 'g', 't', 'h', 0,
    'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', 'H', 't', 't', 'p', 0,
    'Q', 'H', 't', 't', 'p', 'R', 'e', 'q', 'u', 'e', 's', 't', 'H', 'e', 'a', 'd', 'e', 'r', 0,
    'h', 'a', 's', 'P', 'e', 'n', 'd', 'i', 'n', 'g', 'C', 'o', 'm', 'm', 'a', 'n', 'd', 's', 0,
    'Q', 'F', 't', 'p', ':', ':', 'T', 'r', 'a', 'n', 's', 'f', 'e', 'r', 'T', 'y', 'p', 'e', 0,
    'Q', 'F', 't', 'p', ':', ':', 'T', 'r', 'a', 'n', 's', 'f', 'e', 'r', 'M', 'o', 'd', 'e', 0,
    'M', 'u', 'l', 't', 'i', 'c', 'a', 's', 't', 'T', 't', 'l', 'O', 'p', 't', 'i', 'o', 'n', 0,
    'd', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'F', 'r', 'o', 'm', 'H', 'o', 's', 't', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'S', 'o', 'c', 'k', 'e', 't', 'E', 'r', 'r', 'o', 'r', 0,
    'P', 'r', 'o', 'x', 'y', 'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', 'E', 'r', 'r', 'o', 'r', 0,
    'P', 'r', 'o', 'x', 'y', 'N', 'o', 't', 'F', 'o', 'u', 'n', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'S', 'o', 'c', 'k', 'e', 't', 'T', 'i', 'm', 'e', 'o', 'u', 't', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'S', 's', 'l', 'C', 'i', 'p', 'h', 'e', 'r', '>', 0,
    's', 'e', 't', 'P', 'e', 'e', 'r', 'V', 'e', 'r', 'i', 'f', 'y', 'N', 'a', 'm', 'e', 0,
    'a', 'd', 'd', 'C', 'a', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 's', 0,
    's', 'e', 't', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'C', 'i', 'p', 'h', 'e', 'r', 's', 0,
    'N', 'o', 'P', 'e', 'e', 'r', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 0,
    'k', 'e', 'y', 'E', 'x', 'c', 'h', 'a', 'n', 'g', 'e', 'M', 'e', 't', 'h', 'o', 'd', 0,
    's', 'e', 't', 'C', 'a', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 's', 0,
    's', 'e', 't', 'P', 'e', 'e', 'r', 'V', 'e', 'r', 'i', 'f', 'y', 'M', 'o', 'd', 'e', 0,
    'Q', 'S', 's', 'l', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'S', 's', 'l', ':', ':', 'S', 's', 'l', 'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', 0,
    'o', 'r', 'i', 'g', 'i', 'n', 'a', 't', 'i', 'n', 'g', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'C', 'o', 'n', 't', 'e', 'n', 't', 'T', 'y', 'p', 'e', 'H', 'e', 'a', 'd', 'e', 'r', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'P', 'r', 'o', 'x', 'y', 'E', 'r', 'r', 'o', 'r', 0,
    'P', 'r', 'o', 'x', 'y', 'T', 'i', 'm', 'e', 'o', 'u', 't', 'E', 'r', 'r', 'o', 'r', 0,
    'C', 'a', 'c', 'h', 'i', 'n', 'g', 'C', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'y', 0,
    'h', 'u', 'm', 'a', 'n', 'R', 'e', 'a', 'd', 'a', 'b', 'l', 'e', 'N', 'a', 'm', 'e', 0,
    'i', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 'F', 'r', 'o', 'm', 'N', 'a', 'm', 'e', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 0,
    's', 'e', 't', 'C', 'a', 'c', 'h', 'e', 'D', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'D', 'i', 's', 'k', 'C', 'a', 'c', 'h', 'e', 0,
    's', 'e', 't', 'C', 'o', 'o', 'k', 'i', 'e', 's', 'F', 'r', 'o', 'm', 'U', 'r', 'l', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'o', 'k', 'i', 'e', 'J', 'a', 'r', 0,
    'a', 'l', 'l', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 's', 0,
    'n', 'e', 't', 'w', 'o', 'r', 'k', 'A', 'c', 'c', 'e', 's', 's', 'i', 'b', 'l', 'e', 0,
    's', 'e', 'n', 'd', 'C', 'u', 's', 't', 'o', 'm', 'R', 'e', 'q', 'u', 'e', 's', 't', 0,
    'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'R', 'e', 'f', 'u', 's', 'e', 'd', 0,
    's', 'e', 't', 'R', 'e', 'a', 'd', 'B', 'u', 'f', 'f', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'A', 'd', 'd', 'r', 'e', 's', 's', 'I', 'n', 'U', 's', 'e', 'E', 'r', 'r', 'o', 'r', 0,
    'S', 'o', 'c', 'k', 'e', 't', 'A', 'c', 'c', 'e', 's', 's', 'E', 'r', 'r', 'o', 'r', 0,
    'H', 'o', 's', 't', 'N', 'o', 't', 'F', 'o', 'u', 'n', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'S', 'o', 'c', 'k', 'e', 't', 'T', 'y', 'p', 'e', 0,
    's', 'e', 't', 'E', 'x', 'p', 'i', 'r', 'a', 't', 'i', 'o', 'n', 'D', 'a', 't', 'e', 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,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'S', 's', 'l', 'E', 'r', 'r', 'o', 'r', '>', 0,
    'R', 'e', 'u', 's', 'e', 'A', 'd', 'd', 'r', 'e', 's', 's', 'H', 'i', 'n', 't', 0,
    'D', 'o', 'n', 't', 'S', 'h', 'a', 'r', 'e', 'A', 'd', 'd', 'r', 'e', 's', 's', 0,
    'w', 'a', 'i', 't', 'F', 'o', 'r', 'E', 'n', 'c', 'r', 'y', 'p', 't', 'e', 'd', 0,
    'a', 'd', 'd', 'C', 'a', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'C', 'i', 'p', 'h', 'e', 'r', 's', 0,
    'H', 'o', 's', 't', 'N', 'a', 'm', 'e', 'M', 'i', 's', 'm', 'a', 't', 'c', 'h', 0,
    'e', 'n', 'c', 'r', 'y', 'p', 't', 'i', 'o', 'n', 'M', 'e', 't', 'h', 'o', 'd', 0,
    'l', 'o', 'c', 'a', 'l', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 0,
    'Q', 'S', 's', 'l', ':', ':', 'S', 's', 'l', 'O', 'p', 't', 'i', 'o', 'n', 's', 0,
    'd', 'o', 'w', 'n', 'l', 'o', 'a', 'd', 'P', 'r', 'o', 'g', 'r', 'e', 's', 's', 0,
    's', 's', 'l', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'a', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'P', 'r', 'o', 'x', 'y', 0,
    'H', 't', 't', 'p', 'C', 'a', 'c', 'h', 'i', 'n', 'g', 'P', 'r', 'o', 'x', 'y', 0,
    'm', 'a', 'x', 'i', 'm', 'u', 'm', 'C', 'a', 'c', 'h', 'e', 'S', 'i', 'z', 'e', 0,
    'N', 'a', 'm', 'e', 'A', 'n', 'd', 'V', 'a', 'l', 'u', 'e', 'O', 'n', 'l', 'y', 0,
    's', 'e', 't', 'C', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'd', 'a', 't', 'a', 'R', 'e', 'a', 'd', 'P', 'r', 'o', 'g', 'r', 'e', 's', 's', 0,
    'd', 'a', 't', 'a', 'S', 'e', 'n', 'd', 'P', 'r', 'o', 'g', 'r', 'e', 's', 's', 0,
    's', 'e', 't', 'C', 'o', 'n', 't', 'e', 'n', 't', 'L', 'e', 'n', 'g', 't', 'h', 0,
    'h', 'a', 's', 'C', 'o', 'n', 't', 'e', 'n', 't', 'L', 'e', 'n', 'g', 't', 'h', 0,
    'w', 'a', 'i', 't', 'F', 'o', 'r', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd', 0,
    's', 'o', 'c', 'k', 'e', 't', 'D', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', 0,
    'U', 'n', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd', 'S', 't', 'a', 't', 'e', 0,
    'w', 'a', 'i', 't', 'F', 'o', 'r', 'R', 'e', 'a', 'd', 'y', 'R', 'e', 'a', 'd', 0,
    'U', 'n', 's', 'p', 'e', 'c', 'i', 'f', 'i', 'e', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'd', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'N', 'o', 't', 'i', 'f', 'y', 0,
    'p', 'e', 'e', 'r', 'V', 'e', 'r', 'i', 'f', 'y', 'E', 'r', 'r', 'o', 'r', 0,
    'U', 'n', 'e', 'n', 'c', 'r', 'y', 'p', 't', 'e', 'd', 'M', 'o', 'd', 'e', 0,
    'p', 'e', 'e', 'r', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 0,
    'p', 'e', 'e', 'r', 'V', 'e', 'r', 'i', 'f', 'y', 'D', 'e', 'p', 't', 'h', 0,
    'Q', 'S', 's', 'l', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 0,
    'Q', 'S', 's', 'l', ':', ':', 'S', 's', 'l', 'O', 'p', 't', 'i', 'o', 'n', 0,
    'S', 'e', 'c', 'u', 'r', 'e', 'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', 's', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', 0,
    's', 'e', 's', 's', 'i', 'o', 'n', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'S', 'e', 's', 's', 'i', 'o', 'n', 0,
    'S', 'e', 't', 'C', 'o', 'o', 'k', 'i', 'e', 'H', 'e', 'a', 'd', 'e', 'r', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'R', 'e', 'q', 'u', 'e', 's', 't', 0,
    'm', 'e', 't', 'a', 'D', 'a', 't', 'a', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', 'F', 'a', 'i', 'l', 'u', 'r', 'e', 0,
    's', 'e', 't', 'P', 'e', 'e', 'r', 'H', 'o', 's', 't', 'N', 'a', 'm', 'e', 0,
    's', 'e', 't', 'C', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'i', 'e', 's', 0,
    'F', 't', 'p', 'C', 'a', 'c', 'h', 'i', 'n', 'g', 'P', 'r', 'o', 'x', 'y', 0,
    'h', 'a', 'r', 'd', 'w', 'a', 'r', 'e', 'A', 'd', 'd', 'r', 'e', 's', 's', 0,
    's', 'e', 't', 'P', 'r', 'e', 'f', 'i', 'x', 'L', 'e', 'n', 'g', 't', 'h', 0,
    'i', 's', 'S', 'e', 's', 's', 'i', 'o', 'n', 'C', 'o', 'o', 'k', 'i', 'e', 0,
    'B', 'e', 'a', 'r', 'e', 'r', 'B', 'l', 'u', 'e', 't', 'o', 'o', 't', 'h', 0,
    'u', 'p', 'd', 'a', 't', 'e', 'C', 'o', 'm', 'p', 'l', 'e', 't', 'e', 'd', 0,
    's', 'e', 't', 'P', 'r', 'o', 'x', 'y', 'F', 'a', 'c', 't', 'o', 'r', 'y', 0,
    'C', 'u', 's', 't', 'o', 'm', 'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'D', 'e', 'l', 'e', 't', 'e', 'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'c', 'o', 'n', 'n', 'e', 'c', 't', 'T', 'o', 'S', 'e', 'r', 'v', 'e', 'r', 0,
    'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'E', 'r', 'r', 'o', 'r', 0,
    'P', 'e', 'e', 'r', 'C', 'l', 'o', 's', 'e', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'A', 'l', 't', 'e', 'r', 'n', 'a', 't', 'i', 'v', 'e', 'T', 'y', 'p', 'e', 0,
    'r', 'e', 'q', 'u', 'e', 's', 't', 'F', 'i', 'n', 'i', 's', 'h', 'e', 'd', 0,
    'i', 'g', 'n', 'o', 'r', 'e', 'S', 's', 'l', 'E', 'r', 'r', 'o', 'r', 's', 0,
    'U', 'n', 'e', 'x', 'p', 'e', 'c', 't', 'e', 'd', 'C', 'l', 'o', 's', 'e', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 'A', 'l', 'l', 'V', 'a', 'l', 'u', 'e', 's', 0,
    'l', 'o', 'c', 'a', 'l', 'D', 'o', 'm', 'a', 'i', 'n', 'N', 'a', 'm', 'e', 0,
    'a', 'b', 'o', 'r', 't', 'H', 'o', 's', 't', 'L', 'o', 'o', 'k', 'u', 'p', 0,
    'c', 'o', 'm', 'm', 'a', 'n', 'd', 'F', 'i', 'n', 'i', 's', 'h', 'e', 'd', 0,
    'r', 'a', 'w', 'C', 'o', 'm', 'm', 'a', 'n', 'd', 'R', 'e', 'p', 'l', 'y', 0,
    's', 'e', 't', 'T', 'r', 'a', 'n', 's', 'f', 'e', 'r', 'M', 'o', 'd', 'e', 0,
    'S', 'e', 't', 'T', 'r', 'a', 'n', 's', 'f', 'e', 'r', 'M', 'o', 'd', 'e', 0,
    's', 'e', 't', 'S', 'o', 'c', 'k', 'e', 't', 'O', 'p', 't', 'i', 'o', 'n', 0,
    'K', 'e', 'e', 'p', 'A', 'l', 'i', 'v', 'e', 'O', 'p', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'L', 'o', 'c', 'a', 'l', 'A', 'd', 'd', 'r', 'e', 's', 's', 0,
    'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'n', 'g', 'S', 't', 'a', 't', 'e', 0,
    'H', 'o', 's', 't', 'L', 'o', 'o', 'k', 'u', 'p', 'S', 't', 'a', 't', 'e', 0,
    'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'S', 'o', 'c', 'k', 'e', 't', 0,
    's', 'e', 't', 'L', 'a', 's', 't', 'M', 'o', 'd', 'i', 'f', 'i', 'e', 'd', 0,
    'P', 'y', 'Q', 't', '4', '.', 'Q', 't', 'N', 'e', 't', 'w', 'o', 'r', 'k', 0,
    'p', 'e', 'e', 'r', 'V', 'e', 'r', 'i', 'f', 'y', 'N', 'a', 'm', 'e', 0,
    'A', 'u', 't', 'o', 'V', 'e', 'r', 'i', 'f', 'y', 'P', 'e', 'e', 'r', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'C', 'i', 'p', 'h', 'e', 'r', 's', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'P', 'u', 'r', 'p', 'o', 's', 'e', 0,
    'p', 'r', 'o', 't', 'o', 'c', 'o', 'l', 'S', 't', 'r', 'i', 'n', 'g', 0,
    'c', 'a', 'C', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 's', 0,
    'p', 'e', 'e', 'r', 'V', 'e', 'r', 'i', 'f', 'y', 'M', 'o', 'd', 'e', 0,
    'L', 'o', 'c', 'a', 't', 'i', 'o', 'n', 'H', 'e', 'a', 'd', 'e', 'r', 0,
    'r', 'a', 'w', 'H', 'e', 'a', 'd', 'e', 'r', 'P', 'a', 'i', 'r', 's', 0,
    'u', 'p', 'l', 'o', 'a', 'd', 'P', 'r', 'o', 'g', 'r', 'e', 's', 's', 0,
    's', 'e', 't', 'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', 'T', 'a', 'g', 0,
    'i', 's', 'C', 'a', 'c', 'h', 'i', 'n', 'g', 'P', 'r', 'o', 'x', 'y', 0,
    'a', 'd', 'd', 'r', 'e', 's', 's', 'E', 'n', 't', 'r', 'i', 'e', 's', 0,
    'I', 's', 'P', 'o', 'i', 'n', 't', 'T', 'o', 'P', 'o', 'i', 'n', 't', 0,
    'c', 'a', 'c', 'h', 'e', 'D', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'C', 'o', 'o', 'k', 'i', 'e', 0,
    'b', 'e', 'a', 'r', 'e', 'r', 'T', 'y', 'p', 'e', 'N', 'a', 'm', 'e', 0,
    'B', 'e', 'a', 'r', 'e', 'r', 'C', 'D', 'M', 'A', '2', '0', '0', '0', 0,
    'B', 'e', 'a', 'r', 'e', 'r', 'E', 't', 'h', 'e', 'r', 'n', 'e', 't', 0,
    'P', 'r', 'i', 'v', 'a', 't', 'e', 'P', 'u', 'r', 'p', 'o', 's', 'e', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'P', 'u', 'r', 'p', 'o', 's', 'e', 0,
    'S', 'e', 'r', 'v', 'i', 'c', 'e', 'N', 'e', 't', 'w', 'o', 'r', 'k', 0,
    'D', 'a', 't', 'a', 'S', 't', 'a', 't', 'i', 's', 't', 'i', 'c', 's', 0,
    'd', 'e', 'l', 'e', 't', 'e', 'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', 0,
    'f', 'u', 'l', 'l', 'S', 'e', 'r', 'v', 'e', 'r', 'N', 'a', 'm', 'e', 0,
    'Q', 'H', 't', 't', 'p', 'M', 'u', 'l', 't', 'i', 'P', 'a', 'r', 't', 0,
    'r', 'e', 'q', 'u', 'e', 's', 't', 'S', 't', 'a', 'r', 't', 'e', 'd', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'R', 'e', 'q', 'u', 'e', 's', 't', 0,
    's', 'e', 't', 'C', 'o', 'n', 't', 'e', 'n', 't', 'T', 'y', 'p', 'e', 0,
    'h', 'a', 's', 'C', 'o', 'n', 't', 'e', 'n', 't', 'T', 'y', 'p', 'e', 0,
    'c', 'o', 'm', 'm', 'a', 'n', 'd', 'S', 't', 'a', 'r', 't', 'e', 'd', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'C', 'o', 'm', 'm', 'a', 'n', 'd', 0,
    'Q', 'A', 'u', 't', 'h', 'e', 'n', 't', 'i', 'c', 'a', 't', 'o', 'r', 0,
    'L', 'o', 'w', 'D', 'e', 'l', 'a', 'y', 'O', 'p', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'P', 'e', 'e', 'r', 'A', 'd', 'd', 'r', 'e', 's', 's', 0,
    's', 'e', 't', 'S', 'o', 'c', 'k', 'e', 't', 'E', 'r', 'r', 'o', 'r', 0,
    's', 'e', 't', 'S', 'o', 'c', 'k', 'e', 't', 'S', 't', 'a', 't', 'e', 0,
    'r', 'e', 'a', 'd', 'B', 'u', 'f', 'f', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'L', 'i', 's', 't', 'e', 'n', 'i', 'n', 'g', 'S', 't', 'a', 't', 'e', 0,
    'C', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd', 'S', 't', 'a', 't', 'e', 0,
    'u', 'p', 'd', 'a', 't', 'e', 'M', 'e', 't', 'a', 'D', 'a', 't', 'a', 0,
    'e', 'x', 'p', 'i', 'r', 'a', 't', 'i', 'o', 'n', 'D', 'a', 't', 'e', 0,
    'N', 'o', 'r', 'm', 'a', 'l', 'P', 'r', 'i', 'o', 'r', 'i', 't', 'y', 0,
    's', 'e', 't', 'E', 'r', 'r', 'o', 'r', 'S', 't', 'r', 'i', 'n', 'g', 0,
    'b', 'y', 't', 'e', 's', 'A', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0,
    's', 'e', 't', 'P', 'e', 'r', 'm', 'i', 's', 's', 'i', 'o', 'n', 's', 0,
    'w', 'r', 'i', 't', 'e', 'D', 'a', 't', 'a', 'g', 'r', 'a', 'm', 0,
    's', 'e', 'r', 'v', 'e', 'r', 'A', 'd', 'd', 'r', 'e', 's', 's', 0,
    'S', 's', 'l', 'S', 'e', 'r', 'v', 'e', 'r', 'M', 'o', 'd', 'e', 0,
    'S', 's', 'l', 'C', 'l', 'i', 'e', 'n', 't', 'M', 'o', 'd', 'e', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'B', 'i', 't', 's', 0,
    't', 'e', 's', 't', 'S', 's', 'l', 'O', 'p', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'P', 'r', 'i', 'v', 'a', 't', 'e', 'K', 'e', 'y', 0,
    's', 'e', 's', 's', 'i', 'o', 'n', 'C', 'i', 'p', 'h', 'e', 'r', 0,
    'e', 'f', 'f', 'e', 'c', 't', 'i', 'v', 'e', 'D', 'a', 't', 'e', 0,
    'Q', 'S', 's', 'l', ':', ':', 'K', 'e', 'y', 'T', 'y', 'p', 'e', 0,
    'w', 'a', 'i', 't', 'F', 'o', 'r', 'O', 'p', 'e', 'n', 'e', 'd', 0,
    'P', 'r', 'e', 'f', 'e', 'r', 'N', 'e', 't', 'w', 'o', 'r', 'k', 0,
    'A', 'l', 'w', 'a', 'y', 's', 'N', 'e', 't', 'w', 'o', 'r', 'k', 0,
    'b', 'y', 't', 'e', 's', 'R', 'e', 'c', 'e', 'i', 'v', 'e', 'd', 0,
    'r', 'a', 'w', 'H', 'e', 'a', 'd', 'e', 'r', 'L', 'i', 's', 't', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'R', 'e', 'p', 'l', 'y', 0,
    'p', 'r', 'o', 'x', 'y', 'F', 'o', 'r', 'Q', 'u', 'e', 'r', 'y', 0,
    'Q', 'N', 'e', 't', 'w', 'o', 'r', 'k', 'P', 'r', 'o', 'x', 'y', 0,
    'a', 'l', 'l', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 's', 0,
    's', 'e', 't', 'A', 'l', 'l', 'C', 'o', 'o', 'k', 'i', 'e', 's', 0,
    'c', 'o', 'o', 'k', 'i', 'e', 's', 'F', 'o', 'r', 'U', 'r', 'l', 0,
    'B', 'e', 'a', 'r', 'e', 'r', 'U', 'n', 'k', 'n', 'o', 'w', 'n', 0,
    'P', 'u', 'b', 'l', 'i', 'c', 'P', 'u', 'r', 'p', 'o', 's', 'e', 0,
    'F', 'o', 'r', 'c', 'e', 'd', 'R', 'o', 'a', 'm', 'i', 'n', 'g', 0,
    'N', 'o', 't', 'A', 'c', 'c', 'e', 's', 's', 'i', 'b', 'l', 'e', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'R', 'e', 'q', 'u', 'e', 's', 't', 0,
    'P', 'o', 's', 't', 'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'H', 'e', 'a', 'd', 'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'n', 'e', 'w', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'B', 'o', 'd', 'y', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    's', 'e', 't', 'S', 't', 'a', 't', 'u', 's', 'L', 'i', 'n', 'e', 0,
    'c', 'o', 'n', 't', 'e', 'n', 't', 'L', 'e', 'n', 'g', 't', 'h', 0,
    'l', 'o', 'c', 'a', 'l', 'H', 'o', 's', 't', 'N', 'a', 'm', 'e', 0,
    't', 'o', 'I', 'P', 'v', '6', 'A', 'd', 'd', 'r', 'e', 's', 's', 0,
    't', 'o', 'I', 'P', 'v', '4', 'A', 'd', 'd', 'r', 'e', 's', 's', 0,
    'L', 'o', 'c', 'a', 'l', 'H', 'o', 's', 't', 'I', 'P', 'v', '6', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    'C', 'o', 'n', 'n', 'e', 'c', 't', 'T', 'o', 'H', 'o', 's', 't', 0,
    'Q', 'F', 't', 'p', ':', ':', 'C', 'o', 'm', 'm', 'a', 'n', 'd', 0,
    'c', 'o', 'n', 'n', 'e', 'c', 't', 'T', 'o', 'H', 'o', 's', 't', 0,
    's', 'e', 't', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 's', 0,
    's', 'e', 't', 'S', 'a', 'v', 'e', 'T', 'o', 'D', 'i', 's', 'k', 0,
    's', 'e', 't', 'R', 'a', 'w', 'H', 'e', 'a', 'd', 'e', 'r', 's', 0,
    'c', 'o', 'n', 'f', 'i', 'g', 'u', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'r', 'e', 'a', 'd', 'D', 'a', 't', 'a', 'g', 'r', 'a', 'm', 0,
    'N', 'o', 'S', 's', 'l', 'S', 'u', 'p', 'p', 'o', 'r', 't', 0,
    's', 'e', 't', 'S', 's', 'l', 'O', 'p', 't', 'i', 'o', 'n', 0,
    's', 'e', 'r', 'i', 'a', 'l', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'L', 'o', 'c', 'a', 'l', 'i', 't', 'y', 'N', 'a', 'm', 'e', 0,
    'O', 'r', 'g', 'a', 'n', 'i', 'z', 'a', 't', 'i', 'o', 'n', 0,
    'R', 'o', 'a', 'm', 'i', 'n', 'g', 'E', 'r', 'r', 'o', 'r', 0,
    'N', 'o', 't', 'A', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0,
    's', 'e', 't', 'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'h', 'a', 's', 'R', 'a', 'w', 'H', 'e', 'a', 'd', 'e', 'r', 0,
    'p', 'e', 'e', 'r', 'H', 'o', 's', 't', 'N', 'a', 'm', 'e', 0,
    's', 'e', 't', 'Q', 'u', 'e', 'r', 'y', 'T', 'y', 'p', 'e', 0,
    'D', 'e', 'f', 'a', 'u', 'l', 't', 'P', 'r', 'o', 'x', 'y', 0,
    'a', 'l', 'l', 'A', 'd', 'd', 'r', 'e', 's', 's', 'e', 's', 0,
    'C', 'a', 'n', 'M', 'u', 'l', 't', 'i', 'c', 'a', 's', 't', 0,
    'C', 'a', 'n', 'B', 'r', 'o', 'a', 'd', 'c', 'a', 's', 't', 0,
    'p', 'r', 'e', 'f', 'i', 'x', 'L', 'e', 'n', 'g', 't', 'h', 0,
    's', 'e', 't', 'B', 'r', 'o', 'a', 'd', 'c', 'a', 's', 't', 0,
    'f', 'i', 'l', 'e', 'M', 'e', 't', 'a', 'D', 'a', 't', 'a', 0,
    'p', 'a', 'r', 's', 'e', 'C', 'o', 'o', 'k', 'i', 'e', 's', 0,
    'c', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'i', 'e', 's', 0,
    'p', 'r', 'o', 'x', 'y', 'F', 'a', 'c', 't', 'o', 'r', 'y', 0,
    's', 'e', 't', 'C', 'o', 'o', 'k', 'i', 'e', 'J', 'a', 'r', 0,
    'P', 'u', 't', 'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'G', 'e', 't', 'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'L', 'o', 'c', 'a', 'l', 'S', 'o', 'c', 'k', 'e', 't', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 'S', 'e', 'r', 'v', 'e', 'r', 0,
    'Q', 'L', 'o', 'c', 'a', 'l', 'S', 'e', 'r', 'v', 'e', 'r', 0,
    'F', 'o', 'r', 'm', 'D', 'a', 't', 'a', 'T', 'y', 'p', 'e', 0,
    's', 'e', 't', 'R', 'a', 'w', 'H', 'e', 'a', 'd', 'e', 'r', 0,
    'l', 'a', 's', 't', 'R', 'e', 's', 'p', 'o', 'n', 's', 'e', 0,
    'Q', 'H', 't', 't', 'p', ':', ':', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'H', 't', 't', 'p', ':', ':', 'S', 't', 'a', 't', 'e', 0,
    'r', 'e', 'a', 's', 'o', 'n', 'P', 'h', 'r', 'a', 's', 'e', 0,
    'm', 'i', 'n', 'o', 'r', 'V', 'e', 'r', 's', 'i', 'o', 'n', 0,
    'm', 'a', 'j', 'o', 'r', 'V', 'e', 'r', 's', 'i', 'o', 'n', 0,
    's', 'e', 't', 'A', 'd', 'd', 'r', 'e', 's', 's', 'e', 's', 0,
    'Q', 'H', 'o', 's', 't', 'A', 'd', 'd', 'r', 'e', 's', 's', 0,
    'N', 'o', 't', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd', 0,
    'H', 'o', 's', 't', 'N', 'o', 't', 'F', 'o', 'u', 'n', 'd', 0,
    's', 'o', 'c', 'k', 'e', 't', 'O', 'p', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'L', 'o', 'c', 'a', 'l', 'P', 'o', 'r', 't', 0,
    'd', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd', 0,
    'l', 'o', 'c', 'a', 'l', 'A', 'd', 'd', 'r', 'e', 's', 's', 0,
    'C', 'l', 'o', 's', 'i', 'n', 'g', 'S', 't', 'a', 't', 'e', 0,
    'I', 'P', 'v', '6', 'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', 0,
    'I', 'P', 'v', '4', 'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', 0,
    'H', 'i', 'g', 'h', 'P', 'r', 'i', 'o', 'r', 'i', 't', 'y', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'V', 'a', 'l', 'u', 'e', 0,
    'b', 'y', 't', 'e', 's', 'W', 'r', 'i', 't', 't', 'e', 'n', 0,
    'b', 'y', 't', 'e', 's', 'T', 'o', 'W', 'r', 'i', 't', 'e', 0,
    'l', 'a', 's', 't', 'M', 'o', 'd', 'i', 'f', 'i', 'e', 'd', 0,
    'i', 's', 'E', 'x', 'e', 'c', 'u', 't', 'a', 'b', 'l', 'e', 0,
    'r', 'e', 'a', 'd', 'L', 'i', 'n', 'e', 'D', 'a', 't', 'a', 0,
    's', 'e', 't', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    'i', 's', 'S', 'e', 'q', 'u', 'e', 'n', 't', 'i', 'a', 'l', 0,
    's', 't', 'a', 't', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'L', 'a', 's', 't', 'R', 'e', 'a', 'd', 0,
    'g', 'r', 'e', 'a', 't', 'e', 'r', 'T', 'h', 'a', 'n', 0,
    's', 'e', 't', 'R', 'e', 'a', 'd', 'a', 'b', 'l', 'e', 0,
    's', 'e', 't', 'W', 'r', 'i', 't', 'a', 'b', 'l', 'e', 0,
    'm', 'o', 'd', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 's', 'S', 's', 'l', 0,
    'i', 's', 'E', 'n', 'c', 'r', 'y', 'p', 't', 'e', 'd', 0,
    'c', 'e', 'r', 't', 'i', 'f', 'i', 'c', 'a', 't', 'e', 0,
    's', 'e', 't', 'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', 0,
    's', 'u', 'b', 'j', 'e', 'c', 't', 'I', 'n', 'f', 'o', 0,
    'C', 'o', 'u', 'n', 't', 'r', 'y', 'N', 'a', 'm', 'e', 0,
    'A', 'n', 'y', 'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', 0,
    'A', 'l', 'w', 'a', 'y', 's', 'C', 'a', 'c', 'h', 'e', 0,
    'P', 'r', 'e', 'f', 'e', 'r', 'C', 'a', 'c', 'h', 'e', 0,
    's', 'e', 't', 'F', 'i', 'n', 'i', 's', 'h', 'e', 'd', 0,
    'p', 'r', 'o', 't', 'o', 'c', 'o', 'l', 'T', 'a', 'g', 0,
    'S', 'o', 'c', 'k', 's', '5', 'P', 'r', 'o', 'x', 'y', 0,
    's', 'e', 't', 'H', 't', 't', 'p', 'O', 'n', 'l', 'y', 0,
    'B', 'e', 'a', 'r', 'e', 'r', 'W', 'i', 'M', 'A', 'X', 0,
    'B', 'e', 'a', 'r', 'e', 'r', 'W', 'C', 'D', 'M', 'A', 0,
    's', 'e', 'r', 'v', 'e', 'r', 'E', 'r', 'r', 'o', 'r', 0,
    'i', 's', 'L', 'i', 's', 't', 'e', 'n', 'i', 'n', 'g', 0,
    's', 'e', 't', 'B', 'o', 'u', 'n', 'd', 'a', 'r', 'y', 0,
    'R', 'e', 'l', 'a', 't', 'e', 'd', 'T', 'y', 'p', 'e', 0,
    'c', 'o', 'n', 't', 'e', 'n', 't', 'T', 'y', 'p', 'e', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 'V', 'a', 'l', 'u', 'e', 0,
    'Q', 'H', 't', 't', 'p', 'H', 'e', 'a', 'd', 'e', 'r', 0,
    's', 'e', 't', 'L', 'o', 'o', 'k', 'u', 'p', 'I', 'd', 0,
    's', 'e', 't', 'H', 'o', 's', 't', 'N', 'a', 'm', 'e', 0,
    'p', 'a', 'r', 's', 'e', 'S', 'u', 'b', 'n', 'e', 't', 0,
    'Q', 'F', 't', 'p', ':', ':', 'E', 'r', 'r', 'o', 'r', 0,
    'U', 'n', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd', 0,
    'Q', 'F', 't', 'p', ':', ':', 'S', 't', 'a', 't', 'e', 0,
    's', 'e', 't', 'P', 'e', 'e', 'r', 'N', 'a', 'm', 'e', 0,
    's', 'e', 't', 'P', 'e', 'e', 'r', 'P', 'o', 'r', 't', 0,
    'p', 'e', 'e', 'r', 'A', 'd', 'd', 'r', 'e', 's', 's', 0,
    's', 'e', 't', 'P', 'a', 's', 's', 'w', 'o', 'r', 'd', 0,
    's', 'e', 't', 'P', 'r', 'i', 'o', 'r', 'i', 't', 'y', 0,
    'L', 'o', 'w', 'P', 'r', 'i', 'o', 'r', 'i', 't', 'y', 0,
    'c', 'u', 's', 't', 'o', 'm', 'E', 'v', 'e', 'n', 't', 0,
    'e', 'v', 'e', 'n', 't', 'F', 'i', 'l', 't', 'e', 'r', 0,
    's', 'e', 't', 'O', 'p', 'e', 'n', 'M', 'o', 'd', 'e', 0,
    'p', 'e', 'r', 'm', 'i', 's', 's', 'i', 'o', 'n', 's', 0,
    'c', 'a', 'n', 'R', 'e', 'a', 'd', 'L', 'i', 'n', 'e', 0,
    'e', 'r', 'r', 'o', 'r', 'S', 't', 'r', 'i', 'n', 'g', 0,
    's', 'e', 't', 'S', 'y', 'm', 'L', 'i', 'n', 'k', 0,
    'Q', 'U', 'd', 'p', 'S', 'o', 'c', 'k', 'e', 't', 0,
    's', 'e', 'r', 'v', 'e', 'r', 'P', 'o', 'r', 't', 0,
    'Q', 'T', 'c', 'p', 'S', 'e', 'r', 'v', 'e', 'r', 0,
    'V', 'e', 'r', 'i', 'f', 'y', 'N', 'o', 'n', 'e', 0,
    'Q', 'S', 's', 'l', 'S', 'o', 'c', 'k', 'e', 't', 0,
    'Q', 'T', 'c', 'p', 'S', 'o', 'c', 'k', 'e', 't', 0,
    'p', 'a', 's', 's', 'P', 'h', 'r', 'a', 's', 'e', 0,
    'Q', 'S', 's', 'l', 'C', 'i', 'p', 'h', 'e', 'r', 0,
    's', 'e', 't', 'C', 'i', 'p', 'h', 'e', 'r', 's', 0,
    'p', 'r', 'i', 'v', 'a', 't', 'e', 'K', 'e', 'y', 0,
    'f', 'r', 'o', 'm', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    'e', 'x', 'p', 'i', 'r', 'y', 'D', 'a', 't', 'e', 0,
    'i', 's', 's', 'u', 'e', 'r', 'I', 'n', 'f', 'o', 0,
    'C', 'o', 'm', 'm', 'o', 'n', 'N', 'a', 'm', 'e', 0,
    'T', 'l', 's', 'V', '1', 'S', 's', 'l', 'V', '3', 0,
    'E', 'm', 'a', 'i', 'l', 'E', 'n', 't', 'r', 'y', 0,
    'a', 'c', 't', 'i', 'v', 'e', 'T', 'i', 'm', 'e', 0,
    'q', 'u', 'e', 'r', 'y', 'P', 'r', 'o', 'x', 'y', 0,
    'U', 'r', 'l', 'R', 'e', 'q', 'u', 'e', 's', 't', 0,
    'I', 's', 'L', 'o', 'o', 'p', 'B', 'a', 'c', 'k', 0,
    's', 'e', 't', 'N', 'e', 't', 'm', 'a', 's', 'k', 0,
    'a', 'l', 'l', 'C', 'o', 'o', 'k', 'i', 'e', 's', 0,
    'i', 's', 'H', 't', 't', 'p', 'O', 'n', 'l', 'y', 0,
    'b', 'e', 'a', 'r', 'e', 'r', 'T', 'y', 'p', 'e', 0,
    'b', 'e', 'a', 'r', 'e', 'r', 'N', 'a', 'm', 'e', 0,
    'B', 'e', 'a', 'r', 'e', 'r', 'H', 'S', 'P', 'A', 0,
    'B', 'e', 'a', 'r', 'e', 'r', 'W', 'L', 'A', 'N', 0,
    'D', 'i', 's', 'c', 'o', 'v', 'e', 'r', 'e', 'd', 0,
    'U', 's', 'e', 'r', 'C', 'h', 'o', 'i', 'c', 'e', 0,
    'i', 'd', 'e', 'n', 't', 'i', 'f', 'i', 'e', 'r', 0,
    's', 'e', 'r', 'v', 'e', 'r', 'N', 'a', 'm', 'e', 0,
    's', 'e', 't', 'R', 'e', 'q', 'u', 'e', 's', 't', 0,
    's', 't', 'a', 't', 'u', 's', 'C', 'o', 'd', 'e', 0,
    'l', 'o', 'o', 'k', 'u', 'p', 'H', 'o', 's', 't', 0,
    'Q', '_', 'I', 'P', 'V', '6', 'A', 'D', 'D', 'R', 0,
    'i', 's', 'I', 'n', 'S', 'u', 'b', 'n', 'e', 't', 0,
    's', 'e', 't', 'S', 'c', 'o', 'p', 'e', 'I', 'd', 0,
    's', 'e', 't', 'A', 'd', 'd', 'r', 'e', 's', 's', 0,
    'r', 'a', 'w', 'C', 'o', 'm', 'm', 'a', 'n', 'd', 0,
    'R', 'a', 'w', 'C', 'o', 'm', 'm', 'a', 'n', 'd', 0,
    'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'n', 'g', 0,
    's', 'o', 'c', 'k', 'e', 't', 'T', 'y', 'p', 'e', 0,
    'B', 'o', 'u', 'n', 'd', 'S', 't', 'a', 't', 'e', 0,
    's', 'a', 'v', 'e', 'T', 'o', 'D', 'i', 's', 'k', 0,
    'r', 'a', 'w', 'H', 'e', 'a', 'd', 'e', 'r', 's', 0,
    'a', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 's', 0,
    'i', 's', 'F', 'i', 'n', 'i', 's', 'h', 'e', 'd', 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,
    'i', 's', 'W', 'r', 'i', 't', 'a', 'b', 'l', 'e', 0,
    'W', 'r', 'i', 't', 'e', 'O', 't', 'h', 'e', 'r', 0,
    'W', 'r', 'i', 't', 'e', 'G', 'r', 'o', 'u', 'p', 0,
    'W', 'r', 'i', 't', 'e', 'O', 'w', 'n', 'e', 'r', 0,
    'i', 's', 'R', 'e', 'a', 'd', 'a', 'b', 'l', 'e', 0,
    '_', '_', 'r', 's', 'h', 'i', 'f', 't', '_', '_', 0,
    '_', '_', 'l', 's', 'h', 'i', 'f', 't', '_', '_', 0,
    '_', '_', 'i', 'n', 'v', 'e', 'r', 't', '_', '_', 0,
    'Q', 'u', 'e', 'r', 'y', 'P', 'e', 'e', 'r', 0,
    'e', 'n', 'c', 'r', 'y', 'p', 't', 'e', 'd', 0,
    'Q', 'S', 's', 'l', 'E', 'r', 'r', 'o', 'r', 0,
    'p', 'u', 'b', 'l', 'i', 'c', 'K', 'e', 'y', 0,
    'a', 'l', 'g', 'o', 'r', 'i', 't', 'h', 'm', 0,
    'i', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 0,
    'A', 'u', 't', 'o', 'm', 'a', 't', 'i', 'c', 0,
    'r', 'a', 'w', 'H', 'e', 'a', 'd', 'e', 'r', 0,
    'o', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'q', 'u', 'e', 'r', 'y', 'T', 'y', 'p', 'e', 0,
    'H', 't', 't', 'p', 'P', 'r', 'o', 'x', 'y', 0,
    'I', 's', 'R', 'u', 'n', 'n', 'i', 'n', 'g', 0,
    'b', 'r', 'o', 'a', 'd', 'c', 'a', 's', 't', 0,
    't', 'o', 'R', 'a', 'w', 'F', 'o', 'r', 'm', 0,
    's', 'e', 't', 'D', 'o', 'm', 'a', 'i', 'n', 0,
    's', 'e', 't', 'S', 'e', 'c', 'u', 'r', 'e', 0,
    'U', 'n', 'd', 'e', 'f', 'i', 'n', 'e', 'd', 0,
    'c', 'o', 'o', 'k', 'i', 'e', 'J', 'a', 'r', 0,
    'M', 'i', 'x', 'e', 'd', 'T', 'y', 'p', 'e', 0,
    's', 'e', 't', 'H', 'e', 'a', 'd', 'e', 'r', 0,
    'Q', 'H', 't', 't', 'p', 'P', 'a', 'r', 't', 0,
    's', 's', 'l', 'E', 'r', 'r', 'o', 'r', 's', 0,
    's', 'e', 't', 'S', 'o', 'c', 'k', 'e', 't', 0,
    'p', 'a', 'r', 's', 'e', 'L', 'i', 'n', 'e', 0,
    'a', 'l', 'l', 'V', 'a', 'l', 'u', 'e', 's', 0,
    's', 'e', 't', 'V', 'a', 'l', 'u', 'e', 's', 0,
    'a', 'd', 'd', 'r', 'e', 's', 's', 'e', 's', 0,
    'Q', 'H', 'o', 's', 't', 'I', 'n', 'f', 'o', 0,
    'L', 'o', 'c', 'a', 'l', 'H', 'o', 's', 't', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'I', 'd', 0,
    's', 'e', 't', 'O', 'p', 't', 'i', 'o', 'n', 0,
    'h', 'o', 's', 't', 'F', 'o', 'u', 'n', 'd', 0,
    'l', 'o', 'c', 'a', 'l', 'P', 'o', 'r', 't', 0,
    'c', 'a', 'c', 'h', 'e', 'S', 'i', 'z', 'e', 0,
    'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', 0,
    'r', 'e', 'c', 'e', 'i', 'v', 'e', 'r', 's', 0,
    'r', 'e', 'a', 'd', 'y', 'R', 'e', 'a', 'd', 0,
    'i', 's', 'S', 'y', 'm', 'L', 'i', 'n', 'k', 0,
    'R', 'e', 'a', 'd', 'O', 't', 'h', 'e', 'r', 0,
    'R', 'e', 'a', 'd', 'G', 'r', 'o', 'u', 'p', 0,
    'R', 'e', 'a', 'd', 'O', 'w', 'n', 'e', 'r', 0,
    'i', 's', 'R', 'u', 'n', 'n', 'i', 'n', 'g', 0,
    'a', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    'p', 'r', 'e', 'c', 'i', 's', 'i', 'o', 'n', 0,
    'w', 'r', 'i', 't', 'e', 'D', 'a', 't', 'a', 0,
    'l', 'e', 's', 's', 'T', 'h', 'a', 'n', 0,
    's', 'e', 't', 'G', 'r', 'o', 'u', 'p', 0,
    's', 'e', 't', 'O', 'w', 'n', 'e', 'r', 0,
    'Q', 'U', 'r', 'l', 'I', 'n', 'f', 'o', 0,
    'u', 's', 'e', 'd', 'B', 'i', 't', 's', 0,
    'f', 'r', 'o', 'm', 'D', 'a', 't', 'a', 0,
    'f', 'r', 'o', 'm', 'P', 'a', 't', 'h', 0,
    'D', 'n', 's', 'E', 'n', 't', 'r', 'y', 0,
    'i', 's', 'S', 'e', 'c', 'u', 'r', 'e', 0,
    'B', 'e', 'a', 'r', 'e', 'r', '2', 'G', 0,
    'i', 's', 'O', 'n', 'l', 'i', 'n', 'e', 0,
    's', 'e', 't', 'C', 'a', 'c', 'h', 'e', 0,
    't', 'i', 'm', 'e', 'd', 'O', 'u', 't', 0,
    'b', 'o', 'u', 'n', 'd', 'a', 'r', 'y', 0,
    's', 'e', 't', 'V', 'a', 'l', 'i', 'd', 0,
    'a', 'd', 'd', 'V', 'a', 'l', 'u', 'e', 0,
    'f', 'r', 'o', 'm', 'N', 'a', 'm', 'e', 0,
    'l', 'o', 'o', 'k', 'u', 'p', 'I', 'd', 0,
    'l', 'i', 's', 't', 'I', 'n', 'f', 'o', 0,
    'S', 'e', 't', 'P', 'r', 'o', 'x', 'y', 0,
    'L', 'o', 'g', 'g', 'e', 'd', 'I', 'n', 0,
    's', 'e', 't', 'P', 'r', 'o', 'x', 'y', 0,
    'p', 'e', 'e', 'r', 'N', 'a', 'm', 'e', 0,
    'p', 'e', 'e', 'r', 'P', 'o', 'r', 't', 0,
    'p', 'r', 'o', 't', 'o', 'c', 'o', 'l', 0,
    'h', 'o', 's', 't', 'N', 'a', 'm', 'e', 0,
    'm', 'e', 't', 'a', 'D', 'a', 't', 'a', 0,
    'p', 'a', 's', 's', 'w', 'o', 'r', 'd', 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,
    'c', 'h', 'i', 'l', 'd', 'r', 'e', 'n', 0,
    'l', 'a', 's', 't', 'R', 'e', 'a', 'd', 0,
    'E', 'x', 'e', 'O', 't', 'h', 'e', 'r', 0,
    'E', 'x', 'e', 'G', 'r', 'o', 'u', 'p', 0,
    'E', 'x', 'e', 'O', 'w', 'n', 'e', 'r', 0,
    't', 'o', 'S', 't', 'r', 'i', 'n', 'g', 0,
    'e', 'n', 'c', 'o', 'd', 'i', 'n', 'g', 0,
    'p', 'r', 'i', 'o', 'r', 'i', 't', 'y', 0,
    'r', 'e', 'a', 'd', 'D', 'a', 't', 'a', 0,
    '_', '_', 'h', 'a', 's', 'h', '_', '_', 0,
    's', 'e', 't', 'E', 'r', 'r', 'o', 'r', 0,
    'f', 'i', 'n', 'i', 's', 'h', 'e', 'd', 0,
    '_', '_', 'b', 'o', 'o', 'l', '_', '_', 0,
    '_', '_', 'i', 'x', 'o', 'r', '_', '_', 0,
    '_', '_', 'i', 'a', 'n', 'd', '_', '_', 0,
    'Q', 'S', 's', 'l', 'K', 'e', 'y', 0,
    'c', 'i', 'p', 'h', 'e', 'r', 's', 0,
    'm', 'i', 'g', 'r', 'a', 't', 'e', 0,
    'U', 's', 'e', 'r', 'M', 'a', 'x', 0,
    'm', 'a', 'n', 'a', 'g', 'e', 'r', 0,
    'N', 'o', 'P', 'r', 'o', 'x', 'y', 0,
    's', 'e', 't', 'N', 'a', 'm', 'e', 0,
    'p', 'u', 'r', 'p', 'o', 's', 'e', 0,
    'D', 'e', 'f', 'i', 'n', 'e', 'd', 0,
    's', 'e', 't', 'B', 'o', 'd', 'y', 0,
    'r', 'e', 'q', 'u', 'e', 's', 't', 0,
    'A', 'b', 'o', 'r', 't', 'e', 'd', 0,
    'R', 'e', 'a', 'd', 'i', 'n', 'g', 0,
    'S', 'e', 'n', 'd', 'i', 'n', 'g', 0,
    'n', 'e', 't', 'm', 'a', 's', 'k', 0,
    's', 'c', 'o', 'p', 'e', 'I', 'd', 0,
    'A', 'n', 'y', 'I', 'P', 'v', '6', 0,
    'P', 'a', 's', 's', 'i', 'v', 'e', 0,
    'C', 'l', 'o', 's', 'i', 'n', 'g', 0,
    's', 'e', 't', 'U', 's', 'e', 'r', 0,
    'p', 'r', 'e', 'p', 'a', 'r', 'e', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 0,
    's', 'e', 't', 'P', 'o', 'r', 't', 0,
    's', 'e', 't', 'H', 'o', 's', 't', 0,
    'o', 'p', 't', 'i', 'o', 'n', 's', 0,
    'r', 'e', 'a', 'd', 'A', 'l', 'l', 0,
    's', 'e', 't', 'F', 'i', 'l', 'e', 0,
    'a', 'd', 'd', 'r', 'e', 's', 's', 0,
    'N', 'o', 'E', 'r', 'r', 'o', 'r', 0,
    's', 'e', 't', 'T', 'y', 'p', 'e', 0,
    's', 'e', 't', 'P', 'a', 't', 'h', 0,
    'e', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'v', 'e', 'r', 's', 'i', 'o', 'n', 0,
    'i', 's', 'V', 'a', 'l', 'i', 'd', 0,
    'f', 'i', 'l', 't', 'e', 'r', 's', 0,
    's', 'e', 't', 'S', 'i', 'z', 'e', 0,
    '_', '_', 'a', 'n', 'd', '_', '_', 0,
    '_', '_', 'x', 'o', 'r', '_', '_', 0,
    '_', '_', 'i', 'n', 't', '_', '_', 0,
    '_', '_', 'i', 'o', 'r', '_', '_', 0,
    's', 'e', 't', 'D', 'i', 'r', 0,
    'd', 'i', 'g', 'e', 's', 't', 0,
    'c', 'l', 'o', 's', 'e', 'd', 0,
    'o', 'p', 'e', 'n', 'e', 'd', 0,
    'r', 'e', 'j', 'e', 'c', 't', 0,
    'M', 'a', 'n', 'u', 'a', 'l', 0,
    'e', 'x', 'p', 'i', 'r', 'e', 0,
    'd', 'o', 'm', 'a', 'i', 'n', 0,
    'l', 'i', 's', 't', 'e', 'n', 0,
    'h', 'a', 's', 'K', 'e', 'y', 0,
    'h', 'e', 'a', 'd', 'e', 'r', 0,
    'B', 'i', 'n', 'a', 'r', 'y', 0,
    'A', 'c', 't', 'i', 'v', 'e', 0,
    'R', 'e', 'n', 'a', 'm', 'e', 0,
    'R', 'e', 'm', 'o', 'v', 'e', 0,
    'o', 'p', 't', 'i', 'o', 'n', 0,
    'v', 'a', 'l', 'u', 'e', 's', 0,
    's', 'e', 't', 'U', 'r', 'l', 0,
    's', 'y', 'n', 't', 'a', 'x', 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,
    'i', 's', 'O', 'p', 'e', 'n', 0,
    'i', 's', 'F', 'i', 'l', 'e', 0,
    's', 'u', 'f', 'f', 'i', 'x', 0,
    'p', 'r', 'e', 'f', 'i', 'x', 0,
    'd', 'e', 'v', 'i', 'c', 'e', 0,
    'm', 'e', 't', 'h', 'o', 'd', 0,
    'i', 'g', 'n', 'o', 'r', 'e', 0,
    'a', 'c', 'c', 'e', 'p', 't', 0,
    'f', 'o', 'r', 'm', 'a', 't', 0,
    'i', 'n', 's', 'e', 'r', 't', 0,
    'a', 'p', 'p', 'e', 'n', 'd', 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,
    'h', 'a', 'n', 'd', 'l', 'e', 0,
    'r', 'e', 'n', 'a', 'm', 'e', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 0,
    'o', 'b', 'j', 'e', 'c', 't', 0,
    'p', 'a', 'r', 'e', 'n', 't', 0,
    '_', '_', 'n', 'e', '_', '_', 0,
    '_', '_', 'e', 'q', '_', '_', 0,
    '_', '_', 'o', 'r', '_', '_', 0,
    'e', 'q', 'u', 'a', 'l', 0,
    't', 'o', 'D', 'e', 'r', 0,
    't', 'o', 'P', 'e', 'm', 0,
    'T', 'l', 's', 'V', '1', 0,
    'S', 's', 'l', 'V', '2', 0,
    's', 'e', 't', 'I', 'p', 0,
    'c', 'a', 'c', 'h', 'e', 0,
    'Q', 'H', 't', 't', 'p', 0,
    'm', 'i', 'n', 'o', 'r', 0,
    'm', 'a', 'j', 'o', 'r', 0,
    'p', 'a', 'r', 's', 'e', 0,
    'l', 'o', 'g', 'i', 'n', 0,
    'A', 's', 'c', 'i', 'i', 0,
    'R', 'm', 'd', 'i', 'r', 0,
    'M', 'k', 'd', 'i', 'r', 0,
    'L', 'o', 'g', 'i', 'n', 0,
    'N', 'o', 'n', 'e', '_', 0,
    'r', 'e', 'a', 'l', 'm', 0,
    'p', 'r', 'o', 'x', 'y', 0,
    'a', 'b', 'o', 'r', 't', 0,
    'q', 'u', 'e', 'r', 'y', 0,
    'i', 's', 'D', 'i', 'r', 0,
    'c', 'l', 'e', 'a', 'r', 0,
    'r', 'e', 's', 'e', 't', 0,
    'v', 'a', 'l', 'u', 'e', 0,
    'i', 'n', 'd', 'e', 'x', 0,
    'e', 'r', 'r', 'o', 'r', 0,
    'o', 'w', 'n', 'e', 'r', 0,
    'r', 'm', 'd', 'i', 'r', 0,
    'm', 'k', 'd', 'i', 'r', 0,
    'c', 'l', 'o', 's', 'e', 0,
    'a', 't', 'E', 'n', 'd', 0,
    'f', 'l', 'u', 's', 'h', 0,
    'f', 'l', 'a', 'g', 's', 0,
    'e', 'v', 'e', 'n', 't', 0,
    'm', 's', 'e', 'c', 's', 0,
    'g', 'r', 'o', 'u', 'p', 0,
    's', 't', 'a', 't', 'e', 0,
    'b', 'i', 'n', 'd', 0,
    'Q', 'S', 's', 'l', 0,
    'I', 's', 'U', 'p', 0,
    'F', 'u', 'l', 'l', 0,
    'h', 'e', 'a', 'd', 0,
    'p', 'o', 's', 't', 0,
    'd', 'o', 'n', 'e', 0,
    'Q', 'F', 't', 'p', 0,
    'u', 's', 'e', 'r', 0,
    'h', 'o', 's', 't', 0,
    't', 'e', 'x', 't', 0,
    'k', 'e', 'y', 's', 0,
    'l', 'i', 's', 't', 0,
    'm', 'o', 'd', 'e', 0,
    'b', 'a', 's', 'e', 0,
    'f', 'r', 'o', 'm', 0,
    's', 'o', 'r', 't', 0,
    'p', 'a', 't', 'h', 0,
    'r', 'e', 'a', 'd', 0,
    'd', 'a', 't', 'a', 0,
    't', 'y', 'p', 'e', 0,
    's', 'e', 'e', 'k', 0,
    's', 'i', 'z', 'e', 0,
    'o', 'p', 'e', 'n', 0,
    's', 't', 'o', 'p', 0,
    'D', 's', 'a', 0,
    'R', 's', 'a', 0,
    'A', 'n', 'y', 0,
    'p', 'u', 't', 0,
    'g', 'e', 't', 0,
    'P', 'u', 't', 0,
    'G', 'e', 't', 0,
    'u', 'r', 'l', 0,
    'p', 'o', 's', 0,
    'i', 'p', 0,
    'C', 'd', 0,
    'c', 'd', 0,
    't', 'o', 0,
};
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qabstractnetworkcache.h>
#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qlocalserver.sip"
#include <qlocalserver.h>
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfigmanager.sip"
#include <qnetworkconfigmanager.h>
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qudpsocket.sip"
#include <qudpsocket.h>
#line 1021 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

void sipVH_QtNetwork_0(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QDateTime& a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QDateTime(a0),sipType_QDateTime,NULL);

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

void sipVH_QtNetwork_1(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, bool a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "b",a0);

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

void sipVH_QtNetwork_2(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");
}

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

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

    return sipRes;
}

QList<QNetworkProxy> sipVH_QtNetwork_4(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QNetworkProxyQuery& a0)
{
    QList<QNetworkProxy> sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QNetworkProxyQuery(a0),sipType_QNetworkProxyQuery,NULL);

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

    return sipRes;
}

void sipVH_QtNetwork_5(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QIODevice*a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QIODevice,NULL);

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

QIODevice* sipVH_QtNetwork_6(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QNetworkCacheMetaData& a0)
{
    QIODevice* sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QNetworkCacheMetaData(a0),sipType_QNetworkCacheMetaData,NULL);

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

    return sipRes;
}

bool sipVH_QtNetwork_7(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QUrl& a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QUrl(a0),sipType_QUrl,NULL);

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

    return sipRes;
}

QIODevice* sipVH_QtNetwork_8(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QUrl& a0)
{
    QIODevice* sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QUrl(a0),sipType_QUrl,NULL);

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

    return sipRes;
}

void sipVH_QtNetwork_9(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QNetworkCacheMetaData& a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QNetworkCacheMetaData(a0),sipType_QNetworkCacheMetaData,NULL);

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

QNetworkCacheMetaData sipVH_QtNetwork_10(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QUrl& a0)
{
    QNetworkCacheMetaData sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QUrl(a0),sipType_QUrl,NULL);

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

    return sipRes;
}

bool sipVH_QtNetwork_11(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QList<QNetworkCookie>& a0,const QUrl& a1)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NN",new QList<QNetworkCookie>(a0),sipType_QList_0100QNetworkCookie,NULL,new QUrl(a1),sipType_QUrl,NULL);

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

    return sipRes;
}

QList<QNetworkCookie> sipVH_QtNetwork_12(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QUrl& a0)
{
    QList<QNetworkCookie> sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QUrl(a0),sipType_QUrl,NULL);

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

    return sipRes;
}

QNetworkReply* sipVH_QtNetwork_13(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QNetworkAccessManager::Operation a0,const QNetworkRequest& a1,QIODevice*a2)
{
    QNetworkReply* sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "FND",a0,sipType_QNetworkAccessManager_Operation,new QNetworkRequest(a1),sipType_QNetworkRequest,NULL,a2,sipType_QIODevice,NULL);

    int sipRc = sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H1", sipType_QNetworkReply, &sipRes);

    if (sipRc < 0)
        abort();

    return sipRes;
}

void sipVH_QtNetwork_14(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, quintptr a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new quintptr(a0),sipType_quintptr,NULL);

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

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

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

    return sipRes;
}

bool sipVH_QtNetwork_16(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QString& a0,int a1)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "Ni",new QString(a0),sipType_QString,NULL,a1);

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

    return sipRes;
}


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

    {
        QDataStream* a0;
        QNetworkCacheMetaData* a1;

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

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

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

    {
        QDataStream* a0;
        QHostAddress* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J1", sipType_QDataStream, &a0, sipType_QHostAddress, &a1, &a1State))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QHostAddress,a1State);

            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 QNetworkCacheMetaData* a1;

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

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

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

    {
        QDataStream* a0;
        const QHostAddress* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J1", sipType_QDataStream, &a0, sipType_QHostAddress, &a1, &a1State))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a1),sipType_QHostAddress,a1State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

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_QAbstractSocket(void **);}
static const sipTypeDef *sipSubClass_QAbstractSocket(void **sipCppRet)
{
    QObject *sipCpp = reinterpret_cast<QObject *>(*sipCppRet);
    const sipTypeDef *sipType;

#line 39 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
    static struct class_graph {
        const char *name;
        sipTypeDef **type;
        int yes, no;
    } graph[] = {
    #if QT_VERSION < 0x050000
        {sipName_QFtp, &sipType_QFtp, -1, 1},
    #else
        {0, 0, -1, 1},
    #endif
    #if QT_VERSION >= 0x040400
        {sipName_QNetworkCookieJar, &sipType_QNetworkCookieJar, -1, 2},
    #else
        {0, 0, -1, 2},
    #endif
    #if QT_VERSION >= 0x040700
        {sipName_QNetworkSession, &sipType_QNetworkSession, -1, 3},
    #else
        {0, 0, -1, 3},
    #endif
        {sipName_QTcpServer, &sipType_QTcpServer, -1, 4},
    #if QT_VERSION >= 0x040700
        {sipName_QNetworkConfigurationManager, &sipType_QNetworkConfigurationManager, -1, 5},
    #else
        {0, 0, -1, 5},
    #endif
    #if QT_VERSION >= 0x040800
        {sipName_QHttpMultiPart, &sipType_QHttpMultiPart, -1, 6},
    #else
        {0, 0, -1, 6},
    #endif
        {sipName_QAbstractSocket, &sipType_QAbstractSocket, 13, 7},
    #if QT_VERSION < 0x050000
        {sipName_QHttp, &sipType_QHttp, -1, 8},
    #else
        {0, 0, -1, 8},
    #endif
    #if QT_VERSION >= 0x040400
        {sipName_QLocalServer, &sipType_QLocalServer, -1, 9},
    #else
        {0, 0, -1, 9},
    #endif
    #if QT_VERSION >= 0x040500
        {sipName_QAbstractNetworkCache, &sipType_QAbstractNetworkCache, 16, 10},
    #else
        {0, 0, 16, 10},
    #endif
    #if QT_VERSION >= 0x040400
        {sipName_QNetworkAccessManager, &sipType_QNetworkAccessManager, -1, 11},
    #else
        {0, 0, -1, 11},
    #endif
    #if QT_VERSION >= 0x040400
        {sipName_QNetworkReply, &sipType_QNetworkReply, -1, 12},
    #else
        {0, 0, -1, 12},
    #endif
    #if QT_VERSION >= 0x040400
        {sipName_QLocalSocket, &sipType_QLocalSocket, -1, -1},
    #else
        {0, 0, -1, -1},
    #endif
        {sipName_QUdpSocket, &sipType_QUdpSocket, -1, 14},
        {sipName_QTcpSocket, &sipType_QTcpSocket, 15, -1},
    #if QT_VERSION >= 0x040300 && (defined(SIP_FEATURE_PyQt_OpenSSL) || defined(SIP_FEATURE_PyQt_SSL))
        {sipName_QSslSocket, &sipType_QSslSocket, -1, -1},
    #else
        {0, 0, -1, -1},
    #endif
    #if QT_VERSION >= 0x040500
        {sipName_QNetworkDiskCache, &sipType_QNetworkDiskCache, -1, -1},
    #else
        {0, 0, -1, -1},
    #endif
    };
    
    int i = 0;
    
    sipType = NULL;
    
    do
    {
        struct class_graph *cg = &graph[i];
    
        if (cg->name != NULL && sipCpp->inherits(cg->name))
        {
            sipType = *cg->type;
            i = cg->yes;
        }
        else
            i = cg->no;
    }
    while (i >= 0);
#line 1384 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

    return sipType;
}


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

    {
        QUdpSocket::BindFlag a0;
        QUdpSocket::BindMode* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QUdpSocket_BindFlag, &a0, sipType_QUdpSocket_BindMode, &a1, &a1State))
        {
            QUdpSocket::BindMode*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUdpSocket::BindMode((a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QUdpSocket_BindMode,a1State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

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



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

    {
        QSsl::SslOption a0;
        QSsl::SslOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QSsl_SslOption, &a0, sipType_QSsl_SslOptions, &a1, &a1State))
        {
            QSsl::SslOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSsl::SslOptions((a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QSsl_SslOptions,a1State);

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

    {
        QSsl::SslOption a0;
        QSsl::SslOption a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EE", sipType_QSsl_SslOption, &a0, sipType_QSsl_SslOption, &a1))
        {
            QSsl::SslOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSsl::SslOptions((a0 | a1));
            Py_END_ALLOW_THREADS

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

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



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

    {
        QNetworkInterface::InterfaceFlag a0;
        QNetworkInterface::InterfaceFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QNetworkInterface_InterfaceFlag, &a0, sipType_QNetworkInterface_InterfaceFlags, &a1, &a1State))
        {
            QNetworkInterface::InterfaceFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkInterface::InterfaceFlags((a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QNetworkInterface_InterfaceFlags,a1State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

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



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

    {
        QNetworkConfigurationManager::Capability a0;
        QNetworkConfigurationManager::Capabilities* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QNetworkConfigurationManager_Capability, &a0, sipType_QNetworkConfigurationManager_Capabilities, &a1, &a1State))
        {
            QNetworkConfigurationManager::Capabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfigurationManager::Capabilities((a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QNetworkConfigurationManager_Capabilities,a1State);

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

    {
        QNetworkConfigurationManager::Capability a0;
        QNetworkConfigurationManager::Capability a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EE", sipType_QNetworkConfigurationManager_Capability, &a0, sipType_QNetworkConfigurationManager_Capability, &a1))
        {
            QNetworkConfigurationManager::Capabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfigurationManager::Capabilities((a0 | a1));
            Py_END_ALLOW_THREADS

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

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



extern "C" {static PyObject *slot_QHostAddress_SpecialAddress___eq__(PyObject *,PyObject *);}
static PyObject *slot_QHostAddress_SpecialAddress___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QHostAddress::SpecialAddress sipCpp = static_cast<QHostAddress::SpecialAddress>(SIPLong_AsLong(sipSelf));

    PyObject *sipParseErr = NULL;

    {
        const QHostAddress* a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = operator==(sipCpp, *a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QHostAddress_SpecialAddress[] = {
    {(void *)slot_QHostAddress_SpecialAddress___eq__, eq_slot},
    {0, (sipPySlotType)0}
};

static sipEnumTypeDef enumTypes[] = {
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QUrlInfo__PermissionSpec, {0}}, sipNameNr_PermissionSpec, 106, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QUdpSocket__BindFlag, {0}}, sipNameNr_BindFlag, 103, slots_QUdpSocket_BindFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSslSocket__PeerVerifyMode, {0}}, sipNameNr_PeerVerifyMode, 98, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSslSocket__SslMode, {0}}, sipNameNr_SslMode, 98, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSslError__SslError, {0}}, sipNameNr_SslError, 95, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSslCertificate__SubjectInfo, {0}}, sipNameNr_SubjectInfo, 91, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSsl__SslOption, {0}}, sipNameNr_SslOption, 83, slots_QSsl_SslOption},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSsl__SslProtocol, {0}}, sipNameNr_SslProtocol, 83, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSsl__AlternateNameEntryType, {0}}, sipNameNr_AlternateNameEntryType, 83, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSsl__KeyAlgorithm, {0}}, sipNameNr_KeyAlgorithm, 83, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSsl__EncodingFormat, {0}}, sipNameNr_EncodingFormat, 83, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSsl__KeyType, {0}}, sipNameNr_KeyType, 83, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkSession__SessionError, {0}}, sipNameNr_SessionError, 79, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkSession__State, {0}}, sipNameNr_State, 79, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkRequest__Priority, {0}}, sipNameNr_Priority, 73, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkRequest__LoadControl, {0}}, sipNameNr_LoadControl, 73, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkRequest__CacheLoadControl, {0}}, sipNameNr_CacheLoadControl, 73, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkRequest__Attribute, {0}}, sipNameNr_Attribute, 73, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkRequest__KnownHeaders, {0}}, sipNameNr_KnownHeaders, 73, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkReply__NetworkError, {0}}, sipNameNr_NetworkError, 71, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkProxyQuery__QueryType, {0}}, sipNameNr_QueryType, 69, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkProxy__Capability, {0}}, sipNameNr_Capability, 64, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkProxy__ProxyType, {0}}, sipNameNr_ProxyType, 64, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkInterface__InterfaceFlag, {0}}, sipNameNr_InterfaceFlag, 61, slots_QNetworkInterface_InterfaceFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkCookie__RawForm, {0}}, sipNameNr_RawForm, 57, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkConfiguration__BearerType, {0}}, sipNameNr_BearerType, 48, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkConfiguration__StateFlag, {0}}, sipNameNr_StateFlag, 48, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkConfiguration__Purpose, {0}}, sipNameNr_Purpose, 48, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkConfiguration__Type, {0}}, sipNameNr_Type, 48, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkConfigurationManager__Capability, {0}}, sipNameNr_Capability, 54, slots_QNetworkConfigurationManager_Capability},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkAccessManager__NetworkAccessibility, {0}}, sipNameNr_NetworkAccessibility, 43, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QNetworkAccessManager__Operation, {0}}, sipNameNr_Operation, 43, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QLocalSocket__LocalSocketState, {0}}, sipNameNr_LocalSocketState, 39, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QLocalSocket__LocalSocketError, {0}}, sipNameNr_LocalSocketError, 39, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QHttpMultiPart__ContentType, {0}}, sipNameNr_ContentType, 24, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QHttp__Error, {0}}, sipNameNr_Error, 19, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QHttp__State, {0}}, sipNameNr_State, 19, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QHttp__ConnectionMode, {0}}, sipNameNr_ConnectionMode, 19, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QHostInfo__HostInfoError, {0}}, sipNameNr_HostInfoError, 17, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QHostAddress__SpecialAddress, {0}}, sipNameNr_SpecialAddress, 15, slots_QHostAddress_SpecialAddress},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFtp__TransferType, {0}}, sipNameNr_TransferType, 8, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFtp__TransferMode, {0}}, sipNameNr_TransferMode, 8, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFtp__Command, {0}}, sipNameNr_Command, 8, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFtp__Error, {0}}, sipNameNr_Error, 8, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFtp__State, {0}}, sipNameNr_State, 8, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QAbstractSocket__SocketOption, {0}}, sipNameNr_SocketOption, 1, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QAbstractSocket__SocketState, {0}}, sipNameNr_SocketState, 1, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QAbstractSocket__SocketError, {0}}, sipNameNr_SocketError, 1, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QAbstractSocket__NetworkLayerProtocol, {0}}, sipNameNr_NetworkLayerProtocol, 1, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QAbstractSocket__SocketType, {0}}, sipNameNr_SocketType, 1, NULL},
};


/*
 * This defines each type in this module.
 */
static sipTypeDef *typesTable[] = {
    &sipTypeDef_QtNetwork_QAbstractNetworkCache.super.ctd_base,
    &sipTypeDef_QtNetwork_QAbstractSocket.super.ctd_base,
    &enumTypes[48].etd_base,
    &enumTypes[47].etd_base,
    &enumTypes[45].etd_base,
    &enumTypes[46].etd_base,
    &enumTypes[49].etd_base,
    &sipTypeDef_QtNetwork_QAuthenticator.super.ctd_base,
    &sipTypeDef_QtNetwork_QFtp.super.ctd_base,
    &enumTypes[42].etd_base,
    &enumTypes[43].etd_base,
    &enumTypes[44].etd_base,
    &enumTypes[41].etd_base,
    &enumTypes[40].etd_base,
    &sipTypeDef_QtNetwork_QHash_0100QNetworkRequest_Attribute_0100QVariant.mtd_base,
    &sipTypeDef_QtNetwork_QHostAddress.super.ctd_base,
    &enumTypes[39].etd_base,
    &sipTypeDef_QtNetwork_QHostInfo.super.ctd_base,
    &enumTypes[38].etd_base,
    &sipTypeDef_QtNetwork_QHttp.super.ctd_base,
    &enumTypes[37].etd_base,
    &enumTypes[35].etd_base,
    &enumTypes[36].etd_base,
    &sipTypeDef_QtNetwork_QHttpHeader.super.ctd_base,
    &sipTypeDef_QtNetwork_QHttpMultiPart.super.ctd_base,
    &enumTypes[34].etd_base,
    &sipTypeDef_QtNetwork_QHttpPart.super.ctd_base,
    &sipTypeDef_QtNetwork_QHttpRequestHeader.super.ctd_base,
    &sipTypeDef_QtNetwork_QHttpResponseHeader.super.ctd_base,
    &sipTypeDef_QtNetwork_QList_0100QHostAddress.mtd_base,
    &sipTypeDef_QtNetwork_QList_0100QNetworkAddressEntry.mtd_base,
    &sipTypeDef_QtNetwork_QList_0100QNetworkConfiguration.mtd_base,
    &sipTypeDef_QtNetwork_QList_0100QNetworkCookie.mtd_base,
    &sipTypeDef_QtNetwork_QList_0100QNetworkInterface.mtd_base,
    &sipTypeDef_QtNetwork_QList_0100QNetworkProxy.mtd_base,
    &sipTypeDef_QtNetwork_QList_0100QSslCertificate.mtd_base,
    &sipTypeDef_QtNetwork_QList_0100QSslCipher.mtd_base,
    &sipTypeDef_QtNetwork_QList_0100QSslError.mtd_base,
    &sipTypeDef_QtNetwork_QLocalServer.super.ctd_base,
    &sipTypeDef_QtNetwork_QLocalSocket.super.ctd_base,
    &enumTypes[33].etd_base,
    &enumTypes[32].etd_base,
    &sipTypeDef_QtNetwork_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString.mtd_base,
    &sipTypeDef_QtNetwork_QNetworkAccessManager.super.ctd_base,
    &enumTypes[30].etd_base,
    &enumTypes[31].etd_base,
    &sipTypeDef_QtNetwork_QNetworkAddressEntry.super.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkCacheMetaData.super.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkConfiguration.super.ctd_base,
    &enumTypes[25].etd_base,
    &enumTypes[27].etd_base,
    &enumTypes[26].etd_base,
    &sipTypeDef_QtNetwork_QNetworkConfiguration_StateFlags.super.ctd_base,
    &enumTypes[28].etd_base,
    &sipTypeDef_QtNetwork_QNetworkConfigurationManager.super.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkConfigurationManager_Capabilities.super.ctd_base,
    &enumTypes[29].etd_base,
    &sipTypeDef_QtNetwork_QNetworkCookie.super.ctd_base,
    &enumTypes[24].etd_base,
    &sipTypeDef_QtNetwork_QNetworkCookieJar.super.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkDiskCache.super.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkInterface.super.ctd_base,
    &enumTypes[23].etd_base,
    &sipTypeDef_QtNetwork_QNetworkInterface_InterfaceFlags.super.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkProxy.super.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkProxy_Capabilities.super.ctd_base,
    &enumTypes[21].etd_base,
    &enumTypes[22].etd_base,
    &sipTypeDef_QtNetwork_QNetworkProxyFactory.super.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkProxyQuery.super.ctd_base,
    &enumTypes[20].etd_base,
    &sipTypeDef_QtNetwork_QNetworkReply.super.ctd_base,
    &enumTypes[19].etd_base,
    &sipTypeDef_QtNetwork_QNetworkRequest.super.ctd_base,
    &enumTypes[17].etd_base,
    &enumTypes[16].etd_base,
    &enumTypes[18].etd_base,
    &enumTypes[15].etd_base,
    &enumTypes[14].etd_base,
    &sipTypeDef_QtNetwork_QNetworkSession.super.ctd_base,
    &enumTypes[12].etd_base,
    &enumTypes[13].etd_base,
    &sipTypeDef_QtNetwork_QPair_0100QHostAddress_1800.mtd_base,
    &sipTypeDef_QtNetwork_QSsl.super.ctd_base,
    &enumTypes[8].etd_base,
    &enumTypes[10].etd_base,
    &enumTypes[9].etd_base,
    &enumTypes[11].etd_base,
    &enumTypes[6].etd_base,
    &sipTypeDef_QtNetwork_QSsl_SslOptions.super.ctd_base,
    &enumTypes[7].etd_base,
    &sipTypeDef_QtNetwork_QSslCertificate.super.ctd_base,
    &enumTypes[5].etd_base,
    &sipTypeDef_QtNetwork_QSslCipher.super.ctd_base,
    &sipTypeDef_QtNetwork_QSslConfiguration.super.ctd_base,
    &sipTypeDef_QtNetwork_QSslError.super.ctd_base,
    &enumTypes[4].etd_base,
    &sipTypeDef_QtNetwork_QSslKey.super.ctd_base,
    &sipTypeDef_QtNetwork_QSslSocket.super.ctd_base,
    &enumTypes[2].etd_base,
    &enumTypes[3].etd_base,
    &sipTypeDef_QtNetwork_QTcpServer.super.ctd_base,
    &sipTypeDef_QtNetwork_QTcpSocket.super.ctd_base,
    &sipTypeDef_QtNetwork_QUdpSocket.super.ctd_base,
    &enumTypes[1].etd_base,
    &sipTypeDef_QtNetwork_QUdpSocket_BindMode.super.ctd_base,
    &sipTypeDef_QtNetwork_QUrlInfo.super.ctd_base,
    &enumTypes[0].etd_base,
    &sipTypeDef_QtNetwork_Q_IPV6ADDR.mtd_base,
};


/*
 * These define each typedef in this module.
 */
static sipTypedefDef typedefsTable[] = {
    {"QNetworkCacheMetaData::AttributesMap", "QHash<QNetworkRequest::Attribute,QVariant>"},
    {"QNetworkCacheMetaData::RawHeaderList", "QList<QPair<QByteArray,QByteArray> >"},
};


/*
 * This defines the virtual handlers that this module implements and can be
 * used by other modules.
 */
static sipVirtHandlerFunc virtHandlersTable[] = {
    (sipVirtHandlerFunc)sipVH_QtNetwork_0,
    (sipVirtHandlerFunc)sipVH_QtNetwork_1,
    (sipVirtHandlerFunc)sipVH_QtNetwork_2,
    (sipVirtHandlerFunc)sipVH_QtNetwork_3,
    (sipVirtHandlerFunc)sipVH_QtNetwork_4,
    (sipVirtHandlerFunc)sipVH_QtNetwork_5,
    (sipVirtHandlerFunc)sipVH_QtNetwork_6,
    (sipVirtHandlerFunc)sipVH_QtNetwork_7,
    (sipVirtHandlerFunc)sipVH_QtNetwork_8,
    (sipVirtHandlerFunc)sipVH_QtNetwork_9,
    (sipVirtHandlerFunc)sipVH_QtNetwork_10,
    (sipVirtHandlerFunc)sipVH_QtNetwork_11,
    (sipVirtHandlerFunc)sipVH_QtNetwork_12,
    (sipVirtHandlerFunc)sipVH_QtNetwork_13,
    (sipVirtHandlerFunc)sipVH_QtNetwork_14,
    (sipVirtHandlerFunc)sipVH_QtNetwork_15,
    (sipVirtHandlerFunc)sipVH_QtNetwork_16,
};


/* 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_QAbstractSocket, {141, 0, 0}, NULL},
    {NULL, {0, 0, 0}, NULL}
};


/* This defines this module. */
sipExportedModuleDef sipModuleAPI_QtNetwork = {
    0,
    SIP_API_MINOR_NR,
    sipNameNr_PyQt4_QtNetwork,
    0,
    -1,
    sipStrings_QtNetwork,
    importsTable,
    NULL,
    109,
    typesTable,
    NULL,
    0,
    NULL,
    2,
    typedefsTable,
    virtHandlersTable,
    NULL,
    convertorsTable,
    {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL},
    NULL,
    NULL,
    slotExtenders,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
};


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

sip_qt_metaobject_func sip_QtNetwork_qt_metaobject;
sip_qt_metacall_func sip_QtNetwork_qt_metacall;
sip_qt_metacast_func sip_QtNetwork_qt_metacast;


/* The Python module initialisation function. */
#if PY_MAJOR_VERSION >= 3
#define SIP_MODULE_ENTRY        PyInit_QtNetwork
#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        initQtNetwork
#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[] = {
        {0, 0, 0, 0}
    };

#if PY_MAJOR_VERSION >= 3
    static PyModuleDef sip_module_def = {
        PyModuleDef_HEAD_INIT,
        "PyQt4.QtNetwork",
        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_QtNetwork, sip_methods);
#else
    sipModule = Py_InitModule(const_cast<char *>(sipName_PyQt4_QtNetwork), 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_QtNetwork = reinterpret_cast<const sipAPIDef *>(PyCapsule_GetPointer(sip_capiobj, SIP_MODULE_NAME "._C_API"));
#else
    sipAPI_QtNetwork = reinterpret_cast<const sipAPIDef *>(PyCObject_AsVoidPtr(sip_capiobj));
#endif

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

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

    sip_QtNetwork_qt_metaobject = (sip_qt_metaobject_func)sipImportSymbol("qtcore_qt_metaobject");
    sip_QtNetwork_qt_metacall = (sip_qt_metacall_func)sipImportSymbol("qtcore_qt_metacall");
    sip_QtNetwork_qt_metacast = (sip_qt_metacast_func)sipImportSymbol("qtcore_qt_metacast");

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

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

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

    SIP_MODULE_RETURN(sipModule);
}

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1998 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslcipher.sip"
#include <qsslcipher.h>
#line 2002 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


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


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


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


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



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

#line 64 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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_QSslCipher, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

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

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

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QSslCipher, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 2092 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


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

#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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)
    {
        QSslCipher *t = new QSslCipher(sipCpp->at(i));
        PyObject *tobj;

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

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 2126 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QSslCipher = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_5745,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QSslCipher,
    array_QList_0100QSslCipher,
    copy_QList_0100QSslCipher,
    release_QList_0100QSslCipher,
    convertTo_QList_0100QSslCipher,
    convertFrom_QList_0100QSslCipher
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2157 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 2161 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


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


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


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


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



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

#line 64 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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_QSslCertificate, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

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

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

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QSslCertificate, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 2251 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


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

#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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)
    {
        QSslCertificate *t = new QSslCertificate(sipCpp->at(i));
        PyObject *tobj;

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

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 2285 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QSslCertificate = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_3167,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QSslCertificate,
    array_QList_0100QSslCertificate,
    copy_QList_0100QSslCertificate,
    release_QList_0100QSslCertificate,
    convertTo_QList_0100QSslCertificate,
    convertFrom_QList_0100QSslCertificate
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2316 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 2320 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


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


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


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


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



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

#line 64 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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_QNetworkProxy, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

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

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

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QNetworkProxy, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 2410 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


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

#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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)
    {
        QNetworkProxy *t = new QNetworkProxy(sipCpp->at(i));
        PyObject *tobj;

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

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 2444 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QNetworkProxy = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_3927,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QNetworkProxy,
    array_QList_0100QNetworkProxy,
    copy_QList_0100QNetworkProxy,
    release_QList_0100QNetworkProxy,
    convertTo_QList_0100QNetworkProxy,
    convertFrom_QList_0100QNetworkProxy
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2475 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 75 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 2479 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


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


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


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


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



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

#line 64 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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_QNetworkInterface, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

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

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

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QNetworkInterface, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 2569 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


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

#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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)
    {
        QNetworkInterface *t = new QNetworkInterface(sipCpp->at(i));
        PyObject *tobj;

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

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 2603 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QNetworkInterface = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_2628,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QNetworkInterface,
    array_QList_0100QNetworkInterface,
    copy_QList_0100QNetworkInterface,
    release_QList_0100QNetworkInterface,
    convertTo_QList_0100QNetworkInterface,
    convertFrom_QList_0100QNetworkInterface
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2634 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 39 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 2638 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


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


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


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


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



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

#line 64 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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_QNetworkAddressEntry, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

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

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

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QNetworkAddressEntry, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 2728 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


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

#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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)
    {
        QNetworkAddressEntry *t = new QNetworkAddressEntry(sipCpp->at(i));
        PyObject *tobj;

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

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 2762 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QNetworkAddressEntry = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1760,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QNetworkAddressEntry,
    array_QList_0100QNetworkAddressEntry,
    copy_QList_0100QNetworkAddressEntry,
    release_QList_0100QNetworkAddressEntry,
    convertTo_QList_0100QNetworkAddressEntry,
    convertFrom_QList_0100QNetworkAddressEntry
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2793 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkcookie.sip"
#include <qnetworkcookie.h>
#line 2797 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


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


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


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


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



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

#line 64 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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_QNetworkCookie, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

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

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

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QNetworkCookie, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 2887 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


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

#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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)
    {
        QNetworkCookie *t = new QNetworkCookie(sipCpp->at(i));
        PyObject *tobj;

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

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 2921 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QNetworkCookie = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_3443,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QNetworkCookie,
    array_QList_0100QNetworkCookie,
    copy_QList_0100QNetworkCookie,
    release_QList_0100QNetworkCookie,
    convertTo_QList_0100QNetworkCookie,
    convertFrom_QList_0100QNetworkCookie
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2952 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 2956 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


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


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


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


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



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

#line 64 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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_QNetworkConfiguration, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

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

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

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QNetworkConfiguration, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 3046 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


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

#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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)
    {
        QNetworkConfiguration *t = new QNetworkConfiguration(sipCpp->at(i));
        PyObject *tobj;

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

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 3080 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QNetworkConfiguration = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1354,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QNetworkConfiguration,
    array_QList_0100QNetworkConfiguration,
    copy_QList_0100QNetworkConfiguration,
    release_QList_0100QNetworkConfiguration,
    convertTo_QList_0100QNetworkConfiguration,
    convertFrom_QList_0100QNetworkConfiguration
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3111 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 3115 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


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


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


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


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



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

#line 64 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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_QSslError, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

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

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

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QSslError, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 3205 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


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

#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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)
    {
        QSslError *t = new QSslError(sipCpp->at(i));
        PyObject *tobj;

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

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 3239 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QSslError = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_6357,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QSslError,
    array_QList_0100QSslError,
    copy_QList_0100QSslError,
    release_QList_0100QSslError,
    convertTo_QList_0100QSslError,
    convertFrom_QList_0100QSslError
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3270 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 3274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


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


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


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


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



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

#line 64 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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_QHostAddress, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

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

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

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QHostAddress, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 3364 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


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

#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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)
    {
        QHostAddress *t = new QHostAddress(sipCpp->at(i));
        PyObject *tobj;

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

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 3398 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QHostAddress = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_4536,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QHostAddress,
    array_QList_0100QHostAddress,
    copy_QList_0100QHostAddress,
    release_QList_0100QHostAddress,
    convertTo_QList_0100QHostAddress,
    convertFrom_QList_0100QHostAddress
};

#line 88 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qpair.sip"
#include <qpair.h>
#line 3429 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 3433 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static void assign_QPair_0100QHostAddress_1800(void *, SIP_SSIZE_T, const void *);}
static void assign_QPair_0100QHostAddress_1800(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPair<QHostAddress,int> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPair<QHostAddress,int> *>(sipSrc);
}


extern "C" {static void *array_QPair_0100QHostAddress_1800(SIP_SSIZE_T);}
static void *array_QPair_0100QHostAddress_1800(SIP_SSIZE_T sipNrElem)
{
    return new QPair<QHostAddress,int>[sipNrElem];
}


extern "C" {static void *copy_QPair_0100QHostAddress_1800(const void *, SIP_SSIZE_T);}
static void *copy_QPair_0100QHostAddress_1800(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPair<QHostAddress,int>(reinterpret_cast<const QPair<QHostAddress,int> *>(sipSrc)[sipSrcIdx]);
}


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



extern "C" {static int convertTo_QPair_0100QHostAddress_1800(PyObject *, void **, int *, PyObject *);}
static int convertTo_QPair_0100QHostAddress_1800(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QPair<QHostAddress,int> **sipCppPtr = reinterpret_cast<QPair<QHostAddress,int> **>(sipCppPtrV);

#line 130 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qpair.sip"
    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
        return (PyTuple_Size(sipPy) == 2 && sipCanConvertToType(PyTuple_GET_ITEM(sipPy, 0), sipType_QHostAddress, SIP_NOT_NONE));

    QPair<QHostAddress, int> *qp = new QPair<QHostAddress, int>;

    int state;
    QHostAddress *t = reinterpret_cast<QHostAddress *>(sipConvertToType(PyTuple_GET_ITEM(sipPy, 0), sipType_QHostAddress, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));

    if (*sipIsErr)
    {
        sipReleaseType(t, sipType_QHostAddress, state);

        delete qp;
        return 0;
    }

    qp->first = *t;
    sipReleaseType(t, sipType_QHostAddress, state);

    qp->second = SIPLong_AsLong(PyTuple_GET_ITEM(sipPy, 1));

    *sipCppPtr = qp;

    return sipGetState(sipTransferObj);
#line 3499 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


extern "C" {static PyObject *convertFrom_QPair_0100QHostAddress_1800(void *, PyObject *);}
static PyObject *convertFrom_QPair_0100QHostAddress_1800(void *sipCppV, PyObject *sipTransferObj)
{
   QPair<QHostAddress,int> *sipCpp = reinterpret_cast<QPair<QHostAddress,int> *>(sipCppV);

#line 92 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qpair.sip"
    // Create the tuple.
    PyObject *tup = PyTuple_New(2);

    if (!tup)
        return 0;

    PyObject *obj;

    // Convert the first part.
    QHostAddress *t = new QHostAddress(sipCpp->first);

    obj = sipConvertFromNewType(t, sipType_QHostAddress, sipTransferObj);

    if (!obj)
    {
        delete t;

        Py_DECREF(tup);
        return 0;
    }

    PyTuple_SET_ITEM(tup, 0, obj);

    // Convert the second part.
    obj = SIPLong_FromLong(sipCpp->second);

    if (!obj)
    {
        Py_DECREF(tup);
        return 0;
    }

    PyTuple_SET_ITEM(tup, 1, obj);

    return tup;
#line 3544 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QPair_0100QHostAddress_1800 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_2903,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QPair_0100QHostAddress_1800,
    array_QPair_0100QHostAddress_1800,
    copy_QPair_0100QHostAddress_1800,
    release_QPair_0100QHostAddress_1800,
    convertTo_QPair_0100QHostAddress_1800,
    convertFrom_QPair_0100QHostAddress_1800
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qurlinfo.sip"
#include <qurlinfo.h>
#line 3575 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3579 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 406 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 3582 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 107 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 3585 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQUrlInfo : public QUrlInfo
{
public:
    sipQUrlInfo();
    sipQUrlInfo(const QUrlInfo&);
    sipQUrlInfo(const QString&,int,const QString&,const QString&,qint64,const QDateTime&,const QDateTime&,bool,bool,bool,bool,bool,bool);
    sipQUrlInfo(const QUrl&,int,const QString&,const QString&,qint64,const QDateTime&,const QDateTime&,bool,bool,bool,bool,bool,bool);
    virtual ~sipQUrlInfo();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setLastModified(const QDateTime&);
    void setPermissions(int);
    void setReadable(bool);
    void setWritable(bool);
    void setSize(qint64);
    void setGroup(const QString&);
    void setOwner(const QString&);
    void setSymLink(bool);
    void setFile(bool);
    void setDir(bool);
    void setName(const QString&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[11];
};

sipQUrlInfo::sipQUrlInfo(): QUrlInfo(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQUrlInfo::sipQUrlInfo(const QUrlInfo& a0): QUrlInfo(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQUrlInfo::sipQUrlInfo(const QString& a0,int a1,const QString& a2,const QString& a3,qint64 a4,const QDateTime& a5,const QDateTime& a6,bool a7,bool a8,bool a9,bool a10,bool a11,bool a12): QUrlInfo(a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQUrlInfo::sipQUrlInfo(const QUrl& a0,int a1,const QString& a2,const QString& a3,qint64 a4,const QDateTime& a5,const QDateTime& a6,bool a7,bool a8,bool a9,bool a10,bool a11,bool a12): QUrlInfo(a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipQUrlInfo::setLastModified(const QDateTime& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QUrlInfo::setLastModified(a0);
        return;
    }

    extern void sipVH_QtNetwork_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QDateTime&);

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

void sipQUrlInfo::setPermissions(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_setPermissions);

    if (!sipMeth)
    {
        QUrlInfo::setPermissions(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQUrlInfo::setReadable(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QUrlInfo::setReadable(a0);
        return;
    }

    extern void sipVH_QtNetwork_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

void sipQUrlInfo::setWritable(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QUrlInfo::setWritable(a0);
        return;
    }

    extern void sipVH_QtNetwork_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

void sipQUrlInfo::setSize(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QUrlInfo::setSize(a0);
        return;
    }

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

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

void sipQUrlInfo::setGroup(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QUrlInfo::setGroup(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[33]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQUrlInfo::setOwner(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QUrlInfo::setOwner(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[33]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQUrlInfo::setSymLink(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QUrlInfo::setSymLink(a0);
        return;
    }

    extern void sipVH_QtNetwork_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

void sipQUrlInfo::setFile(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QUrlInfo::setFile(a0);
        return;
    }

    extern void sipVH_QtNetwork_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

void sipQUrlInfo::setDir(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QUrlInfo::setDir(a0);
        return;
    }

    extern void sipVH_QtNetwork_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

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

void sipQUrlInfo::setName(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QUrlInfo::setName(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[33]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QUrlInfo_setName, "QUrlInfo.setName(str)");

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

    {
        const QString* a0;
        int a0State = 0;
        QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QUrlInfo, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QUrlInfo::setName(*a0) : sipCpp->setName(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_setName, doc_QUrlInfo_setName);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_setDir, "QUrlInfo.setDir(bool)");

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

    {
        bool a0;
        QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QUrlInfo, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QUrlInfo::setDir(a0) : sipCpp->setDir(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_QUrlInfo, sipName_setDir, doc_QUrlInfo_setDir);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_setFile, "QUrlInfo.setFile(bool)");

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

    {
        bool a0;
        QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QUrlInfo, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QUrlInfo::setFile(a0) : sipCpp->setFile(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_QUrlInfo, sipName_setFile, doc_QUrlInfo_setFile);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_setSymLink, "QUrlInfo.setSymLink(bool)");

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

    {
        bool a0;
        QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QUrlInfo, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QUrlInfo::setSymLink(a0) : sipCpp->setSymLink(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_QUrlInfo, sipName_setSymLink, doc_QUrlInfo_setSymLink);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_setOwner, "QUrlInfo.setOwner(str)");

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

    {
        const QString* a0;
        int a0State = 0;
        QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QUrlInfo, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QUrlInfo::setOwner(*a0) : sipCpp->setOwner(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_setOwner, doc_QUrlInfo_setOwner);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_setGroup, "QUrlInfo.setGroup(str)");

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

    {
        const QString* a0;
        int a0State = 0;
        QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QUrlInfo, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QUrlInfo::setGroup(*a0) : sipCpp->setGroup(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_setGroup, doc_QUrlInfo_setGroup);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_setSize, "QUrlInfo.setSize(int)");

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

    {
        qint64 a0;
        QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QUrlInfo, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QUrlInfo::setSize(a0) : sipCpp->setSize(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_QUrlInfo, sipName_setSize, doc_QUrlInfo_setSize);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_setWritable, "QUrlInfo.setWritable(bool)");

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

    {
        bool a0;
        QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QUrlInfo, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QUrlInfo::setWritable(a0) : sipCpp->setWritable(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_QUrlInfo, sipName_setWritable, doc_QUrlInfo_setWritable);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_setReadable, "QUrlInfo.setReadable(bool)");

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

    {
        bool a0;
        QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QUrlInfo, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QUrlInfo::setReadable(a0) : sipCpp->setReadable(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_QUrlInfo, sipName_setReadable, doc_QUrlInfo_setReadable);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_setPermissions, "QUrlInfo.setPermissions(int)");

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

    {
        int a0;
        QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QUrlInfo, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QUrlInfo::setPermissions(a0) : sipCpp->setPermissions(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_QUrlInfo, sipName_setPermissions, doc_QUrlInfo_setPermissions);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_setLastModified, "QUrlInfo.setLastModified(QDateTime)");

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

    {
        const QDateTime* a0;
        int a0State = 0;
        QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QUrlInfo, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QUrlInfo::setLastModified(*a0) : sipCpp->setLastModified(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_setLastModified, doc_QUrlInfo_setLastModified);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_isValid, "QUrlInfo.isValid() -> bool");

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

    {
        const QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QUrlInfo, &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_QUrlInfo, sipName_isValid, doc_QUrlInfo_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_name, "QUrlInfo.name() -> str");

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

    {
        const QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QUrlInfo, &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_QUrlInfo, sipName_name, doc_QUrlInfo_name);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_permissions, "QUrlInfo.permissions() -> int");

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

    {
        const QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QUrlInfo, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->permissions();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_permissions, doc_QUrlInfo_permissions);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_owner, "QUrlInfo.owner() -> str");

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

    {
        const QUrlInfo *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_owner, doc_QUrlInfo_owner);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_group, "QUrlInfo.group() -> str");

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

    {
        const QUrlInfo *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_group, doc_QUrlInfo_group);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_size, "QUrlInfo.size() -> int");

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

    {
        const QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QUrlInfo, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->size();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_size, doc_QUrlInfo_size);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_lastModified, "QUrlInfo.lastModified() -> QDateTime");

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

    {
        const QUrlInfo *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_lastModified, doc_QUrlInfo_lastModified);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_lastRead, "QUrlInfo.lastRead() -> QDateTime");

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

    {
        const QUrlInfo *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_lastRead, doc_QUrlInfo_lastRead);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_isDir, "QUrlInfo.isDir() -> bool");

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

    {
        const QUrlInfo *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDir();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_isDir, doc_QUrlInfo_isDir);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_isFile, "QUrlInfo.isFile() -> bool");

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

    {
        const QUrlInfo *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_isFile, doc_QUrlInfo_isFile);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_isSymLink, "QUrlInfo.isSymLink() -> bool");

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

    {
        const QUrlInfo *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSymLink();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_isSymLink, doc_QUrlInfo_isSymLink);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_isWritable, "QUrlInfo.isWritable() -> bool");

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

    {
        const QUrlInfo *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isWritable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_isWritable, doc_QUrlInfo_isWritable);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_isReadable, "QUrlInfo.isReadable() -> bool");

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

    {
        const QUrlInfo *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isReadable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_isReadable, doc_QUrlInfo_isReadable);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_isExecutable, "QUrlInfo.isExecutable() -> bool");

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

    {
        const QUrlInfo *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isExecutable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_isExecutable, doc_QUrlInfo_isExecutable);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_greaterThan, "QUrlInfo.greaterThan(QUrlInfo, QUrlInfo, int) -> bool");

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

    {
        const QUrlInfo* a0;
        const QUrlInfo* a1;
        int a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9i", sipType_QUrlInfo, &a0, sipType_QUrlInfo, &a1, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = QUrlInfo::greaterThan(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_greaterThan, doc_QUrlInfo_greaterThan);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_lessThan, "QUrlInfo.lessThan(QUrlInfo, QUrlInfo, int) -> bool");

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

    {
        const QUrlInfo* a0;
        const QUrlInfo* a1;
        int a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9i", sipType_QUrlInfo, &a0, sipType_QUrlInfo, &a1, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = QUrlInfo::lessThan(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_equal, "QUrlInfo.equal(QUrlInfo, QUrlInfo, int) -> bool");

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

    {
        const QUrlInfo* a0;
        const QUrlInfo* a1;
        int a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9i", sipType_QUrlInfo, &a0, sipType_QUrlInfo, &a1, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = QUrlInfo::equal(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_equal, doc_QUrlInfo_equal);

    return NULL;
}


PyDoc_STRVAR(doc_QUrlInfo_setLastRead, "QUrlInfo.setLastRead(QDateTime)");

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

    {
        const QDateTime* a0;
        int a0State = 0;
        QUrlInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QUrlInfo, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLastRead(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUrlInfo, sipName_setLastRead, doc_QUrlInfo_setLastRead);

    return NULL;
}


extern "C" {static PyObject *slot_QUrlInfo___ne__(PyObject *,PyObject *);}
static PyObject *slot_QUrlInfo___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QUrlInfo *sipCpp = reinterpret_cast<QUrlInfo *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QUrlInfo));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QUrlInfo* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QUrlInfo,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QUrlInfo___eq__(PyObject *,PyObject *);}
static PyObject *slot_QUrlInfo___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QUrlInfo *sipCpp = reinterpret_cast<QUrlInfo *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QUrlInfo));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QUrlInfo* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QUrlInfo,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QUrlInfo(void *, const sipTypeDef *);}
static void *cast_QUrlInfo(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QUrlInfo)
        return ptr;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQUrlInfo *>(sipCppV);
    else
        delete reinterpret_cast<QUrlInfo *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


extern "C" {static void dealloc_QUrlInfo(sipSimpleWrapper *);}
static void dealloc_QUrlInfo(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQUrlInfo *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QUrlInfo(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QUrlInfo* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        int a1;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        qint64 a4;
        const QDateTime* a5;
        int a5State = 0;
        const QDateTime* a6;
        int a6State = 0;
        bool a7;
        bool a8;
        bool a9;
        bool a10;
        bool a11;
        bool a12;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1iJ1J1nJ1J1bbbbbb", sipType_QString,&a0, &a0State, &a1, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, &a4, sipType_QDateTime, &a5, &a5State, sipType_QDateTime, &a6, &a6State, &a7, &a8, &a9, &a10, &a11, &a12))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQUrlInfo(*a0,a1,*a2,*a3,a4,*a5,*a6,a7,a8,a9,a10,a11,a12);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(const_cast<QDateTime *>(a5),sipType_QDateTime,a5State);
            sipReleaseType(const_cast<QDateTime *>(a6),sipType_QDateTime,a6State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QUrl* a0;
        int a1;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        qint64 a4;
        const QDateTime* a5;
        int a5State = 0;
        const QDateTime* a6;
        int a6State = 0;
        bool a7;
        bool a8;
        bool a9;
        bool a10;
        bool a11;
        bool a12;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9iJ1J1nJ1J1bbbbbb", sipType_QUrl, &a0, &a1, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, &a4, sipType_QDateTime, &a5, &a5State, sipType_QDateTime, &a6, &a6State, &a7, &a8, &a9, &a10, &a11, &a12))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQUrlInfo(*a0,a1,*a2,*a3,a4,*a5,*a6,a7,a8,a9,a10,a11,a12);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(const_cast<QDateTime *>(a5),sipType_QDateTime,a5State);
            sipReleaseType(const_cast<QDateTime *>(a6),sipType_QDateTime,a6State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QUrlInfo[] = {
    {(void *)slot_QUrlInfo___ne__, ne_slot},
    {(void *)slot_QUrlInfo___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QUrlInfo[] = {
    {SIP_MLNAME_CAST(sipName_equal), meth_QUrlInfo_equal, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_equal)},
    {SIP_MLNAME_CAST(sipName_greaterThan), meth_QUrlInfo_greaterThan, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_greaterThan)},
    {SIP_MLNAME_CAST(sipName_group), meth_QUrlInfo_group, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_group)},
    {SIP_MLNAME_CAST(sipName_isDir), meth_QUrlInfo_isDir, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_isDir)},
    {SIP_MLNAME_CAST(sipName_isExecutable), meth_QUrlInfo_isExecutable, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_isExecutable)},
    {SIP_MLNAME_CAST(sipName_isFile), meth_QUrlInfo_isFile, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_isFile)},
    {SIP_MLNAME_CAST(sipName_isReadable), meth_QUrlInfo_isReadable, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_isReadable)},
    {SIP_MLNAME_CAST(sipName_isSymLink), meth_QUrlInfo_isSymLink, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_isSymLink)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QUrlInfo_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_isValid)},
    {SIP_MLNAME_CAST(sipName_isWritable), meth_QUrlInfo_isWritable, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_isWritable)},
    {SIP_MLNAME_CAST(sipName_lastModified), meth_QUrlInfo_lastModified, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_lastModified)},
    {SIP_MLNAME_CAST(sipName_lastRead), meth_QUrlInfo_lastRead, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_lastRead)},
    {SIP_MLNAME_CAST(sipName_lessThan), meth_QUrlInfo_lessThan, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_lessThan)},
    {SIP_MLNAME_CAST(sipName_name), meth_QUrlInfo_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_name)},
    {SIP_MLNAME_CAST(sipName_owner), meth_QUrlInfo_owner, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_owner)},
    {SIP_MLNAME_CAST(sipName_permissions), meth_QUrlInfo_permissions, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_permissions)},
    {SIP_MLNAME_CAST(sipName_setDir), meth_QUrlInfo_setDir, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_setDir)},
    {SIP_MLNAME_CAST(sipName_setFile), meth_QUrlInfo_setFile, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_setFile)},
    {SIP_MLNAME_CAST(sipName_setGroup), meth_QUrlInfo_setGroup, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_setGroup)},
    {SIP_MLNAME_CAST(sipName_setLastModified), meth_QUrlInfo_setLastModified, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_setLastModified)},
    {SIP_MLNAME_CAST(sipName_setLastRead), meth_QUrlInfo_setLastRead, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_setLastRead)},
    {SIP_MLNAME_CAST(sipName_setName), meth_QUrlInfo_setName, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_setName)},
    {SIP_MLNAME_CAST(sipName_setOwner), meth_QUrlInfo_setOwner, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_setOwner)},
    {SIP_MLNAME_CAST(sipName_setPermissions), meth_QUrlInfo_setPermissions, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_setPermissions)},
    {SIP_MLNAME_CAST(sipName_setReadable), meth_QUrlInfo_setReadable, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_setReadable)},
    {SIP_MLNAME_CAST(sipName_setSize), meth_QUrlInfo_setSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_setSize)},
    {SIP_MLNAME_CAST(sipName_setSymLink), meth_QUrlInfo_setSymLink, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_setSymLink)},
    {SIP_MLNAME_CAST(sipName_setWritable), meth_QUrlInfo_setWritable, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_setWritable)},
    {SIP_MLNAME_CAST(sipName_size), meth_QUrlInfo_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QUrlInfo_size)}
};

static sipEnumMemberDef enummembers_QUrlInfo[] = {
    {sipName_ExeGroup, static_cast<int>(QUrlInfo::ExeGroup), 107},
    {sipName_ExeOther, static_cast<int>(QUrlInfo::ExeOther), 107},
    {sipName_ExeOwner, static_cast<int>(QUrlInfo::ExeOwner), 107},
    {sipName_ReadGroup, static_cast<int>(QUrlInfo::ReadGroup), 107},
    {sipName_ReadOther, static_cast<int>(QUrlInfo::ReadOther), 107},
    {sipName_ReadOwner, static_cast<int>(QUrlInfo::ReadOwner), 107},
    {sipName_WriteGroup, static_cast<int>(QUrlInfo::WriteGroup), 107},
    {sipName_WriteOther, static_cast<int>(QUrlInfo::WriteOther), 107},
    {sipName_WriteOwner, static_cast<int>(QUrlInfo::WriteOwner), 107},
};

PyDoc_STRVAR(doc_QUrlInfo, "\1QUrlInfo()\n"
    "QUrlInfo(QUrlInfo)\n"
    "QUrlInfo(str, int, str, str, int, QDateTime, QDateTime, bool, bool, bool, bool, bool, bool)\n"
    "QUrlInfo(QUrl, int, str, str, int, QDateTime, QDateTime, bool, bool, bool, bool, bool, bool)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QUrlInfo = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QUrlInfo,
        {0}
    },
    {
        sipNameNr_QUrlInfo,
        {0, 0, 1},
        29, methods_QUrlInfo,
        9, enummembers_QUrlInfo,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QUrlInfo,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QUrlInfo,
    init_type_QUrlInfo,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QUrlInfo,
    assign_QUrlInfo,
    array_QUrlInfo,
    copy_QUrlInfo,
    release_QUrlInfo,
    cast_QUrlInfo,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qudpsocket.sip"
#include <qudpsocket.h>
#line 5067 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qudpsocket.sip"
#include <qudpsocket.h>
#line 5071 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static int slot_QUdpSocket_BindMode___bool__(PyObject *);}
static int slot_QUdpSocket_BindMode___bool__(PyObject *sipSelf)
{
    QUdpSocket::BindMode *sipCpp = reinterpret_cast<QUdpSocket::BindMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QUdpSocket_BindMode));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QUdpSocket::BindMode::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 5093 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QUdpSocket_BindMode___ne__(PyObject *,PyObject *);}
static PyObject *slot_QUdpSocket_BindMode___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QUdpSocket::BindMode *sipCpp = reinterpret_cast<QUdpSocket::BindMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QUdpSocket_BindMode));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QUdpSocket::BindMode* a0;
        int a0State = 0;

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

#line 361 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QUdpSocket::BindMode::Int() != a0->operator QUdpSocket::BindMode::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 5127 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(const_cast<QUdpSocket::BindMode *>(a0),sipType_QUdpSocket_BindMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QUdpSocket_BindMode,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QUdpSocket_BindMode___eq__(PyObject *,PyObject *);}
static PyObject *slot_QUdpSocket_BindMode___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QUdpSocket::BindMode *sipCpp = reinterpret_cast<QUdpSocket::BindMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QUdpSocket_BindMode));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QUdpSocket::BindMode* a0;
        int a0State = 0;

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

#line 352 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QUdpSocket::BindMode::Int() == a0->operator QUdpSocket::BindMode::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 5167 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(const_cast<QUdpSocket::BindMode *>(a0),sipType_QUdpSocket_BindMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QUdpSocket_BindMode,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QUdpSocket_BindMode___invert__(PyObject *);}
static PyObject *slot_QUdpSocket_BindMode___invert__(PyObject *sipSelf)
{
    QUdpSocket::BindMode *sipCpp = reinterpret_cast<QUdpSocket::BindMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QUdpSocket_BindMode));

    if (!sipCpp)
        return 0;


    {
        {
            QUdpSocket::BindMode*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUdpSocket::BindMode(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        QUdpSocket::BindMode* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QUdpSocket_BindMode, &a0, &a0State, &a1))
        {
            QUdpSocket::BindMode*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUdpSocket::BindMode((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QUdpSocket_BindMode,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        QUdpSocket::BindMode* a0;
        int a0State = 0;
        QUdpSocket::BindMode* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QUdpSocket_BindMode, &a0, &a0State, sipType_QUdpSocket_BindMode, &a1, &a1State))
        {
            QUdpSocket::BindMode*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUdpSocket::BindMode((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QUdpSocket_BindMode,a0State);
            sipReleaseType(a1,sipType_QUdpSocket_BindMode,a1State);

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

    {
        QUdpSocket::BindMode* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QUdpSocket_BindMode, &a0, &a0State, &a1))
        {
            QUdpSocket::BindMode*sipRes = 0;

#line 346 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QUdpSocket::BindMode(*a0 ^ a1);
#line 5276 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(a0,sipType_QUdpSocket_BindMode,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        QUdpSocket::BindMode* a0;
        int a0State = 0;
        QUdpSocket::BindMode* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QUdpSocket_BindMode, &a0, &a0State, sipType_QUdpSocket_BindMode, &a1, &a1State))
        {
            QUdpSocket::BindMode*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUdpSocket::BindMode((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QUdpSocket_BindMode,a0State);
            sipReleaseType(a1,sipType_QUdpSocket_BindMode,a1State);

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

    {
        QUdpSocket::BindMode* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QUdpSocket_BindMode, &a0, &a0State, &a1))
        {
            QUdpSocket::BindMode*sipRes = 0;

#line 341 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QUdpSocket::BindMode(*a0 | a1);
#line 5328 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(a0,sipType_QUdpSocket_BindMode,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_QUdpSocket_BindMode___int__(PyObject *);}
static PyObject *slot_QUdpSocket_BindMode___int__(PyObject *sipSelf)
{
    QUdpSocket::BindMode *sipCpp = reinterpret_cast<QUdpSocket::BindMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QUdpSocket_BindMode));

    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_QUdpSocket_BindMode___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QUdpSocket_BindMode___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QUdpSocket_BindMode)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QUdpSocket::BindMode *sipCpp = reinterpret_cast<QUdpSocket::BindMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QUdpSocket_BindMode));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QUdpSocket::BindMode* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QUdpSocket_BindMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QUdpSocket::BindMode::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QUdpSocket_BindMode,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_QUdpSocket_BindMode___ior__(PyObject *,PyObject *);}
static PyObject *slot_QUdpSocket_BindMode___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QUdpSocket_BindMode)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QUdpSocket::BindMode *sipCpp = reinterpret_cast<QUdpSocket::BindMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QUdpSocket_BindMode));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QUdpSocket::BindMode* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QUdpSocket_BindMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QUdpSocket::BindMode::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QUdpSocket_BindMode,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_QUdpSocket_BindMode___iand__(PyObject *,PyObject *);}
static PyObject *slot_QUdpSocket_BindMode___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QUdpSocket_BindMode)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QUdpSocket::BindMode *sipCpp = reinterpret_cast<QUdpSocket::BindMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QUdpSocket_BindMode));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QUdpSocket::BindMode::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;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QUdpSocket_BindMode(void *, const sipTypeDef *);}
static void *cast_QUdpSocket_BindMode(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QUdpSocket_BindMode)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<QUdpSocket::BindMode *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_QUdpSocket_BindMode(SIP_SSIZE_T);}
static void *array_QUdpSocket_BindMode(SIP_SSIZE_T sipNrElem)
{
    return new QUdpSocket::BindMode[sipNrElem];
}


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


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


extern "C" {static void *init_type_QUdpSocket_BindMode(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QUdpSocket_BindMode(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QUdpSocket::BindMode *sipCpp = 0;

    {
        const QUdpSocket::BindMode* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

#line 379 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QUdpSocket::BindMode is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QUdpSocket_BindFlag)) ||
            sipCanConvertToType(sipPy, sipType_QUdpSocket_BindMode, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QUdpSocket_BindFlag)))
{
    *sipCppPtr = new QUdpSocket::BindMode(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QUdpSocket::BindMode *>(sipConvertToType(sipPy, sipType_QUdpSocket_BindMode, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 5623 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QUdpSocket_BindMode[] = {
    {(void *)slot_QUdpSocket_BindMode___bool__, bool_slot},
    {(void *)slot_QUdpSocket_BindMode___ne__, ne_slot},
    {(void *)slot_QUdpSocket_BindMode___eq__, eq_slot},
    {(void *)slot_QUdpSocket_BindMode___invert__, invert_slot},
    {(void *)slot_QUdpSocket_BindMode___and__, and_slot},
    {(void *)slot_QUdpSocket_BindMode___xor__, xor_slot},
    {(void *)slot_QUdpSocket_BindMode___or__, or_slot},
    {(void *)slot_QUdpSocket_BindMode___int__, int_slot},
    {(void *)slot_QUdpSocket_BindMode___ixor__, ixor_slot},
    {(void *)slot_QUdpSocket_BindMode___ior__, ior_slot},
    {(void *)slot_QUdpSocket_BindMode___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QUdpSocket_BindMode, "\1QUdpSocket.BindMode(QUdpSocket.BindMode)\n"
    "QUdpSocket.BindMode(int)\n"
    "QUdpSocket.BindMode()");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QUdpSocket_BindMode = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QUdpSocket__BindMode,
        {0}
    },
    {
        sipNameNr_BindMode,
        {103, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QUdpSocket_BindMode,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QUdpSocket_BindMode,
    init_type_QUdpSocket_BindMode,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QUdpSocket_BindMode,
    assign_QUdpSocket_BindMode,
    array_QUdpSocket_BindMode,
    copy_QUdpSocket_BindMode,
    release_QUdpSocket_BindMode,
    cast_QUdpSocket_BindMode,
    convertTo_QUdpSocket_BindMode,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qudpsocket.sip"
#include <qudpsocket.h>
#line 5704 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5708 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 75 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 5711 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 5714 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5717 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qudpsocket.sip"
#include <qudpsocket.h>
#line 5720 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5723 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 5726 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5729 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 5732 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 5735 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 5738 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5741 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5744 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5747 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5750 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5753 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5756 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 5759 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5762 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5765 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQUdpSocket : public QUdpSocket
{
public:
    sipQUdpSocket(QObject*);
    virtual ~sipQUdpSocket();

    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;
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);
    void sipProtect_connectToHostImplementation(const QString&,quint16,QIODevice::OpenMode);
    void sipProtect_disconnectFromHostImplementation();
    qint64 sipProtectVirt_readData(bool,char*,qint64);
    qint64 sipProtectVirt_readLineData(bool,char*,qint64);
    qint64 sipProtectVirt_writeData(bool,const char*,PY_LONG_LONG);
    void sipProtect_setSocketState(QAbstractSocket::SocketState);
    void sipProtect_setSocketError(QAbstractSocket::SocketError);
    void sipProtect_setLocalPort(quint16);
    void sipProtect_setLocalAddress(const QHostAddress&);
    void sipProtect_setPeerPort(quint16);
    void sipProtect_setPeerAddress(const QHostAddress&);
    void sipProtect_setPeerName(const QString&);

    /*
     * 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*);
    bool reset();
    bool seek(qint64);
    qint64 size() const;
    qint64 pos() const;
    bool open(QIODevice::OpenMode);
    qint64 writeData(const char*,PY_LONG_LONG);
    qint64 readLineData(char*,qint64);
    qint64 readData(char*,qint64);
    bool waitForBytesWritten(int);
    bool waitForReadyRead(int);
    bool atEnd() const;
    bool isSequential() const;
    void close();
    bool canReadLine() const;
    qint64 bytesToWrite() const;
    qint64 bytesAvailable() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[23];
};

sipQUdpSocket::sipQUdpSocket(QObject*a0): QUdpSocket(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipQUdpSocket::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QUdpSocket);
}

int sipQUdpSocket::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QUdpSocket::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QUdpSocket,_c,_id,_a);

    return _id;
}

void *sipQUdpSocket::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QUdpSocket, _clname)) ? this : QUdpSocket::qt_metacast(_clname);
}

void sipQUdpSocket::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QUdpSocket::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQUdpSocket::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QUdpSocket::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQUdpSocket::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QUdpSocket::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQUdpSocket::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QUdpSocket::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQUdpSocket::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QUdpSocket::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQUdpSocket::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QUdpSocket::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQUdpSocket::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QUdpSocket::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQUdpSocket::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QUdpSocket::reset();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQUdpSocket::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QUdpSocket::seek(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQUdpSocket::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QUdpSocket::size();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQUdpSocket::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QUdpSocket::pos();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQUdpSocket::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return QUdpSocket::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQUdpSocket::writeData(const char*a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_writeData);

    if (!sipMeth)
        return QUdpSocket::writeData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return ((sipVH_QtCore_20)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipQUdpSocket::readLineData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_readLineData);

    if (!sipMeth)
        return QUdpSocket::readLineData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipQUdpSocket::readData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_readData);

    if (!sipMeth)
        return QUdpSocket::readData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQUdpSocket::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!sipMeth)
        return QUdpSocket::waitForBytesWritten(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQUdpSocket::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!sipMeth)
        return QUdpSocket::waitForReadyRead(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQUdpSocket::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QUdpSocket::atEnd();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQUdpSocket::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QUdpSocket::isSequential();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQUdpSocket::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
    {
        QUdpSocket::close();
        return;
    }

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

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

bool sipQUdpSocket::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QUdpSocket::canReadLine();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQUdpSocket::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QUdpSocket::bytesToWrite();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQUdpSocket::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QUdpSocket::bytesAvailable();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

QObject* sipQUdpSocket::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQUdpSocket::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQUdpSocket::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQUdpSocket::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQUdpSocket::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQUdpSocket::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQUdpSocket::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQUdpSocket::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

void sipQUdpSocket::sipProtect_setOpenMode(QIODevice::OpenMode a0)
{
    QIODevice::setOpenMode(a0);
}

void sipQUdpSocket::sipProtect_setErrorString(const QString& a0)
{
    QIODevice::setErrorString(a0);
}

void sipQUdpSocket::sipProtect_connectToHostImplementation(const QString& a0,quint16 a1,QIODevice::OpenMode a2)
{
    QAbstractSocket::connectToHostImplementation(a0,a1,a2);
}

void sipQUdpSocket::sipProtect_disconnectFromHostImplementation()
{
    QAbstractSocket::disconnectFromHostImplementation();
}

qint64 sipQUdpSocket::sipProtectVirt_readData(bool sipSelfWasArg,char*a0,qint64 a1)
{
    return (sipSelfWasArg ? QAbstractSocket::readData(a0,a1) : readData(a0,a1));
}

qint64 sipQUdpSocket::sipProtectVirt_readLineData(bool sipSelfWasArg,char*a0,qint64 a1)
{
    return (sipSelfWasArg ? QAbstractSocket::readLineData(a0,a1) : readLineData(a0,a1));
}

qint64 sipQUdpSocket::sipProtectVirt_writeData(bool sipSelfWasArg,const char*a0,PY_LONG_LONG a1)
{
    return (sipSelfWasArg ? QAbstractSocket::writeData(a0,a1) : writeData(a0,a1));
}

void sipQUdpSocket::sipProtect_setSocketState(QAbstractSocket::SocketState a0)
{
    QAbstractSocket::setSocketState(a0);
}

void sipQUdpSocket::sipProtect_setSocketError(QAbstractSocket::SocketError a0)
{
    QAbstractSocket::setSocketError(a0);
}

void sipQUdpSocket::sipProtect_setLocalPort(quint16 a0)
{
    QAbstractSocket::setLocalPort(a0);
}

void sipQUdpSocket::sipProtect_setLocalAddress(const QHostAddress& a0)
{
    QAbstractSocket::setLocalAddress(a0);
}

void sipQUdpSocket::sipProtect_setPeerPort(quint16 a0)
{
    QAbstractSocket::setPeerPort(a0);
}

void sipQUdpSocket::sipProtect_setPeerAddress(const QHostAddress& a0)
{
    QAbstractSocket::setPeerAddress(a0);
}

void sipQUdpSocket::sipProtect_setPeerName(const QString& a0)
{
    QAbstractSocket::setPeerName(a0);
}


PyDoc_STRVAR(doc_QUdpSocket_sender, "QUdpSocket.sender() -> QObject");

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

    {
        const sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QUdpSocket, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 6385 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_sender, doc_QUdpSocket_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_receivers, "QUdpSocket.receivers(SIGNAL()) -> int");

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

    {
        char* a0;
        const sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QUdpSocket, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 6430 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_receivers, doc_QUdpSocket_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_timerEvent, "QUdpSocket.timerEvent(QTimerEvent)");

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

    {
        QTimerEvent* a0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QUdpSocket, &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_QUdpSocket, sipName_timerEvent, doc_QUdpSocket_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_childEvent, "QUdpSocket.childEvent(QChildEvent)");

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

    {
        QChildEvent* a0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QUdpSocket, &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_QUdpSocket, sipName_childEvent, doc_QUdpSocket_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_customEvent, "QUdpSocket.customEvent(QEvent)");

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

    {
        QEvent* a0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QUdpSocket, &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_QUdpSocket, sipName_customEvent, doc_QUdpSocket_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_connectNotify, "QUdpSocket.connectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QUdpSocket, &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_QUdpSocket, sipName_connectNotify, doc_QUdpSocket_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_disconnectNotify, "QUdpSocket.disconnectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QUdpSocket, &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_QUdpSocket, sipName_disconnectNotify, doc_QUdpSocket_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_senderSignalIndex, "QUdpSocket.senderSignalIndex() -> int");

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

    {
        const sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QUdpSocket, &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_QUdpSocket, sipName_senderSignalIndex, doc_QUdpSocket_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_setOpenMode, "QUdpSocket.setOpenMode(QIODevice.OpenMode)");

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

    {
        QIODevice::OpenMode* a0;
        int a0State = 0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOpenMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_setOpenMode, doc_QUdpSocket_setOpenMode);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_setErrorString, "QUdpSocket.setErrorString(str)");

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

    {
        const QString* a0;
        int a0State = 0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorString(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_setErrorString, doc_QUdpSocket_setErrorString);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_connectToHostImplementation, "QUdpSocket.connectToHostImplementation(str, int, QIODevice.OpenMode mode=QIODevice.ReadWrite)");

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

    {
        const QString* a0;
        int a0State = 0;
        quint16 a1;
        QIODevice::OpenMode a2def = QIODevice::ReadWrite;
        QIODevice::OpenMode* a2 = &a2def;
        int a2State = 0;
        sipQUdpSocket *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1t|J1", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QIODevice_OpenMode, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_connectToHostImplementation(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_connectToHostImplementation, doc_QUdpSocket_connectToHostImplementation);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_disconnectFromHostImplementation, "QUdpSocket.disconnectFromHostImplementation()");

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

    {
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QUdpSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_disconnectFromHostImplementation();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_disconnectFromHostImplementation, doc_QUdpSocket_disconnectFromHostImplementation);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_readData, "QUdpSocket.readData(int) -> bytes");

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

    {
        qint64 a0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bn", &sipSelf, sipType_QUdpSocket, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 309 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QAbstractSocket::readData(s, a0) : sipCpp->readData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 6806 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_readData, doc_QUdpSocket_readData);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_readLineData, "QUdpSocket.readLineData(int) -> bytes");

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

    {
        qint64 a0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bn", &sipSelf, sipType_QUdpSocket, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 347 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QAbstractSocket::readLineData(s, a0) : sipCpp->readLineData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readLineData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 6874 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_readLineData, doc_QUdpSocket_readLineData);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_writeData, "QUdpSocket.writeData(str) -> int");

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

    {
        const char* a0;
        SIP_SSIZE_T a1;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bk", &sipSelf, sipType_QUdpSocket, &sipCpp, &a0, &a1))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_writeData(sipSelfWasArg,a0,(PY_LONG_LONG)a1);
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_writeData, doc_QUdpSocket_writeData);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_setSocketState, "QUdpSocket.setSocketState(QAbstractSocket.SocketState)");

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

    {
        QAbstractSocket::SocketState a0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QAbstractSocket_SocketState, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setSocketState(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_QUdpSocket, sipName_setSocketState, doc_QUdpSocket_setSocketState);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_setSocketError, "QUdpSocket.setSocketError(QAbstractSocket.SocketError)");

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

    {
        QAbstractSocket::SocketError a0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QAbstractSocket_SocketError, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setSocketError(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_QUdpSocket, sipName_setSocketError, doc_QUdpSocket_setSocketError);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_setLocalPort, "QUdpSocket.setLocalPort(int)");

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

    {
        quint16 a0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bt", &sipSelf, sipType_QUdpSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalPort(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_QUdpSocket, sipName_setLocalPort, doc_QUdpSocket_setLocalPort);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_setLocalAddress, "QUdpSocket.setLocalAddress(QHostAddress)");

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

    {
        const QHostAddress* a0;
        int a0State = 0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_setLocalAddress, doc_QUdpSocket_setLocalAddress);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_setPeerPort, "QUdpSocket.setPeerPort(int)");

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

    {
        quint16 a0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bt", &sipSelf, sipType_QUdpSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerPort(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_QUdpSocket, sipName_setPeerPort, doc_QUdpSocket_setPeerPort);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_setPeerAddress, "QUdpSocket.setPeerAddress(QHostAddress)");

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

    {
        const QHostAddress* a0;
        int a0State = 0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_setPeerAddress, doc_QUdpSocket_setPeerAddress);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_setPeerName, "QUdpSocket.setPeerName(str)");

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

    {
        const QString* a0;
        int a0State = 0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_setPeerName, doc_QUdpSocket_setPeerName);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_bind, "QUdpSocket.bind(QHostAddress, int) -> bool\n"
    "QUdpSocket.bind(int port=0) -> bool\n"
    "QUdpSocket.bind(QHostAddress, int, QUdpSocket.BindMode) -> bool\n"
    "QUdpSocket.bind(int, QUdpSocket.BindMode) -> bool");

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

    {
        const QHostAddress* a0;
        int a0State = 0;
        quint16 a1;
        QUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1t", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->bind(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        quint16 a0 = 0;
        QUdpSocket *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|t", &sipSelf, sipType_QUdpSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->bind(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QHostAddress* a0;
        int a0State = 0;
        quint16 a1;
        QUdpSocket::BindMode* a2;
        int a2State = 0;
        QUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1tJ1", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State, &a1, sipType_QUdpSocket_BindMode, &a2, &a2State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->bind(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);
            sipReleaseType(a2,sipType_QUdpSocket_BindMode,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        quint16 a0;
        QUdpSocket::BindMode* a1;
        int a1State = 0;
        QUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BtJ1", &sipSelf, sipType_QUdpSocket, &sipCpp, &a0, sipType_QUdpSocket_BindMode, &a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->bind(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QUdpSocket_BindMode,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_bind, doc_QUdpSocket_bind);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_hasPendingDatagrams, "QUdpSocket.hasPendingDatagrams() -> bool");

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

    {
        const QUdpSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasPendingDatagrams();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_hasPendingDatagrams, doc_QUdpSocket_hasPendingDatagrams);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_pendingDatagramSize, "QUdpSocket.pendingDatagramSize() -> int");

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

    {
        const QUdpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QUdpSocket, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->pendingDatagramSize();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_pendingDatagramSize, doc_QUdpSocket_pendingDatagramSize);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_readDatagram, "QUdpSocket.readDatagram(int) -> (bytes, QHostAddress, int)");

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

    {
        qint64 a0;
        QHostAddress* a1;
        quint16 a2;
        QUdpSocket *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bn", &sipSelf, sipType_QUdpSocket, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            a1 = new QHostAddress();
            int sipIsErr = 0;

#line 71 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qudpsocket.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
            len = sipCpp->readDatagram(s, a0, a1, &a2);
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 7340 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipIsErr)
                return 0;

            return sipBuildResult(0,"(RNt)",sipRes,a1,sipType_QHostAddress,NULL,a2);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_readDatagram, doc_QUdpSocket_readDatagram);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_writeDatagram, "QUdpSocket.writeDatagram(str, QHostAddress, int) -> int\n"
    "QUdpSocket.writeDatagram(QByteArray, QHostAddress, int) -> int");

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

    {
        const char* a0;
        SIP_SSIZE_T a1;
        const QHostAddress* a2;
        int a2State = 0;
        quint16 a3;
        QUdpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BkJ1t", &sipSelf, sipType_QUdpSocket, &sipCpp, &a0, &a1, sipType_QHostAddress, &a2, &a2State, &a3))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->writeDatagram(a0,(PY_LONG_LONG)a1,*a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a2),sipType_QHostAddress,a2State);

            return PyLong_FromLongLong(sipRes);
        }
    }

    {
        const QByteArray* a0;
        int a0State = 0;
        const QHostAddress* a1;
        int a1State = 0;
        quint16 a2;
        QUdpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1t", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_QHostAddress, &a1, &a1State, &a2))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->writeDatagram(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QHostAddress *>(a1),sipType_QHostAddress,a1State);

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_writeDatagram, doc_QUdpSocket_writeDatagram);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_joinMulticastGroup, "QUdpSocket.joinMulticastGroup(QHostAddress) -> bool\n"
    "QUdpSocket.joinMulticastGroup(QHostAddress, QNetworkInterface) -> bool");

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

    {
        const QHostAddress* a0;
        int a0State = 0;
        QUdpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->joinMulticastGroup(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QHostAddress* a0;
        int a0State = 0;
        const QNetworkInterface* a1;
        QUdpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State, sipType_QNetworkInterface, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->joinMulticastGroup(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_joinMulticastGroup, doc_QUdpSocket_joinMulticastGroup);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_leaveMulticastGroup, "QUdpSocket.leaveMulticastGroup(QHostAddress) -> bool\n"
    "QUdpSocket.leaveMulticastGroup(QHostAddress, QNetworkInterface) -> bool");

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

    {
        const QHostAddress* a0;
        int a0State = 0;
        QUdpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->leaveMulticastGroup(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QHostAddress* a0;
        int a0State = 0;
        const QNetworkInterface* a1;
        QUdpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State, sipType_QNetworkInterface, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->leaveMulticastGroup(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_leaveMulticastGroup, doc_QUdpSocket_leaveMulticastGroup);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_multicastInterface, "QUdpSocket.multicastInterface() -> QNetworkInterface");

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

    {
        const QUdpSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkInterface(sipCpp->multicastInterface());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QUdpSocket, sipName_multicastInterface, doc_QUdpSocket_multicastInterface);

    return NULL;
}


PyDoc_STRVAR(doc_QUdpSocket_setMulticastInterface, "QUdpSocket.setMulticastInterface(QNetworkInterface)");

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

    {
        const QNetworkInterface* a0;
        QUdpSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QUdpSocket, &sipCpp, sipType_QNetworkInterface, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMulticastInterface(*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_QUdpSocket, sipName_setMulticastInterface, doc_QUdpSocket_setMulticastInterface);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QUdpSocket(void *, const sipTypeDef *);}
static void *cast_QUdpSocket(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QUdpSocket)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QAbstractSocket)->ctd_cast((QAbstractSocket *)(QUdpSocket *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QUdpSocket(void *, int);}
static void release_QUdpSocket(void *sipCppV,int)
{
    QUdpSocket *sipCpp = reinterpret_cast<QUdpSocket *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QUdpSocket(sipSimpleWrapper *);}
static void dealloc_QUdpSocket(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQUdpSocket *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QUdpSocket(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QUdpSocket(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QUdpSocket(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQUdpSocket *sipCpp = 0;

    {
        QObject* a0 = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQUdpSocket(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QUdpSocket[] = {{1, 255, 1}};


static PyMethodDef methods_QUdpSocket[] = {
    {SIP_MLNAME_CAST(sipName_bind), (PyCFunction)meth_QUdpSocket_bind, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QUdpSocket_bind)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QUdpSocket_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QUdpSocket_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToHostImplementation), (PyCFunction)meth_QUdpSocket_connectToHostImplementation, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QUdpSocket_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectFromHostImplementation), (PyCFunction)meth_QUdpSocket_disconnectFromHostImplementation, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QUdpSocket_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_hasPendingDatagrams), meth_QUdpSocket_hasPendingDatagrams, METH_VARARGS, SIP_MLDOC_CAST(doc_QUdpSocket_hasPendingDatagrams)},
    {SIP_MLNAME_CAST(sipName_joinMulticastGroup), meth_QUdpSocket_joinMulticastGroup, METH_VARARGS, SIP_MLDOC_CAST(doc_QUdpSocket_joinMulticastGroup)},
    {SIP_MLNAME_CAST(sipName_leaveMulticastGroup), meth_QUdpSocket_leaveMulticastGroup, METH_VARARGS, SIP_MLDOC_CAST(doc_QUdpSocket_leaveMulticastGroup)},
    {SIP_MLNAME_CAST(sipName_multicastInterface), meth_QUdpSocket_multicastInterface, METH_VARARGS, SIP_MLDOC_CAST(doc_QUdpSocket_multicastInterface)},
    {SIP_MLNAME_CAST(sipName_pendingDatagramSize), meth_QUdpSocket_pendingDatagramSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QUdpSocket_pendingDatagramSize)},
    {SIP_MLNAME_CAST(sipName_readData), (PyCFunction)meth_QUdpSocket_readData, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_readDatagram), (PyCFunction)meth_QUdpSocket_readDatagram, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QUdpSocket_readDatagram)},
    {SIP_MLNAME_CAST(sipName_readLineData), (PyCFunction)meth_QUdpSocket_readLineData, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QUdpSocket_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QUdpSocket_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QUdpSocket_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorString), (PyCFunction)meth_QUdpSocket_setErrorString, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalAddress), (PyCFunction)meth_QUdpSocket_setLocalAddress, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalPort), (PyCFunction)meth_QUdpSocket_setLocalPort, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setMulticastInterface), meth_QUdpSocket_setMulticastInterface, METH_VARARGS, SIP_MLDOC_CAST(doc_QUdpSocket_setMulticastInterface)},
    {SIP_MLNAME_CAST(sipName_setOpenMode), (PyCFunction)meth_QUdpSocket_setOpenMode, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerAddress), (PyCFunction)meth_QUdpSocket_setPeerAddress, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerName), (PyCFunction)meth_QUdpSocket_setPeerName, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerPort), (PyCFunction)meth_QUdpSocket_setPeerPort, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setSocketError), (PyCFunction)meth_QUdpSocket_setSocketError, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setSocketState), (PyCFunction)meth_QUdpSocket_setSocketState, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QUdpSocket_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_writeData), (PyCFunction)meth_QUdpSocket_writeData, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_writeDatagram), meth_QUdpSocket_writeDatagram, METH_VARARGS, SIP_MLDOC_CAST(doc_QUdpSocket_writeDatagram)}
};

static sipEnumMemberDef enummembers_QUdpSocket[] = {
    {sipName_DefaultForPlatform, static_cast<int>(QUdpSocket::DefaultForPlatform), 104},
    {sipName_DontShareAddress, static_cast<int>(QUdpSocket::DontShareAddress), 104},
    {sipName_ReuseAddressHint, static_cast<int>(QUdpSocket::ReuseAddressHint), 104},
    {sipName_ShareAddress, static_cast<int>(QUdpSocket::ShareAddress), 104},
};

PyDoc_STRVAR(doc_QUdpSocket, "\1QUdpSocket(QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QUdpSocket = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QUdpSocket,
        {0}
    },
    {
        sipNameNr_QUdpSocket,
        {0, 0, 1},
        31, methods_QUdpSocket,
        4, enummembers_QUdpSocket,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QUdpSocket,
    -1,
    -1,
    supers_QUdpSocket,
    0,
    init_type_QUdpSocket,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QUdpSocket,
    0,
    0,
    0,
    release_QUdpSocket,
    cast_QUdpSocket,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QUdpSocket::staticMetaObject,
    0,
    0
};

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qtcpserver.sip"
#include <qtcpserver.h>
#line 7754 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 7758 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qtcpsocket.sip"
#include <qtcpsocket.h>
#line 7761 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 7764 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7767 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 7770 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 7773 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7776 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7779 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7782 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7785 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7788 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7791 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7794 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7797 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 7800 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7803 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7806 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQTcpServer : public QTcpServer
{
public:
    sipQTcpServer(QObject*);
    virtual ~sipQTcpServer();

    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;
    void sipProtectVirt_incomingConnection(bool,int);
    void sipProtect_addPendingConnection(QTcpSocket*);

    /*
     * 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*);
    void incomingConnection(int);
    QTcpSocket* nextPendingConnection();
    bool hasPendingConnections() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[10];
};

sipQTcpServer::sipQTcpServer(QObject*a0): QTcpServer(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipQTcpServer::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QTcpServer);
}

int sipQTcpServer::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QTcpServer::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QTcpServer,_c,_id,_a);

    return _id;
}

void *sipQTcpServer::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QTcpServer, _clname)) ? this : QTcpServer::qt_metacast(_clname);
}

void sipQTcpServer::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QTcpServer::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQTcpServer::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QTcpServer::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQTcpServer::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QTcpServer::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQTcpServer::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QTcpServer::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQTcpServer::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QTcpServer::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQTcpServer::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTcpServer::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQTcpServer::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTcpServer::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQTcpServer::incomingConnection(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QTcpServer::incomingConnection(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[4]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QTcpSocket* sipQTcpServer::nextPendingConnection()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTcpServer::nextPendingConnection();

    extern QTcpSocket* sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_3(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQTcpServer::hasPendingConnections() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTcpServer::hasPendingConnections();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

QObject* sipQTcpServer::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQTcpServer::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQTcpServer::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQTcpServer::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQTcpServer::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQTcpServer::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQTcpServer::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQTcpServer::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

void sipQTcpServer::sipProtectVirt_incomingConnection(bool sipSelfWasArg,int a0)
{
    (sipSelfWasArg ? QTcpServer::incomingConnection(a0) : incomingConnection(a0));
}

void sipQTcpServer::sipProtect_addPendingConnection(QTcpSocket*a0)
{
    QTcpServer::addPendingConnection(a0);
}


PyDoc_STRVAR(doc_QTcpServer_sender, "QTcpServer.sender() -> QObject");

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

    {
        const sipQTcpServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTcpServer, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 8146 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpServer, sipName_sender, doc_QTcpServer_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_receivers, "QTcpServer.receivers(SIGNAL()) -> int");

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

    {
        char* a0;
        const sipQTcpServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QTcpServer, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 8191 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpServer, sipName_receivers, doc_QTcpServer_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_timerEvent, "QTcpServer.timerEvent(QTimerEvent)");

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

    {
        QTimerEvent* a0;
        sipQTcpServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTcpServer, &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_QTcpServer, sipName_timerEvent, doc_QTcpServer_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_childEvent, "QTcpServer.childEvent(QChildEvent)");

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

    {
        QChildEvent* a0;
        sipQTcpServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTcpServer, &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_QTcpServer, sipName_childEvent, doc_QTcpServer_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_customEvent, "QTcpServer.customEvent(QEvent)");

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

    {
        QEvent* a0;
        sipQTcpServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTcpServer, &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_QTcpServer, sipName_customEvent, doc_QTcpServer_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_connectNotify, "QTcpServer.connectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQTcpServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QTcpServer, &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_QTcpServer, sipName_connectNotify, doc_QTcpServer_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_disconnectNotify, "QTcpServer.disconnectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQTcpServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QTcpServer, &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_QTcpServer, sipName_disconnectNotify, doc_QTcpServer_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_senderSignalIndex, "QTcpServer.senderSignalIndex() -> int");

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

    {
        const sipQTcpServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTcpServer, &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_QTcpServer, sipName_senderSignalIndex, doc_QTcpServer_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_listen, "QTcpServer.listen(QHostAddress address=QHostAddress.Any, int port=0) -> bool");

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

    {
        const QHostAddress& a0def = QHostAddress::Any;
        const QHostAddress* a0 = &a0def;
        int a0State = 0;
        quint16 a1 = 0;
        QTcpServer *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1t", &sipSelf, sipType_QTcpServer, &sipCpp, sipType_QHostAddress, &a0, &a0State, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->listen(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpServer, sipName_listen, doc_QTcpServer_listen);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_close, "QTcpServer.close()");

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

    {
        QTcpServer *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpServer, sipName_close, doc_QTcpServer_close);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_isListening, "QTcpServer.isListening() -> bool");

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

    {
        const QTcpServer *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isListening();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpServer, sipName_isListening, doc_QTcpServer_isListening);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_setMaxPendingConnections, "QTcpServer.setMaxPendingConnections(int)");

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

    {
        int a0;
        QTcpServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTcpServer, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMaxPendingConnections(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_QTcpServer, sipName_setMaxPendingConnections, doc_QTcpServer_setMaxPendingConnections);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_maxPendingConnections, "QTcpServer.maxPendingConnections() -> int");

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

    {
        const QTcpServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTcpServer, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->maxPendingConnections();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpServer, sipName_maxPendingConnections, doc_QTcpServer_maxPendingConnections);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_serverPort, "QTcpServer.serverPort() -> int");

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

    {
        const QTcpServer *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->serverPort();
            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_QTcpServer, sipName_serverPort, doc_QTcpServer_serverPort);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_serverAddress, "QTcpServer.serverAddress() -> QHostAddress");

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

    {
        const QTcpServer *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHostAddress(sipCpp->serverAddress());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpServer, sipName_serverAddress, doc_QTcpServer_serverAddress);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_socketDescriptor, "QTcpServer.socketDescriptor() -> int");

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

    {
        const QTcpServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTcpServer, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->socketDescriptor();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpServer, sipName_socketDescriptor, doc_QTcpServer_socketDescriptor);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_setSocketDescriptor, "QTcpServer.setSocketDescriptor(int) -> bool");

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

    {
        int a0;
        QTcpServer *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setSocketDescriptor(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpServer, sipName_setSocketDescriptor, doc_QTcpServer_setSocketDescriptor);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_waitForNewConnection, "QTcpServer.waitForNewConnection(int msecs=0) -> (bool, bool)");

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

    {
        int a0 = 0;
        bool a1;
        QTcpServer *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QTcpServer, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForNewConnection(a0,&a1);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(bb)",sipRes,a1);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpServer, sipName_waitForNewConnection, doc_QTcpServer_waitForNewConnection);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_hasPendingConnections, "QTcpServer.hasPendingConnections() -> bool");

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

    {
        const QTcpServer *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QTcpServer::hasPendingConnections() : sipCpp->hasPendingConnections());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpServer, sipName_hasPendingConnections, doc_QTcpServer_hasPendingConnections);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_nextPendingConnection, "QTcpServer.nextPendingConnection() -> QTcpSocket");

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

    {
        QTcpServer *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QTcpServer::nextPendingConnection() : sipCpp->nextPendingConnection());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpServer, sipName_nextPendingConnection, doc_QTcpServer_nextPendingConnection);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_serverError, "QTcpServer.serverError() -> QAbstractSocket.SocketError");

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

    {
        const QTcpServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTcpServer, &sipCpp))
        {
            QAbstractSocket::SocketError sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->serverError();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QAbstractSocket_SocketError);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpServer, sipName_serverError, doc_QTcpServer_serverError);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_errorString, "QTcpServer.errorString() -> str");

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

    {
        const QTcpServer *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpServer, sipName_errorString, doc_QTcpServer_errorString);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_setProxy, "QTcpServer.setProxy(QNetworkProxy)");

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

    {
        const QNetworkProxy* a0;
        QTcpServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTcpServer, &sipCpp, sipType_QNetworkProxy, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProxy(*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_QTcpServer, sipName_setProxy, doc_QTcpServer_setProxy);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_proxy, "QTcpServer.proxy() -> QNetworkProxy");

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

    {
        const QTcpServer *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy(sipCpp->proxy());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpServer, sipName_proxy, doc_QTcpServer_proxy);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_incomingConnection, "QTcpServer.incomingConnection(int)");

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

    {
        int a0;
        sipQTcpServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bi", &sipSelf, sipType_QTcpServer, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_incomingConnection(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_QTcpServer, sipName_incomingConnection, doc_QTcpServer_incomingConnection);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpServer_addPendingConnection, "QTcpServer.addPendingConnection(QTcpSocket)");

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

    {
        QTcpSocket* a0;
        sipQTcpServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTcpServer, &sipCpp, sipType_QTcpSocket, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_addPendingConnection(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_QTcpServer, sipName_addPendingConnection, doc_QTcpServer_addPendingConnection);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTcpServer(void *, const sipTypeDef *);}
static void *cast_QTcpServer(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTcpServer)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QTcpServer *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTcpServer(void *, int);}
static void release_QTcpServer(void *sipCppV,int)
{
    QTcpServer *sipCpp = reinterpret_cast<QTcpServer *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QTcpServer(sipSimpleWrapper *);}
static void dealloc_QTcpServer(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQTcpServer *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QTcpServer(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QTcpServer(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTcpServer(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQTcpServer *sipCpp = 0;

    {
        QObject* a0 = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQTcpServer(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTcpServer[] = {{141, 0, 1}};


static PyMethodDef methods_QTcpServer[] = {
    {SIP_MLNAME_CAST(sipName_addPendingConnection), (PyCFunction)meth_QTcpServer_addPendingConnection, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTcpServer_addPendingConnection)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QTcpServer_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_QTcpServer_close, METH_VARARGS, SIP_MLDOC_CAST(doc_QTcpServer_close)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QTcpServer_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QTcpServer_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QTcpServer_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_QTcpServer_errorString, METH_VARARGS, SIP_MLDOC_CAST(doc_QTcpServer_errorString)},
    {SIP_MLNAME_CAST(sipName_hasPendingConnections), meth_QTcpServer_hasPendingConnections, METH_VARARGS, SIP_MLDOC_CAST(doc_QTcpServer_hasPendingConnections)},
    {SIP_MLNAME_CAST(sipName_incomingConnection), (PyCFunction)meth_QTcpServer_incomingConnection, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTcpServer_incomingConnection)},
    {SIP_MLNAME_CAST(sipName_isListening), meth_QTcpServer_isListening, METH_VARARGS, SIP_MLDOC_CAST(doc_QTcpServer_isListening)},
    {SIP_MLNAME_CAST(sipName_listen), (PyCFunction)meth_QTcpServer_listen, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTcpServer_listen)},
    {SIP_MLNAME_CAST(sipName_maxPendingConnections), meth_QTcpServer_maxPendingConnections, METH_VARARGS, SIP_MLDOC_CAST(doc_QTcpServer_maxPendingConnections)},
    {SIP_MLNAME_CAST(sipName_nextPendingConnection), meth_QTcpServer_nextPendingConnection, METH_VARARGS, SIP_MLDOC_CAST(doc_QTcpServer_nextPendingConnection)},
    {SIP_MLNAME_CAST(sipName_proxy), meth_QTcpServer_proxy, METH_VARARGS, SIP_MLDOC_CAST(doc_QTcpServer_proxy)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QTcpServer_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QTcpServer_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QTcpServer_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_serverAddress), meth_QTcpServer_serverAddress, METH_VARARGS, SIP_MLDOC_CAST(doc_QTcpServer_serverAddress)},
    {SIP_MLNAME_CAST(sipName_serverError), meth_QTcpServer_serverError, METH_VARARGS, SIP_MLDOC_CAST(doc_QTcpServer_serverError)},
    {SIP_MLNAME_CAST(sipName_serverPort), meth_QTcpServer_serverPort, METH_VARARGS, SIP_MLDOC_CAST(doc_QTcpServer_serverPort)},
    {SIP_MLNAME_CAST(sipName_setMaxPendingConnections), meth_QTcpServer_setMaxPendingConnections, METH_VARARGS, SIP_MLDOC_CAST(doc_QTcpServer_setMaxPendingConnections)},
    {SIP_MLNAME_CAST(sipName_setProxy), meth_QTcpServer_setProxy, METH_VARARGS, SIP_MLDOC_CAST(doc_QTcpServer_setProxy)},
    {SIP_MLNAME_CAST(sipName_setSocketDescriptor), meth_QTcpServer_setSocketDescriptor, METH_VARARGS, SIP_MLDOC_CAST(doc_QTcpServer_setSocketDescriptor)},
    {SIP_MLNAME_CAST(sipName_socketDescriptor), meth_QTcpServer_socketDescriptor, METH_VARARGS, SIP_MLDOC_CAST(doc_QTcpServer_socketDescriptor)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QTcpServer_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForNewConnection), (PyCFunction)meth_QTcpServer_waitForNewConnection, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTcpServer_waitForNewConnection)}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_QTcpServer[] = {
    {"newConnection()", "\1QTcpServer.newConnection", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QTcpServer, "\1QTcpServer(QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QTcpServer = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QTcpServer,
        {0}
    },
    {
        sipNameNr_QTcpServer,
        {0, 0, 1},
        26, methods_QTcpServer,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTcpServer,
    -1,
    -1,
    supers_QTcpServer,
    0,
    init_type_QTcpServer,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTcpServer,
    0,
    0,
    0,
    release_QTcpServer,
    cast_QTcpServer,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QTcpServer::staticMetaObject,
    0,
    signals_QTcpServer,
};

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslsocket.sip"
#include <qsslsocket.h>
#line 9101 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 9105 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9108 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 9111 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 9114 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 9117 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslconfiguration.sip"
#include <qsslconfiguration.h>
#line 9120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 9123 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9126 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9129 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 9132 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 9135 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 9138 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9141 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslcipher.sip"
#include <qsslcipher.h>
#line 9144 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslkey.sip"
#include <qsslkey.h>
#line 9147 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 9150 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 9153 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 9156 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 9159 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9162 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9165 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9168 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9171 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9174 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9177 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 9180 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 9183 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQSslSocket : public QSslSocket
{
public:
    sipQSslSocket(QObject*);
    virtual ~sipQSslSocket();

    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;
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);
    qint64 sipProtectVirt_readLineData(bool,char*,qint64);
    void sipProtect_setSocketState(QAbstractSocket::SocketState);
    void sipProtect_setSocketError(QAbstractSocket::SocketError);
    void sipProtect_setLocalPort(quint16);
    void sipProtect_setLocalAddress(const QHostAddress&);
    void sipProtect_setPeerPort(quint16);
    void sipProtect_setPeerAddress(const QHostAddress&);
    void sipProtect_setPeerName(const QString&);
    void sipProtect_connectToHostImplementation(const QString&,quint16,QIODevice::OpenMode);
    void sipProtect_disconnectFromHostImplementation();
    qint64 sipProtectVirt_readData(bool,char*,qint64);
    qint64 sipProtectVirt_writeData(bool,const char*,PY_LONG_LONG);

    /*
     * 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*);
    bool reset();
    bool seek(qint64);
    qint64 size() const;
    qint64 pos() const;
    bool open(QIODevice::OpenMode);
    qint64 readLineData(char*,qint64);
    bool isSequential() const;
    qint64 writeData(const char*,PY_LONG_LONG);
    qint64 readData(char*,qint64);
    bool waitForBytesWritten(int);
    bool waitForReadyRead(int);
    bool atEnd() const;
    void close();
    bool canReadLine() const;
    qint64 bytesToWrite() const;
    qint64 bytesAvailable() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[23];
};

sipQSslSocket::sipQSslSocket(QObject*a0): QSslSocket(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipQSslSocket::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QSslSocket);
}

int sipQSslSocket::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QSslSocket::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QSslSocket,_c,_id,_a);

    return _id;
}

void *sipQSslSocket::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QSslSocket, _clname)) ? this : QSslSocket::qt_metacast(_clname);
}

void sipQSslSocket::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QSslSocket::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQSslSocket::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QSslSocket::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQSslSocket::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QSslSocket::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQSslSocket::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QSslSocket::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQSslSocket::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QSslSocket::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQSslSocket::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSslSocket::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQSslSocket::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSslSocket::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQSslSocket::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSslSocket::reset();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQSslSocket::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSslSocket::seek(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQSslSocket::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSslSocket::size();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQSslSocket::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSslSocket::pos();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQSslSocket::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return QSslSocket::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQSslSocket::readLineData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_readLineData);

    if (!sipMeth)
        return QSslSocket::readLineData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQSslSocket::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSslSocket::isSequential();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQSslSocket::writeData(const char*a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_writeData);

    if (!sipMeth)
        return QSslSocket::writeData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return ((sipVH_QtCore_20)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipQSslSocket::readData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_readData);

    if (!sipMeth)
        return QSslSocket::readData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQSslSocket::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!sipMeth)
        return QSslSocket::waitForBytesWritten(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQSslSocket::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!sipMeth)
        return QSslSocket::waitForReadyRead(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQSslSocket::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSslSocket::atEnd();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQSslSocket::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
    {
        QSslSocket::close();
        return;
    }

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

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

bool sipQSslSocket::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSslSocket::canReadLine();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQSslSocket::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSslSocket::bytesToWrite();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQSslSocket::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QSslSocket::bytesAvailable();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

QObject* sipQSslSocket::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQSslSocket::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQSslSocket::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQSslSocket::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQSslSocket::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQSslSocket::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQSslSocket::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQSslSocket::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

void sipQSslSocket::sipProtect_setOpenMode(QIODevice::OpenMode a0)
{
    QIODevice::setOpenMode(a0);
}

void sipQSslSocket::sipProtect_setErrorString(const QString& a0)
{
    QIODevice::setErrorString(a0);
}

qint64 sipQSslSocket::sipProtectVirt_readLineData(bool sipSelfWasArg,char*a0,qint64 a1)
{
    return (sipSelfWasArg ? QAbstractSocket::readLineData(a0,a1) : readLineData(a0,a1));
}

void sipQSslSocket::sipProtect_setSocketState(QAbstractSocket::SocketState a0)
{
    QAbstractSocket::setSocketState(a0);
}

void sipQSslSocket::sipProtect_setSocketError(QAbstractSocket::SocketError a0)
{
    QAbstractSocket::setSocketError(a0);
}

void sipQSslSocket::sipProtect_setLocalPort(quint16 a0)
{
    QAbstractSocket::setLocalPort(a0);
}

void sipQSslSocket::sipProtect_setLocalAddress(const QHostAddress& a0)
{
    QAbstractSocket::setLocalAddress(a0);
}

void sipQSslSocket::sipProtect_setPeerPort(quint16 a0)
{
    QAbstractSocket::setPeerPort(a0);
}

void sipQSslSocket::sipProtect_setPeerAddress(const QHostAddress& a0)
{
    QAbstractSocket::setPeerAddress(a0);
}

void sipQSslSocket::sipProtect_setPeerName(const QString& a0)
{
    QAbstractSocket::setPeerName(a0);
}

void sipQSslSocket::sipProtect_connectToHostImplementation(const QString& a0,quint16 a1,QIODevice::OpenMode a2)
{
    QSslSocket::connectToHostImplementation(a0,a1,a2);
}

void sipQSslSocket::sipProtect_disconnectFromHostImplementation()
{
    QSslSocket::disconnectFromHostImplementation();
}

qint64 sipQSslSocket::sipProtectVirt_readData(bool sipSelfWasArg,char*a0,qint64 a1)
{
    return (sipSelfWasArg ? QSslSocket::readData(a0,a1) : readData(a0,a1));
}

qint64 sipQSslSocket::sipProtectVirt_writeData(bool sipSelfWasArg,const char*a0,PY_LONG_LONG a1)
{
    return (sipSelfWasArg ? QSslSocket::writeData(a0,a1) : writeData(a0,a1));
}


PyDoc_STRVAR(doc_QSslSocket_sender, "QSslSocket.sender() -> QObject");

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

    {
        const sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QSslSocket, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 9803 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_sender, doc_QSslSocket_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_receivers, "QSslSocket.receivers(SIGNAL()) -> int");

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

    {
        char* a0;
        const sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QSslSocket, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 9848 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_receivers, doc_QSslSocket_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_timerEvent, "QSslSocket.timerEvent(QTimerEvent)");

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

    {
        QTimerEvent* a0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QSslSocket, &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_QSslSocket, sipName_timerEvent, doc_QSslSocket_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_childEvent, "QSslSocket.childEvent(QChildEvent)");

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

    {
        QChildEvent* a0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QSslSocket, &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_QSslSocket, sipName_childEvent, doc_QSslSocket_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_customEvent, "QSslSocket.customEvent(QEvent)");

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

    {
        QEvent* a0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QSslSocket, &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_QSslSocket, sipName_customEvent, doc_QSslSocket_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_connectNotify, "QSslSocket.connectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QSslSocket, &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_QSslSocket, sipName_connectNotify, doc_QSslSocket_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_disconnectNotify, "QSslSocket.disconnectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QSslSocket, &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_QSslSocket, sipName_disconnectNotify, doc_QSslSocket_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_senderSignalIndex, "QSslSocket.senderSignalIndex() -> int");

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

    {
        const sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QSslSocket, &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_QSslSocket, sipName_senderSignalIndex, doc_QSslSocket_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setOpenMode, "QSslSocket.setOpenMode(QIODevice.OpenMode)");

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

    {
        QIODevice::OpenMode* a0;
        int a0State = 0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOpenMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_setOpenMode, doc_QSslSocket_setOpenMode);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setErrorString, "QSslSocket.setErrorString(str)");

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

    {
        const QString* a0;
        int a0State = 0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorString(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_setErrorString, doc_QSslSocket_setErrorString);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_readLineData, "QSslSocket.readLineData(int) -> bytes");

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

    {
        qint64 a0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bn", &sipSelf, sipType_QSslSocket, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 347 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QAbstractSocket::readLineData(s, a0) : sipCpp->readLineData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readLineData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 10154 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_readLineData, doc_QSslSocket_readLineData);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setSocketState, "QSslSocket.setSocketState(QAbstractSocket.SocketState)");

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

    {
        QAbstractSocket::SocketState a0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QAbstractSocket_SocketState, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setSocketState(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_QSslSocket, sipName_setSocketState, doc_QSslSocket_setSocketState);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setSocketError, "QSslSocket.setSocketError(QAbstractSocket.SocketError)");

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

    {
        QAbstractSocket::SocketError a0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QAbstractSocket_SocketError, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setSocketError(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_QSslSocket, sipName_setSocketError, doc_QSslSocket_setSocketError);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setLocalPort, "QSslSocket.setLocalPort(int)");

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

    {
        quint16 a0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bt", &sipSelf, sipType_QSslSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalPort(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_QSslSocket, sipName_setLocalPort, doc_QSslSocket_setLocalPort);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setLocalAddress, "QSslSocket.setLocalAddress(QHostAddress)");

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

    {
        const QHostAddress* a0;
        int a0State = 0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_setLocalAddress, doc_QSslSocket_setLocalAddress);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setPeerPort, "QSslSocket.setPeerPort(int)");

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

    {
        quint16 a0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bt", &sipSelf, sipType_QSslSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerPort(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_QSslSocket, sipName_setPeerPort, doc_QSslSocket_setPeerPort);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setPeerAddress, "QSslSocket.setPeerAddress(QHostAddress)");

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

    {
        const QHostAddress* a0;
        int a0State = 0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_setPeerAddress, doc_QSslSocket_setPeerAddress);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setPeerName, "QSslSocket.setPeerName(str)");

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

    {
        const QString* a0;
        int a0State = 0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_setPeerName, doc_QSslSocket_setPeerName);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_connectToHostEncrypted, "QSslSocket.connectToHostEncrypted(str, int, QIODevice.OpenMode mode=QIODevice.ReadWrite)\n"
    "QSslSocket.connectToHostEncrypted(str, int, str, QIODevice.OpenMode mode=QIODevice.ReadWrite)");

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

    {
        const QString* a0;
        int a0State = 0;
        quint16 a1;
        QIODevice::OpenMode a2def = QIODevice::ReadWrite;
        QIODevice::OpenMode* a2 = &a2def;
        int a2State = 0;
        QSslSocket *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1t|J1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QIODevice_OpenMode, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHostEncrypted(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        quint16 a1;
        const QString* a2;
        int a2State = 0;
        QIODevice::OpenMode a3def = QIODevice::ReadWrite;
        QIODevice::OpenMode* a3 = &a3def;
        int a3State = 0;
        QSslSocket *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1tJ1|J1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QString,&a2, &a2State, sipType_QIODevice_OpenMode, &a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHostEncrypted(*a0,a1,*a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(a3,sipType_QIODevice_OpenMode,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_connectToHostEncrypted, doc_QSslSocket_connectToHostEncrypted);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setSocketDescriptor, "QSslSocket.setSocketDescriptor(int, QAbstractSocket.SocketState state=QAbstractSocket.ConnectedState, QIODevice.OpenMode mode=QIODevice.ReadWrite) -> bool");

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

    {
        int a0;
        QAbstractSocket::SocketState a1 = QAbstractSocket::ConnectedState;
        QIODevice::OpenMode a2def = QIODevice::ReadWrite;
        QIODevice::OpenMode* a2 = &a2def;
        int a2State = 0;
        QSslSocket *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|EJ1", &sipSelf, sipType_QSslSocket, &sipCpp, &a0, sipType_QAbstractSocket_SocketState, &a1, sipType_QIODevice_OpenMode, &a2, &a2State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setSocketDescriptor(a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_setSocketDescriptor, doc_QSslSocket_setSocketDescriptor);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_mode, "QSslSocket.mode() -> QSslSocket.SslMode");

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

    {
        const QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslSocket, &sipCpp))
        {
            QSslSocket::SslMode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->mode();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QSslSocket_SslMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_mode, doc_QSslSocket_mode);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_isEncrypted, "QSslSocket.isEncrypted() -> bool");

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

    {
        const QSslSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEncrypted();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_isEncrypted, doc_QSslSocket_isEncrypted);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_protocol, "QSslSocket.protocol() -> QSsl.SslProtocol");

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

    {
        const QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslSocket, &sipCpp))
        {
            QSsl::SslProtocol sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->protocol();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QSsl_SslProtocol);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_protocol, doc_QSslSocket_protocol);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setProtocol, "QSslSocket.setProtocol(QSsl.SslProtocol)");

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

    {
        QSsl::SslProtocol a0;
        QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QSsl_SslProtocol, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProtocol(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_QSslSocket, sipName_setProtocol, doc_QSslSocket_setProtocol);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_bytesAvailable, "QSslSocket.bytesAvailable() -> int");

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

    {
        const QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslSocket, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QSslSocket::bytesAvailable() : sipCpp->bytesAvailable());
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_bytesAvailable, doc_QSslSocket_bytesAvailable);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_bytesToWrite, "QSslSocket.bytesToWrite() -> int");

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

    {
        const QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslSocket, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QSslSocket::bytesToWrite() : sipCpp->bytesToWrite());
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_bytesToWrite, doc_QSslSocket_bytesToWrite);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_canReadLine, "QSslSocket.canReadLine() -> bool");

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

    {
        const QSslSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QSslSocket::canReadLine() : sipCpp->canReadLine());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_canReadLine, doc_QSslSocket_canReadLine);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_close, "QSslSocket.close()");

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

    {
        QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QSslSocket::close() : sipCpp->close());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_close, doc_QSslSocket_close);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_atEnd, "QSslSocket.atEnd() -> bool");

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

    {
        const QSslSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QSslSocket::atEnd() : sipCpp->atEnd());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_atEnd, doc_QSslSocket_atEnd);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_flush, "QSslSocket.flush() -> bool");

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

    {
        QSslSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->flush();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_flush, doc_QSslSocket_flush);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_abort, "QSslSocket.abort()");

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

    {
        QSslSocket *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_abort, doc_QSslSocket_abort);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setLocalCertificate, "QSslSocket.setLocalCertificate(QSslCertificate)\n"
    "QSslSocket.setLocalCertificate(str, QSsl.EncodingFormat format=QSsl.Pem)");

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

    {
        const QSslCertificate* a0;
        QSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QSslCertificate, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLocalCertificate(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QSsl::EncodingFormat a1 = QSsl::Pem;
        QSslSocket *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|E", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QString,&a0, &a0State, sipType_QSsl_EncodingFormat, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLocalCertificate(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_setLocalCertificate, doc_QSslSocket_setLocalCertificate);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_localCertificate, "QSslSocket.localCertificate() -> QSslCertificate");

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

    {
        const QSslSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslCertificate(sipCpp->localCertificate());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_localCertificate, doc_QSslSocket_localCertificate);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_peerCertificate, "QSslSocket.peerCertificate() -> QSslCertificate");

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

    {
        const QSslSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslCertificate(sipCpp->peerCertificate());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_peerCertificate, doc_QSslSocket_peerCertificate);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_peerCertificateChain, "QSslSocket.peerCertificateChain() -> list-of-QSslCertificate");

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

    {
        const QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslSocket, &sipCpp))
        {
            QList<QSslCertificate>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCertificate>(sipCpp->peerCertificateChain());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_peerCertificateChain, doc_QSslSocket_peerCertificateChain);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_sessionCipher, "QSslSocket.sessionCipher() -> QSslCipher");

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

    {
        const QSslSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslCipher(sipCpp->sessionCipher());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_sessionCipher, doc_QSslSocket_sessionCipher);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setPrivateKey, "QSslSocket.setPrivateKey(QSslKey)\n"
    "QSslSocket.setPrivateKey(str, QSsl.KeyAlgorithm algorithm=QSsl.Rsa, QSsl.EncodingFormat format=QSsl.Pem, QByteArray passPhrase=QByteArray())");

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

    {
        const QSslKey* a0;
        QSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QSslKey, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPrivateKey(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QSsl::KeyAlgorithm a1 = QSsl::Rsa;
        QSsl::EncodingFormat a2 = QSsl::Pem;
        const QByteArray& a3def = QByteArray();
        const QByteArray* a3 = &a3def;
        int a3State = 0;
        QSslSocket *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_algorithm,
            sipName_format,
            sipName_passPhrase,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|EEJ1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QString,&a0, &a0State, sipType_QSsl_KeyAlgorithm, &a1, sipType_QSsl_EncodingFormat, &a2, sipType_QByteArray, &a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPrivateKey(*a0,a1,a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QByteArray *>(a3),sipType_QByteArray,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_setPrivateKey, doc_QSslSocket_setPrivateKey);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_privateKey, "QSslSocket.privateKey() -> QSslKey");

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

    {
        const QSslSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslKey(sipCpp->privateKey());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_privateKey, doc_QSslSocket_privateKey);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_ciphers, "QSslSocket.ciphers() -> list-of-QSslCipher");

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

    {
        const QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslSocket, &sipCpp))
        {
            QList<QSslCipher>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCipher>(sipCpp->ciphers());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_ciphers, doc_QSslSocket_ciphers);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setCiphers, "QSslSocket.setCiphers(list-of-QSslCipher)\n"
    "QSslSocket.setCiphers(str)");

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

    {
        const QList<QSslCipher>* a0;
        int a0State = 0;
        QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QList_0100QSslCipher,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCiphers(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QSslCipher> *>(a0),sipType_QList_0100QSslCipher,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCiphers(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_setCiphers, doc_QSslSocket_setCiphers);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setDefaultCiphers, "QSslSocket.setDefaultCiphers(list-of-QSslCipher)");

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

    {
        const QList<QSslCipher>* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QList_0100QSslCipher,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            QSslSocket::setDefaultCiphers(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QSslCipher> *>(a0),sipType_QList_0100QSslCipher,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_setDefaultCiphers, doc_QSslSocket_setDefaultCiphers);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_defaultCiphers, "QSslSocket.defaultCiphers() -> list-of-QSslCipher");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QSslCipher>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCipher>(QSslSocket::defaultCiphers());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_defaultCiphers, doc_QSslSocket_defaultCiphers);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_supportedCiphers, "QSslSocket.supportedCiphers() -> list-of-QSslCipher");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QSslCipher>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCipher>(QSslSocket::supportedCiphers());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_supportedCiphers, doc_QSslSocket_supportedCiphers);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_addCaCertificates, "QSslSocket.addCaCertificates(str, QSsl.EncodingFormat format=QSsl.Pem, QRegExp.PatternSyntax syntax=QRegExp.FixedString) -> bool\n"
    "QSslSocket.addCaCertificates(list-of-QSslCertificate)");

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

    {
        const QString* a0;
        int a0State = 0;
        QSsl::EncodingFormat a1 = QSsl::Pem;
        QRegExp::PatternSyntax a2 = QRegExp::FixedString;
        QSslSocket *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|EE", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QString,&a0, &a0State, sipType_QSsl_EncodingFormat, &a1, sipType_QRegExp_PatternSyntax, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addCaCertificates(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QList<QSslCertificate>* a0;
        int a0State = 0;
        QSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QList_0100QSslCertificate,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addCaCertificates(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QSslCertificate> *>(a0),sipType_QList_0100QSslCertificate,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_addCaCertificates, doc_QSslSocket_addCaCertificates);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_addCaCertificate, "QSslSocket.addCaCertificate(QSslCertificate)");

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

    {
        const QSslCertificate* a0;
        QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QSslCertificate, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addCaCertificate(*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_QSslSocket, sipName_addCaCertificate, doc_QSslSocket_addCaCertificate);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setCaCertificates, "QSslSocket.setCaCertificates(list-of-QSslCertificate)");

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

    {
        const QList<QSslCertificate>* a0;
        int a0State = 0;
        QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QList_0100QSslCertificate,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCaCertificates(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QSslCertificate> *>(a0),sipType_QList_0100QSslCertificate,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_setCaCertificates, doc_QSslSocket_setCaCertificates);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_caCertificates, "QSslSocket.caCertificates() -> list-of-QSslCertificate");

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

    {
        const QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslSocket, &sipCpp))
        {
            QList<QSslCertificate>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCertificate>(sipCpp->caCertificates());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_caCertificates, doc_QSslSocket_caCertificates);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_addDefaultCaCertificates, "QSslSocket.addDefaultCaCertificates(str, QSsl.EncodingFormat format=QSsl.Pem, QRegExp.PatternSyntax syntax=QRegExp.FixedString) -> bool\n"
    "QSslSocket.addDefaultCaCertificates(list-of-QSslCertificate)");

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

    {
        const QString* a0;
        int a0State = 0;
        QSsl::EncodingFormat a1 = QSsl::Pem;
        QRegExp::PatternSyntax a2 = QRegExp::FixedString;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J1|EE", sipType_QString,&a0, &a0State, sipType_QSsl_EncodingFormat, &a1, sipType_QRegExp_PatternSyntax, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = QSslSocket::addDefaultCaCertificates(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QList<QSslCertificate>* a0;
        int a0State = 0;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "J1", sipType_QList_0100QSslCertificate,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            QSslSocket::addDefaultCaCertificates(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QSslCertificate> *>(a0),sipType_QList_0100QSslCertificate,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_addDefaultCaCertificates, doc_QSslSocket_addDefaultCaCertificates);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_addDefaultCaCertificate, "QSslSocket.addDefaultCaCertificate(QSslCertificate)");

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

    {
        const QSslCertificate* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QSslCertificate, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            QSslSocket::addDefaultCaCertificate(*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_QSslSocket, sipName_addDefaultCaCertificate, doc_QSslSocket_addDefaultCaCertificate);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setDefaultCaCertificates, "QSslSocket.setDefaultCaCertificates(list-of-QSslCertificate)");

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

    {
        const QList<QSslCertificate>* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QList_0100QSslCertificate,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            QSslSocket::setDefaultCaCertificates(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QSslCertificate> *>(a0),sipType_QList_0100QSslCertificate,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_setDefaultCaCertificates, doc_QSslSocket_setDefaultCaCertificates);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_defaultCaCertificates, "QSslSocket.defaultCaCertificates() -> list-of-QSslCertificate");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QSslCertificate>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCertificate>(QSslSocket::defaultCaCertificates());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_defaultCaCertificates, doc_QSslSocket_defaultCaCertificates);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_systemCaCertificates, "QSslSocket.systemCaCertificates() -> list-of-QSslCertificate");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QSslCertificate>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCertificate>(QSslSocket::systemCaCertificates());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_systemCaCertificates, doc_QSslSocket_systemCaCertificates);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_waitForConnected, "QSslSocket.waitForConnected(int msecs=30000) -> bool");

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

    {
        int a0 = 30000;
        QSslSocket *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QSslSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForConnected(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_waitForConnected, doc_QSslSocket_waitForConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_waitForEncrypted, "QSslSocket.waitForEncrypted(int msecs=30000) -> bool");

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

    {
        int a0 = 30000;
        QSslSocket *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QSslSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForEncrypted(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_waitForEncrypted, doc_QSslSocket_waitForEncrypted);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_waitForReadyRead, "QSslSocket.waitForReadyRead(int msecs=30000) -> bool");

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

    {
        int a0 = 30000;
        QSslSocket *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QSslSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QSslSocket::waitForReadyRead(a0) : sipCpp->waitForReadyRead(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_waitForReadyRead, doc_QSslSocket_waitForReadyRead);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_waitForBytesWritten, "QSslSocket.waitForBytesWritten(int msecs=30000) -> bool");

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

    {
        int a0 = 30000;
        QSslSocket *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QSslSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QSslSocket::waitForBytesWritten(a0) : sipCpp->waitForBytesWritten(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_waitForBytesWritten, doc_QSslSocket_waitForBytesWritten);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_waitForDisconnected, "QSslSocket.waitForDisconnected(int msecs=30000) -> bool");

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

    {
        int a0 = 30000;
        QSslSocket *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QSslSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForDisconnected(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_waitForDisconnected, doc_QSslSocket_waitForDisconnected);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_sslErrors, "QSslSocket.sslErrors() -> list-of-QSslError");

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

    {
        const QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslSocket, &sipCpp))
        {
            QList<QSslError>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslError>(sipCpp->sslErrors());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_sslErrors, doc_QSslSocket_sslErrors);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_supportsSsl, "QSslSocket.supportsSsl() -> bool");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = QSslSocket::supportsSsl();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_supportsSsl, doc_QSslSocket_supportsSsl);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_startClientEncryption, "QSslSocket.startClientEncryption()");

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

    {
        QSslSocket *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_startClientEncryption, doc_QSslSocket_startClientEncryption);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_startServerEncryption, "QSslSocket.startServerEncryption()");

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

    {
        QSslSocket *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_startServerEncryption, doc_QSslSocket_startServerEncryption);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_ignoreSslErrors, "QSslSocket.ignoreSslErrors()\n"
    "QSslSocket.ignoreSslErrors(list-of-QSslError)");

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

    {
        QSslSocket *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QList<QSslError>* a0;
        int a0State = 0;
        QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QList_0100QSslError,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->ignoreSslErrors(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QSslError> *>(a0),sipType_QList_0100QSslError,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_ignoreSslErrors, doc_QSslSocket_ignoreSslErrors);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_connectToHostImplementation, "QSslSocket.connectToHostImplementation(str, int, QIODevice.OpenMode)");

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

    {
        const QString* a0;
        int a0State = 0;
        quint16 a1;
        QIODevice::OpenMode* a2;
        int a2State = 0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1tJ1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QIODevice_OpenMode, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_connectToHostImplementation(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_connectToHostImplementation, doc_QSslSocket_connectToHostImplementation);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_disconnectFromHostImplementation, "QSslSocket.disconnectFromHostImplementation()");

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

    {
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QSslSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_disconnectFromHostImplementation();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_disconnectFromHostImplementation, doc_QSslSocket_disconnectFromHostImplementation);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_readData, "QSslSocket.readData(int) -> bytes");

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

    {
        qint64 a0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bn", &sipSelf, sipType_QSslSocket, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 146 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslsocket.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QSslSocket::readData(s, a0) : sipCpp->readData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 11997 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_readData, doc_QSslSocket_readData);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_writeData, "QSslSocket.writeData(str) -> int");

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

    {
        const char* a0;
        SIP_SSIZE_T a1;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bk", &sipSelf, sipType_QSslSocket, &sipCpp, &a0, &a1))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_writeData(sipSelfWasArg,a0,(PY_LONG_LONG)a1);
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_writeData, doc_QSslSocket_writeData);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_peerVerifyMode, "QSslSocket.peerVerifyMode() -> QSslSocket.PeerVerifyMode");

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

    {
        const QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslSocket, &sipCpp))
        {
            QSslSocket::PeerVerifyMode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->peerVerifyMode();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QSslSocket_PeerVerifyMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_peerVerifyMode, doc_QSslSocket_peerVerifyMode);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setPeerVerifyMode, "QSslSocket.setPeerVerifyMode(QSslSocket.PeerVerifyMode)");

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

    {
        QSslSocket::PeerVerifyMode a0;
        QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QSslSocket_PeerVerifyMode, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPeerVerifyMode(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_QSslSocket, sipName_setPeerVerifyMode, doc_QSslSocket_setPeerVerifyMode);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_peerVerifyDepth, "QSslSocket.peerVerifyDepth() -> int");

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

    {
        const QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslSocket, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->peerVerifyDepth();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_peerVerifyDepth, doc_QSslSocket_peerVerifyDepth);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setPeerVerifyDepth, "QSslSocket.setPeerVerifyDepth(int)");

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

    {
        int a0;
        QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QSslSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPeerVerifyDepth(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_QSslSocket, sipName_setPeerVerifyDepth, doc_QSslSocket_setPeerVerifyDepth);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setReadBufferSize, "QSslSocket.setReadBufferSize(int)");

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

    {
        qint64 a0;
        QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QSslSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setReadBufferSize(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_QSslSocket, sipName_setReadBufferSize, doc_QSslSocket_setReadBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_encryptedBytesAvailable, "QSslSocket.encryptedBytesAvailable() -> int");

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

    {
        const QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslSocket, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->encryptedBytesAvailable();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_encryptedBytesAvailable, doc_QSslSocket_encryptedBytesAvailable);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_encryptedBytesToWrite, "QSslSocket.encryptedBytesToWrite() -> int");

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

    {
        const QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslSocket, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->encryptedBytesToWrite();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_encryptedBytesToWrite, doc_QSslSocket_encryptedBytesToWrite);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_sslConfiguration, "QSslSocket.sslConfiguration() -> QSslConfiguration");

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

    {
        const QSslSocket *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslConfiguration(sipCpp->sslConfiguration());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_sslConfiguration, doc_QSslSocket_sslConfiguration);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setSslConfiguration, "QSslSocket.setSslConfiguration(QSslConfiguration)");

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

    {
        const QSslConfiguration* a0;
        QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QSslConfiguration, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSslConfiguration(*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_QSslSocket, sipName_setSslConfiguration, doc_QSslSocket_setSslConfiguration);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setSocketOption, "QSslSocket.setSocketOption(QAbstractSocket.SocketOption, object)");

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

    {
        QAbstractSocket::SocketOption a0;
        const QVariant* a1;
        int a1State = 0;
        QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QAbstractSocket_SocketOption, &a0, sipType_QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSocketOption(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_setSocketOption, doc_QSslSocket_setSocketOption);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_socketOption, "QSslSocket.socketOption(QAbstractSocket.SocketOption) -> object");

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

    {
        QAbstractSocket::SocketOption a0;
        QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QAbstractSocket_SocketOption, &a0))
        {
            QVariant*sipRes;

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_socketOption, doc_QSslSocket_socketOption);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_peerVerifyName, "QSslSocket.peerVerifyName() -> str");

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

    {
        const QSslSocket *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_peerVerifyName, doc_QSslSocket_peerVerifyName);

    return NULL;
}


PyDoc_STRVAR(doc_QSslSocket_setPeerVerifyName, "QSslSocket.setPeerVerifyName(str)");

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

    {
        const QString* a0;
        int a0State = 0;
        QSslSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QSslSocket, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPeerVerifyName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslSocket, sipName_setPeerVerifyName, doc_QSslSocket_setPeerVerifyName);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QSslSocket(void *, const sipTypeDef *);}
static void *cast_QSslSocket(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QSslSocket)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTcpSocket)->ctd_cast((QTcpSocket *)(QSslSocket *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QSslSocket(void *, int);}
static void release_QSslSocket(void *sipCppV,int)
{
    QSslSocket *sipCpp = reinterpret_cast<QSslSocket *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QSslSocket(sipSimpleWrapper *);}
static void dealloc_QSslSocket(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQSslSocket *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QSslSocket(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QSslSocket(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QSslSocket(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQSslSocket *sipCpp = 0;

    {
        QObject* a0 = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQSslSocket(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QSslSocket[] = {{102, 255, 1}};


static PyMethodDef methods_QSslSocket[] = {
    {SIP_MLNAME_CAST(sipName_abort), meth_QSslSocket_abort, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_abort)},
    {SIP_MLNAME_CAST(sipName_addCaCertificate), meth_QSslSocket_addCaCertificate, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_addCaCertificate)},
    {SIP_MLNAME_CAST(sipName_addCaCertificates), (PyCFunction)meth_QSslSocket_addCaCertificates, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslSocket_addCaCertificates)},
    {SIP_MLNAME_CAST(sipName_addDefaultCaCertificate), meth_QSslSocket_addDefaultCaCertificate, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_addDefaultCaCertificate)},
    {SIP_MLNAME_CAST(sipName_addDefaultCaCertificates), (PyCFunction)meth_QSslSocket_addDefaultCaCertificates, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslSocket_addDefaultCaCertificates)},
    {SIP_MLNAME_CAST(sipName_atEnd), meth_QSslSocket_atEnd, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_atEnd)},
    {SIP_MLNAME_CAST(sipName_bytesAvailable), meth_QSslSocket_bytesAvailable, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_bytesAvailable)},
    {SIP_MLNAME_CAST(sipName_bytesToWrite), meth_QSslSocket_bytesToWrite, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_bytesToWrite)},
    {SIP_MLNAME_CAST(sipName_caCertificates), meth_QSslSocket_caCertificates, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_caCertificates)},
    {SIP_MLNAME_CAST(sipName_canReadLine), meth_QSslSocket_canReadLine, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_canReadLine)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QSslSocket_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_ciphers), meth_QSslSocket_ciphers, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_ciphers)},
    {SIP_MLNAME_CAST(sipName_close), meth_QSslSocket_close, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_close)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QSslSocket_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToHostEncrypted), (PyCFunction)meth_QSslSocket_connectToHostEncrypted, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslSocket_connectToHostEncrypted)},
    {SIP_MLNAME_CAST(sipName_connectToHostImplementation), (PyCFunction)meth_QSslSocket_connectToHostImplementation, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslSocket_connectToHostImplementation)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QSslSocket_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultCaCertificates), meth_QSslSocket_defaultCaCertificates, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_defaultCaCertificates)},
    {SIP_MLNAME_CAST(sipName_defaultCiphers), meth_QSslSocket_defaultCiphers, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_defaultCiphers)},
    {SIP_MLNAME_CAST(sipName_disconnectFromHostImplementation), (PyCFunction)meth_QSslSocket_disconnectFromHostImplementation, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslSocket_disconnectFromHostImplementation)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QSslSocket_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_encryptedBytesAvailable), meth_QSslSocket_encryptedBytesAvailable, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_encryptedBytesAvailable)},
    {SIP_MLNAME_CAST(sipName_encryptedBytesToWrite), meth_QSslSocket_encryptedBytesToWrite, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_encryptedBytesToWrite)},
    {SIP_MLNAME_CAST(sipName_flush), meth_QSslSocket_flush, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_flush)},
    {SIP_MLNAME_CAST(sipName_ignoreSslErrors), meth_QSslSocket_ignoreSslErrors, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_ignoreSslErrors)},
    {SIP_MLNAME_CAST(sipName_isEncrypted), meth_QSslSocket_isEncrypted, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_isEncrypted)},
    {SIP_MLNAME_CAST(sipName_localCertificate), meth_QSslSocket_localCertificate, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_localCertificate)},
    {SIP_MLNAME_CAST(sipName_mode), meth_QSslSocket_mode, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_mode)},
    {SIP_MLNAME_CAST(sipName_peerCertificate), meth_QSslSocket_peerCertificate, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_peerCertificate)},
    {SIP_MLNAME_CAST(sipName_peerCertificateChain), meth_QSslSocket_peerCertificateChain, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_peerCertificateChain)},
    {SIP_MLNAME_CAST(sipName_peerVerifyDepth), meth_QSslSocket_peerVerifyDepth, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_peerVerifyDepth)},
    {SIP_MLNAME_CAST(sipName_peerVerifyMode), meth_QSslSocket_peerVerifyMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_peerVerifyMode)},
    {SIP_MLNAME_CAST(sipName_peerVerifyName), meth_QSslSocket_peerVerifyName, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_peerVerifyName)},
    {SIP_MLNAME_CAST(sipName_privateKey), meth_QSslSocket_privateKey, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_privateKey)},
    {SIP_MLNAME_CAST(sipName_protocol), meth_QSslSocket_protocol, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_protocol)},
    {SIP_MLNAME_CAST(sipName_readData), (PyCFunction)meth_QSslSocket_readData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslSocket_readData)},
    {SIP_MLNAME_CAST(sipName_readLineData), (PyCFunction)meth_QSslSocket_readLineData, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QSslSocket_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QSslSocket_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QSslSocket_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sessionCipher), meth_QSslSocket_sessionCipher, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_sessionCipher)},
    {SIP_MLNAME_CAST(sipName_setCaCertificates), meth_QSslSocket_setCaCertificates, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_setCaCertificates)},
    {SIP_MLNAME_CAST(sipName_setCiphers), meth_QSslSocket_setCiphers, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_setCiphers)},
    {SIP_MLNAME_CAST(sipName_setDefaultCaCertificates), meth_QSslSocket_setDefaultCaCertificates, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_setDefaultCaCertificates)},
    {SIP_MLNAME_CAST(sipName_setDefaultCiphers), meth_QSslSocket_setDefaultCiphers, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_setDefaultCiphers)},
    {SIP_MLNAME_CAST(sipName_setErrorString), (PyCFunction)meth_QSslSocket_setErrorString, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalAddress), (PyCFunction)meth_QSslSocket_setLocalAddress, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalCertificate), (PyCFunction)meth_QSslSocket_setLocalCertificate, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslSocket_setLocalCertificate)},
    {SIP_MLNAME_CAST(sipName_setLocalPort), (PyCFunction)meth_QSslSocket_setLocalPort, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpenMode), (PyCFunction)meth_QSslSocket_setOpenMode, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerAddress), (PyCFunction)meth_QSslSocket_setPeerAddress, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerName), (PyCFunction)meth_QSslSocket_setPeerName, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerPort), (PyCFunction)meth_QSslSocket_setPeerPort, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerVerifyDepth), meth_QSslSocket_setPeerVerifyDepth, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_setPeerVerifyDepth)},
    {SIP_MLNAME_CAST(sipName_setPeerVerifyMode), meth_QSslSocket_setPeerVerifyMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_setPeerVerifyMode)},
    {SIP_MLNAME_CAST(sipName_setPeerVerifyName), meth_QSslSocket_setPeerVerifyName, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_setPeerVerifyName)},
    {SIP_MLNAME_CAST(sipName_setPrivateKey), (PyCFunction)meth_QSslSocket_setPrivateKey, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslSocket_setPrivateKey)},
    {SIP_MLNAME_CAST(sipName_setProtocol), meth_QSslSocket_setProtocol, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_setProtocol)},
    {SIP_MLNAME_CAST(sipName_setReadBufferSize), meth_QSslSocket_setReadBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_setReadBufferSize)},
    {SIP_MLNAME_CAST(sipName_setSocketDescriptor), (PyCFunction)meth_QSslSocket_setSocketDescriptor, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslSocket_setSocketDescriptor)},
    {SIP_MLNAME_CAST(sipName_setSocketError), (PyCFunction)meth_QSslSocket_setSocketError, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setSocketOption), meth_QSslSocket_setSocketOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_setSocketOption)},
    {SIP_MLNAME_CAST(sipName_setSocketState), (PyCFunction)meth_QSslSocket_setSocketState, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setSslConfiguration), meth_QSslSocket_setSslConfiguration, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_setSslConfiguration)},
    {SIP_MLNAME_CAST(sipName_socketOption), meth_QSslSocket_socketOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_socketOption)},
    {SIP_MLNAME_CAST(sipName_sslConfiguration), meth_QSslSocket_sslConfiguration, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_sslConfiguration)},
    {SIP_MLNAME_CAST(sipName_sslErrors), meth_QSslSocket_sslErrors, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_sslErrors)},
    {SIP_MLNAME_CAST(sipName_startClientEncryption), meth_QSslSocket_startClientEncryption, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_startClientEncryption)},
    {SIP_MLNAME_CAST(sipName_startServerEncryption), meth_QSslSocket_startServerEncryption, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_startServerEncryption)},
    {SIP_MLNAME_CAST(sipName_supportedCiphers), meth_QSslSocket_supportedCiphers, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_supportedCiphers)},
    {SIP_MLNAME_CAST(sipName_supportsSsl), meth_QSslSocket_supportsSsl, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_supportsSsl)},
    {SIP_MLNAME_CAST(sipName_systemCaCertificates), meth_QSslSocket_systemCaCertificates, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslSocket_systemCaCertificates)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QSslSocket_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForBytesWritten), (PyCFunction)meth_QSslSocket_waitForBytesWritten, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslSocket_waitForBytesWritten)},
    {SIP_MLNAME_CAST(sipName_waitForConnected), (PyCFunction)meth_QSslSocket_waitForConnected, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslSocket_waitForConnected)},
    {SIP_MLNAME_CAST(sipName_waitForDisconnected), (PyCFunction)meth_QSslSocket_waitForDisconnected, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslSocket_waitForDisconnected)},
    {SIP_MLNAME_CAST(sipName_waitForEncrypted), (PyCFunction)meth_QSslSocket_waitForEncrypted, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslSocket_waitForEncrypted)},
    {SIP_MLNAME_CAST(sipName_waitForReadyRead), (PyCFunction)meth_QSslSocket_waitForReadyRead, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslSocket_waitForReadyRead)},
    {SIP_MLNAME_CAST(sipName_writeData), (PyCFunction)meth_QSslSocket_writeData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslSocket_writeData)}
};

static sipEnumMemberDef enummembers_QSslSocket[] = {
    {sipName_AutoVerifyPeer, static_cast<int>(QSslSocket::AutoVerifyPeer), 99},
    {sipName_QueryPeer, static_cast<int>(QSslSocket::QueryPeer), 99},
    {sipName_SslClientMode, static_cast<int>(QSslSocket::SslClientMode), 100},
    {sipName_SslServerMode, static_cast<int>(QSslSocket::SslServerMode), 100},
    {sipName_UnencryptedMode, static_cast<int>(QSslSocket::UnencryptedMode), 100},
    {sipName_VerifyNone, static_cast<int>(QSslSocket::VerifyNone), 99},
    {sipName_VerifyPeer, static_cast<int>(QSslSocket::VerifyPeer), 99},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_QSslSocket[] = {
    {"encryptedBytesWritten(qint64)", "\1QSslSocket.encryptedBytesWritten[int]", 0, 0},
    {"peerVerifyError(QSslError)", "\1QSslSocket.peerVerifyError[QSslError]", 0, 0},
    {"modeChanged(QSslSocket::SslMode)", "\1QSslSocket.modeChanged[QSslSocket.SslMode]", 0, 0},
    {"encrypted()", "\1QSslSocket.encrypted", 0, 0},
    {"sslErrors(QList<QSslError>)", "\1QSslSocket.sslErrors[list-of-QSslError]", &methods_QSslSocket[66], 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QSslSocket, "\1QSslSocket(QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QSslSocket = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QSslSocket,
        {0}
    },
    {
        sipNameNr_QSslSocket,
        {0, 0, 1},
        79, methods_QSslSocket,
        7, enummembers_QSslSocket,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QSslSocket,
    -1,
    -1,
    supers_QSslSocket,
    0,
    init_type_QSslSocket,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QSslSocket,
    0,
    0,
    0,
    release_QSslSocket,
    cast_QSslSocket,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QSslSocket::staticMetaObject,
    0,
    signals_QSslSocket,
};

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qtcpsocket.sip"
#include <qtcpsocket.h>
#line 12668 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 12672 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12675 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 12678 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 12681 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 12684 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 12687 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 12690 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 12693 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12696 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12699 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12702 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12705 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 12708 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12711 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 12714 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 12717 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 12720 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 12723 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQTcpSocket : public QTcpSocket
{
public:
    sipQTcpSocket(QObject*);
    virtual ~sipQTcpSocket();

    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;
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);
    void sipProtect_connectToHostImplementation(const QString&,quint16,QIODevice::OpenMode);
    void sipProtect_disconnectFromHostImplementation();
    qint64 sipProtectVirt_readData(bool,char*,qint64);
    qint64 sipProtectVirt_readLineData(bool,char*,qint64);
    qint64 sipProtectVirt_writeData(bool,const char*,PY_LONG_LONG);
    void sipProtect_setSocketState(QAbstractSocket::SocketState);
    void sipProtect_setSocketError(QAbstractSocket::SocketError);
    void sipProtect_setLocalPort(quint16);
    void sipProtect_setLocalAddress(const QHostAddress&);
    void sipProtect_setPeerPort(quint16);
    void sipProtect_setPeerAddress(const QHostAddress&);
    void sipProtect_setPeerName(const QString&);

    /*
     * 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*);
    bool reset();
    bool seek(qint64);
    qint64 size() const;
    qint64 pos() const;
    bool open(QIODevice::OpenMode);
    qint64 writeData(const char*,PY_LONG_LONG);
    qint64 readLineData(char*,qint64);
    qint64 readData(char*,qint64);
    bool waitForBytesWritten(int);
    bool waitForReadyRead(int);
    bool atEnd() const;
    bool isSequential() const;
    void close();
    bool canReadLine() const;
    qint64 bytesToWrite() const;
    qint64 bytesAvailable() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[23];
};

sipQTcpSocket::sipQTcpSocket(QObject*a0): QTcpSocket(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipQTcpSocket::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QTcpSocket);
}

int sipQTcpSocket::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QTcpSocket::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QTcpSocket,_c,_id,_a);

    return _id;
}

void *sipQTcpSocket::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QTcpSocket, _clname)) ? this : QTcpSocket::qt_metacast(_clname);
}

void sipQTcpSocket::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QTcpSocket::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQTcpSocket::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QTcpSocket::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQTcpSocket::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QTcpSocket::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQTcpSocket::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QTcpSocket::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQTcpSocket::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QTcpSocket::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQTcpSocket::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTcpSocket::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQTcpSocket::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTcpSocket::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQTcpSocket::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTcpSocket::reset();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQTcpSocket::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTcpSocket::seek(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQTcpSocket::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTcpSocket::size();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQTcpSocket::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTcpSocket::pos();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQTcpSocket::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return QTcpSocket::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQTcpSocket::writeData(const char*a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_writeData);

    if (!sipMeth)
        return QTcpSocket::writeData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return ((sipVH_QtCore_20)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipQTcpSocket::readLineData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_readLineData);

    if (!sipMeth)
        return QTcpSocket::readLineData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipQTcpSocket::readData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_readData);

    if (!sipMeth)
        return QTcpSocket::readData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQTcpSocket::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!sipMeth)
        return QTcpSocket::waitForBytesWritten(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQTcpSocket::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!sipMeth)
        return QTcpSocket::waitForReadyRead(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQTcpSocket::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTcpSocket::atEnd();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQTcpSocket::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTcpSocket::isSequential();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQTcpSocket::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
    {
        QTcpSocket::close();
        return;
    }

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

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

bool sipQTcpSocket::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTcpSocket::canReadLine();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQTcpSocket::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTcpSocket::bytesToWrite();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQTcpSocket::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QTcpSocket::bytesAvailable();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

QObject* sipQTcpSocket::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQTcpSocket::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQTcpSocket::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQTcpSocket::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQTcpSocket::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQTcpSocket::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQTcpSocket::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQTcpSocket::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

void sipQTcpSocket::sipProtect_setOpenMode(QIODevice::OpenMode a0)
{
    QIODevice::setOpenMode(a0);
}

void sipQTcpSocket::sipProtect_setErrorString(const QString& a0)
{
    QIODevice::setErrorString(a0);
}

void sipQTcpSocket::sipProtect_connectToHostImplementation(const QString& a0,quint16 a1,QIODevice::OpenMode a2)
{
    QAbstractSocket::connectToHostImplementation(a0,a1,a2);
}

void sipQTcpSocket::sipProtect_disconnectFromHostImplementation()
{
    QAbstractSocket::disconnectFromHostImplementation();
}

qint64 sipQTcpSocket::sipProtectVirt_readData(bool sipSelfWasArg,char*a0,qint64 a1)
{
    return (sipSelfWasArg ? QAbstractSocket::readData(a0,a1) : readData(a0,a1));
}

qint64 sipQTcpSocket::sipProtectVirt_readLineData(bool sipSelfWasArg,char*a0,qint64 a1)
{
    return (sipSelfWasArg ? QAbstractSocket::readLineData(a0,a1) : readLineData(a0,a1));
}

qint64 sipQTcpSocket::sipProtectVirt_writeData(bool sipSelfWasArg,const char*a0,PY_LONG_LONG a1)
{
    return (sipSelfWasArg ? QAbstractSocket::writeData(a0,a1) : writeData(a0,a1));
}

void sipQTcpSocket::sipProtect_setSocketState(QAbstractSocket::SocketState a0)
{
    QAbstractSocket::setSocketState(a0);
}

void sipQTcpSocket::sipProtect_setSocketError(QAbstractSocket::SocketError a0)
{
    QAbstractSocket::setSocketError(a0);
}

void sipQTcpSocket::sipProtect_setLocalPort(quint16 a0)
{
    QAbstractSocket::setLocalPort(a0);
}

void sipQTcpSocket::sipProtect_setLocalAddress(const QHostAddress& a0)
{
    QAbstractSocket::setLocalAddress(a0);
}

void sipQTcpSocket::sipProtect_setPeerPort(quint16 a0)
{
    QAbstractSocket::setPeerPort(a0);
}

void sipQTcpSocket::sipProtect_setPeerAddress(const QHostAddress& a0)
{
    QAbstractSocket::setPeerAddress(a0);
}

void sipQTcpSocket::sipProtect_setPeerName(const QString& a0)
{
    QAbstractSocket::setPeerName(a0);
}


PyDoc_STRVAR(doc_QTcpSocket_sender, "QTcpSocket.sender() -> QObject");

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

    {
        const sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTcpSocket, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 13343 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpSocket, sipName_sender, doc_QTcpSocket_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_receivers, "QTcpSocket.receivers(SIGNAL()) -> int");

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

    {
        char* a0;
        const sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QTcpSocket, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 13388 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpSocket, sipName_receivers, doc_QTcpSocket_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_timerEvent, "QTcpSocket.timerEvent(QTimerEvent)");

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

    {
        QTimerEvent* a0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTcpSocket, &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_QTcpSocket, sipName_timerEvent, doc_QTcpSocket_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_childEvent, "QTcpSocket.childEvent(QChildEvent)");

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

    {
        QChildEvent* a0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTcpSocket, &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_QTcpSocket, sipName_childEvent, doc_QTcpSocket_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_customEvent, "QTcpSocket.customEvent(QEvent)");

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

    {
        QEvent* a0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTcpSocket, &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_QTcpSocket, sipName_customEvent, doc_QTcpSocket_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_connectNotify, "QTcpSocket.connectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QTcpSocket, &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_QTcpSocket, sipName_connectNotify, doc_QTcpSocket_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_disconnectNotify, "QTcpSocket.disconnectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QTcpSocket, &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_QTcpSocket, sipName_disconnectNotify, doc_QTcpSocket_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_senderSignalIndex, "QTcpSocket.senderSignalIndex() -> int");

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

    {
        const sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTcpSocket, &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_QTcpSocket, sipName_senderSignalIndex, doc_QTcpSocket_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_setOpenMode, "QTcpSocket.setOpenMode(QIODevice.OpenMode)");

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

    {
        QIODevice::OpenMode* a0;
        int a0State = 0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QTcpSocket, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOpenMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpSocket, sipName_setOpenMode, doc_QTcpSocket_setOpenMode);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_setErrorString, "QTcpSocket.setErrorString(str)");

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

    {
        const QString* a0;
        int a0State = 0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QTcpSocket, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorString(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpSocket, sipName_setErrorString, doc_QTcpSocket_setErrorString);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_connectToHostImplementation, "QTcpSocket.connectToHostImplementation(str, int, QIODevice.OpenMode mode=QIODevice.ReadWrite)");

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

    {
        const QString* a0;
        int a0State = 0;
        quint16 a1;
        QIODevice::OpenMode a2def = QIODevice::ReadWrite;
        QIODevice::OpenMode* a2 = &a2def;
        int a2State = 0;
        sipQTcpSocket *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1t|J1", &sipSelf, sipType_QTcpSocket, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QIODevice_OpenMode, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_connectToHostImplementation(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpSocket, sipName_connectToHostImplementation, doc_QTcpSocket_connectToHostImplementation);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_disconnectFromHostImplementation, "QTcpSocket.disconnectFromHostImplementation()");

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

    {
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTcpSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_disconnectFromHostImplementation();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpSocket, sipName_disconnectFromHostImplementation, doc_QTcpSocket_disconnectFromHostImplementation);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_readData, "QTcpSocket.readData(int) -> bytes");

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

    {
        qint64 a0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bn", &sipSelf, sipType_QTcpSocket, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 309 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QAbstractSocket::readData(s, a0) : sipCpp->readData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 13764 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpSocket, sipName_readData, doc_QTcpSocket_readData);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_readLineData, "QTcpSocket.readLineData(int) -> bytes");

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

    {
        qint64 a0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bn", &sipSelf, sipType_QTcpSocket, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 347 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QAbstractSocket::readLineData(s, a0) : sipCpp->readLineData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readLineData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 13832 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpSocket, sipName_readLineData, doc_QTcpSocket_readLineData);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_writeData, "QTcpSocket.writeData(str) -> int");

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

    {
        const char* a0;
        SIP_SSIZE_T a1;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bk", &sipSelf, sipType_QTcpSocket, &sipCpp, &a0, &a1))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_writeData(sipSelfWasArg,a0,(PY_LONG_LONG)a1);
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpSocket, sipName_writeData, doc_QTcpSocket_writeData);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_setSocketState, "QTcpSocket.setSocketState(QAbstractSocket.SocketState)");

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

    {
        QAbstractSocket::SocketState a0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QTcpSocket, &sipCpp, sipType_QAbstractSocket_SocketState, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setSocketState(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_QTcpSocket, sipName_setSocketState, doc_QTcpSocket_setSocketState);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_setSocketError, "QTcpSocket.setSocketError(QAbstractSocket.SocketError)");

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

    {
        QAbstractSocket::SocketError a0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QTcpSocket, &sipCpp, sipType_QAbstractSocket_SocketError, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setSocketError(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_QTcpSocket, sipName_setSocketError, doc_QTcpSocket_setSocketError);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_setLocalPort, "QTcpSocket.setLocalPort(int)");

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

    {
        quint16 a0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bt", &sipSelf, sipType_QTcpSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalPort(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_QTcpSocket, sipName_setLocalPort, doc_QTcpSocket_setLocalPort);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_setLocalAddress, "QTcpSocket.setLocalAddress(QHostAddress)");

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

    {
        const QHostAddress* a0;
        int a0State = 0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QTcpSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpSocket, sipName_setLocalAddress, doc_QTcpSocket_setLocalAddress);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_setPeerPort, "QTcpSocket.setPeerPort(int)");

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

    {
        quint16 a0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bt", &sipSelf, sipType_QTcpSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerPort(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_QTcpSocket, sipName_setPeerPort, doc_QTcpSocket_setPeerPort);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_setPeerAddress, "QTcpSocket.setPeerAddress(QHostAddress)");

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

    {
        const QHostAddress* a0;
        int a0State = 0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QTcpSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpSocket, sipName_setPeerAddress, doc_QTcpSocket_setPeerAddress);

    return NULL;
}


PyDoc_STRVAR(doc_QTcpSocket_setPeerName, "QTcpSocket.setPeerName(str)");

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

    {
        const QString* a0;
        int a0State = 0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QTcpSocket, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTcpSocket, sipName_setPeerName, doc_QTcpSocket_setPeerName);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTcpSocket(void *, const sipTypeDef *);}
static void *cast_QTcpSocket(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTcpSocket)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QAbstractSocket)->ctd_cast((QAbstractSocket *)(QTcpSocket *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTcpSocket(void *, int);}
static void release_QTcpSocket(void *sipCppV,int)
{
    QTcpSocket *sipCpp = reinterpret_cast<QTcpSocket *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QTcpSocket(sipSimpleWrapper *);}
static void dealloc_QTcpSocket(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQTcpSocket *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QTcpSocket(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QTcpSocket(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTcpSocket(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQTcpSocket *sipCpp = 0;

    {
        QObject* a0 = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQTcpSocket(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTcpSocket[] = {{1, 255, 1}};


static PyMethodDef methods_QTcpSocket[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QTcpSocket_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QTcpSocket_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToHostImplementation), (PyCFunction)meth_QTcpSocket_connectToHostImplementation, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QTcpSocket_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectFromHostImplementation), (PyCFunction)meth_QTcpSocket_disconnectFromHostImplementation, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QTcpSocket_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_readData), (PyCFunction)meth_QTcpSocket_readData, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_readLineData), (PyCFunction)meth_QTcpSocket_readLineData, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QTcpSocket_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QTcpSocket_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QTcpSocket_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorString), (PyCFunction)meth_QTcpSocket_setErrorString, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalAddress), (PyCFunction)meth_QTcpSocket_setLocalAddress, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalPort), (PyCFunction)meth_QTcpSocket_setLocalPort, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpenMode), (PyCFunction)meth_QTcpSocket_setOpenMode, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerAddress), (PyCFunction)meth_QTcpSocket_setPeerAddress, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerName), (PyCFunction)meth_QTcpSocket_setPeerName, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerPort), (PyCFunction)meth_QTcpSocket_setPeerPort, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setSocketError), (PyCFunction)meth_QTcpSocket_setSocketError, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setSocketState), (PyCFunction)meth_QTcpSocket_setSocketState, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QTcpSocket_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_writeData), (PyCFunction)meth_QTcpSocket_writeData, METH_VARARGS|METH_KEYWORDS, NULL}
};

PyDoc_STRVAR(doc_QTcpSocket, "\1QTcpSocket(QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QTcpSocket = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QTcpSocket,
        {0}
    },
    {
        sipNameNr_QTcpSocket,
        {0, 0, 1},
        22, methods_QTcpSocket,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTcpSocket,
    -1,
    -1,
    supers_QTcpSocket,
    0,
    init_type_QTcpSocket,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTcpSocket,
    0,
    0,
    0,
    release_QTcpSocket,
    cast_QTcpSocket,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QTcpSocket::staticMetaObject,
    0,
    0
};

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslkey.sip"
#include <qsslkey.h>
#line 14251 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 14255 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 14258 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 14261 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QSslKey_isNull, "QSslKey.isNull() -> bool");

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

    {
        const QSslKey *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslKey, &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_QSslKey, sipName_isNull, doc_QSslKey_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QSslKey_clear, "QSslKey.clear()");

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

    {
        QSslKey *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslKey, sipName_clear, doc_QSslKey_clear);

    return NULL;
}


PyDoc_STRVAR(doc_QSslKey_length, "QSslKey.length() -> int");

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

    {
        const QSslKey *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslKey, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->length();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslKey, sipName_length, doc_QSslKey_length);

    return NULL;
}


PyDoc_STRVAR(doc_QSslKey_type, "QSslKey.type() -> QSsl.KeyType");

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

    {
        const QSslKey *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslKey, &sipCpp))
        {
            QSsl::KeyType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QSsl_KeyType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslKey, sipName_type, doc_QSslKey_type);

    return NULL;
}


PyDoc_STRVAR(doc_QSslKey_algorithm, "QSslKey.algorithm() -> QSsl.KeyAlgorithm");

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

    {
        const QSslKey *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslKey, &sipCpp))
        {
            QSsl::KeyAlgorithm sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->algorithm();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QSsl_KeyAlgorithm);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslKey, sipName_algorithm, doc_QSslKey_algorithm);

    return NULL;
}


PyDoc_STRVAR(doc_QSslKey_toPem, "QSslKey.toPem(QByteArray passPhrase=QByteArray()) -> QByteArray");

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

    {
        const QByteArray& a0def = QByteArray();
        const QByteArray* a0 = &a0def;
        int a0State = 0;
        const QSslKey *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1", &sipSelf, sipType_QSslKey, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->toPem(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslKey, sipName_toPem, doc_QSslKey_toPem);

    return NULL;
}


PyDoc_STRVAR(doc_QSslKey_toDer, "QSslKey.toDer(QByteArray passPhrase=QByteArray()) -> QByteArray");

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

    {
        const QByteArray& a0def = QByteArray();
        const QByteArray* a0 = &a0def;
        int a0State = 0;
        const QSslKey *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1", &sipSelf, sipType_QSslKey, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->toDer(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslKey, sipName_toDer, doc_QSslKey_toDer);

    return NULL;
}


PyDoc_STRVAR(doc_QSslKey_handle, "QSslKey.handle() -> int");

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

    {
        const QSslKey *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslKey, &sipCpp))
        {
            Qt::HANDLE sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->handle();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslKey, sipName_handle, doc_QSslKey_handle);

    return NULL;
}


extern "C" {static PyObject *slot_QSslKey___ne__(PyObject *,PyObject *);}
static PyObject *slot_QSslKey___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QSslKey *sipCpp = reinterpret_cast<QSslKey *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSslKey));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSslKey* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QSslKey,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QSslKey___eq__(PyObject *,PyObject *);}
static PyObject *slot_QSslKey___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QSslKey *sipCpp = reinterpret_cast<QSslKey *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSslKey));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSslKey* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QSslKey,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QSslKey(void *, const sipTypeDef *);}
static void *cast_QSslKey(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QSslKey)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<QSslKey *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const QByteArray* a0;
        int a0State = 0;
        QSsl::KeyAlgorithm a1;
        QSsl::EncodingFormat a2 = QSsl::Pem;
        QSsl::KeyType a3 = QSsl::PrivateKey;
        const QByteArray& a4def = QByteArray();
        const QByteArray* a4 = &a4def;
        int a4State = 0;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_encoding,
            sipName_type,
            sipName_passPhrase,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1E|EEJ1", sipType_QByteArray, &a0, &a0State, sipType_QSsl_KeyAlgorithm, &a1, sipType_QSsl_EncodingFormat, &a2, sipType_QSsl_KeyType, &a3, sipType_QByteArray, &a4, &a4State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QSslKey(*a0,a1,a2,a3,*a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a4),sipType_QByteArray,a4State);

            return sipCpp;
        }
    }

    {
        QIODevice* a0;
        QSsl::KeyAlgorithm a1;
        QSsl::EncodingFormat a2 = QSsl::Pem;
        QSsl::KeyType a3 = QSsl::PrivateKey;
        const QByteArray& a4def = QByteArray();
        const QByteArray* a4 = &a4def;
        int a4State = 0;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_encoding,
            sipName_type,
            sipName_passPhrase,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J8E|EEJ1", sipType_QIODevice, &a0, sipType_QSsl_KeyAlgorithm, &a1, sipType_QSsl_EncodingFormat, &a2, sipType_QSsl_KeyType, &a3, sipType_QByteArray, &a4, &a4State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QSslKey(a0,a1,a2,a3,*a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a4),sipType_QByteArray,a4State);

            return sipCpp;
        }
    }

    {
        const QSslKey* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QSslKey[] = {
    {(void *)slot_QSslKey___ne__, ne_slot},
    {(void *)slot_QSslKey___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QSslKey[] = {
    {SIP_MLNAME_CAST(sipName_algorithm), meth_QSslKey_algorithm, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslKey_algorithm)},
    {SIP_MLNAME_CAST(sipName_clear), meth_QSslKey_clear, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslKey_clear)},
    {SIP_MLNAME_CAST(sipName_handle), meth_QSslKey_handle, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslKey_handle)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QSslKey_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslKey_isNull)},
    {SIP_MLNAME_CAST(sipName_length), meth_QSslKey_length, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslKey_length)},
    {SIP_MLNAME_CAST(sipName_toDer), (PyCFunction)meth_QSslKey_toDer, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslKey_toDer)},
    {SIP_MLNAME_CAST(sipName_toPem), (PyCFunction)meth_QSslKey_toPem, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslKey_toPem)},
    {SIP_MLNAME_CAST(sipName_type), meth_QSslKey_type, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslKey_type)}
};

PyDoc_STRVAR(doc_QSslKey, "\1QSslKey()\n"
    "QSslKey(QByteArray, QSsl.KeyAlgorithm, QSsl.EncodingFormat encoding=QSsl.Pem, QSsl.KeyType type=QSsl.PrivateKey, QByteArray passPhrase=QByteArray())\n"
    "QSslKey(QIODevice, QSsl.KeyAlgorithm, QSsl.EncodingFormat encoding=QSsl.Pem, QSsl.KeyType type=QSsl.PrivateKey, QByteArray passPhrase=QByteArray())\n"
    "QSslKey(QSslKey)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QSslKey = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QSslKey,
        {0}
    },
    {
        sipNameNr_QSslKey,
        {0, 0, 1},
        8, methods_QSslKey,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QSslKey,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QSslKey,
    init_type_QSslKey,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QSslKey,
    assign_QSslKey,
    array_QSslKey,
    copy_QSslKey,
    release_QSslKey,
    cast_QSslKey,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 14805 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 14809 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 14812 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QSslError_error, "QSslError.error() -> QSslError.SslError");

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

    {
        const QSslError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslError, &sipCpp))
        {
            QSslError::SslError sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QSslError_SslError);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslError, sipName_error, doc_QSslError_error);

    return NULL;
}


PyDoc_STRVAR(doc_QSslError_errorString, "QSslError.errorString() -> str");

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

    {
        const QSslError *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslError, sipName_errorString, doc_QSslError_errorString);

    return NULL;
}


PyDoc_STRVAR(doc_QSslError_certificate, "QSslError.certificate() -> QSslCertificate");

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

    {
        const QSslError *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslCertificate(sipCpp->certificate());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslError, sipName_certificate, doc_QSslError_certificate);

    return NULL;
}


extern "C" {static PyObject *slot_QSslError___ne__(PyObject *,PyObject *);}
static PyObject *slot_QSslError___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QSslError *sipCpp = reinterpret_cast<QSslError *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSslError));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSslError* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QSslError,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QSslError___eq__(PyObject *,PyObject *);}
static PyObject *slot_QSslError___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QSslError *sipCpp = reinterpret_cast<QSslError *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSslError));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSslError* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QSslError,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QSslError(void *, const sipTypeDef *);}
static void *cast_QSslError(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QSslError)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<QSslError *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        QSslError::SslError a0;

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

            return sipCpp;
        }
    }

    {
        QSslError::SslError a0;
        const QSslCertificate* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EJ9", sipType_QSslError_SslError, &a0, sipType_QSslCertificate, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QSslError(a0,*a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QSslError* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QSslError[] = {
    {(void *)slot_QSslError___ne__, ne_slot},
    {(void *)slot_QSslError___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QSslError[] = {
    {SIP_MLNAME_CAST(sipName_certificate), meth_QSslError_certificate, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslError_certificate)},
    {SIP_MLNAME_CAST(sipName_error), meth_QSslError_error, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslError_error)},
    {SIP_MLNAME_CAST(sipName_errorString), meth_QSslError_errorString, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslError_errorString)}
};

static sipEnumMemberDef enummembers_QSslError[] = {
    {sipName_AuthorityIssuerSerialNumberMismatch, static_cast<int>(QSslError::AuthorityIssuerSerialNumberMismatch), 96},
    {sipName_CertificateBlacklisted, static_cast<int>(QSslError::CertificateBlacklisted), 96},
    {sipName_CertificateExpired, static_cast<int>(QSslError::CertificateExpired), 96},
    {sipName_CertificateNotYetValid, static_cast<int>(QSslError::CertificateNotYetValid), 96},
    {sipName_CertificateRejected, static_cast<int>(QSslError::CertificateRejected), 96},
    {sipName_CertificateRevoked, static_cast<int>(QSslError::CertificateRevoked), 96},
    {sipName_CertificateSignatureFailed, static_cast<int>(QSslError::CertificateSignatureFailed), 96},
    {sipName_CertificateUntrusted, static_cast<int>(QSslError::CertificateUntrusted), 96},
    {sipName_HostNameMismatch, static_cast<int>(QSslError::HostNameMismatch), 96},
    {sipName_InvalidCaCertificate, static_cast<int>(QSslError::InvalidCaCertificate), 96},
    {sipName_InvalidNotAfterField, static_cast<int>(QSslError::InvalidNotAfterField), 96},
    {sipName_InvalidNotBeforeField, static_cast<int>(QSslError::InvalidNotBeforeField), 96},
    {sipName_InvalidPurpose, static_cast<int>(QSslError::InvalidPurpose), 96},
    {sipName_NoError, static_cast<int>(QSslError::NoError), 96},
    {sipName_NoPeerCertificate, static_cast<int>(QSslError::NoPeerCertificate), 96},
    {sipName_NoSslSupport, static_cast<int>(QSslError::NoSslSupport), 96},
    {sipName_PathLengthExceeded, static_cast<int>(QSslError::PathLengthExceeded), 96},
    {sipName_SelfSignedCertificate, static_cast<int>(QSslError::SelfSignedCertificate), 96},
    {sipName_SelfSignedCertificateInChain, static_cast<int>(QSslError::SelfSignedCertificateInChain), 96},
    {sipName_SubjectIssuerMismatch, static_cast<int>(QSslError::SubjectIssuerMismatch), 96},
    {sipName_UnableToDecodeIssuerPublicKey, static_cast<int>(QSslError::UnableToDecodeIssuerPublicKey), 96},
    {sipName_UnableToDecryptCertificateSignature, static_cast<int>(QSslError::UnableToDecryptCertificateSignature), 96},
    {sipName_UnableToGetIssuerCertificate, static_cast<int>(QSslError::UnableToGetIssuerCertificate), 96},
    {sipName_UnableToGetLocalIssuerCertificate, static_cast<int>(QSslError::UnableToGetLocalIssuerCertificate), 96},
    {sipName_UnableToVerifyFirstCertificate, static_cast<int>(QSslError::UnableToVerifyFirstCertificate), 96},
    {sipName_UnspecifiedError, static_cast<int>(QSslError::UnspecifiedError), 96},
};

PyDoc_STRVAR(doc_QSslError, "\1QSslError()\n"
    "QSslError(QSslError.SslError)\n"
    "QSslError(QSslError.SslError, QSslCertificate)\n"
    "QSslError(QSslError)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QSslError = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QSslError,
        {0}
    },
    {
        sipNameNr_QSslError,
        {0, 0, 1},
        3, methods_QSslError,
        26, enummembers_QSslError,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QSslError,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QSslError,
    init_type_QSslError,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QSslError,
    assign_QSslError,
    array_QSslError,
    copy_QSslError,
    release_QSslError,
    cast_QSslError,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslcipher.sip"
#include <qsslcipher.h>
#line 15189 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 15193 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 15196 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QSslCipher_isNull, "QSslCipher.isNull() -> bool");

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

    {
        const QSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslCipher, &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_QSslCipher, sipName_isNull, doc_QSslCipher_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCipher_name, "QSslCipher.name() -> str");

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

    {
        const QSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslCipher, &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_QSslCipher, sipName_name, doc_QSslCipher_name);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCipher_supportedBits, "QSslCipher.supportedBits() -> int");

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

    {
        const QSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslCipher, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->supportedBits();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCipher, sipName_supportedBits, doc_QSslCipher_supportedBits);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCipher_usedBits, "QSslCipher.usedBits() -> int");

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

    {
        const QSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslCipher, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->usedBits();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCipher, sipName_usedBits, doc_QSslCipher_usedBits);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCipher_keyExchangeMethod, "QSslCipher.keyExchangeMethod() -> str");

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

    {
        const QSslCipher *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCipher, sipName_keyExchangeMethod, doc_QSslCipher_keyExchangeMethod);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCipher_authenticationMethod, "QSslCipher.authenticationMethod() -> str");

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

    {
        const QSslCipher *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCipher, sipName_authenticationMethod, doc_QSslCipher_authenticationMethod);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCipher_encryptionMethod, "QSslCipher.encryptionMethod() -> str");

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

    {
        const QSslCipher *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCipher, sipName_encryptionMethod, doc_QSslCipher_encryptionMethod);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCipher_protocolString, "QSslCipher.protocolString() -> str");

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

    {
        const QSslCipher *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCipher, sipName_protocolString, doc_QSslCipher_protocolString);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCipher_protocol, "QSslCipher.protocol() -> QSsl.SslProtocol");

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

    {
        const QSslCipher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslCipher, &sipCpp))
        {
            QSsl::SslProtocol sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->protocol();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QSsl_SslProtocol);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCipher, sipName_protocol, doc_QSslCipher_protocol);

    return NULL;
}


extern "C" {static PyObject *slot_QSslCipher___ne__(PyObject *,PyObject *);}
static PyObject *slot_QSslCipher___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QSslCipher *sipCpp = reinterpret_cast<QSslCipher *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSslCipher));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSslCipher* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QSslCipher,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QSslCipher___eq__(PyObject *,PyObject *);}
static PyObject *slot_QSslCipher___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QSslCipher *sipCpp = reinterpret_cast<QSslCipher *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSslCipher));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSslCipher* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QSslCipher,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QSslCipher(void *, const sipTypeDef *);}
static void *cast_QSslCipher(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QSslCipher)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<QSslCipher *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QSsl::SslProtocol a1;

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

            return sipCpp;
        }
    }

    {
        const QSslCipher* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QSslCipher[] = {
    {(void *)slot_QSslCipher___ne__, ne_slot},
    {(void *)slot_QSslCipher___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QSslCipher[] = {
    {SIP_MLNAME_CAST(sipName_authenticationMethod), meth_QSslCipher_authenticationMethod, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCipher_authenticationMethod)},
    {SIP_MLNAME_CAST(sipName_encryptionMethod), meth_QSslCipher_encryptionMethod, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCipher_encryptionMethod)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QSslCipher_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCipher_isNull)},
    {SIP_MLNAME_CAST(sipName_keyExchangeMethod), meth_QSslCipher_keyExchangeMethod, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCipher_keyExchangeMethod)},
    {SIP_MLNAME_CAST(sipName_name), meth_QSslCipher_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCipher_name)},
    {SIP_MLNAME_CAST(sipName_protocol), meth_QSslCipher_protocol, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCipher_protocol)},
    {SIP_MLNAME_CAST(sipName_protocolString), meth_QSslCipher_protocolString, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCipher_protocolString)},
    {SIP_MLNAME_CAST(sipName_supportedBits), meth_QSslCipher_supportedBits, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCipher_supportedBits)},
    {SIP_MLNAME_CAST(sipName_usedBits), meth_QSslCipher_usedBits, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCipher_usedBits)}
};

PyDoc_STRVAR(doc_QSslCipher, "\1QSslCipher()\n"
    "QSslCipher(str, QSsl.SslProtocol)\n"
    "QSslCipher(QSslCipher)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QSslCipher = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QSslCipher,
        {0}
    },
    {
        sipNameNr_QSslCipher,
        {0, 0, 1},
        9, methods_QSslCipher,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QSslCipher,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QSslCipher,
    init_type_QSslCipher,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QSslCipher,
    assign_QSslCipher,
    array_QSslCipher,
    copy_QSslCipher,
    release_QSslCipher,
    cast_QSslCipher,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslconfiguration.sip"
#include <qsslconfiguration.h>
#line 15712 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 15716 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 15719 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 15722 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 15725 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslcipher.sip"
#include <qsslcipher.h>
#line 15728 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslkey.sip"
#include <qsslkey.h>
#line 15731 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslsocket.sip"
#include <qsslsocket.h>
#line 15734 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QSslConfiguration_isNull, "QSslConfiguration.isNull() -> bool");

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

    {
        const QSslConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslConfiguration, &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_QSslConfiguration, sipName_isNull, doc_QSslConfiguration_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_protocol, "QSslConfiguration.protocol() -> QSsl.SslProtocol");

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

    {
        const QSslConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslConfiguration, &sipCpp))
        {
            QSsl::SslProtocol sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->protocol();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QSsl_SslProtocol);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslConfiguration, sipName_protocol, doc_QSslConfiguration_protocol);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_setProtocol, "QSslConfiguration.setProtocol(QSsl.SslProtocol)");

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

    {
        QSsl::SslProtocol a0;
        QSslConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QSslConfiguration, &sipCpp, sipType_QSsl_SslProtocol, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProtocol(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_QSslConfiguration, sipName_setProtocol, doc_QSslConfiguration_setProtocol);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_peerVerifyMode, "QSslConfiguration.peerVerifyMode() -> QSslSocket.PeerVerifyMode");

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

    {
        const QSslConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslConfiguration, &sipCpp))
        {
            QSslSocket::PeerVerifyMode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->peerVerifyMode();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QSslSocket_PeerVerifyMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslConfiguration, sipName_peerVerifyMode, doc_QSslConfiguration_peerVerifyMode);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_setPeerVerifyMode, "QSslConfiguration.setPeerVerifyMode(QSslSocket.PeerVerifyMode)");

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

    {
        QSslSocket::PeerVerifyMode a0;
        QSslConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QSslConfiguration, &sipCpp, sipType_QSslSocket_PeerVerifyMode, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPeerVerifyMode(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_QSslConfiguration, sipName_setPeerVerifyMode, doc_QSslConfiguration_setPeerVerifyMode);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_peerVerifyDepth, "QSslConfiguration.peerVerifyDepth() -> int");

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

    {
        const QSslConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslConfiguration, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->peerVerifyDepth();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslConfiguration, sipName_peerVerifyDepth, doc_QSslConfiguration_peerVerifyDepth);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_setPeerVerifyDepth, "QSslConfiguration.setPeerVerifyDepth(int)");

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

    {
        int a0;
        QSslConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QSslConfiguration, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPeerVerifyDepth(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_QSslConfiguration, sipName_setPeerVerifyDepth, doc_QSslConfiguration_setPeerVerifyDepth);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_localCertificate, "QSslConfiguration.localCertificate() -> QSslCertificate");

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

    {
        const QSslConfiguration *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslCertificate(sipCpp->localCertificate());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslConfiguration, sipName_localCertificate, doc_QSslConfiguration_localCertificate);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_setLocalCertificate, "QSslConfiguration.setLocalCertificate(QSslCertificate)");

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

    {
        const QSslCertificate* a0;
        QSslConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QSslConfiguration, &sipCpp, sipType_QSslCertificate, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLocalCertificate(*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_QSslConfiguration, sipName_setLocalCertificate, doc_QSslConfiguration_setLocalCertificate);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_peerCertificate, "QSslConfiguration.peerCertificate() -> QSslCertificate");

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

    {
        const QSslConfiguration *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslCertificate(sipCpp->peerCertificate());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslConfiguration, sipName_peerCertificate, doc_QSslConfiguration_peerCertificate);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_peerCertificateChain, "QSslConfiguration.peerCertificateChain() -> list-of-QSslCertificate");

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

    {
        const QSslConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslConfiguration, &sipCpp))
        {
            QList<QSslCertificate>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCertificate>(sipCpp->peerCertificateChain());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslConfiguration, sipName_peerCertificateChain, doc_QSslConfiguration_peerCertificateChain);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_sessionCipher, "QSslConfiguration.sessionCipher() -> QSslCipher");

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

    {
        const QSslConfiguration *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslCipher(sipCpp->sessionCipher());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslConfiguration, sipName_sessionCipher, doc_QSslConfiguration_sessionCipher);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_privateKey, "QSslConfiguration.privateKey() -> QSslKey");

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

    {
        const QSslConfiguration *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslKey(sipCpp->privateKey());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslConfiguration, sipName_privateKey, doc_QSslConfiguration_privateKey);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_setPrivateKey, "QSslConfiguration.setPrivateKey(QSslKey)");

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

    {
        const QSslKey* a0;
        QSslConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QSslConfiguration, &sipCpp, sipType_QSslKey, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPrivateKey(*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_QSslConfiguration, sipName_setPrivateKey, doc_QSslConfiguration_setPrivateKey);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_ciphers, "QSslConfiguration.ciphers() -> list-of-QSslCipher");

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

    {
        const QSslConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslConfiguration, &sipCpp))
        {
            QList<QSslCipher>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCipher>(sipCpp->ciphers());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslConfiguration, sipName_ciphers, doc_QSslConfiguration_ciphers);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_setCiphers, "QSslConfiguration.setCiphers(list-of-QSslCipher)");

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

    {
        const QList<QSslCipher>* a0;
        int a0State = 0;
        QSslConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QSslConfiguration, &sipCpp, sipType_QList_0100QSslCipher,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCiphers(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QSslCipher> *>(a0),sipType_QList_0100QSslCipher,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslConfiguration, sipName_setCiphers, doc_QSslConfiguration_setCiphers);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_caCertificates, "QSslConfiguration.caCertificates() -> list-of-QSslCertificate");

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

    {
        const QSslConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslConfiguration, &sipCpp))
        {
            QList<QSslCertificate>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCertificate>(sipCpp->caCertificates());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslConfiguration, sipName_caCertificates, doc_QSslConfiguration_caCertificates);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_setCaCertificates, "QSslConfiguration.setCaCertificates(list-of-QSslCertificate)");

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

    {
        const QList<QSslCertificate>* a0;
        int a0State = 0;
        QSslConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QSslConfiguration, &sipCpp, sipType_QList_0100QSslCertificate,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCaCertificates(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QSslCertificate> *>(a0),sipType_QList_0100QSslCertificate,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslConfiguration, sipName_setCaCertificates, doc_QSslConfiguration_setCaCertificates);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_defaultConfiguration, "QSslConfiguration.defaultConfiguration() -> QSslConfiguration");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QSslConfiguration*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslConfiguration(QSslConfiguration::defaultConfiguration());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslConfiguration, sipName_defaultConfiguration, doc_QSslConfiguration_defaultConfiguration);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_setDefaultConfiguration, "QSslConfiguration.setDefaultConfiguration(QSslConfiguration)");

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

    {
        const QSslConfiguration* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QSslConfiguration, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            QSslConfiguration::setDefaultConfiguration(*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_QSslConfiguration, sipName_setDefaultConfiguration, doc_QSslConfiguration_setDefaultConfiguration);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_setSslOption, "QSslConfiguration.setSslOption(QSsl.SslOption, bool)");

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

    {
        QSsl::SslOption a0;
        bool a1;
        QSslConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEb", &sipSelf, sipType_QSslConfiguration, &sipCpp, sipType_QSsl_SslOption, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSslOption(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_QSslConfiguration, sipName_setSslOption, doc_QSslConfiguration_setSslOption);

    return NULL;
}


PyDoc_STRVAR(doc_QSslConfiguration_testSslOption, "QSslConfiguration.testSslOption(QSsl.SslOption) -> bool");

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

    {
        QSsl::SslOption a0;
        const QSslConfiguration *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->testSslOption(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslConfiguration, sipName_testSslOption, doc_QSslConfiguration_testSslOption);

    return NULL;
}


extern "C" {static PyObject *slot_QSslConfiguration___ne__(PyObject *,PyObject *);}
static PyObject *slot_QSslConfiguration___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QSslConfiguration *sipCpp = reinterpret_cast<QSslConfiguration *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSslConfiguration));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSslConfiguration* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QSslConfiguration,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QSslConfiguration___eq__(PyObject *,PyObject *);}
static PyObject *slot_QSslConfiguration___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QSslConfiguration *sipCpp = reinterpret_cast<QSslConfiguration *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSslConfiguration));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSslConfiguration* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QSslConfiguration,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QSslConfiguration(void *, const sipTypeDef *);}
static void *cast_QSslConfiguration(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QSslConfiguration)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<QSslConfiguration *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const QSslConfiguration* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QSslConfiguration[] = {
    {(void *)slot_QSslConfiguration___ne__, ne_slot},
    {(void *)slot_QSslConfiguration___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QSslConfiguration[] = {
    {SIP_MLNAME_CAST(sipName_caCertificates), meth_QSslConfiguration_caCertificates, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_caCertificates)},
    {SIP_MLNAME_CAST(sipName_ciphers), meth_QSslConfiguration_ciphers, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_ciphers)},
    {SIP_MLNAME_CAST(sipName_defaultConfiguration), meth_QSslConfiguration_defaultConfiguration, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_defaultConfiguration)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QSslConfiguration_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_isNull)},
    {SIP_MLNAME_CAST(sipName_localCertificate), meth_QSslConfiguration_localCertificate, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_localCertificate)},
    {SIP_MLNAME_CAST(sipName_peerCertificate), meth_QSslConfiguration_peerCertificate, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_peerCertificate)},
    {SIP_MLNAME_CAST(sipName_peerCertificateChain), meth_QSslConfiguration_peerCertificateChain, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_peerCertificateChain)},
    {SIP_MLNAME_CAST(sipName_peerVerifyDepth), meth_QSslConfiguration_peerVerifyDepth, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_peerVerifyDepth)},
    {SIP_MLNAME_CAST(sipName_peerVerifyMode), meth_QSslConfiguration_peerVerifyMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_peerVerifyMode)},
    {SIP_MLNAME_CAST(sipName_privateKey), meth_QSslConfiguration_privateKey, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_privateKey)},
    {SIP_MLNAME_CAST(sipName_protocol), meth_QSslConfiguration_protocol, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_protocol)},
    {SIP_MLNAME_CAST(sipName_sessionCipher), meth_QSslConfiguration_sessionCipher, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_sessionCipher)},
    {SIP_MLNAME_CAST(sipName_setCaCertificates), meth_QSslConfiguration_setCaCertificates, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_setCaCertificates)},
    {SIP_MLNAME_CAST(sipName_setCiphers), meth_QSslConfiguration_setCiphers, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_setCiphers)},
    {SIP_MLNAME_CAST(sipName_setDefaultConfiguration), meth_QSslConfiguration_setDefaultConfiguration, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_setDefaultConfiguration)},
    {SIP_MLNAME_CAST(sipName_setLocalCertificate), meth_QSslConfiguration_setLocalCertificate, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_setLocalCertificate)},
    {SIP_MLNAME_CAST(sipName_setPeerVerifyDepth), meth_QSslConfiguration_setPeerVerifyDepth, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_setPeerVerifyDepth)},
    {SIP_MLNAME_CAST(sipName_setPeerVerifyMode), meth_QSslConfiguration_setPeerVerifyMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_setPeerVerifyMode)},
    {SIP_MLNAME_CAST(sipName_setPrivateKey), meth_QSslConfiguration_setPrivateKey, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_setPrivateKey)},
    {SIP_MLNAME_CAST(sipName_setProtocol), meth_QSslConfiguration_setProtocol, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_setProtocol)},
    {SIP_MLNAME_CAST(sipName_setSslOption), meth_QSslConfiguration_setSslOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_setSslOption)},
    {SIP_MLNAME_CAST(sipName_testSslOption), meth_QSslConfiguration_testSslOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslConfiguration_testSslOption)}
};

PyDoc_STRVAR(doc_QSslConfiguration, "\1QSslConfiguration()\n"
    "QSslConfiguration(QSslConfiguration)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QSslConfiguration = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QSslConfiguration,
        {0}
    },
    {
        sipNameNr_QSslConfiguration,
        {0, 0, 1},
        22, methods_QSslConfiguration,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QSslConfiguration,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QSslConfiguration,
    init_type_QSslConfiguration,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QSslConfiguration,
    assign_QSslConfiguration,
    array_QSslConfiguration,
    copy_QSslConfiguration,
    release_QSslConfiguration,
    cast_QSslConfiguration,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 292 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslcertificate.sip"
#include <QtCore/qmap.h>
#include <QtCore/qstring.h>
#include <QtNetwork/qssl.h>
#line 16628 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 16632 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16635 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static void assign_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString(void *, SIP_SSIZE_T, const void *);}
static void assign_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QMultiMap<QSsl::AlternateNameEntryType,QString> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QMultiMap<QSsl::AlternateNameEntryType,QString> *>(sipSrc);
}


extern "C" {static void *array_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString(SIP_SSIZE_T);}
static void *array_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString(SIP_SSIZE_T sipNrElem)
{
    return new QMultiMap<QSsl::AlternateNameEntryType,QString>[sipNrElem];
}


extern "C" {static void *copy_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString(const void *, SIP_SSIZE_T);}
static void *copy_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QMultiMap<QSsl::AlternateNameEntryType,QString>(reinterpret_cast<const QMultiMap<QSsl::AlternateNameEntryType,QString> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString(void *, int);}
static void release_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QMultiMap<QSsl::AlternateNameEntryType,QString> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString(PyObject *, void **, int *, PyObject *);}
static int convertTo_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString(PyObject *sipPy,void **,int *sipIsErr,PyObject *)
{
#line 420 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslcertificate.sip"
    if (sipIsErr == NULL)
    {
        // We don't support passing the type as an argument as it isn't
        // currently needed (and is unlikely to be in the future).
        PyErr_SetString(PyExc_NotImplementedError, "converting to QMultiMap<QSsl::AlternateNameEntryType, QString> is unsupported");

        return 0;
    }

    // Keep the compiler quiet.
    sipPy = NULL;
    return 0;
#line 16686 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


extern "C" {static PyObject *convertFrom_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString(void *, PyObject *);}
static PyObject *convertFrom_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString(void *sipCppV, PyObject *sipTransferObj)
{
   QMultiMap<QSsl::AlternateNameEntryType,QString> *sipCpp = reinterpret_cast<QMultiMap<QSsl::AlternateNameEntryType,QString> *>(sipCppV);

#line 298 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslcertificate.sip"
    // Get the enum objects that are the dictionary keys.
    static PyObject *email_entry = NULL;
    static PyObject *dns_entry = NULL;

    if (email_entry == NULL)
    {
        email_entry = PyObject_GetAttrString((PyObject *)sipTypeAsPyTypeObject(sipType_QSsl),
#if PY_VERSION_HEX >= 0x02050000
                "EmailEntry");
#else
                const_cast<char *>("EmailEntry"));
#endif

        if (email_entry == NULL)
            return NULL;
    }

    if (dns_entry == NULL)
    {
        dns_entry = PyObject_GetAttrString((PyObject *)sipTypeAsPyTypeObject(sipType_QSsl),
#if PY_VERSION_HEX >= 0x02050000
                "DnsEntry");
#else
                const_cast<char *>("DnsEntry"));
#endif

        if (dns_entry == NULL)
            return NULL;
    }

    // Create the dictionary.
    PyObject *d = PyDict_New();

    if (d == NULL)
        return NULL;

    QList<QString> vl;

    // Handle the Qssl::EmailEntry key.
    vl = sipCpp->values(QSsl::EmailEntry);

    if (!vl.isEmpty())
    {
        PyObject *vlobj = PyList_New(vl.count());

        if (vlobj == NULL)
        {
            Py_DECREF(d);
            return NULL;
        }

        int rc = PyDict_SetItem(d, email_entry, vlobj);

        Py_DECREF(email_entry);
        Py_DECREF(vlobj);

        if (rc < 0)
        {
            Py_DECREF(d);
            return NULL;
        }

        for (int i = 0; i < vl.count(); ++i)
        {
            QString *s = new QString(vl.at(i));
            PyObject *vobj = sipConvertFromNewType(s, sipType_QString, sipTransferObj);

            if (vobj == NULL)
            {
                delete s;
                Py_DECREF(d);
                return NULL;
            }

            PyList_SET_ITEM(vlobj, i, vobj);
        }
    }

    // Handle the Qssl::DnsEntry key.
    vl = sipCpp->values(QSsl::DnsEntry);

    if (!vl.isEmpty())
    {
        PyObject *vlobj = PyList_New(vl.count());

        if (vlobj == NULL)
        {
            Py_DECREF(d);
            return NULL;
        }

        int rc = PyDict_SetItem(d, dns_entry, vlobj);

        Py_DECREF(dns_entry);
        Py_DECREF(vlobj);

        if (rc < 0)
        {
            Py_DECREF(d);
            return NULL;
        }

        for (int i = 0; i < vl.count(); ++i)
        {
            QString *s = new QString(vl.at(i));
            PyObject *vobj = sipConvertFromNewType(s, sipType_QString, sipTransferObj);

            if (vobj == NULL)
            {
                delete s;
                Py_DECREF(d);
                return NULL;
            }

            PyList_SET_ITEM(vlobj, i, vobj);
        }
    }

    return d;
#line 16815 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_0,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString,
    array_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString,
    copy_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString,
    release_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString,
    convertTo_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString,
    convertFrom_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString
};

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 16846 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 16850 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 16853 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 16856 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 16859 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16862 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 16865 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslkey.sip"
#include <qsslkey.h>
#line 16868 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 406 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 16871 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 292 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslcertificate.sip"
#include <QtCore/qmap.h>
#include <QtCore/qstring.h>
#include <QtNetwork/qssl.h>
#line 16876 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcryptographichash.sip"
#include <qcryptographichash.h>
#line 16879 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QSslCertificate_isNull, "QSslCertificate.isNull() -> bool");

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

    {
        const QSslCertificate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslCertificate, &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_QSslCertificate, sipName_isNull, doc_QSslCertificate_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_isValid, "QSslCertificate.isValid() -> bool");

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

    {
        const QSslCertificate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslCertificate, &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_QSslCertificate, sipName_isValid, doc_QSslCertificate_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_clear, "QSslCertificate.clear()");

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

    {
        QSslCertificate *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_clear, doc_QSslCertificate_clear);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_version, "QSslCertificate.version() -> QByteArray");

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

    {
        const QSslCertificate *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->version());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_version, doc_QSslCertificate_version);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_serialNumber, "QSslCertificate.serialNumber() -> QByteArray");

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

    {
        const QSslCertificate *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->serialNumber());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_serialNumber, doc_QSslCertificate_serialNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_digest, "QSslCertificate.digest(QCryptographicHash.Algorithm algorithm=QCryptographicHash.Md5) -> QByteArray");

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

    {
        QCryptographicHash::Algorithm a0 = QCryptographicHash::Md5;
        const QSslCertificate *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|E", &sipSelf, sipType_QSslCertificate, &sipCpp, sipType_QCryptographicHash_Algorithm, &a0))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->digest(a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_digest, doc_QSslCertificate_digest);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_issuerInfo, "QSslCertificate.issuerInfo(QSslCertificate.SubjectInfo) -> str\n"
    "QSslCertificate.issuerInfo(QByteArray) -> str");

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

    {
        QSslCertificate::SubjectInfo a0;
        const QSslCertificate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QSslCertificate, &sipCpp, sipType_QSslCertificate_SubjectInfo, &a0))
        {
            QString*sipRes;

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

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

    {
        const QByteArray* a0;
        int a0State = 0;
        const QSslCertificate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QSslCertificate, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->issuerInfo(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_issuerInfo, doc_QSslCertificate_issuerInfo);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_subjectInfo, "QSslCertificate.subjectInfo(QSslCertificate.SubjectInfo) -> str\n"
    "QSslCertificate.subjectInfo(QByteArray) -> str");

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

    {
        QSslCertificate::SubjectInfo a0;
        const QSslCertificate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QSslCertificate, &sipCpp, sipType_QSslCertificate_SubjectInfo, &a0))
        {
            QString*sipRes;

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

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

    {
        const QByteArray* a0;
        int a0State = 0;
        const QSslCertificate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QSslCertificate, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->subjectInfo(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_subjectInfo, doc_QSslCertificate_subjectInfo);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_alternateSubjectNames, "QSslCertificate.alternateSubjectNames() -> dict-of-QSsl.AlternateNameEntryType-list-of-str");

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

    {
        const QSslCertificate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslCertificate, &sipCpp))
        {
            QMultiMap<QSsl::AlternateNameEntryType,QString>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QMultiMap<QSsl::AlternateNameEntryType,QString>(sipCpp->alternateSubjectNames());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_alternateSubjectNames, doc_QSslCertificate_alternateSubjectNames);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_effectiveDate, "QSslCertificate.effectiveDate() -> QDateTime");

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

    {
        const QSslCertificate *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_effectiveDate, doc_QSslCertificate_effectiveDate);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_expiryDate, "QSslCertificate.expiryDate() -> QDateTime");

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

    {
        const QSslCertificate *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_expiryDate, doc_QSslCertificate_expiryDate);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_publicKey, "QSslCertificate.publicKey() -> QSslKey");

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

    {
        const QSslCertificate *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslKey(sipCpp->publicKey());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_publicKey, doc_QSslCertificate_publicKey);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_toPem, "QSslCertificate.toPem() -> QByteArray");

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

    {
        const QSslCertificate *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->toPem());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_toPem, doc_QSslCertificate_toPem);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_toDer, "QSslCertificate.toDer() -> QByteArray");

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

    {
        const QSslCertificate *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->toDer());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_toDer, doc_QSslCertificate_toDer);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_fromPath, "QSslCertificate.fromPath(str, QSsl.EncodingFormat format=QSsl.Pem, QRegExp.PatternSyntax syntax=QRegExp.FixedString) -> list-of-QSslCertificate");

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

    {
        const QString* a0;
        int a0State = 0;
        QSsl::EncodingFormat a1 = QSsl::Pem;
        QRegExp::PatternSyntax a2 = QRegExp::FixedString;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J1|EE", sipType_QString,&a0, &a0State, sipType_QSsl_EncodingFormat, &a1, sipType_QRegExp_PatternSyntax, &a2))
        {
            QList<QSslCertificate>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCertificate>(QSslCertificate::fromPath(*a0,a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_fromPath, doc_QSslCertificate_fromPath);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_fromDevice, "QSslCertificate.fromDevice(QIODevice, QSsl.EncodingFormat format=QSsl.Pem) -> list-of-QSslCertificate");

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

    {
        QIODevice* a0;
        QSsl::EncodingFormat a1 = QSsl::Pem;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J8|E", sipType_QIODevice, &a0, sipType_QSsl_EncodingFormat, &a1))
        {
            QList<QSslCertificate>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCertificate>(QSslCertificate::fromDevice(a0,a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_fromDevice, doc_QSslCertificate_fromDevice);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_fromData, "QSslCertificate.fromData(QByteArray, QSsl.EncodingFormat format=QSsl.Pem) -> list-of-QSslCertificate");

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

    {
        const QByteArray* a0;
        int a0State = 0;
        QSsl::EncodingFormat a1 = QSsl::Pem;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J1|E", sipType_QByteArray, &a0, &a0State, sipType_QSsl_EncodingFormat, &a1))
        {
            QList<QSslCertificate>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QSslCertificate>(QSslCertificate::fromData(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_fromData, doc_QSslCertificate_fromData);

    return NULL;
}


PyDoc_STRVAR(doc_QSslCertificate_handle, "QSslCertificate.handle() -> int");

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

    {
        const QSslCertificate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSslCertificate, &sipCpp))
        {
            Qt::HANDLE sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->handle();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSslCertificate, sipName_handle, doc_QSslCertificate_handle);

    return NULL;
}


extern "C" {static PyObject *slot_QSslCertificate___ne__(PyObject *,PyObject *);}
static PyObject *slot_QSslCertificate___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QSslCertificate *sipCpp = reinterpret_cast<QSslCertificate *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSslCertificate));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSslCertificate* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QSslCertificate,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QSslCertificate___eq__(PyObject *,PyObject *);}
static PyObject *slot_QSslCertificate___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QSslCertificate *sipCpp = reinterpret_cast<QSslCertificate *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSslCertificate));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSslCertificate* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QSslCertificate,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QSslCertificate(void *, const sipTypeDef *);}
static void *cast_QSslCertificate(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QSslCertificate)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<QSslCertificate *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

    {
        QIODevice* a0;
        QSsl::EncodingFormat a1 = QSsl::Pem;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J8|E", sipType_QIODevice, &a0, sipType_QSsl_EncodingFormat, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QSslCertificate(a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QByteArray& a0def = QByteArray();
        const QByteArray* a0 = &a0def;
        int a0State = 0;
        QSsl::EncodingFormat a1 = QSsl::Pem;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|J1E", sipType_QByteArray, &a0, &a0State, sipType_QSsl_EncodingFormat, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QSslCertificate(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipCpp;
        }
    }

    {
        const QSslCertificate* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QSslCertificate[] = {
    {(void *)slot_QSslCertificate___ne__, ne_slot},
    {(void *)slot_QSslCertificate___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QSslCertificate[] = {
    {SIP_MLNAME_CAST(sipName_alternateSubjectNames), meth_QSslCertificate_alternateSubjectNames, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCertificate_alternateSubjectNames)},
    {SIP_MLNAME_CAST(sipName_clear), meth_QSslCertificate_clear, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCertificate_clear)},
    {SIP_MLNAME_CAST(sipName_digest), (PyCFunction)meth_QSslCertificate_digest, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslCertificate_digest)},
    {SIP_MLNAME_CAST(sipName_effectiveDate), meth_QSslCertificate_effectiveDate, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCertificate_effectiveDate)},
    {SIP_MLNAME_CAST(sipName_expiryDate), meth_QSslCertificate_expiryDate, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCertificate_expiryDate)},
    {SIP_MLNAME_CAST(sipName_fromData), (PyCFunction)meth_QSslCertificate_fromData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslCertificate_fromData)},
    {SIP_MLNAME_CAST(sipName_fromDevice), (PyCFunction)meth_QSslCertificate_fromDevice, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslCertificate_fromDevice)},
    {SIP_MLNAME_CAST(sipName_fromPath), (PyCFunction)meth_QSslCertificate_fromPath, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSslCertificate_fromPath)},
    {SIP_MLNAME_CAST(sipName_handle), meth_QSslCertificate_handle, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCertificate_handle)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QSslCertificate_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCertificate_isNull)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QSslCertificate_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCertificate_isValid)},
    {SIP_MLNAME_CAST(sipName_issuerInfo), meth_QSslCertificate_issuerInfo, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCertificate_issuerInfo)},
    {SIP_MLNAME_CAST(sipName_publicKey), meth_QSslCertificate_publicKey, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCertificate_publicKey)},
    {SIP_MLNAME_CAST(sipName_serialNumber), meth_QSslCertificate_serialNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCertificate_serialNumber)},
    {SIP_MLNAME_CAST(sipName_subjectInfo), meth_QSslCertificate_subjectInfo, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCertificate_subjectInfo)},
    {SIP_MLNAME_CAST(sipName_toDer), meth_QSslCertificate_toDer, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCertificate_toDer)},
    {SIP_MLNAME_CAST(sipName_toPem), meth_QSslCertificate_toPem, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCertificate_toPem)},
    {SIP_MLNAME_CAST(sipName_version), meth_QSslCertificate_version, METH_VARARGS, SIP_MLDOC_CAST(doc_QSslCertificate_version)}
};

static sipEnumMemberDef enummembers_QSslCertificate[] = {
    {sipName_CommonName, static_cast<int>(QSslCertificate::CommonName), 92},
    {sipName_CountryName, static_cast<int>(QSslCertificate::CountryName), 92},
    {sipName_LocalityName, static_cast<int>(QSslCertificate::LocalityName), 92},
    {sipName_Organization, static_cast<int>(QSslCertificate::Organization), 92},
    {sipName_OrganizationalUnitName, static_cast<int>(QSslCertificate::OrganizationalUnitName), 92},
    {sipName_StateOrProvinceName, static_cast<int>(QSslCertificate::StateOrProvinceName), 92},
};

PyDoc_STRVAR(doc_QSslCertificate, "\1QSslCertificate(QIODevice, QSsl.EncodingFormat format=QSsl.Pem)\n"
    "QSslCertificate(QByteArray data=QByteArray(), QSsl.EncodingFormat format=QSsl.Pem)\n"
    "QSslCertificate(QSslCertificate)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QSslCertificate = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QSslCertificate,
        {0}
    },
    {
        sipNameNr_QSslCertificate,
        {0, 0, 1},
        18, methods_QSslCertificate,
        6, enummembers_QSslCertificate,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QSslCertificate,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QSslCertificate,
    init_type_QSslCertificate,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QSslCertificate,
    assign_QSslCertificate,
    array_QSslCertificate,
    copy_QSslCertificate,
    release_QSslCertificate,
    cast_QSslCertificate,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 17756 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 17760 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static int slot_QSsl_SslOptions___bool__(PyObject *);}
static int slot_QSsl_SslOptions___bool__(PyObject *sipSelf)
{
    QSsl::SslOptions *sipCpp = reinterpret_cast<QSsl::SslOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSsl_SslOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QSsl::SslOptions::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 17782 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QSsl_SslOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_QSsl_SslOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QSsl::SslOptions *sipCpp = reinterpret_cast<QSsl::SslOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSsl_SslOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSsl::SslOptions* a0;
        int a0State = 0;

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

#line 361 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QSsl::SslOptions::Int() != a0->operator QSsl::SslOptions::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 17816 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(const_cast<QSsl::SslOptions *>(a0),sipType_QSsl_SslOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QSsl_SslOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QSsl_SslOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_QSsl_SslOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QSsl::SslOptions *sipCpp = reinterpret_cast<QSsl::SslOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSsl_SslOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSsl::SslOptions* a0;
        int a0State = 0;

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

#line 352 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QSsl::SslOptions::Int() == a0->operator QSsl::SslOptions::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 17856 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(const_cast<QSsl::SslOptions *>(a0),sipType_QSsl_SslOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QSsl_SslOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QSsl_SslOptions___invert__(PyObject *);}
static PyObject *slot_QSsl_SslOptions___invert__(PyObject *sipSelf)
{
    QSsl::SslOptions *sipCpp = reinterpret_cast<QSsl::SslOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSsl_SslOptions));

    if (!sipCpp)
        return 0;


    {
        {
            QSsl::SslOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSsl::SslOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        QSsl::SslOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QSsl_SslOptions, &a0, &a0State, &a1))
        {
            QSsl::SslOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSsl::SslOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QSsl_SslOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        QSsl::SslOptions* a0;
        int a0State = 0;
        QSsl::SslOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QSsl_SslOptions, &a0, &a0State, sipType_QSsl_SslOptions, &a1, &a1State))
        {
            QSsl::SslOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSsl::SslOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QSsl_SslOptions,a0State);
            sipReleaseType(a1,sipType_QSsl_SslOptions,a1State);

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

    {
        QSsl::SslOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QSsl_SslOptions, &a0, &a0State, &a1))
        {
            QSsl::SslOptions*sipRes = 0;

#line 346 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QSsl::SslOptions(*a0 ^ a1);
#line 17965 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(a0,sipType_QSsl_SslOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        QSsl::SslOptions* a0;
        int a0State = 0;
        QSsl::SslOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QSsl_SslOptions, &a0, &a0State, sipType_QSsl_SslOptions, &a1, &a1State))
        {
            QSsl::SslOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSsl::SslOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QSsl_SslOptions,a0State);
            sipReleaseType(a1,sipType_QSsl_SslOptions,a1State);

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

    {
        QSsl::SslOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QSsl_SslOptions, &a0, &a0State, &a1))
        {
            QSsl::SslOptions*sipRes = 0;

#line 341 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QSsl::SslOptions(*a0 | a1);
#line 18017 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(a0,sipType_QSsl_SslOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_QSsl_SslOptions___int__(PyObject *);}
static PyObject *slot_QSsl_SslOptions___int__(PyObject *sipSelf)
{
    QSsl::SslOptions *sipCpp = reinterpret_cast<QSsl::SslOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSsl_SslOptions));

    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_QSsl_SslOptions___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QSsl_SslOptions___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QSsl_SslOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QSsl::SslOptions *sipCpp = reinterpret_cast<QSsl::SslOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSsl_SslOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QSsl::SslOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QSsl_SslOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QSsl::SslOptions::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QSsl_SslOptions,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_QSsl_SslOptions___ior__(PyObject *,PyObject *);}
static PyObject *slot_QSsl_SslOptions___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QSsl_SslOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QSsl::SslOptions *sipCpp = reinterpret_cast<QSsl::SslOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSsl_SslOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QSsl::SslOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QSsl_SslOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QSsl::SslOptions::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QSsl_SslOptions,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_QSsl_SslOptions___iand__(PyObject *,PyObject *);}
static PyObject *slot_QSsl_SslOptions___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QSsl_SslOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QSsl::SslOptions *sipCpp = reinterpret_cast<QSsl::SslOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSsl_SslOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QSsl::SslOptions::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;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QSsl_SslOptions(void *, const sipTypeDef *);}
static void *cast_QSsl_SslOptions(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QSsl_SslOptions)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<QSsl::SslOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_QSsl_SslOptions(SIP_SSIZE_T);}
static void *array_QSsl_SslOptions(SIP_SSIZE_T sipNrElem)
{
    return new QSsl::SslOptions[sipNrElem];
}


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


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


extern "C" {static void *init_type_QSsl_SslOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QSsl_SslOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QSsl::SslOptions *sipCpp = 0;

    {
        const QSsl::SslOptions* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

#line 379 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QSsl::SslOptions is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QSsl_SslOption)) ||
            sipCanConvertToType(sipPy, sipType_QSsl_SslOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QSsl_SslOption)))
{
    *sipCppPtr = new QSsl::SslOptions(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QSsl::SslOptions *>(sipConvertToType(sipPy, sipType_QSsl_SslOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 18312 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QSsl_SslOptions[] = {
    {(void *)slot_QSsl_SslOptions___bool__, bool_slot},
    {(void *)slot_QSsl_SslOptions___ne__, ne_slot},
    {(void *)slot_QSsl_SslOptions___eq__, eq_slot},
    {(void *)slot_QSsl_SslOptions___invert__, invert_slot},
    {(void *)slot_QSsl_SslOptions___and__, and_slot},
    {(void *)slot_QSsl_SslOptions___xor__, xor_slot},
    {(void *)slot_QSsl_SslOptions___or__, or_slot},
    {(void *)slot_QSsl_SslOptions___int__, int_slot},
    {(void *)slot_QSsl_SslOptions___ixor__, ixor_slot},
    {(void *)slot_QSsl_SslOptions___ior__, ior_slot},
    {(void *)slot_QSsl_SslOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QSsl_SslOptions, "\1QSsl.SslOptions(QSsl.SslOptions)\n"
    "QSsl.SslOptions(int)\n"
    "QSsl.SslOptions()");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QSsl_SslOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QSsl__SslOptions,
        {0}
    },
    {
        sipNameNr_SslOptions,
        {83, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QSsl_SslOptions,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QSsl_SslOptions,
    init_type_QSsl_SslOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QSsl_SslOptions,
    assign_QSsl_SslOptions,
    array_QSsl_SslOptions,
    copy_QSsl_SslOptions,
    release_QSsl_SslOptions,
    cast_QSsl_SslOptions,
    convertTo_QSsl_SslOptions,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 40 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 18393 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


static sipEnumMemberDef enummembers_QSsl[] = {
    {sipName_AnyProtocol, static_cast<int>(QSsl::AnyProtocol), 90},
    {sipName_Der, static_cast<int>(QSsl::Der), 85},
    {sipName_DnsEntry, static_cast<int>(QSsl::DnsEntry), 84},
    {sipName_Dsa, static_cast<int>(QSsl::Dsa), 86},
    {sipName_EmailEntry, static_cast<int>(QSsl::EmailEntry), 84},
    {sipName_Pem, static_cast<int>(QSsl::Pem), 85},
    {sipName_PrivateKey, static_cast<int>(QSsl::PrivateKey), 87},
    {sipName_PublicKey, static_cast<int>(QSsl::PublicKey), 87},
    {sipName_Rsa, static_cast<int>(QSsl::Rsa), 86},
    {sipName_SecureProtocols, static_cast<int>(QSsl::SecureProtocols), 90},
    {sipName_SslOptionDisableCompression, static_cast<int>(QSsl::SslOptionDisableCompression), 88},
    {sipName_SslOptionDisableEmptyFragments, static_cast<int>(QSsl::SslOptionDisableEmptyFragments), 88},
    {sipName_SslOptionDisableLegacyRenegotiation, static_cast<int>(QSsl::SslOptionDisableLegacyRenegotiation), 88},
    {sipName_SslOptionDisableServerNameIndication, static_cast<int>(QSsl::SslOptionDisableServerNameIndication), 88},
    {sipName_SslOptionDisableSessionTickets, static_cast<int>(QSsl::SslOptionDisableSessionTickets), 88},
    {sipName_SslV2, static_cast<int>(QSsl::SslV2), 90},
    {sipName_SslV3, static_cast<int>(QSsl::SslV3), 90},
    {sipName_TlsV1, static_cast<int>(QSsl::TlsV1), 90},
    {sipName_TlsV1SslV3, static_cast<int>(QSsl::TlsV1SslV3), 90},
    {sipName_UnknownProtocol, static_cast<int>(QSsl::UnknownProtocol), 90},
};


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QSsl = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_QSsl,
        {0}
    },
    {
        sipNameNr_QSsl,
        {0, 0, 1},
        0, 0,
        20, enummembers_QSsl,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworksession.sip"
#include <qnetworksession.h>
#line 18475 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 18479 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 18482 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 18485 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 18488 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 75 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 18491 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 18494 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 18497 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 18500 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 18503 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 18506 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 18509 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 18512 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 18515 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 18518 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 18521 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQNetworkSession : public QNetworkSession
{
public:
    sipQNetworkSession(const QNetworkConfiguration&,QObject*);
    virtual ~sipQNetworkSession();

    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*);
    int sipProtect_senderSignalIndex() const;
    void sipProtectVirt_connectNotify(bool,const char*);
    void sipProtectVirt_disconnectNotify(bool,const char*);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void disconnectNotify(const char*);
    void connectNotify(const char*);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

sipQNetworkSession::sipQNetworkSession(const QNetworkConfiguration& a0,QObject*a1): QNetworkSession(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipQNetworkSession::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QNetworkSession);
}

int sipQNetworkSession::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QNetworkSession::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QNetworkSession,_c,_id,_a);

    return _id;
}

void *sipQNetworkSession::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QNetworkSession, _clname)) ? this : QNetworkSession::qt_metacast(_clname);
}

void sipQNetworkSession::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QNetworkSession::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkSession::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QNetworkSession::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkSession::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QNetworkSession::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQNetworkSession::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QNetworkSession::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQNetworkSession::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QNetworkSession::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkSession::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QNetworkSession::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkSession::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        QNetworkSession::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QObject* sipQNetworkSession::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQNetworkSession::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQNetworkSession::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQNetworkSession::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQNetworkSession::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

int sipQNetworkSession::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

void sipQNetworkSession::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QNetworkSession::connectNotify(a0) : connectNotify(a0));
}

void sipQNetworkSession::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QNetworkSession::disconnectNotify(a0) : disconnectNotify(a0));
}


PyDoc_STRVAR(doc_QNetworkSession_sender, "QNetworkSession.sender() -> QObject");

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

    {
        const sipQNetworkSession *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QNetworkSession, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 18798 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_sender, doc_QNetworkSession_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_receivers, "QNetworkSession.receivers(SIGNAL()) -> int");

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

    {
        char* a0;
        const sipQNetworkSession *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkSession, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 18843 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_receivers, doc_QNetworkSession_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_timerEvent, "QNetworkSession.timerEvent(QTimerEvent)");

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

    {
        QTimerEvent* a0;
        sipQNetworkSession *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkSession, &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_QNetworkSession, sipName_timerEvent, doc_QNetworkSession_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_childEvent, "QNetworkSession.childEvent(QChildEvent)");

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

    {
        QChildEvent* a0;
        sipQNetworkSession *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkSession, &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_QNetworkSession, sipName_childEvent, doc_QNetworkSession_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_customEvent, "QNetworkSession.customEvent(QEvent)");

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

    {
        QEvent* a0;
        sipQNetworkSession *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkSession, &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_QNetworkSession, sipName_customEvent, doc_QNetworkSession_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_senderSignalIndex, "QNetworkSession.senderSignalIndex() -> int");

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

    {
        const sipQNetworkSession *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QNetworkSession, &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_QNetworkSession, sipName_senderSignalIndex, doc_QNetworkSession_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_isOpen, "QNetworkSession.isOpen() -> bool");

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

    {
        const QNetworkSession *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isOpen();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_isOpen, doc_QNetworkSession_isOpen);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_configuration, "QNetworkSession.configuration() -> QNetworkConfiguration");

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

    {
        const QNetworkSession *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfiguration(sipCpp->configuration());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_configuration, doc_QNetworkSession_configuration);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_interface, "QNetworkSession.interface() -> QNetworkInterface");

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

    {
        const QNetworkSession *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkInterface(sipCpp->interface());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_interface, doc_QNetworkSession_interface);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_state, "QNetworkSession.state() -> QNetworkSession.State");

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

    {
        const QNetworkSession *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkSession, &sipCpp))
        {
            QNetworkSession::State sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->state();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QNetworkSession_State);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_state, doc_QNetworkSession_state);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_error, "QNetworkSession.error() -> QNetworkSession.SessionError");

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

    {
        const QNetworkSession *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkSession, &sipCpp))
        {
            QNetworkSession::SessionError sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QNetworkSession_SessionError);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_error, doc_QNetworkSession_error);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_errorString, "QNetworkSession.errorString() -> str");

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

    {
        const QNetworkSession *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_errorString, doc_QNetworkSession_errorString);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_sessionProperty, "QNetworkSession.sessionProperty(str) -> object");

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

    {
        const QString* a0;
        int a0State = 0;
        const QNetworkSession *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkSession, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->sessionProperty(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_sessionProperty, doc_QNetworkSession_sessionProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_setSessionProperty, "QNetworkSession.setSessionProperty(str, object)");

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

    {
        const QString* a0;
        int a0State = 0;
        const QVariant* a1;
        int a1State = 0;
        QNetworkSession *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QNetworkSession, &sipCpp, sipType_QString,&a0, &a0State, sipType_QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSessionProperty(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_setSessionProperty, doc_QNetworkSession_setSessionProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_bytesWritten, "QNetworkSession.bytesWritten() -> int");

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

    {
        const QNetworkSession *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkSession, &sipCpp))
        {
            quint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->bytesWritten();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_bytesWritten, doc_QNetworkSession_bytesWritten);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_bytesReceived, "QNetworkSession.bytesReceived() -> int");

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

    {
        const QNetworkSession *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkSession, &sipCpp))
        {
            quint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->bytesReceived();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_bytesReceived, doc_QNetworkSession_bytesReceived);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_activeTime, "QNetworkSession.activeTime() -> int");

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

    {
        const QNetworkSession *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkSession, &sipCpp))
        {
            quint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->activeTime();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_activeTime, doc_QNetworkSession_activeTime);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_waitForOpened, "QNetworkSession.waitForOpened(int msecs=30000) -> bool");

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

    {
        int a0 = 30000;
        QNetworkSession *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QNetworkSession, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForOpened(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_waitForOpened, doc_QNetworkSession_waitForOpened);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_open, "QNetworkSession.open()");

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

    {
        QNetworkSession *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_open, doc_QNetworkSession_open);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_close, "QNetworkSession.close()");

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

    {
        QNetworkSession *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_close, doc_QNetworkSession_close);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_stop, "QNetworkSession.stop()");

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

    {
        QNetworkSession *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_stop, doc_QNetworkSession_stop);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_migrate, "QNetworkSession.migrate()");

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

    {
        QNetworkSession *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_migrate, doc_QNetworkSession_migrate);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_ignore, "QNetworkSession.ignore()");

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

    {
        QNetworkSession *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_ignore, doc_QNetworkSession_ignore);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_accept, "QNetworkSession.accept()");

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

    {
        QNetworkSession *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_accept, doc_QNetworkSession_accept);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_reject, "QNetworkSession.reject()");

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

    {
        QNetworkSession *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkSession, sipName_reject, doc_QNetworkSession_reject);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_connectNotify, "QNetworkSession.connectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQNetworkSession *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkSession, &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_QNetworkSession, sipName_connectNotify, doc_QNetworkSession_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkSession_disconnectNotify, "QNetworkSession.disconnectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQNetworkSession *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkSession, &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_QNetworkSession, sipName_disconnectNotify, doc_QNetworkSession_disconnectNotify);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkSession(void *, const sipTypeDef *);}
static void *cast_QNetworkSession(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QNetworkSession)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QNetworkSession *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkSession(void *, int);}
static void release_QNetworkSession(void *sipCppV,int)
{
    QNetworkSession *sipCpp = reinterpret_cast<QNetworkSession *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QNetworkSession(sipSimpleWrapper *);}
static void dealloc_QNetworkSession(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQNetworkSession *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkSession(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QNetworkSession(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkSession(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQNetworkSession *sipCpp = 0;

    {
        const QNetworkConfiguration* a0;
        QObject* a1 = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|JH", sipType_QNetworkConfiguration, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQNetworkSession(*a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QNetworkSession[] = {{141, 0, 1}};


static PyMethodDef methods_QNetworkSession[] = {
    {SIP_MLNAME_CAST(sipName_accept), meth_QNetworkSession_accept, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_accept)},
    {SIP_MLNAME_CAST(sipName_activeTime), meth_QNetworkSession_activeTime, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_activeTime)},
    {SIP_MLNAME_CAST(sipName_bytesReceived), meth_QNetworkSession_bytesReceived, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_bytesReceived)},
    {SIP_MLNAME_CAST(sipName_bytesWritten), meth_QNetworkSession_bytesWritten, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_bytesWritten)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QNetworkSession_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_QNetworkSession_close, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_close)},
    {SIP_MLNAME_CAST(sipName_configuration), meth_QNetworkSession_configuration, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_configuration)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QNetworkSession_connectNotify, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkSession_connectNotify)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QNetworkSession_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QNetworkSession_disconnectNotify, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkSession_disconnectNotify)},
    {SIP_MLNAME_CAST(sipName_error), meth_QNetworkSession_error, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_error)},
    {SIP_MLNAME_CAST(sipName_errorString), meth_QNetworkSession_errorString, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_errorString)},
    {SIP_MLNAME_CAST(sipName_ignore), meth_QNetworkSession_ignore, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_ignore)},
    {SIP_MLNAME_CAST(sipName_interface), meth_QNetworkSession_interface, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_interface)},
    {SIP_MLNAME_CAST(sipName_isOpen), meth_QNetworkSession_isOpen, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_isOpen)},
    {SIP_MLNAME_CAST(sipName_migrate), meth_QNetworkSession_migrate, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_migrate)},
    {SIP_MLNAME_CAST(sipName_open), meth_QNetworkSession_open, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_open)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QNetworkSession_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_reject), meth_QNetworkSession_reject, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_reject)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QNetworkSession_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QNetworkSession_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sessionProperty), meth_QNetworkSession_sessionProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_sessionProperty)},
    {SIP_MLNAME_CAST(sipName_setSessionProperty), meth_QNetworkSession_setSessionProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_setSessionProperty)},
    {SIP_MLNAME_CAST(sipName_state), meth_QNetworkSession_state, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_state)},
    {SIP_MLNAME_CAST(sipName_stop), meth_QNetworkSession_stop, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkSession_stop)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QNetworkSession_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForOpened), (PyCFunction)meth_QNetworkSession_waitForOpened, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkSession_waitForOpened)}
};

static sipEnumMemberDef enummembers_QNetworkSession[] = {
    {sipName_Closing, static_cast<int>(QNetworkSession::Closing), 81},
    {sipName_Connected, static_cast<int>(QNetworkSession::Connected), 81},
    {sipName_Connecting, static_cast<int>(QNetworkSession::Connecting), 81},
    {sipName_Disconnected, static_cast<int>(QNetworkSession::Disconnected), 81},
    {sipName_Invalid, static_cast<int>(QNetworkSession::Invalid), 81},
    {sipName_InvalidConfigurationError, static_cast<int>(QNetworkSession::InvalidConfigurationError), 80},
    {sipName_NotAvailable, static_cast<int>(QNetworkSession::NotAvailable), 81},
    {sipName_OperationNotSupportedError, static_cast<int>(QNetworkSession::OperationNotSupportedError), 80},
    {sipName_Roaming, static_cast<int>(QNetworkSession::Roaming), 81},
    {sipName_RoamingError, static_cast<int>(QNetworkSession::RoamingError), 80},
    {sipName_SessionAbortedError, static_cast<int>(QNetworkSession::SessionAbortedError), 80},
    {sipName_UnknownSessionError, static_cast<int>(QNetworkSession::UnknownSessionError), 80},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_QNetworkSession[] = {
    {"newConfigurationActivated()", "\1QNetworkSession.newConfigurationActivated", 0, 0},
    {"preferredConfigurationChanged(QNetworkConfiguration,bool)", "\1QNetworkSession.preferredConfigurationChanged[QNetworkConfiguration, bool]", 0, 0},
    {"closed()", "\1QNetworkSession.closed", 0, 0},
    {"opened()", "\1QNetworkSession.opened", 0, 0},
    {"stateChanged(QNetworkSession::State)", "\1QNetworkSession.stateChanged[QNetworkSession.State]", 0, 0},
    {"error(QNetworkSession::SessionError)", "\1QNetworkSession.error[QNetworkSession.SessionError]", &methods_QNetworkSession[10], 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QNetworkSession, "\1QNetworkSession(QNetworkConfiguration, QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkSession = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QNetworkSession,
        {0}
    },
    {
        sipNameNr_QNetworkSession,
        {0, 0, 1},
        27, methods_QNetworkSession,
        12, enummembers_QNetworkSession,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkSession,
    -1,
    -1,
    supers_QNetworkSession,
    0,
    init_type_QNetworkSession,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkSession,
    0,
    0,
    0,
    release_QNetworkSession,
    cast_QNetworkSession,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QNetworkSession::staticMetaObject,
    0,
    signals_QNetworkSession,
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkrequest.sip"
#include <qnetworkrequest.h>
#line 19788 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 107 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 19792 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 19795 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslconfiguration.sip"
#include <qsslconfiguration.h>
#line 19798 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 19801 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 19804 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 19807 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkRequest_url, "QNetworkRequest.url() -> QUrl");

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

    {
        const QNetworkRequest *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->url());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkRequest, sipName_url, doc_QNetworkRequest_url);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkRequest_setUrl, "QNetworkRequest.setUrl(QUrl)");

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

    {
        const QUrl* a0;
        QNetworkRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkRequest, &sipCpp, sipType_QUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUrl(*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_QNetworkRequest, sipName_setUrl, doc_QNetworkRequest_setUrl);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkRequest_header, "QNetworkRequest.header(QNetworkRequest.KnownHeaders) -> object");

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

    {
        QNetworkRequest::KnownHeaders a0;
        const QNetworkRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QNetworkRequest, &sipCpp, sipType_QNetworkRequest_KnownHeaders, &a0))
        {
            QVariant*sipRes;

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

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkRequest, sipName_header, doc_QNetworkRequest_header);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkRequest_setHeader, "QNetworkRequest.setHeader(QNetworkRequest.KnownHeaders, object)");

extern "C" {static PyObject *meth_QNetworkRequest_setHeader(PyObject *, PyObject *);}
static PyObject *meth_QNetworkRequest_setHeader(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkRequest::KnownHeaders a0;
        const QVariant* a1;
        int a1State = 0;
        QNetworkRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_QNetworkRequest, &sipCpp, sipType_QNetworkRequest_KnownHeaders, &a0, sipType_QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHeader(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkRequest, sipName_setHeader, doc_QNetworkRequest_setHeader);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkRequest_hasRawHeader, "QNetworkRequest.hasRawHeader(QByteArray) -> bool");

extern "C" {static PyObject *meth_QNetworkRequest_hasRawHeader(PyObject *, PyObject *);}
static PyObject *meth_QNetworkRequest_hasRawHeader(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        const QNetworkRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkRequest, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasRawHeader(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkRequest, sipName_hasRawHeader, doc_QNetworkRequest_hasRawHeader);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkRequest_rawHeaderList, "QNetworkRequest.rawHeaderList() -> list-of-QByteArray");

extern "C" {static PyObject *meth_QNetworkRequest_rawHeaderList(PyObject *, PyObject *);}
static PyObject *meth_QNetworkRequest_rawHeaderList(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkRequest, &sipCpp))
        {
            QList<QByteArray>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QByteArray>(sipCpp->rawHeaderList());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkRequest, sipName_rawHeaderList, doc_QNetworkRequest_rawHeaderList);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkRequest_rawHeader, "QNetworkRequest.rawHeader(QByteArray) -> QByteArray");

extern "C" {static PyObject *meth_QNetworkRequest_rawHeader(PyObject *, PyObject *);}
static PyObject *meth_QNetworkRequest_rawHeader(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        const QNetworkRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkRequest, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->rawHeader(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkRequest, sipName_rawHeader, doc_QNetworkRequest_rawHeader);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkRequest_setRawHeader, "QNetworkRequest.setRawHeader(QByteArray, QByteArray)");

extern "C" {static PyObject *meth_QNetworkRequest_setRawHeader(PyObject *, PyObject *);}
static PyObject *meth_QNetworkRequest_setRawHeader(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        const QByteArray* a1;
        int a1State = 0;
        QNetworkRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QNetworkRequest, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRawHeader(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkRequest, sipName_setRawHeader, doc_QNetworkRequest_setRawHeader);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkRequest_attribute, "QNetworkRequest.attribute(QNetworkRequest.Attribute, object defaultValue=None) -> object");

extern "C" {static PyObject *meth_QNetworkRequest_attribute(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkRequest_attribute(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkRequest::Attribute a0;
        const QVariant& a1def = QVariant();
        const QVariant* a1 = &a1def;
        int a1State = 0;
        const QNetworkRequest *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_defaultValue,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BE|J1", &sipSelf, sipType_QNetworkRequest, &sipCpp, sipType_QNetworkRequest_Attribute, &a0, sipType_QVariant,&a1, &a1State))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->attribute(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_QNetworkRequest, sipName_attribute, doc_QNetworkRequest_attribute);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkRequest_setAttribute, "QNetworkRequest.setAttribute(QNetworkRequest.Attribute, object)");

extern "C" {static PyObject *meth_QNetworkRequest_setAttribute(PyObject *, PyObject *);}
static PyObject *meth_QNetworkRequest_setAttribute(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkRequest::Attribute a0;
        const QVariant* a1;
        int a1State = 0;
        QNetworkRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_QNetworkRequest, &sipCpp, sipType_QNetworkRequest_Attribute, &a0, sipType_QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAttribute(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkRequest, sipName_setAttribute, doc_QNetworkRequest_setAttribute);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkRequest_sslConfiguration, "QNetworkRequest.sslConfiguration() -> QSslConfiguration");

extern "C" {static PyObject *meth_QNetworkRequest_sslConfiguration(PyObject *, PyObject *);}
static PyObject *meth_QNetworkRequest_sslConfiguration(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkRequest, &sipCpp))
        {
            QSslConfiguration*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslConfiguration(sipCpp->sslConfiguration());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QSslConfiguration,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkRequest, sipName_sslConfiguration, doc_QNetworkRequest_sslConfiguration);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkRequest_setSslConfiguration, "QNetworkRequest.setSslConfiguration(QSslConfiguration)");

extern "C" {static PyObject *meth_QNetworkRequest_setSslConfiguration(PyObject *, PyObject *);}
static PyObject *meth_QNetworkRequest_setSslConfiguration(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSslConfiguration* a0;
        QNetworkRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkRequest, &sipCpp, sipType_QSslConfiguration, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSslConfiguration(*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_QNetworkRequest, sipName_setSslConfiguration, doc_QNetworkRequest_setSslConfiguration);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkRequest_setOriginatingObject, "QNetworkRequest.setOriginatingObject(QObject)");

extern "C" {static PyObject *meth_QNetworkRequest_setOriginatingObject(PyObject *, PyObject *);}
static PyObject *meth_QNetworkRequest_setOriginatingObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QObject* a0;
        PyObject *a0Keep;
        QNetworkRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B@J8", &sipSelf, sipType_QNetworkRequest, &sipCpp, &a0Keep, sipType_QObject, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOriginatingObject(a0);
            Py_END_ALLOW_THREADS

            sipKeepReference(sipSelf, -3, a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkRequest, sipName_setOriginatingObject, doc_QNetworkRequest_setOriginatingObject);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkRequest_originatingObject, "QNetworkRequest.originatingObject() -> QObject");

extern "C" {static PyObject *meth_QNetworkRequest_originatingObject(PyObject *, PyObject *);}
static PyObject *meth_QNetworkRequest_originatingObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkRequest, &sipCpp))
        {
            QObject*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->originatingObject();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkRequest, sipName_originatingObject, doc_QNetworkRequest_originatingObject);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkRequest_priority, "QNetworkRequest.priority() -> QNetworkRequest.Priority");

extern "C" {static PyObject *meth_QNetworkRequest_priority(PyObject *, PyObject *);}
static PyObject *meth_QNetworkRequest_priority(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkRequest, &sipCpp))
        {
            QNetworkRequest::Priority sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->priority();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QNetworkRequest_Priority);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkRequest, sipName_priority, doc_QNetworkRequest_priority);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkRequest_setPriority, "QNetworkRequest.setPriority(QNetworkRequest.Priority)");

extern "C" {static PyObject *meth_QNetworkRequest_setPriority(PyObject *, PyObject *);}
static PyObject *meth_QNetworkRequest_setPriority(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkRequest::Priority a0;
        QNetworkRequest *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QNetworkRequest, &sipCpp, sipType_QNetworkRequest_Priority, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPriority(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_QNetworkRequest, sipName_setPriority, doc_QNetworkRequest_setPriority);

    return NULL;
}


extern "C" {static PyObject *slot_QNetworkRequest___ne__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkRequest___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkRequest *sipCpp = reinterpret_cast<QNetworkRequest *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkRequest));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkRequest* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QNetworkRequest, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QNetworkRequest::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QNetworkRequest,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QNetworkRequest___eq__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkRequest___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkRequest *sipCpp = reinterpret_cast<QNetworkRequest *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkRequest));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkRequest* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QNetworkRequest, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QNetworkRequest::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QNetworkRequest,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkRequest(void *, const sipTypeDef *);}
static void *cast_QNetworkRequest(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QNetworkRequest)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkRequest(void *, int);}
static void release_QNetworkRequest(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QNetworkRequest *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QNetworkRequest(void *, SIP_SSIZE_T, const void *);}
static void assign_QNetworkRequest(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QNetworkRequest *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QNetworkRequest *>(sipSrc);
}


extern "C" {static void *array_QNetworkRequest(SIP_SSIZE_T);}
static void *array_QNetworkRequest(SIP_SSIZE_T sipNrElem)
{
    return new QNetworkRequest[sipNrElem];
}


extern "C" {static void *copy_QNetworkRequest(const void *, SIP_SSIZE_T);}
static void *copy_QNetworkRequest(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QNetworkRequest(reinterpret_cast<const QNetworkRequest *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QNetworkRequest(sipSimpleWrapper *);}
static void dealloc_QNetworkRequest(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkRequest(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QNetworkRequest(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkRequest(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QNetworkRequest *sipCpp = 0;

    {
        const QUrl& a0def = QUrl();
        const QUrl* a0 = &a0def;

        static const char *sipKwdList[] = {
            sipName_url,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|J9", sipType_QUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkRequest(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QNetworkRequest* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QNetworkRequest, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkRequest(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QNetworkRequest[] = {
    {(void *)slot_QNetworkRequest___ne__, ne_slot},
    {(void *)slot_QNetworkRequest___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QNetworkRequest[] = {
    {SIP_MLNAME_CAST(sipName_attribute), (PyCFunction)meth_QNetworkRequest_attribute, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkRequest_attribute)},
    {SIP_MLNAME_CAST(sipName_hasRawHeader), meth_QNetworkRequest_hasRawHeader, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkRequest_hasRawHeader)},
    {SIP_MLNAME_CAST(sipName_header), meth_QNetworkRequest_header, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkRequest_header)},
    {SIP_MLNAME_CAST(sipName_originatingObject), meth_QNetworkRequest_originatingObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkRequest_originatingObject)},
    {SIP_MLNAME_CAST(sipName_priority), meth_QNetworkRequest_priority, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkRequest_priority)},
    {SIP_MLNAME_CAST(sipName_rawHeader), meth_QNetworkRequest_rawHeader, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkRequest_rawHeader)},
    {SIP_MLNAME_CAST(sipName_rawHeaderList), meth_QNetworkRequest_rawHeaderList, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkRequest_rawHeaderList)},
    {SIP_MLNAME_CAST(sipName_setAttribute), meth_QNetworkRequest_setAttribute, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkRequest_setAttribute)},
    {SIP_MLNAME_CAST(sipName_setHeader), meth_QNetworkRequest_setHeader, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkRequest_setHeader)},
    {SIP_MLNAME_CAST(sipName_setOriginatingObject), meth_QNetworkRequest_setOriginatingObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkRequest_setOriginatingObject)},
    {SIP_MLNAME_CAST(sipName_setPriority), meth_QNetworkRequest_setPriority, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkRequest_setPriority)},
    {SIP_MLNAME_CAST(sipName_setRawHeader), meth_QNetworkRequest_setRawHeader, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkRequest_setRawHeader)},
    {SIP_MLNAME_CAST(sipName_setSslConfiguration), meth_QNetworkRequest_setSslConfiguration, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkRequest_setSslConfiguration)},
    {SIP_MLNAME_CAST(sipName_setUrl), meth_QNetworkRequest_setUrl, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkRequest_setUrl)},
    {SIP_MLNAME_CAST(sipName_sslConfiguration), meth_QNetworkRequest_sslConfiguration, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkRequest_sslConfiguration)},
    {SIP_MLNAME_CAST(sipName_url), meth_QNetworkRequest_url, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkRequest_url)}
};

static sipEnumMemberDef enummembers_QNetworkRequest[] = {
    {sipName_AlwaysCache, static_cast<int>(QNetworkRequest::AlwaysCache), 75},
    {sipName_AlwaysNetwork, static_cast<int>(QNetworkRequest::AlwaysNetwork), 75},
    {sipName_AuthenticationReuseAttribute, static_cast<int>(QNetworkRequest::AuthenticationReuseAttribute), 74},
    {sipName_Automatic, static_cast<int>(QNetworkRequest::Automatic), 77},
    {sipName_CacheLoadControlAttribute, static_cast<int>(QNetworkRequest::CacheLoadControlAttribute), 74},
    {sipName_CacheSaveControlAttribute, static_cast<int>(QNetworkRequest::CacheSaveControlAttribute), 74},
    {sipName_ConnectionEncryptedAttribute, static_cast<int>(QNetworkRequest::ConnectionEncryptedAttribute), 74},
    {sipName_ContentDispositionHeader, static_cast<int>(QNetworkRequest::ContentDispositionHeader), 76},
    {sipName_ContentLengthHeader, static_cast<int>(QNetworkRequest::ContentLengthHeader), 76},
    {sipName_ContentTypeHeader, static_cast<int>(QNetworkRequest::ContentTypeHeader), 76},
    {sipName_CookieHeader, static_cast<int>(QNetworkRequest::CookieHeader), 76},
    {sipName_CookieLoadControlAttribute, static_cast<int>(QNetworkRequest::CookieLoadControlAttribute), 74},
    {sipName_CookieSaveControlAttribute, static_cast<int>(QNetworkRequest::CookieSaveControlAttribute), 74},
    {sipName_CustomVerbAttribute, static_cast<int>(QNetworkRequest::CustomVerbAttribute), 74},
    {sipName_DoNotBufferUploadDataAttribute, static_cast<int>(QNetworkRequest::DoNotBufferUploadDataAttribute), 74},
    {sipName_HighPriority, static_cast<int>(QNetworkRequest::HighPriority), 78},
    {sipName_HttpPipeliningAllowedAttribute, static_cast<int>(QNetworkRequest::HttpPipeliningAllowedAttribute), 74},
    {sipName_HttpPipeliningWasUsedAttribute, static_cast<int>(QNetworkRequest::HttpPipeliningWasUsedAttribute), 74},
    {sipName_HttpReasonPhraseAttribute, static_cast<int>(QNetworkRequest::HttpReasonPhraseAttribute), 74},
    {sipName_HttpStatusCodeAttribute, static_cast<int>(QNetworkRequest::HttpStatusCodeAttribute), 74},
    {sipName_LastModifiedHeader, static_cast<int>(QNetworkRequest::LastModifiedHeader), 76},
    {sipName_LocationHeader, static_cast<int>(QNetworkRequest::LocationHeader), 76},
    {sipName_LowPriority, static_cast<int>(QNetworkRequest::LowPriority), 78},
    {sipName_Manual, static_cast<int>(QNetworkRequest::Manual), 77},
    {sipName_NormalPriority, static_cast<int>(QNetworkRequest::NormalPriority), 78},
    {sipName_PreferCache, static_cast<int>(QNetworkRequest::PreferCache), 75},
    {sipName_PreferNetwork, static_cast<int>(QNetworkRequest::PreferNetwork), 75},
    {sipName_RedirectionTargetAttribute, static_cast<int>(QNetworkRequest::RedirectionTargetAttribute), 74},
    {sipName_SetCookieHeader, static_cast<int>(QNetworkRequest::SetCookieHeader), 76},
    {sipName_SourceIsFromCacheAttribute, static_cast<int>(QNetworkRequest::SourceIsFromCacheAttribute), 74},
    {sipName_User, static_cast<int>(QNetworkRequest::User), 74},
    {sipName_UserMax, static_cast<int>(QNetworkRequest::UserMax), 74},
};

PyDoc_STRVAR(doc_QNetworkRequest, "\1QNetworkRequest(QUrl url=QUrl())\n"
    "QNetworkRequest(QNetworkRequest)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkRequest = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkRequest,
        {0}
    },
    {
        sipNameNr_QNetworkRequest,
        {0, 0, 1},
        16, methods_QNetworkRequest,
        32, enummembers_QNetworkRequest,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkRequest,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QNetworkRequest,
    init_type_QNetworkRequest,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkRequest,
    assign_QNetworkRequest,
    array_QNetworkRequest,
    copy_QNetworkRequest,
    release_QNetworkRequest,
    cast_QNetworkRequest,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkreply.sip"
#include <qnetworkreply.h>
#line 20589 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 20593 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 201 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 20597 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 20600 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkrequest.sip"
#include <qnetworkrequest.h>
#line 20603 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 20606 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 107 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 20609 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 20612 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkaccessmanager.sip"
#include <qnetworkaccessmanager.h>
#line 20615 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 20618 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 20621 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslconfiguration.sip"
#include <qsslconfiguration.h>
#line 20624 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 20627 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 20630 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 20633 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 20636 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 20639 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 20642 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 20645 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 20648 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 20651 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 20654 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQNetworkReply : public QNetworkReply
{
public:
    sipQNetworkReply(QObject*);
    virtual ~sipQNetworkReply();

    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;
    qint64 sipProtect_readData(char*,qint64);
    qint64 sipProtectVirt_readLineData(bool,char*,qint64);
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);
    qint64 sipProtectVirt_writeData(bool,const char*,PY_LONG_LONG);
    void sipProtect_setOperation(QNetworkAccessManager::Operation);
    void sipProtect_setRequest(const QNetworkRequest&);
    void sipProtect_setError(QNetworkReply::NetworkError,const QString&);
    void sipProtect_setUrl(const QUrl&);
    void sipProtect_setHeader(QNetworkRequest::KnownHeaders,const QVariant&);
    void sipProtect_setRawHeader(const QByteArray&,const QByteArray&);
    void sipProtect_setAttribute(QNetworkRequest::Attribute,const QVariant&);
    void sipProtect_setFinished(bool);

    /*
     * 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*);
    qint64 readLineData(char*,qint64);
    qint64 readData(char*,qint64);
    bool waitForBytesWritten(int);
    bool waitForReadyRead(int);
    bool canReadLine() const;
    qint64 bytesToWrite() const;
    qint64 bytesAvailable() const;
    bool reset();
    bool atEnd() const;
    bool seek(qint64);
    qint64 size() const;
    qint64 pos() const;
    bool open(QIODevice::OpenMode);
    qint64 writeData(const char*,PY_LONG_LONG);
    void ignoreSslErrors();
    void setReadBufferSize(qint64);
    bool isSequential() const;
    void close();
    void abort();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQNetworkReply(const sipQNetworkReply &);
    sipQNetworkReply &operator = (const sipQNetworkReply &);

    char sipPyMethods[26];
};

sipQNetworkReply::sipQNetworkReply(QObject*a0): QNetworkReply(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQNetworkReply::~sipQNetworkReply()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQNetworkReply::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QNetworkReply);
}

int sipQNetworkReply::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QNetworkReply::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QNetworkReply,_c,_id,_a);

    return _id;
}

void *sipQNetworkReply::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QNetworkReply, _clname)) ? this : QNetworkReply::qt_metacast(_clname);
}

void sipQNetworkReply::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QNetworkReply::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkReply::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QNetworkReply::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkReply::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QNetworkReply::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkReply::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QNetworkReply::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkReply::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QNetworkReply::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQNetworkReply::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QNetworkReply::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQNetworkReply::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QNetworkReply::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQNetworkReply::readLineData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_readLineData);

    if (!sipMeth)
        return QNetworkReply::readLineData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipQNetworkReply::readData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,sipName_QNetworkReply,sipName_readData);

    if (!sipMeth)
        return 0;

    typedef PY_LONG_LONG (*sipVH_QtCore_31)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_31)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[31]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQNetworkReply::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!sipMeth)
        return QNetworkReply::waitForBytesWritten(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQNetworkReply::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!sipMeth)
        return QNetworkReply::waitForReadyRead(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQNetworkReply::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_canReadLine);

    if (!sipMeth)
        return QNetworkReply::canReadLine();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQNetworkReply::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_bytesToWrite);

    if (!sipMeth)
        return QNetworkReply::bytesToWrite();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQNetworkReply::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,NULL,sipName_bytesAvailable);

    if (!sipMeth)
        return QNetworkReply::bytesAvailable();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQNetworkReply::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_reset);

    if (!sipMeth)
        return QNetworkReply::reset();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQNetworkReply::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,NULL,sipName_atEnd);

    if (!sipMeth)
        return QNetworkReply::atEnd();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQNetworkReply::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_seek);

    if (!sipMeth)
        return QNetworkReply::seek(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQNetworkReply::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return QNetworkReply::size();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQNetworkReply::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[18]),sipPySelf,NULL,sipName_pos);

    if (!sipMeth)
        return QNetworkReply::pos();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQNetworkReply::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return QNetworkReply::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQNetworkReply::writeData(const char*a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_writeData);

    if (!sipMeth)
        return QNetworkReply::writeData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return ((sipVH_QtCore_20)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipQNetworkReply::ignoreSslErrors()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_ignoreSslErrors);

    if (!sipMeth)
    {
        QNetworkReply::ignoreSslErrors();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQNetworkReply::setReadBufferSize(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_setReadBufferSize);

    if (!sipMeth)
    {
        QNetworkReply::setReadBufferSize(a0);
        return;
    }

    extern void sipVH_QtNetwork_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    sipVH_QtNetwork_2(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQNetworkReply::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[23]),sipPySelf,NULL,sipName_isSequential);

    if (!sipMeth)
        return QNetworkReply::isSequential();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQNetworkReply::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
    {
        QNetworkReply::close();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQNetworkReply::abort()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,sipName_QNetworkReply,sipName_abort);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

QObject* sipQNetworkReply::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQNetworkReply::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQNetworkReply::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQNetworkReply::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQNetworkReply::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQNetworkReply::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQNetworkReply::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQNetworkReply::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

qint64 sipQNetworkReply::sipProtect_readData(char*a0,qint64 a1)
{
    return readData(a0,a1);
}

qint64 sipQNetworkReply::sipProtectVirt_readLineData(bool sipSelfWasArg,char*a0,qint64 a1)
{
    return (sipSelfWasArg ? QIODevice::readLineData(a0,a1) : readLineData(a0,a1));
}

void sipQNetworkReply::sipProtect_setOpenMode(QIODevice::OpenMode a0)
{
    QIODevice::setOpenMode(a0);
}

void sipQNetworkReply::sipProtect_setErrorString(const QString& a0)
{
    QIODevice::setErrorString(a0);
}

qint64 sipQNetworkReply::sipProtectVirt_writeData(bool sipSelfWasArg,const char*a0,PY_LONG_LONG a1)
{
    return (sipSelfWasArg ? QNetworkReply::writeData(a0,a1) : writeData(a0,a1));
}

void sipQNetworkReply::sipProtect_setOperation(QNetworkAccessManager::Operation a0)
{
    QNetworkReply::setOperation(a0);
}

void sipQNetworkReply::sipProtect_setRequest(const QNetworkRequest& a0)
{
    QNetworkReply::setRequest(a0);
}

void sipQNetworkReply::sipProtect_setError(QNetworkReply::NetworkError a0,const QString& a1)
{
    QNetworkReply::setError(a0,a1);
}

void sipQNetworkReply::sipProtect_setUrl(const QUrl& a0)
{
    QNetworkReply::setUrl(a0);
}

void sipQNetworkReply::sipProtect_setHeader(QNetworkRequest::KnownHeaders a0,const QVariant& a1)
{
    QNetworkReply::setHeader(a0,a1);
}

void sipQNetworkReply::sipProtect_setRawHeader(const QByteArray& a0,const QByteArray& a1)
{
    QNetworkReply::setRawHeader(a0,a1);
}

void sipQNetworkReply::sipProtect_setAttribute(QNetworkRequest::Attribute a0,const QVariant& a1)
{
    QNetworkReply::setAttribute(a0,a1);
}

void sipQNetworkReply::sipProtect_setFinished(bool a0)
{
    QNetworkReply::setFinished(a0);
}


PyDoc_STRVAR(doc_QNetworkReply_sender, "QNetworkReply.sender() -> QObject");

extern "C" {static PyObject *meth_QNetworkReply_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 21322 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_sender, doc_QNetworkReply_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_receivers, "QNetworkReply.receivers(SIGNAL()) -> int");

extern "C" {static PyObject *meth_QNetworkReply_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        char* a0;
        const sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkReply, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 21367 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_receivers, doc_QNetworkReply_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_timerEvent, "QNetworkReply.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QNetworkReply_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkReply, &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_QNetworkReply, sipName_timerEvent, doc_QNetworkReply_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_childEvent, "QNetworkReply.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QNetworkReply_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkReply, &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_QNetworkReply, sipName_childEvent, doc_QNetworkReply_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_customEvent, "QNetworkReply.customEvent(QEvent)");

extern "C" {static PyObject *meth_QNetworkReply_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkReply, &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_QNetworkReply, sipName_customEvent, doc_QNetworkReply_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_connectNotify, "QNetworkReply.connectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QNetworkReply_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkReply, &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_QNetworkReply, sipName_connectNotify, doc_QNetworkReply_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_disconnectNotify, "QNetworkReply.disconnectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QNetworkReply_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkReply, &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_QNetworkReply, sipName_disconnectNotify, doc_QNetworkReply_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_senderSignalIndex, "QNetworkReply.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QNetworkReply_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QNetworkReply, &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_QNetworkReply, sipName_senderSignalIndex, doc_QNetworkReply_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_readData, "QNetworkReply.readData(int) -> bytes");

extern "C" {static PyObject *meth_QNetworkReply_readData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_readData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        qint64 a0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bn", &sipSelf, sipType_QNetworkReply, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QNetworkReply, sipName_readData);
                return NULL;
            }

#line 174 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipCpp->readData(s, a0);
        #else
            len = sipCpp->sipProtect_readData(s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 21617 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_readData, doc_QNetworkReply_readData);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_readLineData, "QNetworkReply.readLineData(int) -> bytes");

extern "C" {static PyObject *meth_QNetworkReply_readLineData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_readLineData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bn", &sipSelf, sipType_QNetworkReply, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 239 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QIODevice::readLineData(s, a0) : sipCpp->readLineData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readLineData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 21685 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_readLineData, doc_QNetworkReply_readLineData);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_setOpenMode, "QNetworkReply.setOpenMode(QIODevice.OpenMode)");

extern "C" {static PyObject *meth_QNetworkReply_setOpenMode(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_setOpenMode(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QIODevice::OpenMode* a0;
        int a0State = 0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QNetworkReply, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOpenMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_setOpenMode, doc_QNetworkReply_setOpenMode);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_setErrorString, "QNetworkReply.setErrorString(str)");

extern "C" {static PyObject *meth_QNetworkReply_setErrorString(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_setErrorString(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QNetworkReply, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorString(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_setErrorString, doc_QNetworkReply_setErrorString);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_abort, "QNetworkReply.abort()");

extern "C" {static PyObject *meth_QNetworkReply_abort(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_abort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QNetworkReply, sipName_abort);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->abort();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_abort, doc_QNetworkReply_abort);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_close, "QNetworkReply.close()");

extern "C" {static PyObject *meth_QNetworkReply_close(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QNetworkReply::close() : sipCpp->close());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_close, doc_QNetworkReply_close);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_isSequential, "QNetworkReply.isSequential() -> bool");

extern "C" {static PyObject *meth_QNetworkReply_isSequential(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_isSequential(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QNetworkReply::isSequential() : sipCpp->isSequential());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_isSequential, doc_QNetworkReply_isSequential);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_readBufferSize, "QNetworkReply.readBufferSize() -> int");

extern "C" {static PyObject *meth_QNetworkReply_readBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_readBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->readBufferSize();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_readBufferSize, doc_QNetworkReply_readBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_setReadBufferSize, "QNetworkReply.setReadBufferSize(int)");

extern "C" {static PyObject *meth_QNetworkReply_setReadBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_setReadBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QNetworkReply, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QNetworkReply::setReadBufferSize(a0) : sipCpp->setReadBufferSize(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_QNetworkReply, sipName_setReadBufferSize, doc_QNetworkReply_setReadBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_manager, "QNetworkReply.manager() -> QNetworkAccessManager");

extern "C" {static PyObject *meth_QNetworkReply_manager(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_manager(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            QNetworkAccessManager*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->manager();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QNetworkAccessManager,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_manager, doc_QNetworkReply_manager);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_operation, "QNetworkReply.operation() -> QNetworkAccessManager.Operation");

extern "C" {static PyObject *meth_QNetworkReply_operation(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_operation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            QNetworkAccessManager::Operation sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->operation();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QNetworkAccessManager_Operation);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_operation, doc_QNetworkReply_operation);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_request, "QNetworkReply.request() -> QNetworkRequest");

extern "C" {static PyObject *meth_QNetworkReply_request(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_request(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            QNetworkRequest*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkRequest(sipCpp->request());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkRequest,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_request, doc_QNetworkReply_request);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_error, "QNetworkReply.error() -> QNetworkReply.NetworkError");

extern "C" {static PyObject *meth_QNetworkReply_error(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_error(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            QNetworkReply::NetworkError sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QNetworkReply_NetworkError);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_error, doc_QNetworkReply_error);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_url, "QNetworkReply.url() -> QUrl");

extern "C" {static PyObject *meth_QNetworkReply_url(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_url(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            QUrl*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->url());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_url, doc_QNetworkReply_url);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_header, "QNetworkReply.header(QNetworkRequest.KnownHeaders) -> object");

extern "C" {static PyObject *meth_QNetworkReply_header(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_header(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkRequest::KnownHeaders a0;
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QNetworkReply, &sipCpp, sipType_QNetworkRequest_KnownHeaders, &a0))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->header(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_header, doc_QNetworkReply_header);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_hasRawHeader, "QNetworkReply.hasRawHeader(QByteArray) -> bool");

extern "C" {static PyObject *meth_QNetworkReply_hasRawHeader(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_hasRawHeader(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkReply, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasRawHeader(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_hasRawHeader, doc_QNetworkReply_hasRawHeader);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_rawHeaderList, "QNetworkReply.rawHeaderList() -> list-of-QByteArray");

extern "C" {static PyObject *meth_QNetworkReply_rawHeaderList(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_rawHeaderList(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            QList<QByteArray>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QByteArray>(sipCpp->rawHeaderList());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_rawHeaderList, doc_QNetworkReply_rawHeaderList);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_rawHeader, "QNetworkReply.rawHeader(QByteArray) -> QByteArray");

extern "C" {static PyObject *meth_QNetworkReply_rawHeader(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_rawHeader(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkReply, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->rawHeader(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_rawHeader, doc_QNetworkReply_rawHeader);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_attribute, "QNetworkReply.attribute(QNetworkRequest.Attribute) -> object");

extern "C" {static PyObject *meth_QNetworkReply_attribute(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_attribute(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkRequest::Attribute a0;
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QNetworkReply, &sipCpp, sipType_QNetworkRequest_Attribute, &a0))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->attribute(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_attribute, doc_QNetworkReply_attribute);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_sslConfiguration, "QNetworkReply.sslConfiguration() -> QSslConfiguration");

extern "C" {static PyObject *meth_QNetworkReply_sslConfiguration(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_sslConfiguration(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            QSslConfiguration*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSslConfiguration(sipCpp->sslConfiguration());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QSslConfiguration,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_sslConfiguration, doc_QNetworkReply_sslConfiguration);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_setSslConfiguration, "QNetworkReply.setSslConfiguration(QSslConfiguration)");

extern "C" {static PyObject *meth_QNetworkReply_setSslConfiguration(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_setSslConfiguration(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSslConfiguration* a0;
        QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkReply, &sipCpp, sipType_QSslConfiguration, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSslConfiguration(*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_QNetworkReply, sipName_setSslConfiguration, doc_QNetworkReply_setSslConfiguration);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_ignoreSslErrors, "QNetworkReply.ignoreSslErrors()\n"
    "QNetworkReply.ignoreSslErrors(list-of-QSslError)");

extern "C" {static PyObject *meth_QNetworkReply_ignoreSslErrors(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_ignoreSslErrors(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QNetworkReply::ignoreSslErrors() : sipCpp->ignoreSslErrors());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QList<QSslError>* a0;
        int a0State = 0;
        QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkReply, &sipCpp, sipType_QList_0100QSslError,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->ignoreSslErrors(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QSslError> *>(a0),sipType_QList_0100QSslError,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_ignoreSslErrors, doc_QNetworkReply_ignoreSslErrors);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_writeData, "QNetworkReply.writeData(str) -> int");

extern "C" {static PyObject *meth_QNetworkReply_writeData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_writeData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const char* a0;
        SIP_SSIZE_T a1;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bk", &sipSelf, sipType_QNetworkReply, &sipCpp, &a0, &a1))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_writeData(sipSelfWasArg,a0,(PY_LONG_LONG)a1);
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_writeData, doc_QNetworkReply_writeData);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_setOperation, "QNetworkReply.setOperation(QNetworkAccessManager.Operation)");

extern "C" {static PyObject *meth_QNetworkReply_setOperation(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_setOperation(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkAccessManager::Operation a0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QNetworkReply, &sipCpp, sipType_QNetworkAccessManager_Operation, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOperation(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_QNetworkReply, sipName_setOperation, doc_QNetworkReply_setOperation);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_setRequest, "QNetworkReply.setRequest(QNetworkRequest)");

extern "C" {static PyObject *meth_QNetworkReply_setRequest(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_setRequest(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkRequest* a0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QNetworkReply, &sipCpp, sipType_QNetworkRequest, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setRequest(*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_QNetworkReply, sipName_setRequest, doc_QNetworkReply_setRequest);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_setError, "QNetworkReply.setError(QNetworkReply.NetworkError, str)");

extern "C" {static PyObject *meth_QNetworkReply_setError(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_setError(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkReply::NetworkError a0;
        const QString* a1;
        int a1State = 0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BEJ1", &sipSelf, sipType_QNetworkReply, &sipCpp, sipType_QNetworkReply_NetworkError, &a0, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_setError, doc_QNetworkReply_setError);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_setUrl, "QNetworkReply.setUrl(QUrl)");

extern "C" {static PyObject *meth_QNetworkReply_setUrl(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_setUrl(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QUrl* a0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QNetworkReply, &sipCpp, sipType_QUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setUrl(*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_QNetworkReply, sipName_setUrl, doc_QNetworkReply_setUrl);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_setHeader, "QNetworkReply.setHeader(QNetworkRequest.KnownHeaders, object)");

extern "C" {static PyObject *meth_QNetworkReply_setHeader(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_setHeader(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkRequest::KnownHeaders a0;
        const QVariant* a1;
        int a1State = 0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BEJ1", &sipSelf, sipType_QNetworkReply, &sipCpp, sipType_QNetworkRequest_KnownHeaders, &a0, sipType_QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setHeader(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_setHeader, doc_QNetworkReply_setHeader);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_setRawHeader, "QNetworkReply.setRawHeader(QByteArray, QByteArray)");

extern "C" {static PyObject *meth_QNetworkReply_setRawHeader(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_setRawHeader(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        const QByteArray* a1;
        int a1State = 0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1J1", &sipSelf, sipType_QNetworkReply, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setRawHeader(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_setRawHeader, doc_QNetworkReply_setRawHeader);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_setAttribute, "QNetworkReply.setAttribute(QNetworkRequest.Attribute, object)");

extern "C" {static PyObject *meth_QNetworkReply_setAttribute(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_setAttribute(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkRequest::Attribute a0;
        const QVariant* a1;
        int a1State = 0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BEJ1", &sipSelf, sipType_QNetworkReply, &sipCpp, sipType_QNetworkRequest_Attribute, &a0, sipType_QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setAttribute(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_setAttribute, doc_QNetworkReply_setAttribute);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_setFinished, "QNetworkReply.setFinished(bool)");

extern "C" {static PyObject *meth_QNetworkReply_setFinished(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_setFinished(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bb", &sipSelf, sipType_QNetworkReply, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setFinished(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_QNetworkReply, sipName_setFinished, doc_QNetworkReply_setFinished);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_isFinished, "QNetworkReply.isFinished() -> bool");

extern "C" {static PyObject *meth_QNetworkReply_isFinished(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_isFinished(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isFinished();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_isFinished, doc_QNetworkReply_isFinished);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_isRunning, "QNetworkReply.isRunning() -> bool");

extern "C" {static PyObject *meth_QNetworkReply_isRunning(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_isRunning(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isRunning();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_isRunning, doc_QNetworkReply_isRunning);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkReply_rawHeaderPairs, "QNetworkReply.rawHeaderPairs() -> list-of-tuple-of-QByteArray-QByteArray");

extern "C" {static PyObject *meth_QNetworkReply_rawHeaderPairs(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_rawHeaderPairs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkReply, &sipCpp))
        {
            QList<QPair<QByteArray,QByteArray> >*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QPair<QByteArray,QByteArray> >(sipCpp->rawHeaderPairs());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0600QPair_0100QByteArray_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkReply, sipName_rawHeaderPairs, doc_QNetworkReply_rawHeaderPairs);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkReply(void *, const sipTypeDef *);}
static void *cast_QNetworkReply(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QNetworkReply)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QIODevice)->ctd_cast((QIODevice *)(QNetworkReply *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkReply(void *, int);}
static void release_QNetworkReply(void *sipCppV,int)
{
    QNetworkReply *sipCpp = reinterpret_cast<QNetworkReply *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QNetworkReply(sipSimpleWrapper *);}
static void dealloc_QNetworkReply(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQNetworkReply *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkReply(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QNetworkReply(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkReply(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQNetworkReply *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQNetworkReply(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QNetworkReply[] = {{81, 0, 1}};


static PyMethodDef methods_QNetworkReply[] = {
    {SIP_MLNAME_CAST(sipName_abort), meth_QNetworkReply_abort, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_abort)},
    {SIP_MLNAME_CAST(sipName_attribute), meth_QNetworkReply_attribute, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_attribute)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QNetworkReply_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_QNetworkReply_close, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_close)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QNetworkReply_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QNetworkReply_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QNetworkReply_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_error), meth_QNetworkReply_error, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_error)},
    {SIP_MLNAME_CAST(sipName_hasRawHeader), meth_QNetworkReply_hasRawHeader, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_hasRawHeader)},
    {SIP_MLNAME_CAST(sipName_header), meth_QNetworkReply_header, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_header)},
    {SIP_MLNAME_CAST(sipName_ignoreSslErrors), meth_QNetworkReply_ignoreSslErrors, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_ignoreSslErrors)},
    {SIP_MLNAME_CAST(sipName_isFinished), meth_QNetworkReply_isFinished, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_isFinished)},
    {SIP_MLNAME_CAST(sipName_isRunning), meth_QNetworkReply_isRunning, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_isRunning)},
    {SIP_MLNAME_CAST(sipName_isSequential), meth_QNetworkReply_isSequential, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_isSequential)},
    {SIP_MLNAME_CAST(sipName_manager), meth_QNetworkReply_manager, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_manager)},
    {SIP_MLNAME_CAST(sipName_operation), meth_QNetworkReply_operation, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_operation)},
    {SIP_MLNAME_CAST(sipName_rawHeader), meth_QNetworkReply_rawHeader, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_rawHeader)},
    {SIP_MLNAME_CAST(sipName_rawHeaderList), meth_QNetworkReply_rawHeaderList, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_rawHeaderList)},
    {SIP_MLNAME_CAST(sipName_rawHeaderPairs), meth_QNetworkReply_rawHeaderPairs, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_rawHeaderPairs)},
    {SIP_MLNAME_CAST(sipName_readBufferSize), meth_QNetworkReply_readBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_readBufferSize)},
    {SIP_MLNAME_CAST(sipName_readData), (PyCFunction)meth_QNetworkReply_readData, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_readLineData), (PyCFunction)meth_QNetworkReply_readLineData, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QNetworkReply_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_request), meth_QNetworkReply_request, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_request)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QNetworkReply_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QNetworkReply_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setAttribute), (PyCFunction)meth_QNetworkReply_setAttribute, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkReply_setAttribute)},
    {SIP_MLNAME_CAST(sipName_setError), (PyCFunction)meth_QNetworkReply_setError, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkReply_setError)},
    {SIP_MLNAME_CAST(sipName_setErrorString), (PyCFunction)meth_QNetworkReply_setErrorString, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setFinished), (PyCFunction)meth_QNetworkReply_setFinished, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkReply_setFinished)},
    {SIP_MLNAME_CAST(sipName_setHeader), (PyCFunction)meth_QNetworkReply_setHeader, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkReply_setHeader)},
    {SIP_MLNAME_CAST(sipName_setOpenMode), (PyCFunction)meth_QNetworkReply_setOpenMode, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setOperation), (PyCFunction)meth_QNetworkReply_setOperation, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkReply_setOperation)},
    {SIP_MLNAME_CAST(sipName_setRawHeader), (PyCFunction)meth_QNetworkReply_setRawHeader, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkReply_setRawHeader)},
    {SIP_MLNAME_CAST(sipName_setReadBufferSize), meth_QNetworkReply_setReadBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_setReadBufferSize)},
    {SIP_MLNAME_CAST(sipName_setRequest), (PyCFunction)meth_QNetworkReply_setRequest, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkReply_setRequest)},
    {SIP_MLNAME_CAST(sipName_setSslConfiguration), meth_QNetworkReply_setSslConfiguration, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_setSslConfiguration)},
    {SIP_MLNAME_CAST(sipName_setUrl), (PyCFunction)meth_QNetworkReply_setUrl, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkReply_setUrl)},
    {SIP_MLNAME_CAST(sipName_sslConfiguration), meth_QNetworkReply_sslConfiguration, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_sslConfiguration)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QNetworkReply_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_url), meth_QNetworkReply_url, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkReply_url)},
    {SIP_MLNAME_CAST(sipName_writeData), (PyCFunction)meth_QNetworkReply_writeData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkReply_writeData)}
};

static sipEnumMemberDef enummembers_QNetworkReply[] = {
    {sipName_AuthenticationRequiredError, static_cast<int>(QNetworkReply::AuthenticationRequiredError), 72},
    {sipName_ConnectionRefusedError, static_cast<int>(QNetworkReply::ConnectionRefusedError), 72},
    {sipName_ContentAccessDenied, static_cast<int>(QNetworkReply::ContentAccessDenied), 72},
    {sipName_ContentNotFoundError, static_cast<int>(QNetworkReply::ContentNotFoundError), 72},
    {sipName_ContentOperationNotPermittedError, static_cast<int>(QNetworkReply::ContentOperationNotPermittedError), 72},
    {sipName_ContentReSendError, static_cast<int>(QNetworkReply::ContentReSendError), 72},
    {sipName_HostNotFoundError, static_cast<int>(QNetworkReply::HostNotFoundError), 72},
    {sipName_NoError, static_cast<int>(QNetworkReply::NoError), 72},
    {sipName_OperationCanceledError, static_cast<int>(QNetworkReply::OperationCanceledError), 72},
    {sipName_ProtocolFailure, static_cast<int>(QNetworkReply::ProtocolFailure), 72},
    {sipName_ProtocolInvalidOperationError, static_cast<int>(QNetworkReply::ProtocolInvalidOperationError), 72},
    {sipName_ProtocolUnknownError, static_cast<int>(QNetworkReply::ProtocolUnknownError), 72},
    {sipName_ProxyAuthenticationRequiredError, static_cast<int>(QNetworkReply::ProxyAuthenticationRequiredError), 72},
    {sipName_ProxyConnectionClosedError, static_cast<int>(QNetworkReply::ProxyConnectionClosedError), 72},
    {sipName_ProxyConnectionRefusedError, static_cast<int>(QNetworkReply::ProxyConnectionRefusedError), 72},
    {sipName_ProxyNotFoundError, static_cast<int>(QNetworkReply::ProxyNotFoundError), 72},
    {sipName_ProxyTimeoutError, static_cast<int>(QNetworkReply::ProxyTimeoutError), 72},
    {sipName_RemoteHostClosedError, static_cast<int>(QNetworkReply::RemoteHostClosedError), 72},
    {sipName_SslHandshakeFailedError, static_cast<int>(QNetworkReply::SslHandshakeFailedError), 72},
    {sipName_TemporaryNetworkFailureError, static_cast<int>(QNetworkReply::TemporaryNetworkFailureError), 72},
    {sipName_TimeoutError, static_cast<int>(QNetworkReply::TimeoutError), 72},
    {sipName_UnknownContentError, static_cast<int>(QNetworkReply::UnknownContentError), 72},
    {sipName_UnknownNetworkError, static_cast<int>(QNetworkReply::UnknownNetworkError), 72},
    {sipName_UnknownProxyError, static_cast<int>(QNetworkReply::UnknownProxyError), 72},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_QNetworkReply[] = {
    {"downloadProgress(qint64,qint64)", "\1QNetworkReply.downloadProgress[int, int]", 0, 0},
    {"uploadProgress(qint64,qint64)", "\1QNetworkReply.uploadProgress[int, int]", 0, 0},
    {"sslErrors(QList<QSslError>)", "\1QNetworkReply.sslErrors[list-of-QSslError]", 0, 0},
    {"finished()", "\1QNetworkReply.finished", 0, 0},
    {"metaDataChanged()", "\1QNetworkReply.metaDataChanged", 0, 0},
    {"error(QNetworkReply::NetworkError)", "\1QNetworkReply.error[QNetworkReply.NetworkError]", &methods_QNetworkReply[7], 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QNetworkReply, "\1QNetworkReply(QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkReply = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QNetworkReply,
        {0}
    },
    {
        sipNameNr_QNetworkReply,
        {0, 0, 1},
        42, methods_QNetworkReply,
        24, enummembers_QNetworkReply,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkReply,
    -1,
    -1,
    supers_QNetworkReply,
    0,
    init_type_QNetworkReply,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkReply,
    0,
    0,
    0,
    release_QNetworkReply,
    cast_QNetworkReply,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QNetworkReply::staticMetaObject,
    0,
    signals_QNetworkReply,
};

#line 186 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 22905 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 22909 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 22912 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 128 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 22915 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQNetworkProxyFactory : public QNetworkProxyFactory
{
public:
    sipQNetworkProxyFactory();
    sipQNetworkProxyFactory(const QNetworkProxyFactory&);
    virtual ~sipQNetworkProxyFactory();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QList<QNetworkProxy> queryProxy(const QNetworkProxyQuery&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQNetworkProxyFactory(const sipQNetworkProxyFactory &);
    sipQNetworkProxyFactory &operator = (const sipQNetworkProxyFactory &);

    char sipPyMethods[1];
};

sipQNetworkProxyFactory::sipQNetworkProxyFactory(): QNetworkProxyFactory(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQNetworkProxyFactory::sipQNetworkProxyFactory(const QNetworkProxyFactory& a0): QNetworkProxyFactory(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQNetworkProxyFactory::~sipQNetworkProxyFactory()
{
    sipCommonDtor(sipPySelf);
}

QList<QNetworkProxy> sipQNetworkProxyFactory::queryProxy(const QNetworkProxyQuery& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_QNetworkProxyFactory,sipName_queryProxy);

    if (!sipMeth)
        return QList<QNetworkProxy>();

    extern QList<QNetworkProxy> sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QNetworkProxyQuery&);

    return sipVH_QtNetwork_4(sipGILState, 0, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QNetworkProxyFactory_queryProxy, "QNetworkProxyFactory.queryProxy(QNetworkProxyQuery query=QNetworkProxyQuery()) -> list-of-QNetworkProxy");

extern "C" {static PyObject *meth_QNetworkProxyFactory_queryProxy(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyFactory_queryProxy(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QNetworkProxyQuery& a0def = QNetworkProxyQuery();
        const QNetworkProxyQuery* a0 = &a0def;
        QNetworkProxyFactory *sipCpp;

        static const char *sipKwdList[] = {
            sipName_query,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J9", &sipSelf, sipType_QNetworkProxyFactory, &sipCpp, sipType_QNetworkProxyQuery, &a0))
        {
            QList<QNetworkProxy>*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QNetworkProxyFactory, sipName_queryProxy);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QNetworkProxy>(sipCpp->queryProxy(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QNetworkProxy,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxyFactory, sipName_queryProxy, doc_QNetworkProxyFactory_queryProxy);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyFactory_setApplicationProxyFactory, "QNetworkProxyFactory.setApplicationProxyFactory(QNetworkProxyFactory)");

extern "C" {static PyObject *meth_QNetworkProxyFactory_setApplicationProxyFactory(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyFactory_setApplicationProxyFactory(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkProxyFactory* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J:", sipType_QNetworkProxyFactory, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            QNetworkProxyFactory::setApplicationProxyFactory(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_QNetworkProxyFactory, sipName_setApplicationProxyFactory, doc_QNetworkProxyFactory_setApplicationProxyFactory);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyFactory_proxyForQuery, "QNetworkProxyFactory.proxyForQuery(QNetworkProxyQuery) -> list-of-QNetworkProxy");

extern "C" {static PyObject *meth_QNetworkProxyFactory_proxyForQuery(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyFactory_proxyForQuery(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxyQuery* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QNetworkProxyQuery, &a0))
        {
            QList<QNetworkProxy>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QNetworkProxy>(QNetworkProxyFactory::proxyForQuery(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QNetworkProxy,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxyFactory, sipName_proxyForQuery, doc_QNetworkProxyFactory_proxyForQuery);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyFactory_systemProxyForQuery, "QNetworkProxyFactory.systemProxyForQuery(QNetworkProxyQuery query=QNetworkProxyQuery()) -> list-of-QNetworkProxy");

extern "C" {static PyObject *meth_QNetworkProxyFactory_systemProxyForQuery(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyFactory_systemProxyForQuery(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxyQuery& a0def = QNetworkProxyQuery();
        const QNetworkProxyQuery* a0 = &a0def;

        static const char *sipKwdList[] = {
            sipName_query,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "|J9", sipType_QNetworkProxyQuery, &a0))
        {
            QList<QNetworkProxy>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QNetworkProxy>(QNetworkProxyFactory::systemProxyForQuery(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QNetworkProxy,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxyFactory, sipName_systemProxyForQuery, doc_QNetworkProxyFactory_systemProxyForQuery);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyFactory_setUseSystemConfiguration, "QNetworkProxyFactory.setUseSystemConfiguration(bool)");

extern "C" {static PyObject *meth_QNetworkProxyFactory_setUseSystemConfiguration(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyFactory_setUseSystemConfiguration(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "b", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            QNetworkProxyFactory::setUseSystemConfiguration(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_QNetworkProxyFactory, sipName_setUseSystemConfiguration, doc_QNetworkProxyFactory_setUseSystemConfiguration);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkProxyFactory(void *, const sipTypeDef *);}
static void *cast_QNetworkProxyFactory(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QNetworkProxyFactory)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkProxyFactory(void *, int);}
static void release_QNetworkProxyFactory(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQNetworkProxyFactory *>(sipCppV);
    else
        delete reinterpret_cast<QNetworkProxyFactory *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QNetworkProxyFactory(sipSimpleWrapper *);}
static void dealloc_QNetworkProxyFactory(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQNetworkProxyFactory *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkProxyFactory(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QNetworkProxyFactory(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkProxyFactory(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQNetworkProxyFactory *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQNetworkProxyFactory();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QNetworkProxyFactory* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QNetworkProxyFactory, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQNetworkProxyFactory(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QNetworkProxyFactory[] = {
    {SIP_MLNAME_CAST(sipName_proxyForQuery), meth_QNetworkProxyFactory_proxyForQuery, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyFactory_proxyForQuery)},
    {SIP_MLNAME_CAST(sipName_queryProxy), (PyCFunction)meth_QNetworkProxyFactory_queryProxy, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkProxyFactory_queryProxy)},
    {SIP_MLNAME_CAST(sipName_setApplicationProxyFactory), meth_QNetworkProxyFactory_setApplicationProxyFactory, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyFactory_setApplicationProxyFactory)},
    {SIP_MLNAME_CAST(sipName_setUseSystemConfiguration), meth_QNetworkProxyFactory_setUseSystemConfiguration, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyFactory_setUseSystemConfiguration)},
    {SIP_MLNAME_CAST(sipName_systemProxyForQuery), (PyCFunction)meth_QNetworkProxyFactory_systemProxyForQuery, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkProxyFactory_systemProxyForQuery)}
};

PyDoc_STRVAR(doc_QNetworkProxyFactory, "\1QNetworkProxyFactory()\n"
    "QNetworkProxyFactory(QNetworkProxyFactory)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkProxyFactory = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_QNetworkProxyFactory,
        {0}
    },
    {
        sipNameNr_QNetworkProxyFactory,
        {0, 0, 1},
        5, methods_QNetworkProxyFactory,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkProxyFactory,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_QNetworkProxyFactory,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkProxyFactory,
    0,
    0,
    0,
    release_QNetworkProxyFactory,
    cast_QNetworkProxyFactory,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 128 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 23278 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 107 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 23282 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 23285 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 23288 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkProxyQuery_queryType, "QNetworkProxyQuery.queryType() -> QNetworkProxyQuery.QueryType");

extern "C" {static PyObject *meth_QNetworkProxyQuery_queryType(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyQuery_queryType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxyQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkProxyQuery, &sipCpp))
        {
            QNetworkProxyQuery::QueryType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->queryType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QNetworkProxyQuery_QueryType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxyQuery, sipName_queryType, doc_QNetworkProxyQuery_queryType);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyQuery_setQueryType, "QNetworkProxyQuery.setQueryType(QNetworkProxyQuery.QueryType)");

extern "C" {static PyObject *meth_QNetworkProxyQuery_setQueryType(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyQuery_setQueryType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkProxyQuery::QueryType a0;
        QNetworkProxyQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QNetworkProxyQuery, &sipCpp, sipType_QNetworkProxyQuery_QueryType, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setQueryType(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_QNetworkProxyQuery, sipName_setQueryType, doc_QNetworkProxyQuery_setQueryType);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyQuery_peerPort, "QNetworkProxyQuery.peerPort() -> int");

extern "C" {static PyObject *meth_QNetworkProxyQuery_peerPort(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyQuery_peerPort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxyQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkProxyQuery, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->peerPort();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxyQuery, sipName_peerPort, doc_QNetworkProxyQuery_peerPort);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyQuery_setPeerPort, "QNetworkProxyQuery.setPeerPort(int)");

extern "C" {static PyObject *meth_QNetworkProxyQuery_setPeerPort(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyQuery_setPeerPort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QNetworkProxyQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QNetworkProxyQuery, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPeerPort(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_QNetworkProxyQuery, sipName_setPeerPort, doc_QNetworkProxyQuery_setPeerPort);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyQuery_peerHostName, "QNetworkProxyQuery.peerHostName() -> str");

extern "C" {static PyObject *meth_QNetworkProxyQuery_peerHostName(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyQuery_peerHostName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxyQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkProxyQuery, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->peerHostName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxyQuery, sipName_peerHostName, doc_QNetworkProxyQuery_peerHostName);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyQuery_setPeerHostName, "QNetworkProxyQuery.setPeerHostName(str)");

extern "C" {static PyObject *meth_QNetworkProxyQuery_setPeerHostName(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyQuery_setPeerHostName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QNetworkProxyQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkProxyQuery, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPeerHostName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxyQuery, sipName_setPeerHostName, doc_QNetworkProxyQuery_setPeerHostName);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyQuery_localPort, "QNetworkProxyQuery.localPort() -> int");

extern "C" {static PyObject *meth_QNetworkProxyQuery_localPort(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyQuery_localPort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxyQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkProxyQuery, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->localPort();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxyQuery, sipName_localPort, doc_QNetworkProxyQuery_localPort);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyQuery_setLocalPort, "QNetworkProxyQuery.setLocalPort(int)");

extern "C" {static PyObject *meth_QNetworkProxyQuery_setLocalPort(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyQuery_setLocalPort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QNetworkProxyQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QNetworkProxyQuery, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLocalPort(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_QNetworkProxyQuery, sipName_setLocalPort, doc_QNetworkProxyQuery_setLocalPort);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyQuery_protocolTag, "QNetworkProxyQuery.protocolTag() -> str");

extern "C" {static PyObject *meth_QNetworkProxyQuery_protocolTag(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyQuery_protocolTag(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxyQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkProxyQuery, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->protocolTag());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxyQuery, sipName_protocolTag, doc_QNetworkProxyQuery_protocolTag);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyQuery_setProtocolTag, "QNetworkProxyQuery.setProtocolTag(str)");

extern "C" {static PyObject *meth_QNetworkProxyQuery_setProtocolTag(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyQuery_setProtocolTag(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QNetworkProxyQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkProxyQuery, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProtocolTag(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxyQuery, sipName_setProtocolTag, doc_QNetworkProxyQuery_setProtocolTag);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyQuery_url, "QNetworkProxyQuery.url() -> QUrl");

extern "C" {static PyObject *meth_QNetworkProxyQuery_url(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyQuery_url(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxyQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkProxyQuery, &sipCpp))
        {
            QUrl*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->url());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxyQuery, sipName_url, doc_QNetworkProxyQuery_url);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyQuery_setUrl, "QNetworkProxyQuery.setUrl(QUrl)");

extern "C" {static PyObject *meth_QNetworkProxyQuery_setUrl(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyQuery_setUrl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QUrl* a0;
        QNetworkProxyQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkProxyQuery, &sipCpp, sipType_QUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUrl(*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_QNetworkProxyQuery, sipName_setUrl, doc_QNetworkProxyQuery_setUrl);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyQuery_networkConfiguration, "QNetworkProxyQuery.networkConfiguration() -> QNetworkConfiguration");

extern "C" {static PyObject *meth_QNetworkProxyQuery_networkConfiguration(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyQuery_networkConfiguration(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxyQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkProxyQuery, &sipCpp))
        {
            QNetworkConfiguration*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfiguration(sipCpp->networkConfiguration());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfiguration,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxyQuery, sipName_networkConfiguration, doc_QNetworkProxyQuery_networkConfiguration);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxyQuery_setNetworkConfiguration, "QNetworkProxyQuery.setNetworkConfiguration(QNetworkConfiguration)");

extern "C" {static PyObject *meth_QNetworkProxyQuery_setNetworkConfiguration(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxyQuery_setNetworkConfiguration(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration* a0;
        QNetworkProxyQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkProxyQuery, &sipCpp, sipType_QNetworkConfiguration, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setNetworkConfiguration(*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_QNetworkProxyQuery, sipName_setNetworkConfiguration, doc_QNetworkProxyQuery_setNetworkConfiguration);

    return NULL;
}


extern "C" {static PyObject *slot_QNetworkProxyQuery___ne__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkProxyQuery___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkProxyQuery *sipCpp = reinterpret_cast<QNetworkProxyQuery *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkProxyQuery));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxyQuery* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QNetworkProxyQuery, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QNetworkProxyQuery::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QNetworkProxyQuery,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QNetworkProxyQuery___eq__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkProxyQuery___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkProxyQuery *sipCpp = reinterpret_cast<QNetworkProxyQuery *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkProxyQuery));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxyQuery* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QNetworkProxyQuery, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QNetworkProxyQuery::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QNetworkProxyQuery,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkProxyQuery(void *, const sipTypeDef *);}
static void *cast_QNetworkProxyQuery(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QNetworkProxyQuery)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkProxyQuery(void *, int);}
static void release_QNetworkProxyQuery(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QNetworkProxyQuery *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QNetworkProxyQuery(void *, SIP_SSIZE_T, const void *);}
static void assign_QNetworkProxyQuery(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QNetworkProxyQuery *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QNetworkProxyQuery *>(sipSrc);
}


extern "C" {static void *array_QNetworkProxyQuery(SIP_SSIZE_T);}
static void *array_QNetworkProxyQuery(SIP_SSIZE_T sipNrElem)
{
    return new QNetworkProxyQuery[sipNrElem];
}


extern "C" {static void *copy_QNetworkProxyQuery(const void *, SIP_SSIZE_T);}
static void *copy_QNetworkProxyQuery(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QNetworkProxyQuery(reinterpret_cast<const QNetworkProxyQuery *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QNetworkProxyQuery(sipSimpleWrapper *);}
static void dealloc_QNetworkProxyQuery(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkProxyQuery(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QNetworkProxyQuery(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkProxyQuery(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QNetworkProxyQuery *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkProxyQuery();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QUrl* a0;
        QNetworkProxyQuery::QueryType a1 = QNetworkProxyQuery::UrlRequest;

        static const char *sipKwdList[] = {
            NULL,
            sipName_type,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|E", sipType_QUrl, &a0, sipType_QNetworkProxyQuery_QueryType, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkProxyQuery(*a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        int a1;
        const QString& a2def = QString();
        const QString* a2 = &a2def;
        int a2State = 0;
        QNetworkProxyQuery::QueryType a3 = QNetworkProxyQuery::TcpSocket;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_protocolTag,
            sipName_type,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1i|J1E", sipType_QString,&a0, &a0State, &a1, sipType_QString,&a2, &a2State, sipType_QNetworkProxyQuery_QueryType, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkProxyQuery(*a0,a1,*a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return sipCpp;
        }
    }

    {
        quint16 a0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        QNetworkProxyQuery::QueryType a2 = QNetworkProxyQuery::TcpServer;

        static const char *sipKwdList[] = {
            NULL,
            sipName_protocolTag,
            sipName_type,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "t|J1E", &a0, sipType_QString,&a1, &a1State, sipType_QNetworkProxyQuery_QueryType, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkProxyQuery(a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipCpp;
        }
    }

    {
        const QNetworkConfiguration* a0;
        const QUrl* a1;
        QNetworkProxyQuery::QueryType a2 = QNetworkProxyQuery::UrlRequest;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_queryType,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9J9|E", sipType_QNetworkConfiguration, &a0, sipType_QUrl, &a1, sipType_QNetworkProxyQuery_QueryType, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkProxyQuery(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QNetworkConfiguration* a0;
        const QString* a1;
        int a1State = 0;
        int a2;
        const QString& a3def = QString();
        const QString* a3 = &a3def;
        int a3State = 0;
        QNetworkProxyQuery::QueryType a4 = QNetworkProxyQuery::TcpSocket;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_protocolTag,
            sipName_type,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9J1i|J1E", sipType_QNetworkConfiguration, &a0, sipType_QString,&a1, &a1State, &a2, sipType_QString,&a3, &a3State, sipType_QNetworkProxyQuery_QueryType, &a4))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkProxyQuery(*a0,*a1,a2,*a3,a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return sipCpp;
        }
    }

    {
        const QNetworkConfiguration* a0;
        quint16 a1;
        const QString& a2def = QString();
        const QString* a2 = &a2def;
        int a2State = 0;
        QNetworkProxyQuery::QueryType a3 = QNetworkProxyQuery::TcpServer;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_protocolTag,
            sipName_type,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9t|J1E", sipType_QNetworkConfiguration, &a0, &a1, sipType_QString,&a2, &a2State, sipType_QNetworkProxyQuery_QueryType, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkProxyQuery(*a0,a1,*a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return sipCpp;
        }
    }

    {
        const QNetworkProxyQuery* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QNetworkProxyQuery, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkProxyQuery(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QNetworkProxyQuery[] = {
    {(void *)slot_QNetworkProxyQuery___ne__, ne_slot},
    {(void *)slot_QNetworkProxyQuery___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QNetworkProxyQuery[] = {
    {SIP_MLNAME_CAST(sipName_localPort), meth_QNetworkProxyQuery_localPort, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyQuery_localPort)},
    {SIP_MLNAME_CAST(sipName_networkConfiguration), meth_QNetworkProxyQuery_networkConfiguration, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyQuery_networkConfiguration)},
    {SIP_MLNAME_CAST(sipName_peerHostName), meth_QNetworkProxyQuery_peerHostName, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyQuery_peerHostName)},
    {SIP_MLNAME_CAST(sipName_peerPort), meth_QNetworkProxyQuery_peerPort, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyQuery_peerPort)},
    {SIP_MLNAME_CAST(sipName_protocolTag), meth_QNetworkProxyQuery_protocolTag, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyQuery_protocolTag)},
    {SIP_MLNAME_CAST(sipName_queryType), meth_QNetworkProxyQuery_queryType, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyQuery_queryType)},
    {SIP_MLNAME_CAST(sipName_setLocalPort), meth_QNetworkProxyQuery_setLocalPort, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyQuery_setLocalPort)},
    {SIP_MLNAME_CAST(sipName_setNetworkConfiguration), meth_QNetworkProxyQuery_setNetworkConfiguration, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyQuery_setNetworkConfiguration)},
    {SIP_MLNAME_CAST(sipName_setPeerHostName), meth_QNetworkProxyQuery_setPeerHostName, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyQuery_setPeerHostName)},
    {SIP_MLNAME_CAST(sipName_setPeerPort), meth_QNetworkProxyQuery_setPeerPort, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyQuery_setPeerPort)},
    {SIP_MLNAME_CAST(sipName_setProtocolTag), meth_QNetworkProxyQuery_setProtocolTag, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyQuery_setProtocolTag)},
    {SIP_MLNAME_CAST(sipName_setQueryType), meth_QNetworkProxyQuery_setQueryType, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyQuery_setQueryType)},
    {SIP_MLNAME_CAST(sipName_setUrl), meth_QNetworkProxyQuery_setUrl, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyQuery_setUrl)},
    {SIP_MLNAME_CAST(sipName_url), meth_QNetworkProxyQuery_url, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxyQuery_url)}
};

static sipEnumMemberDef enummembers_QNetworkProxyQuery[] = {
    {sipName_TcpServer, static_cast<int>(QNetworkProxyQuery::TcpServer), 70},
    {sipName_TcpSocket, static_cast<int>(QNetworkProxyQuery::TcpSocket), 70},
    {sipName_UdpSocket, static_cast<int>(QNetworkProxyQuery::UdpSocket), 70},
    {sipName_UrlRequest, static_cast<int>(QNetworkProxyQuery::UrlRequest), 70},
};

PyDoc_STRVAR(doc_QNetworkProxyQuery, "\1QNetworkProxyQuery()\n"
    "QNetworkProxyQuery(QUrl, QNetworkProxyQuery.QueryType type=QNetworkProxyQuery.UrlRequest)\n"
    "QNetworkProxyQuery(str, int, str protocolTag='', QNetworkProxyQuery.QueryType type=QNetworkProxyQuery.TcpSocket)\n"
    "QNetworkProxyQuery(int, str protocolTag='', QNetworkProxyQuery.QueryType type=QNetworkProxyQuery.TcpServer)\n"
    "QNetworkProxyQuery(QNetworkConfiguration, QUrl, QNetworkProxyQuery.QueryType queryType=QNetworkProxyQuery.UrlRequest)\n"
    "QNetworkProxyQuery(QNetworkConfiguration, str, int, str protocolTag='', QNetworkProxyQuery.QueryType type=QNetworkProxyQuery.TcpSocket)\n"
    "QNetworkProxyQuery(QNetworkConfiguration, int, str protocolTag='', QNetworkProxyQuery.QueryType type=QNetworkProxyQuery.TcpServer)\n"
    "QNetworkProxyQuery(QNetworkProxyQuery)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkProxyQuery = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkProxyQuery,
        {0}
    },
    {
        sipNameNr_QNetworkProxyQuery,
        {0, 0, 1},
        14, methods_QNetworkProxyQuery,
        4, enummembers_QNetworkProxyQuery,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkProxyQuery,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QNetworkProxyQuery,
    init_type_QNetworkProxyQuery,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkProxyQuery,
    assign_QNetworkProxyQuery,
    array_QNetworkProxyQuery,
    copy_QNetworkProxyQuery,
    release_QNetworkProxyQuery,
    cast_QNetworkProxyQuery,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 24102 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 24106 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static int slot_QNetworkProxy_Capabilities___bool__(PyObject *);}
static int slot_QNetworkProxy_Capabilities___bool__(PyObject *sipSelf)
{
    QNetworkProxy::Capabilities *sipCpp = reinterpret_cast<QNetworkProxy::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkProxy_Capabilities));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkProxy::Capabilities::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 24128 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QNetworkProxy_Capabilities___ne__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkProxy_Capabilities___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkProxy::Capabilities *sipCpp = reinterpret_cast<QNetworkProxy::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkProxy_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxy::Capabilities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkProxy_Capabilities, &a0, &a0State))
        {
            bool sipRes = 0;

#line 361 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkProxy::Capabilities::Int() != a0->operator QNetworkProxy::Capabilities::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 24162 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(const_cast<QNetworkProxy::Capabilities *>(a0),sipType_QNetworkProxy_Capabilities,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QNetworkProxy_Capabilities,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QNetworkProxy_Capabilities___eq__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkProxy_Capabilities___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkProxy::Capabilities *sipCpp = reinterpret_cast<QNetworkProxy::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkProxy_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxy::Capabilities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkProxy_Capabilities, &a0, &a0State))
        {
            bool sipRes = 0;

#line 352 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkProxy::Capabilities::Int() == a0->operator QNetworkProxy::Capabilities::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 24202 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(const_cast<QNetworkProxy::Capabilities *>(a0),sipType_QNetworkProxy_Capabilities,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QNetworkProxy_Capabilities,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QNetworkProxy_Capabilities___invert__(PyObject *);}
static PyObject *slot_QNetworkProxy_Capabilities___invert__(PyObject *sipSelf)
{
    QNetworkProxy::Capabilities *sipCpp = reinterpret_cast<QNetworkProxy::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkProxy_Capabilities));

    if (!sipCpp)
        return 0;


    {
        {
            QNetworkProxy::Capabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy::Capabilities(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkProxy_Capabilities,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QNetworkProxy_Capabilities___and__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkProxy_Capabilities___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkProxy::Capabilities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QNetworkProxy_Capabilities, &a0, &a0State, &a1))
        {
            QNetworkProxy::Capabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy::Capabilities((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkProxy_Capabilities,a0State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkProxy_Capabilities,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QNetworkProxy_Capabilities___xor__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkProxy_Capabilities___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkProxy::Capabilities* a0;
        int a0State = 0;
        QNetworkProxy::Capabilities* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QNetworkProxy_Capabilities, &a0, &a0State, sipType_QNetworkProxy_Capabilities, &a1, &a1State))
        {
            QNetworkProxy::Capabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy::Capabilities((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkProxy_Capabilities,a0State);
            sipReleaseType(a1,sipType_QNetworkProxy_Capabilities,a1State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkProxy_Capabilities,NULL);
        }
    }

    {
        QNetworkProxy::Capabilities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QNetworkProxy_Capabilities, &a0, &a0State, &a1))
        {
            QNetworkProxy::Capabilities*sipRes = 0;

#line 346 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QNetworkProxy::Capabilities(*a0 ^ a1);
#line 24311 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(a0,sipType_QNetworkProxy_Capabilities,a0State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkProxy_Capabilities,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QNetworkProxy_Capabilities___or__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkProxy_Capabilities___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkProxy::Capabilities* a0;
        int a0State = 0;
        QNetworkProxy::Capabilities* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QNetworkProxy_Capabilities, &a0, &a0State, sipType_QNetworkProxy_Capabilities, &a1, &a1State))
        {
            QNetworkProxy::Capabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy::Capabilities((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkProxy_Capabilities,a0State);
            sipReleaseType(a1,sipType_QNetworkProxy_Capabilities,a1State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkProxy_Capabilities,NULL);
        }
    }

    {
        QNetworkProxy::Capabilities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QNetworkProxy_Capabilities, &a0, &a0State, &a1))
        {
            QNetworkProxy::Capabilities*sipRes = 0;

#line 341 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QNetworkProxy::Capabilities(*a0 | a1);
#line 24363 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(a0,sipType_QNetworkProxy_Capabilities,a0State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkProxy_Capabilities,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QNetworkProxy_Capabilities___int__(PyObject *);}
static PyObject *slot_QNetworkProxy_Capabilities___int__(PyObject *sipSelf)
{
    QNetworkProxy::Capabilities *sipCpp = reinterpret_cast<QNetworkProxy::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkProxy_Capabilities));

    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_QNetworkProxy_Capabilities___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkProxy_Capabilities___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QNetworkProxy_Capabilities)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QNetworkProxy::Capabilities *sipCpp = reinterpret_cast<QNetworkProxy::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkProxy_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QNetworkProxy::Capabilities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkProxy_Capabilities, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QNetworkProxy::Capabilities::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkProxy_Capabilities,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_QNetworkProxy_Capabilities___ior__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkProxy_Capabilities___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QNetworkProxy_Capabilities)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QNetworkProxy::Capabilities *sipCpp = reinterpret_cast<QNetworkProxy::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkProxy_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QNetworkProxy::Capabilities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkProxy_Capabilities, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QNetworkProxy::Capabilities::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkProxy_Capabilities,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_QNetworkProxy_Capabilities___iand__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkProxy_Capabilities___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QNetworkProxy_Capabilities)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QNetworkProxy::Capabilities *sipCpp = reinterpret_cast<QNetworkProxy::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkProxy_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QNetworkProxy::Capabilities::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;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkProxy_Capabilities(void *, const sipTypeDef *);}
static void *cast_QNetworkProxy_Capabilities(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QNetworkProxy_Capabilities)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkProxy_Capabilities(void *, int);}
static void release_QNetworkProxy_Capabilities(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QNetworkProxy::Capabilities *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QNetworkProxy_Capabilities(void *, SIP_SSIZE_T, const void *);}
static void assign_QNetworkProxy_Capabilities(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QNetworkProxy::Capabilities *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QNetworkProxy::Capabilities *>(sipSrc);
}


extern "C" {static void *array_QNetworkProxy_Capabilities(SIP_SSIZE_T);}
static void *array_QNetworkProxy_Capabilities(SIP_SSIZE_T sipNrElem)
{
    return new QNetworkProxy::Capabilities[sipNrElem];
}


extern "C" {static void *copy_QNetworkProxy_Capabilities(const void *, SIP_SSIZE_T);}
static void *copy_QNetworkProxy_Capabilities(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QNetworkProxy::Capabilities(reinterpret_cast<const QNetworkProxy::Capabilities *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QNetworkProxy_Capabilities(sipSimpleWrapper *);}
static void dealloc_QNetworkProxy_Capabilities(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkProxy_Capabilities(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QNetworkProxy_Capabilities(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkProxy_Capabilities(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QNetworkProxy::Capabilities *sipCpp = 0;

    {
        const QNetworkProxy::Capabilities* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QNetworkProxy_Capabilities, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkProxy::Capabilities(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QNetworkProxy::Capabilities *>(a0),sipType_QNetworkProxy_Capabilities,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkProxy::Capabilities(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkProxy::Capabilities();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QNetworkProxy_Capabilities(PyObject *, void **, int *, PyObject *);}
static int convertTo_QNetworkProxy_Capabilities(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QNetworkProxy::Capabilities **sipCppPtr = reinterpret_cast<QNetworkProxy::Capabilities **>(sipCppPtrV);

#line 379 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QNetworkProxy::Capabilities is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QNetworkProxy_Capability)) ||
            sipCanConvertToType(sipPy, sipType_QNetworkProxy_Capabilities, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QNetworkProxy_Capability)))
{
    *sipCppPtr = new QNetworkProxy::Capabilities(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QNetworkProxy::Capabilities *>(sipConvertToType(sipPy, sipType_QNetworkProxy_Capabilities, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 24658 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QNetworkProxy_Capabilities[] = {
    {(void *)slot_QNetworkProxy_Capabilities___bool__, bool_slot},
    {(void *)slot_QNetworkProxy_Capabilities___ne__, ne_slot},
    {(void *)slot_QNetworkProxy_Capabilities___eq__, eq_slot},
    {(void *)slot_QNetworkProxy_Capabilities___invert__, invert_slot},
    {(void *)slot_QNetworkProxy_Capabilities___and__, and_slot},
    {(void *)slot_QNetworkProxy_Capabilities___xor__, xor_slot},
    {(void *)slot_QNetworkProxy_Capabilities___or__, or_slot},
    {(void *)slot_QNetworkProxy_Capabilities___int__, int_slot},
    {(void *)slot_QNetworkProxy_Capabilities___ixor__, ixor_slot},
    {(void *)slot_QNetworkProxy_Capabilities___ior__, ior_slot},
    {(void *)slot_QNetworkProxy_Capabilities___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QNetworkProxy_Capabilities, "\1QNetworkProxy.Capabilities(QNetworkProxy.Capabilities)\n"
    "QNetworkProxy.Capabilities(int)\n"
    "QNetworkProxy.Capabilities()");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkProxy_Capabilities = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkProxy__Capabilities,
        {0}
    },
    {
        sipNameNr_Capabilities,
        {64, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkProxy_Capabilities,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QNetworkProxy_Capabilities,
    init_type_QNetworkProxy_Capabilities,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkProxy_Capabilities,
    assign_QNetworkProxy_Capabilities,
    array_QNetworkProxy_Capabilities,
    copy_QNetworkProxy_Capabilities,
    release_QNetworkProxy_Capabilities,
    cast_QNetworkProxy_Capabilities,
    convertTo_QNetworkProxy_Capabilities,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 24739 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 24743 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 24746 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkProxy_setType, "QNetworkProxy.setType(QNetworkProxy.ProxyType)");

extern "C" {static PyObject *meth_QNetworkProxy_setType(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_setType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkProxy::ProxyType a0;
        QNetworkProxy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QNetworkProxy, &sipCpp, sipType_QNetworkProxy_ProxyType, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setType(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_QNetworkProxy, sipName_setType, doc_QNetworkProxy_setType);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxy_type, "QNetworkProxy.type() -> QNetworkProxy.ProxyType");

extern "C" {static PyObject *meth_QNetworkProxy_type(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkProxy, &sipCpp))
        {
            QNetworkProxy::ProxyType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QNetworkProxy_ProxyType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxy, sipName_type, doc_QNetworkProxy_type);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxy_setUser, "QNetworkProxy.setUser(str)");

extern "C" {static PyObject *meth_QNetworkProxy_setUser(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_setUser(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QNetworkProxy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkProxy, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUser(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxy, sipName_setUser, doc_QNetworkProxy_setUser);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxy_user, "QNetworkProxy.user() -> str");

extern "C" {static PyObject *meth_QNetworkProxy_user(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_user(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkProxy, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->user());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxy, sipName_user, doc_QNetworkProxy_user);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxy_setPassword, "QNetworkProxy.setPassword(str)");

extern "C" {static PyObject *meth_QNetworkProxy_setPassword(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_setPassword(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QNetworkProxy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkProxy, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPassword(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxy, sipName_setPassword, doc_QNetworkProxy_setPassword);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxy_password, "QNetworkProxy.password() -> str");

extern "C" {static PyObject *meth_QNetworkProxy_password(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_password(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkProxy, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->password());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxy, sipName_password, doc_QNetworkProxy_password);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxy_setHostName, "QNetworkProxy.setHostName(str)");

extern "C" {static PyObject *meth_QNetworkProxy_setHostName(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_setHostName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QNetworkProxy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkProxy, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHostName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxy, sipName_setHostName, doc_QNetworkProxy_setHostName);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxy_hostName, "QNetworkProxy.hostName() -> str");

extern "C" {static PyObject *meth_QNetworkProxy_hostName(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_hostName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkProxy, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->hostName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxy, sipName_hostName, doc_QNetworkProxy_hostName);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxy_setPort, "QNetworkProxy.setPort(int)");

extern "C" {static PyObject *meth_QNetworkProxy_setPort(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_setPort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        quint16 a0;
        QNetworkProxy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bt", &sipSelf, sipType_QNetworkProxy, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPort(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_QNetworkProxy, sipName_setPort, doc_QNetworkProxy_setPort);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxy_port, "QNetworkProxy.port() -> int");

extern "C" {static PyObject *meth_QNetworkProxy_port(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_port(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkProxy, &sipCpp))
        {
            quint16 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->port();
            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_QNetworkProxy, sipName_port, doc_QNetworkProxy_port);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxy_setApplicationProxy, "QNetworkProxy.setApplicationProxy(QNetworkProxy)");

extern "C" {static PyObject *meth_QNetworkProxy_setApplicationProxy(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_setApplicationProxy(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxy* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QNetworkProxy, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            QNetworkProxy::setApplicationProxy(*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_QNetworkProxy, sipName_setApplicationProxy, doc_QNetworkProxy_setApplicationProxy);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxy_applicationProxy, "QNetworkProxy.applicationProxy() -> QNetworkProxy");

extern "C" {static PyObject *meth_QNetworkProxy_applicationProxy(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_applicationProxy(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QNetworkProxy*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy(QNetworkProxy::applicationProxy());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkProxy,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxy, sipName_applicationProxy, doc_QNetworkProxy_applicationProxy);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxy_isCachingProxy, "QNetworkProxy.isCachingProxy() -> bool");

extern "C" {static PyObject *meth_QNetworkProxy_isCachingProxy(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_isCachingProxy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkProxy, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isCachingProxy();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxy, sipName_isCachingProxy, doc_QNetworkProxy_isCachingProxy);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxy_isTransparentProxy, "QNetworkProxy.isTransparentProxy() -> bool");

extern "C" {static PyObject *meth_QNetworkProxy_isTransparentProxy(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_isTransparentProxy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkProxy, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isTransparentProxy();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxy, sipName_isTransparentProxy, doc_QNetworkProxy_isTransparentProxy);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxy_setCapabilities, "QNetworkProxy.setCapabilities(QNetworkProxy.Capabilities)");

extern "C" {static PyObject *meth_QNetworkProxy_setCapabilities(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_setCapabilities(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkProxy::Capabilities* a0;
        int a0State = 0;
        QNetworkProxy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkProxy, &sipCpp, sipType_QNetworkProxy_Capabilities, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCapabilities(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkProxy_Capabilities,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxy, sipName_setCapabilities, doc_QNetworkProxy_setCapabilities);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkProxy_capabilities, "QNetworkProxy.capabilities() -> QNetworkProxy.Capabilities");

extern "C" {static PyObject *meth_QNetworkProxy_capabilities(PyObject *, PyObject *);}
static PyObject *meth_QNetworkProxy_capabilities(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxy *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkProxy, &sipCpp))
        {
            QNetworkProxy::Capabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy::Capabilities(sipCpp->capabilities());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkProxy_Capabilities,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkProxy, sipName_capabilities, doc_QNetworkProxy_capabilities);

    return NULL;
}


extern "C" {static PyObject *slot_QNetworkProxy___ne__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkProxy___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkProxy *sipCpp = reinterpret_cast<QNetworkProxy *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkProxy));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxy* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QNetworkProxy, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QNetworkProxy::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QNetworkProxy,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QNetworkProxy___eq__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkProxy___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkProxy *sipCpp = reinterpret_cast<QNetworkProxy *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkProxy));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxy* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QNetworkProxy, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QNetworkProxy::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QNetworkProxy,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkProxy(void *, const sipTypeDef *);}
static void *cast_QNetworkProxy(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QNetworkProxy)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkProxy(void *, int);}
static void release_QNetworkProxy(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QNetworkProxy *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QNetworkProxy(void *, SIP_SSIZE_T, const void *);}
static void assign_QNetworkProxy(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QNetworkProxy *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QNetworkProxy *>(sipSrc);
}


extern "C" {static void *array_QNetworkProxy(SIP_SSIZE_T);}
static void *array_QNetworkProxy(SIP_SSIZE_T sipNrElem)
{
    return new QNetworkProxy[sipNrElem];
}


extern "C" {static void *copy_QNetworkProxy(const void *, SIP_SSIZE_T);}
static void *copy_QNetworkProxy(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QNetworkProxy(reinterpret_cast<const QNetworkProxy *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QNetworkProxy(sipSimpleWrapper *);}
static void dealloc_QNetworkProxy(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkProxy(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QNetworkProxy(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkProxy(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QNetworkProxy *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkProxy();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        QNetworkProxy::ProxyType a0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        quint16 a2 = 0;
        const QString& a3def = QString();
        const QString* a3 = &a3def;
        int a3State = 0;
        const QString& a4def = QString();
        const QString* a4 = &a4def;
        int a4State = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_hostName,
            sipName_port,
            sipName_user,
            sipName_password,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "E|J1tJ1J1", sipType_QNetworkProxy_ProxyType, &a0, sipType_QString,&a1, &a1State, &a2, sipType_QString,&a3, &a3State, sipType_QString,&a4, &a4State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkProxy(a0,*a1,a2,*a3,*a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);

            return sipCpp;
        }
    }

    {
        const QNetworkProxy* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QNetworkProxy, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkProxy(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QNetworkProxy[] = {
    {(void *)slot_QNetworkProxy___ne__, ne_slot},
    {(void *)slot_QNetworkProxy___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QNetworkProxy[] = {
    {SIP_MLNAME_CAST(sipName_applicationProxy), meth_QNetworkProxy_applicationProxy, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_applicationProxy)},
    {SIP_MLNAME_CAST(sipName_capabilities), meth_QNetworkProxy_capabilities, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_capabilities)},
    {SIP_MLNAME_CAST(sipName_hostName), meth_QNetworkProxy_hostName, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_hostName)},
    {SIP_MLNAME_CAST(sipName_isCachingProxy), meth_QNetworkProxy_isCachingProxy, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_isCachingProxy)},
    {SIP_MLNAME_CAST(sipName_isTransparentProxy), meth_QNetworkProxy_isTransparentProxy, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_isTransparentProxy)},
    {SIP_MLNAME_CAST(sipName_password), meth_QNetworkProxy_password, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_password)},
    {SIP_MLNAME_CAST(sipName_port), meth_QNetworkProxy_port, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_port)},
    {SIP_MLNAME_CAST(sipName_setApplicationProxy), meth_QNetworkProxy_setApplicationProxy, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_setApplicationProxy)},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_QNetworkProxy_setCapabilities, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_setCapabilities)},
    {SIP_MLNAME_CAST(sipName_setHostName), meth_QNetworkProxy_setHostName, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_setHostName)},
    {SIP_MLNAME_CAST(sipName_setPassword), meth_QNetworkProxy_setPassword, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_setPassword)},
    {SIP_MLNAME_CAST(sipName_setPort), meth_QNetworkProxy_setPort, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_setPort)},
    {SIP_MLNAME_CAST(sipName_setType), meth_QNetworkProxy_setType, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_setType)},
    {SIP_MLNAME_CAST(sipName_setUser), meth_QNetworkProxy_setUser, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_setUser)},
    {SIP_MLNAME_CAST(sipName_type), meth_QNetworkProxy_type, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_type)},
    {SIP_MLNAME_CAST(sipName_user), meth_QNetworkProxy_user, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkProxy_user)}
};

static sipEnumMemberDef enummembers_QNetworkProxy[] = {
    {sipName_CachingCapability, static_cast<int>(QNetworkProxy::CachingCapability), 66},
    {sipName_DefaultProxy, static_cast<int>(QNetworkProxy::DefaultProxy), 67},
    {sipName_FtpCachingProxy, static_cast<int>(QNetworkProxy::FtpCachingProxy), 67},
    {sipName_HostNameLookupCapability, static_cast<int>(QNetworkProxy::HostNameLookupCapability), 66},
    {sipName_HttpCachingProxy, static_cast<int>(QNetworkProxy::HttpCachingProxy), 67},
    {sipName_HttpProxy, static_cast<int>(QNetworkProxy::HttpProxy), 67},
    {sipName_ListeningCapability, static_cast<int>(QNetworkProxy::ListeningCapability), 66},
    {sipName_NoProxy, static_cast<int>(QNetworkProxy::NoProxy), 67},
    {sipName_Socks5Proxy, static_cast<int>(QNetworkProxy::Socks5Proxy), 67},
    {sipName_TunnelingCapability, static_cast<int>(QNetworkProxy::TunnelingCapability), 66},
    {sipName_UdpTunnelingCapability, static_cast<int>(QNetworkProxy::UdpTunnelingCapability), 66},
};

PyDoc_STRVAR(doc_QNetworkProxy, "\1QNetworkProxy()\n"
    "QNetworkProxy(QNetworkProxy.ProxyType, str hostName='', int port=0, str user='', str password='')\n"
    "QNetworkProxy(QNetworkProxy)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkProxy = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkProxy,
        {0}
    },
    {
        sipNameNr_QNetworkProxy,
        {0, 0, 1},
        16, methods_QNetworkProxy,
        11, enummembers_QNetworkProxy,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkProxy,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QNetworkProxy,
    init_type_QNetworkProxy,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkProxy,
    assign_QNetworkProxy,
    array_QNetworkProxy,
    copy_QNetworkProxy,
    release_QNetworkProxy,
    cast_QNetworkProxy,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 75 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 25513 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 75 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 25517 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static int slot_QNetworkInterface_InterfaceFlags___bool__(PyObject *);}
static int slot_QNetworkInterface_InterfaceFlags___bool__(PyObject *sipSelf)
{
    QNetworkInterface::InterfaceFlags *sipCpp = reinterpret_cast<QNetworkInterface::InterfaceFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkInterface_InterfaceFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkInterface::InterfaceFlags::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 25539 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QNetworkInterface_InterfaceFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkInterface_InterfaceFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkInterface::InterfaceFlags *sipCpp = reinterpret_cast<QNetworkInterface::InterfaceFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkInterface_InterfaceFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkInterface::InterfaceFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkInterface_InterfaceFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 361 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkInterface::InterfaceFlags::Int() != a0->operator QNetworkInterface::InterfaceFlags::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 25573 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(const_cast<QNetworkInterface::InterfaceFlags *>(a0),sipType_QNetworkInterface_InterfaceFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QNetworkInterface_InterfaceFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QNetworkInterface_InterfaceFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkInterface_InterfaceFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkInterface::InterfaceFlags *sipCpp = reinterpret_cast<QNetworkInterface::InterfaceFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkInterface_InterfaceFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkInterface::InterfaceFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkInterface_InterfaceFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 352 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkInterface::InterfaceFlags::Int() == a0->operator QNetworkInterface::InterfaceFlags::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 25613 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(const_cast<QNetworkInterface::InterfaceFlags *>(a0),sipType_QNetworkInterface_InterfaceFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QNetworkInterface_InterfaceFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QNetworkInterface_InterfaceFlags___invert__(PyObject *);}
static PyObject *slot_QNetworkInterface_InterfaceFlags___invert__(PyObject *sipSelf)
{
    QNetworkInterface::InterfaceFlags *sipCpp = reinterpret_cast<QNetworkInterface::InterfaceFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkInterface_InterfaceFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QNetworkInterface::InterfaceFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkInterface::InterfaceFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkInterface_InterfaceFlags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QNetworkInterface_InterfaceFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkInterface_InterfaceFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkInterface::InterfaceFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QNetworkInterface_InterfaceFlags, &a0, &a0State, &a1))
        {
            QNetworkInterface::InterfaceFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkInterface::InterfaceFlags((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkInterface_InterfaceFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkInterface_InterfaceFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QNetworkInterface_InterfaceFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkInterface_InterfaceFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkInterface::InterfaceFlags* a0;
        int a0State = 0;
        QNetworkInterface::InterfaceFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QNetworkInterface_InterfaceFlags, &a0, &a0State, sipType_QNetworkInterface_InterfaceFlags, &a1, &a1State))
        {
            QNetworkInterface::InterfaceFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkInterface::InterfaceFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkInterface_InterfaceFlags,a0State);
            sipReleaseType(a1,sipType_QNetworkInterface_InterfaceFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkInterface_InterfaceFlags,NULL);
        }
    }

    {
        QNetworkInterface::InterfaceFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QNetworkInterface_InterfaceFlags, &a0, &a0State, &a1))
        {
            QNetworkInterface::InterfaceFlags*sipRes = 0;

#line 346 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QNetworkInterface::InterfaceFlags(*a0 ^ a1);
#line 25722 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(a0,sipType_QNetworkInterface_InterfaceFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkInterface_InterfaceFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QNetworkInterface_InterfaceFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkInterface_InterfaceFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkInterface::InterfaceFlags* a0;
        int a0State = 0;
        QNetworkInterface::InterfaceFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QNetworkInterface_InterfaceFlags, &a0, &a0State, sipType_QNetworkInterface_InterfaceFlags, &a1, &a1State))
        {
            QNetworkInterface::InterfaceFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkInterface::InterfaceFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkInterface_InterfaceFlags,a0State);
            sipReleaseType(a1,sipType_QNetworkInterface_InterfaceFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkInterface_InterfaceFlags,NULL);
        }
    }

    {
        QNetworkInterface::InterfaceFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QNetworkInterface_InterfaceFlags, &a0, &a0State, &a1))
        {
            QNetworkInterface::InterfaceFlags*sipRes = 0;

#line 341 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QNetworkInterface::InterfaceFlags(*a0 | a1);
#line 25774 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(a0,sipType_QNetworkInterface_InterfaceFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkInterface_InterfaceFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QNetworkInterface_InterfaceFlags___int__(PyObject *);}
static PyObject *slot_QNetworkInterface_InterfaceFlags___int__(PyObject *sipSelf)
{
    QNetworkInterface::InterfaceFlags *sipCpp = reinterpret_cast<QNetworkInterface::InterfaceFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkInterface_InterfaceFlags));

    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_QNetworkInterface_InterfaceFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkInterface_InterfaceFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QNetworkInterface_InterfaceFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QNetworkInterface::InterfaceFlags *sipCpp = reinterpret_cast<QNetworkInterface::InterfaceFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkInterface_InterfaceFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QNetworkInterface::InterfaceFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkInterface_InterfaceFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QNetworkInterface::InterfaceFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkInterface_InterfaceFlags,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_QNetworkInterface_InterfaceFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkInterface_InterfaceFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QNetworkInterface_InterfaceFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QNetworkInterface::InterfaceFlags *sipCpp = reinterpret_cast<QNetworkInterface::InterfaceFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkInterface_InterfaceFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QNetworkInterface::InterfaceFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkInterface_InterfaceFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QNetworkInterface::InterfaceFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkInterface_InterfaceFlags,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_QNetworkInterface_InterfaceFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkInterface_InterfaceFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QNetworkInterface_InterfaceFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QNetworkInterface::InterfaceFlags *sipCpp = reinterpret_cast<QNetworkInterface::InterfaceFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkInterface_InterfaceFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QNetworkInterface::InterfaceFlags::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;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkInterface_InterfaceFlags(void *, const sipTypeDef *);}
static void *cast_QNetworkInterface_InterfaceFlags(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QNetworkInterface_InterfaceFlags)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkInterface_InterfaceFlags(void *, int);}
static void release_QNetworkInterface_InterfaceFlags(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QNetworkInterface::InterfaceFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QNetworkInterface_InterfaceFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_QNetworkInterface_InterfaceFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QNetworkInterface::InterfaceFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QNetworkInterface::InterfaceFlags *>(sipSrc);
}


extern "C" {static void *array_QNetworkInterface_InterfaceFlags(SIP_SSIZE_T);}
static void *array_QNetworkInterface_InterfaceFlags(SIP_SSIZE_T sipNrElem)
{
    return new QNetworkInterface::InterfaceFlags[sipNrElem];
}


extern "C" {static void *copy_QNetworkInterface_InterfaceFlags(const void *, SIP_SSIZE_T);}
static void *copy_QNetworkInterface_InterfaceFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QNetworkInterface::InterfaceFlags(reinterpret_cast<const QNetworkInterface::InterfaceFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QNetworkInterface_InterfaceFlags(sipSimpleWrapper *);}
static void dealloc_QNetworkInterface_InterfaceFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkInterface_InterfaceFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QNetworkInterface_InterfaceFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkInterface_InterfaceFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QNetworkInterface::InterfaceFlags *sipCpp = 0;

    {
        const QNetworkInterface::InterfaceFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QNetworkInterface_InterfaceFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkInterface::InterfaceFlags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QNetworkInterface::InterfaceFlags *>(a0),sipType_QNetworkInterface_InterfaceFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkInterface::InterfaceFlags(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkInterface::InterfaceFlags();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QNetworkInterface_InterfaceFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_QNetworkInterface_InterfaceFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QNetworkInterface::InterfaceFlags **sipCppPtr = reinterpret_cast<QNetworkInterface::InterfaceFlags **>(sipCppPtrV);

#line 379 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QNetworkInterface::InterfaceFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QNetworkInterface_InterfaceFlag)) ||
            sipCanConvertToType(sipPy, sipType_QNetworkInterface_InterfaceFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QNetworkInterface_InterfaceFlag)))
{
    *sipCppPtr = new QNetworkInterface::InterfaceFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QNetworkInterface::InterfaceFlags *>(sipConvertToType(sipPy, sipType_QNetworkInterface_InterfaceFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 26069 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QNetworkInterface_InterfaceFlags[] = {
    {(void *)slot_QNetworkInterface_InterfaceFlags___bool__, bool_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___ne__, ne_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___eq__, eq_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___invert__, invert_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___and__, and_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___xor__, xor_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___or__, or_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___int__, int_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___ixor__, ixor_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___ior__, ior_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QNetworkInterface_InterfaceFlags, "\1QNetworkInterface.InterfaceFlags(QNetworkInterface.InterfaceFlags)\n"
    "QNetworkInterface.InterfaceFlags(int)\n"
    "QNetworkInterface.InterfaceFlags()");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkInterface_InterfaceFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkInterface__InterfaceFlags,
        {0}
    },
    {
        sipNameNr_InterfaceFlags,
        {61, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkInterface_InterfaceFlags,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QNetworkInterface_InterfaceFlags,
    init_type_QNetworkInterface_InterfaceFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkInterface_InterfaceFlags,
    assign_QNetworkInterface_InterfaceFlags,
    array_QNetworkInterface_InterfaceFlags,
    copy_QNetworkInterface_InterfaceFlags,
    release_QNetworkInterface_InterfaceFlags,
    cast_QNetworkInterface_InterfaceFlags,
    convertTo_QNetworkInterface_InterfaceFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 75 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 26150 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 26154 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 26157 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 26160 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 26163 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 26166 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 39 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 26169 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 75 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 26172 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkInterface_isValid, "QNetworkInterface.isValid() -> bool");

extern "C" {static PyObject *meth_QNetworkInterface_isValid(PyObject *, PyObject *);}
static PyObject *meth_QNetworkInterface_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkInterface, &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_QNetworkInterface, sipName_isValid, doc_QNetworkInterface_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkInterface_name, "QNetworkInterface.name() -> str");

extern "C" {static PyObject *meth_QNetworkInterface_name(PyObject *, PyObject *);}
static PyObject *meth_QNetworkInterface_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkInterface, &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_QNetworkInterface, sipName_name, doc_QNetworkInterface_name);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkInterface_flags, "QNetworkInterface.flags() -> QNetworkInterface.InterfaceFlags");

extern "C" {static PyObject *meth_QNetworkInterface_flags(PyObject *, PyObject *);}
static PyObject *meth_QNetworkInterface_flags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkInterface, &sipCpp))
        {
            QNetworkInterface::InterfaceFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkInterface::InterfaceFlags(sipCpp->flags());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkInterface_InterfaceFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkInterface, sipName_flags, doc_QNetworkInterface_flags);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkInterface_hardwareAddress, "QNetworkInterface.hardwareAddress() -> str");

extern "C" {static PyObject *meth_QNetworkInterface_hardwareAddress(PyObject *, PyObject *);}
static PyObject *meth_QNetworkInterface_hardwareAddress(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkInterface, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->hardwareAddress());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkInterface, sipName_hardwareAddress, doc_QNetworkInterface_hardwareAddress);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkInterface_addressEntries, "QNetworkInterface.addressEntries() -> list-of-QNetworkAddressEntry");

extern "C" {static PyObject *meth_QNetworkInterface_addressEntries(PyObject *, PyObject *);}
static PyObject *meth_QNetworkInterface_addressEntries(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkInterface, &sipCpp))
        {
            QList<QNetworkAddressEntry>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QNetworkAddressEntry>(sipCpp->addressEntries());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QNetworkAddressEntry,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkInterface, sipName_addressEntries, doc_QNetworkInterface_addressEntries);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkInterface_interfaceFromName, "QNetworkInterface.interfaceFromName(str) -> QNetworkInterface");

extern "C" {static PyObject *meth_QNetworkInterface_interfaceFromName(PyObject *, PyObject *);}
static PyObject *meth_QNetworkInterface_interfaceFromName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QNetworkInterface*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkInterface(QNetworkInterface::interfaceFromName(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkInterface, sipName_interfaceFromName, doc_QNetworkInterface_interfaceFromName);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkInterface_interfaceFromIndex, "QNetworkInterface.interfaceFromIndex(int) -> QNetworkInterface");

extern "C" {static PyObject *meth_QNetworkInterface_interfaceFromIndex(PyObject *, PyObject *);}
static PyObject *meth_QNetworkInterface_interfaceFromIndex(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            QNetworkInterface*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkInterface(QNetworkInterface::interfaceFromIndex(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkInterface, sipName_interfaceFromIndex, doc_QNetworkInterface_interfaceFromIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkInterface_allInterfaces, "QNetworkInterface.allInterfaces() -> list-of-QNetworkInterface");

extern "C" {static PyObject *meth_QNetworkInterface_allInterfaces(PyObject *, PyObject *);}
static PyObject *meth_QNetworkInterface_allInterfaces(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QNetworkInterface>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QNetworkInterface>(QNetworkInterface::allInterfaces());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QNetworkInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkInterface, sipName_allInterfaces, doc_QNetworkInterface_allInterfaces);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkInterface_allAddresses, "QNetworkInterface.allAddresses() -> list-of-QHostAddress");

extern "C" {static PyObject *meth_QNetworkInterface_allAddresses(PyObject *, PyObject *);}
static PyObject *meth_QNetworkInterface_allAddresses(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QHostAddress>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QHostAddress>(QNetworkInterface::allAddresses());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QHostAddress,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkInterface, sipName_allAddresses, doc_QNetworkInterface_allAddresses);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkInterface_index, "QNetworkInterface.index() -> int");

extern "C" {static PyObject *meth_QNetworkInterface_index(PyObject *, PyObject *);}
static PyObject *meth_QNetworkInterface_index(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkInterface, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->index();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkInterface, sipName_index, doc_QNetworkInterface_index);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkInterface_humanReadableName, "QNetworkInterface.humanReadableName() -> str");

extern "C" {static PyObject *meth_QNetworkInterface_humanReadableName(PyObject *, PyObject *);}
static PyObject *meth_QNetworkInterface_humanReadableName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkInterface, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->humanReadableName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkInterface, sipName_humanReadableName, doc_QNetworkInterface_humanReadableName);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkInterface(void *, const sipTypeDef *);}
static void *cast_QNetworkInterface(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QNetworkInterface)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkInterface(void *, int);}
static void release_QNetworkInterface(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QNetworkInterface *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QNetworkInterface(void *, SIP_SSIZE_T, const void *);}
static void assign_QNetworkInterface(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QNetworkInterface *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QNetworkInterface *>(sipSrc);
}


extern "C" {static void *array_QNetworkInterface(SIP_SSIZE_T);}
static void *array_QNetworkInterface(SIP_SSIZE_T sipNrElem)
{
    return new QNetworkInterface[sipNrElem];
}


extern "C" {static void *copy_QNetworkInterface(const void *, SIP_SSIZE_T);}
static void *copy_QNetworkInterface(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QNetworkInterface(reinterpret_cast<const QNetworkInterface *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QNetworkInterface(sipSimpleWrapper *);}
static void dealloc_QNetworkInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkInterface(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QNetworkInterface(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkInterface(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QNetworkInterface *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkInterface();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QNetworkInterface* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QNetworkInterface, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkInterface(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QNetworkInterface[] = {
    {SIP_MLNAME_CAST(sipName_addressEntries), meth_QNetworkInterface_addressEntries, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkInterface_addressEntries)},
    {SIP_MLNAME_CAST(sipName_allAddresses), meth_QNetworkInterface_allAddresses, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkInterface_allAddresses)},
    {SIP_MLNAME_CAST(sipName_allInterfaces), meth_QNetworkInterface_allInterfaces, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkInterface_allInterfaces)},
    {SIP_MLNAME_CAST(sipName_flags), meth_QNetworkInterface_flags, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkInterface_flags)},
    {SIP_MLNAME_CAST(sipName_hardwareAddress), meth_QNetworkInterface_hardwareAddress, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkInterface_hardwareAddress)},
    {SIP_MLNAME_CAST(sipName_humanReadableName), meth_QNetworkInterface_humanReadableName, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkInterface_humanReadableName)},
    {SIP_MLNAME_CAST(sipName_index), meth_QNetworkInterface_index, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkInterface_index)},
    {SIP_MLNAME_CAST(sipName_interfaceFromIndex), meth_QNetworkInterface_interfaceFromIndex, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkInterface_interfaceFromIndex)},
    {SIP_MLNAME_CAST(sipName_interfaceFromName), meth_QNetworkInterface_interfaceFromName, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkInterface_interfaceFromName)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QNetworkInterface_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkInterface_isValid)},
    {SIP_MLNAME_CAST(sipName_name), meth_QNetworkInterface_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkInterface_name)}
};

static sipEnumMemberDef enummembers_QNetworkInterface[] = {
    {sipName_CanBroadcast, static_cast<int>(QNetworkInterface::CanBroadcast), 62},
    {sipName_CanMulticast, static_cast<int>(QNetworkInterface::CanMulticast), 62},
    {sipName_IsLoopBack, static_cast<int>(QNetworkInterface::IsLoopBack), 62},
    {sipName_IsPointToPoint, static_cast<int>(QNetworkInterface::IsPointToPoint), 62},
    {sipName_IsRunning, static_cast<int>(QNetworkInterface::IsRunning), 62},
    {sipName_IsUp, static_cast<int>(QNetworkInterface::IsUp), 62},
};

PyDoc_STRVAR(doc_QNetworkInterface, "\1QNetworkInterface()\n"
    "QNetworkInterface(QNetworkInterface)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkInterface,
        {0}
    },
    {
        sipNameNr_QNetworkInterface,
        {0, 0, 1},
        11, methods_QNetworkInterface,
        6, enummembers_QNetworkInterface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkInterface,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QNetworkInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkInterface,
    assign_QNetworkInterface,
    array_QNetworkInterface,
    copy_QNetworkInterface,
    release_QNetworkInterface,
    cast_QNetworkInterface,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 39 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 26662 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 26666 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkAddressEntry_ip, "QNetworkAddressEntry.ip() -> QHostAddress");

extern "C" {static PyObject *meth_QNetworkAddressEntry_ip(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAddressEntry_ip(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkAddressEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkAddressEntry, &sipCpp))
        {
            QHostAddress*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHostAddress(sipCpp->ip());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHostAddress,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAddressEntry, sipName_ip, doc_QNetworkAddressEntry_ip);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAddressEntry_setIp, "QNetworkAddressEntry.setIp(QHostAddress)");

extern "C" {static PyObject *meth_QNetworkAddressEntry_setIp(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAddressEntry_setIp(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostAddress* a0;
        int a0State = 0;
        QNetworkAddressEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkAddressEntry, &sipCpp, sipType_QHostAddress, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIp(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAddressEntry, sipName_setIp, doc_QNetworkAddressEntry_setIp);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAddressEntry_netmask, "QNetworkAddressEntry.netmask() -> QHostAddress");

extern "C" {static PyObject *meth_QNetworkAddressEntry_netmask(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAddressEntry_netmask(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkAddressEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkAddressEntry, &sipCpp))
        {
            QHostAddress*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHostAddress(sipCpp->netmask());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHostAddress,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAddressEntry, sipName_netmask, doc_QNetworkAddressEntry_netmask);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAddressEntry_setNetmask, "QNetworkAddressEntry.setNetmask(QHostAddress)");

extern "C" {static PyObject *meth_QNetworkAddressEntry_setNetmask(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAddressEntry_setNetmask(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostAddress* a0;
        int a0State = 0;
        QNetworkAddressEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkAddressEntry, &sipCpp, sipType_QHostAddress, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setNetmask(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAddressEntry, sipName_setNetmask, doc_QNetworkAddressEntry_setNetmask);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAddressEntry_broadcast, "QNetworkAddressEntry.broadcast() -> QHostAddress");

extern "C" {static PyObject *meth_QNetworkAddressEntry_broadcast(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAddressEntry_broadcast(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkAddressEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkAddressEntry, &sipCpp))
        {
            QHostAddress*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHostAddress(sipCpp->broadcast());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHostAddress,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAddressEntry, sipName_broadcast, doc_QNetworkAddressEntry_broadcast);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAddressEntry_setBroadcast, "QNetworkAddressEntry.setBroadcast(QHostAddress)");

extern "C" {static PyObject *meth_QNetworkAddressEntry_setBroadcast(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAddressEntry_setBroadcast(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostAddress* a0;
        int a0State = 0;
        QNetworkAddressEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkAddressEntry, &sipCpp, sipType_QHostAddress, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBroadcast(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAddressEntry, sipName_setBroadcast, doc_QNetworkAddressEntry_setBroadcast);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAddressEntry_prefixLength, "QNetworkAddressEntry.prefixLength() -> int");

extern "C" {static PyObject *meth_QNetworkAddressEntry_prefixLength(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAddressEntry_prefixLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkAddressEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkAddressEntry, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->prefixLength();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAddressEntry, sipName_prefixLength, doc_QNetworkAddressEntry_prefixLength);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAddressEntry_setPrefixLength, "QNetworkAddressEntry.setPrefixLength(int)");

extern "C" {static PyObject *meth_QNetworkAddressEntry_setPrefixLength(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAddressEntry_setPrefixLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QNetworkAddressEntry *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QNetworkAddressEntry, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPrefixLength(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_QNetworkAddressEntry, sipName_setPrefixLength, doc_QNetworkAddressEntry_setPrefixLength);

    return NULL;
}


extern "C" {static PyObject *slot_QNetworkAddressEntry___ne__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkAddressEntry___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkAddressEntry *sipCpp = reinterpret_cast<QNetworkAddressEntry *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkAddressEntry));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkAddressEntry* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QNetworkAddressEntry, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QNetworkAddressEntry::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QNetworkAddressEntry,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QNetworkAddressEntry___eq__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkAddressEntry___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkAddressEntry *sipCpp = reinterpret_cast<QNetworkAddressEntry *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkAddressEntry));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkAddressEntry* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QNetworkAddressEntry, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QNetworkAddressEntry::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QNetworkAddressEntry,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkAddressEntry(void *, const sipTypeDef *);}
static void *cast_QNetworkAddressEntry(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QNetworkAddressEntry)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkAddressEntry(void *, int);}
static void release_QNetworkAddressEntry(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QNetworkAddressEntry *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QNetworkAddressEntry(void *, SIP_SSIZE_T, const void *);}
static void assign_QNetworkAddressEntry(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QNetworkAddressEntry *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QNetworkAddressEntry *>(sipSrc);
}


extern "C" {static void *array_QNetworkAddressEntry(SIP_SSIZE_T);}
static void *array_QNetworkAddressEntry(SIP_SSIZE_T sipNrElem)
{
    return new QNetworkAddressEntry[sipNrElem];
}


extern "C" {static void *copy_QNetworkAddressEntry(const void *, SIP_SSIZE_T);}
static void *copy_QNetworkAddressEntry(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QNetworkAddressEntry(reinterpret_cast<const QNetworkAddressEntry *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QNetworkAddressEntry(sipSimpleWrapper *);}
static void dealloc_QNetworkAddressEntry(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkAddressEntry(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QNetworkAddressEntry(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkAddressEntry(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QNetworkAddressEntry *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkAddressEntry();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QNetworkAddressEntry* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QNetworkAddressEntry, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkAddressEntry(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QNetworkAddressEntry[] = {
    {(void *)slot_QNetworkAddressEntry___ne__, ne_slot},
    {(void *)slot_QNetworkAddressEntry___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QNetworkAddressEntry[] = {
    {SIP_MLNAME_CAST(sipName_broadcast), meth_QNetworkAddressEntry_broadcast, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAddressEntry_broadcast)},
    {SIP_MLNAME_CAST(sipName_ip), meth_QNetworkAddressEntry_ip, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAddressEntry_ip)},
    {SIP_MLNAME_CAST(sipName_netmask), meth_QNetworkAddressEntry_netmask, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAddressEntry_netmask)},
    {SIP_MLNAME_CAST(sipName_prefixLength), meth_QNetworkAddressEntry_prefixLength, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAddressEntry_prefixLength)},
    {SIP_MLNAME_CAST(sipName_setBroadcast), meth_QNetworkAddressEntry_setBroadcast, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAddressEntry_setBroadcast)},
    {SIP_MLNAME_CAST(sipName_setIp), meth_QNetworkAddressEntry_setIp, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAddressEntry_setIp)},
    {SIP_MLNAME_CAST(sipName_setNetmask), meth_QNetworkAddressEntry_setNetmask, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAddressEntry_setNetmask)},
    {SIP_MLNAME_CAST(sipName_setPrefixLength), meth_QNetworkAddressEntry_setPrefixLength, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAddressEntry_setPrefixLength)}
};

PyDoc_STRVAR(doc_QNetworkAddressEntry, "\1QNetworkAddressEntry()\n"
    "QNetworkAddressEntry(QNetworkAddressEntry)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkAddressEntry = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkAddressEntry,
        {0}
    },
    {
        sipNameNr_QNetworkAddressEntry,
        {0, 0, 1},
        8, methods_QNetworkAddressEntry,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkAddressEntry,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QNetworkAddressEntry,
    init_type_QNetworkAddressEntry,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkAddressEntry,
    assign_QNetworkAddressEntry,
    array_QNetworkAddressEntry,
    copy_QNetworkAddressEntry,
    release_QNetworkAddressEntry,
    cast_QNetworkAddressEntry,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkdiskcache.sip"
#include <qnetworkdiskcache.h>
#line 27141 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 27145 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 148 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qabstractnetworkcache.h>
#line 27148 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 27151 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 27154 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 107 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 27157 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 27160 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 27163 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 27166 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 27169 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 27172 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 27175 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 27178 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 27181 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 27184 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 27187 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 27190 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQNetworkDiskCache : public QNetworkDiskCache
{
public:
    sipQNetworkDiskCache(QObject*);
    virtual ~sipQNetworkDiskCache();

    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;
    qint64 sipProtectVirt_expire(bool);

    /*
     * 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*);
    qint64 expire();
    void clear();
    void insert(QIODevice*);
    QIODevice* prepare(const QNetworkCacheMetaData&);
    bool remove(const QUrl&);
    QIODevice* data(const QUrl&);
    void updateMetaData(const QNetworkCacheMetaData&);
    QNetworkCacheMetaData metaData(const QUrl&);
    qint64 cacheSize() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQNetworkDiskCache(const sipQNetworkDiskCache &);
    sipQNetworkDiskCache &operator = (const sipQNetworkDiskCache &);

    char sipPyMethods[16];
};

sipQNetworkDiskCache::sipQNetworkDiskCache(QObject*a0): QNetworkDiskCache(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQNetworkDiskCache::~sipQNetworkDiskCache()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQNetworkDiskCache::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QNetworkDiskCache);
}

int sipQNetworkDiskCache::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QNetworkDiskCache::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QNetworkDiskCache,_c,_id,_a);

    return _id;
}

void *sipQNetworkDiskCache::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QNetworkDiskCache, _clname)) ? this : QNetworkDiskCache::qt_metacast(_clname);
}

void sipQNetworkDiskCache::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QNetworkDiskCache::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkDiskCache::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QNetworkDiskCache::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkDiskCache::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QNetworkDiskCache::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkDiskCache::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QNetworkDiskCache::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkDiskCache::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QNetworkDiskCache::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQNetworkDiskCache::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QNetworkDiskCache::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQNetworkDiskCache::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QNetworkDiskCache::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQNetworkDiskCache::expire()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_expire);

    if (!sipMeth)
        return QNetworkDiskCache::expire();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQNetworkDiskCache::clear()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_clear);

    if (!sipMeth)
    {
        QNetworkDiskCache::clear();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQNetworkDiskCache::insert(QIODevice*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_insert);

    if (!sipMeth)
    {
        QNetworkDiskCache::insert(a0);
        return;
    }

    extern void sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice*);

    sipVH_QtNetwork_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QIODevice* sipQNetworkDiskCache::prepare(const QNetworkCacheMetaData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_prepare);

    if (!sipMeth)
        return QNetworkDiskCache::prepare(a0);

    extern QIODevice* sipVH_QtNetwork_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QNetworkCacheMetaData&);

    return sipVH_QtNetwork_6(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQNetworkDiskCache::remove(const QUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_remove);

    if (!sipMeth)
        return QNetworkDiskCache::remove(a0);

    extern bool sipVH_QtNetwork_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QUrl&);

    return sipVH_QtNetwork_7(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QIODevice* sipQNetworkDiskCache::data(const QUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_data);

    if (!sipMeth)
        return QNetworkDiskCache::data(a0);

    extern QIODevice* sipVH_QtNetwork_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QUrl&);

    return sipVH_QtNetwork_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkDiskCache::updateMetaData(const QNetworkCacheMetaData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_updateMetaData);

    if (!sipMeth)
    {
        QNetworkDiskCache::updateMetaData(a0);
        return;
    }

    extern void sipVH_QtNetwork_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QNetworkCacheMetaData&);

    sipVH_QtNetwork_9(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QNetworkCacheMetaData sipQNetworkDiskCache::metaData(const QUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_metaData);

    if (!sipMeth)
        return QNetworkDiskCache::metaData(a0);

    extern QNetworkCacheMetaData sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QUrl&);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQNetworkDiskCache::cacheSize() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,NULL,sipName_cacheSize);

    if (!sipMeth)
        return QNetworkDiskCache::cacheSize();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

QObject* sipQNetworkDiskCache::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQNetworkDiskCache::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQNetworkDiskCache::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQNetworkDiskCache::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQNetworkDiskCache::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQNetworkDiskCache::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQNetworkDiskCache::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQNetworkDiskCache::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

qint64 sipQNetworkDiskCache::sipProtectVirt_expire(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? QNetworkDiskCache::expire() : expire());
}


PyDoc_STRVAR(doc_QNetworkDiskCache_sender, "QNetworkDiskCache.sender() -> QObject");

extern "C" {static PyObject *meth_QNetworkDiskCache_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQNetworkDiskCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QNetworkDiskCache, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 27626 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkDiskCache, sipName_sender, doc_QNetworkDiskCache_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_receivers, "QNetworkDiskCache.receivers(SIGNAL()) -> int");

extern "C" {static PyObject *meth_QNetworkDiskCache_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        char* a0;
        const sipQNetworkDiskCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkDiskCache, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 27671 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkDiskCache, sipName_receivers, doc_QNetworkDiskCache_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_timerEvent, "QNetworkDiskCache.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QNetworkDiskCache_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQNetworkDiskCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkDiskCache, &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_QNetworkDiskCache, sipName_timerEvent, doc_QNetworkDiskCache_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_childEvent, "QNetworkDiskCache.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QNetworkDiskCache_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQNetworkDiskCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkDiskCache, &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_QNetworkDiskCache, sipName_childEvent, doc_QNetworkDiskCache_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_customEvent, "QNetworkDiskCache.customEvent(QEvent)");

extern "C" {static PyObject *meth_QNetworkDiskCache_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQNetworkDiskCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkDiskCache, &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_QNetworkDiskCache, sipName_customEvent, doc_QNetworkDiskCache_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_connectNotify, "QNetworkDiskCache.connectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QNetworkDiskCache_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQNetworkDiskCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkDiskCache, &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_QNetworkDiskCache, sipName_connectNotify, doc_QNetworkDiskCache_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_disconnectNotify, "QNetworkDiskCache.disconnectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QNetworkDiskCache_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQNetworkDiskCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkDiskCache, &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_QNetworkDiskCache, sipName_disconnectNotify, doc_QNetworkDiskCache_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_senderSignalIndex, "QNetworkDiskCache.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QNetworkDiskCache_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQNetworkDiskCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QNetworkDiskCache, &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_QNetworkDiskCache, sipName_senderSignalIndex, doc_QNetworkDiskCache_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_cacheDirectory, "QNetworkDiskCache.cacheDirectory() -> str");

extern "C" {static PyObject *meth_QNetworkDiskCache_cacheDirectory(PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_cacheDirectory(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkDiskCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkDiskCache, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->cacheDirectory());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkDiskCache, sipName_cacheDirectory, doc_QNetworkDiskCache_cacheDirectory);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_setCacheDirectory, "QNetworkDiskCache.setCacheDirectory(str)");

extern "C" {static PyObject *meth_QNetworkDiskCache_setCacheDirectory(PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_setCacheDirectory(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QNetworkDiskCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkDiskCache, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCacheDirectory(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkDiskCache, sipName_setCacheDirectory, doc_QNetworkDiskCache_setCacheDirectory);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_maximumCacheSize, "QNetworkDiskCache.maximumCacheSize() -> int");

extern "C" {static PyObject *meth_QNetworkDiskCache_maximumCacheSize(PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_maximumCacheSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkDiskCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkDiskCache, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->maximumCacheSize();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkDiskCache, sipName_maximumCacheSize, doc_QNetworkDiskCache_maximumCacheSize);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_setMaximumCacheSize, "QNetworkDiskCache.setMaximumCacheSize(int)");

extern "C" {static PyObject *meth_QNetworkDiskCache_setMaximumCacheSize(PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_setMaximumCacheSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qint64 a0;
        QNetworkDiskCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QNetworkDiskCache, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMaximumCacheSize(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_QNetworkDiskCache, sipName_setMaximumCacheSize, doc_QNetworkDiskCache_setMaximumCacheSize);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_cacheSize, "QNetworkDiskCache.cacheSize() -> int");

extern "C" {static PyObject *meth_QNetworkDiskCache_cacheSize(PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_cacheSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QNetworkDiskCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkDiskCache, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QNetworkDiskCache::cacheSize() : sipCpp->cacheSize());
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkDiskCache, sipName_cacheSize, doc_QNetworkDiskCache_cacheSize);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_metaData, "QNetworkDiskCache.metaData(QUrl) -> QNetworkCacheMetaData");

extern "C" {static PyObject *meth_QNetworkDiskCache_metaData(PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_metaData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QUrl* a0;
        QNetworkDiskCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkDiskCache, &sipCpp, sipType_QUrl, &a0))
        {
            QNetworkCacheMetaData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkCacheMetaData((sipSelfWasArg ? sipCpp->QNetworkDiskCache::metaData(*a0) : sipCpp->metaData(*a0)));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkCacheMetaData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkDiskCache, sipName_metaData, doc_QNetworkDiskCache_metaData);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_updateMetaData, "QNetworkDiskCache.updateMetaData(QNetworkCacheMetaData)");

extern "C" {static PyObject *meth_QNetworkDiskCache_updateMetaData(PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_updateMetaData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QNetworkCacheMetaData* a0;
        QNetworkDiskCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkDiskCache, &sipCpp, sipType_QNetworkCacheMetaData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QNetworkDiskCache::updateMetaData(*a0) : sipCpp->updateMetaData(*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_QNetworkDiskCache, sipName_updateMetaData, doc_QNetworkDiskCache_updateMetaData);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_data, "QNetworkDiskCache.data(QUrl) -> QIODevice");

extern "C" {static PyObject *meth_QNetworkDiskCache_data(PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QUrl* a0;
        QNetworkDiskCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkDiskCache, &sipCpp, sipType_QUrl, &a0))
        {
            QIODevice*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QNetworkDiskCache::data(*a0) : sipCpp->data(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QIODevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkDiskCache, sipName_data, doc_QNetworkDiskCache_data);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_remove, "QNetworkDiskCache.remove(QUrl) -> bool");

extern "C" {static PyObject *meth_QNetworkDiskCache_remove(PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_remove(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QUrl* a0;
        QNetworkDiskCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkDiskCache, &sipCpp, sipType_QUrl, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QNetworkDiskCache::remove(*a0) : sipCpp->remove(*a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkDiskCache, sipName_remove, doc_QNetworkDiskCache_remove);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_prepare, "QNetworkDiskCache.prepare(QNetworkCacheMetaData) -> QIODevice");

extern "C" {static PyObject *meth_QNetworkDiskCache_prepare(PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_prepare(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QNetworkCacheMetaData* a0;
        QNetworkDiskCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkDiskCache, &sipCpp, sipType_QNetworkCacheMetaData, &a0))
        {
            QIODevice*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QNetworkDiskCache::prepare(*a0) : sipCpp->prepare(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QIODevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkDiskCache, sipName_prepare, doc_QNetworkDiskCache_prepare);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_insert, "QNetworkDiskCache.insert(QIODevice)");

extern "C" {static PyObject *meth_QNetworkDiskCache_insert(PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_insert(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QIODevice* a0;
        QNetworkDiskCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QNetworkDiskCache, &sipCpp, sipType_QIODevice, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QNetworkDiskCache::insert(a0) : sipCpp->insert(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_QNetworkDiskCache, sipName_insert, doc_QNetworkDiskCache_insert);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_fileMetaData, "QNetworkDiskCache.fileMetaData(str) -> QNetworkCacheMetaData");

extern "C" {static PyObject *meth_QNetworkDiskCache_fileMetaData(PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_fileMetaData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QNetworkDiskCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkDiskCache, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QNetworkCacheMetaData*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkCacheMetaData(sipCpp->fileMetaData(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkCacheMetaData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkDiskCache, sipName_fileMetaData, doc_QNetworkDiskCache_fileMetaData);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_clear, "QNetworkDiskCache.clear()");

extern "C" {static PyObject *meth_QNetworkDiskCache_clear(PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QNetworkDiskCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkDiskCache, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QNetworkDiskCache::clear() : sipCpp->clear());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkDiskCache, sipName_clear, doc_QNetworkDiskCache_clear);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkDiskCache_expire, "QNetworkDiskCache.expire() -> int");

extern "C" {static PyObject *meth_QNetworkDiskCache_expire(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_expire(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipQNetworkDiskCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QNetworkDiskCache, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_expire(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkDiskCache, sipName_expire, doc_QNetworkDiskCache_expire);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkDiskCache(void *, const sipTypeDef *);}
static void *cast_QNetworkDiskCache(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QNetworkDiskCache)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QAbstractNetworkCache)->ctd_cast((QAbstractNetworkCache *)(QNetworkDiskCache *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkDiskCache(void *, int);}
static void release_QNetworkDiskCache(void *sipCppV,int)
{
    QNetworkDiskCache *sipCpp = reinterpret_cast<QNetworkDiskCache *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QNetworkDiskCache(sipSimpleWrapper *);}
static void dealloc_QNetworkDiskCache(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQNetworkDiskCache *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkDiskCache(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QNetworkDiskCache(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkDiskCache(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQNetworkDiskCache *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQNetworkDiskCache(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QNetworkDiskCache[] = {{0, 255, 1}};


static PyMethodDef methods_QNetworkDiskCache[] = {
    {SIP_MLNAME_CAST(sipName_cacheDirectory), meth_QNetworkDiskCache_cacheDirectory, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkDiskCache_cacheDirectory)},
    {SIP_MLNAME_CAST(sipName_cacheSize), meth_QNetworkDiskCache_cacheSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkDiskCache_cacheSize)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QNetworkDiskCache_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_QNetworkDiskCache_clear, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkDiskCache_clear)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QNetworkDiskCache_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QNetworkDiskCache_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_QNetworkDiskCache_data, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkDiskCache_data)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QNetworkDiskCache_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_expire), (PyCFunction)meth_QNetworkDiskCache_expire, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkDiskCache_expire)},
    {SIP_MLNAME_CAST(sipName_fileMetaData), meth_QNetworkDiskCache_fileMetaData, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkDiskCache_fileMetaData)},
    {SIP_MLNAME_CAST(sipName_insert), meth_QNetworkDiskCache_insert, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkDiskCache_insert)},
    {SIP_MLNAME_CAST(sipName_maximumCacheSize), meth_QNetworkDiskCache_maximumCacheSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkDiskCache_maximumCacheSize)},
    {SIP_MLNAME_CAST(sipName_metaData), meth_QNetworkDiskCache_metaData, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkDiskCache_metaData)},
    {SIP_MLNAME_CAST(sipName_prepare), meth_QNetworkDiskCache_prepare, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkDiskCache_prepare)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QNetworkDiskCache_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_remove), meth_QNetworkDiskCache_remove, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkDiskCache_remove)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QNetworkDiskCache_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QNetworkDiskCache_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setCacheDirectory), meth_QNetworkDiskCache_setCacheDirectory, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkDiskCache_setCacheDirectory)},
    {SIP_MLNAME_CAST(sipName_setMaximumCacheSize), meth_QNetworkDiskCache_setMaximumCacheSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkDiskCache_setMaximumCacheSize)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QNetworkDiskCache_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMetaData), meth_QNetworkDiskCache_updateMetaData, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkDiskCache_updateMetaData)}
};

PyDoc_STRVAR(doc_QNetworkDiskCache, "\1QNetworkDiskCache(QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkDiskCache = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QNetworkDiskCache,
        {0}
    },
    {
        sipNameNr_QNetworkDiskCache,
        {0, 0, 1},
        22, methods_QNetworkDiskCache,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkDiskCache,
    -1,
    -1,
    supers_QNetworkDiskCache,
    0,
    init_type_QNetworkDiskCache,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkDiskCache,
    0,
    0,
    0,
    release_QNetworkDiskCache,
    cast_QNetworkDiskCache,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QNetworkDiskCache::staticMetaObject,
    0,
    0
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkcookiejar.sip"
#include <qnetworkcookiejar.h>
#line 28448 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 28452 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 28455 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkcookie.sip"
#include <qnetworkcookie.h>
#line 28458 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 107 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 28461 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28464 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28467 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28470 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 28473 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 28476 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 28479 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 28482 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 28485 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 28488 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 28491 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 28494 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 28497 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQNetworkCookieJar : public QNetworkCookieJar
{
public:
    sipQNetworkCookieJar(QObject*);
    virtual ~sipQNetworkCookieJar();

    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;
    void sipProtect_setAllCookies(const QList<QNetworkCookie>&);
    QList<QNetworkCookie> sipProtect_allCookies() 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*);
    bool setCookiesFromUrl(const QList<QNetworkCookie>&,const QUrl&);
    QList<QNetworkCookie> cookiesForUrl(const QUrl&) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQNetworkCookieJar(const sipQNetworkCookieJar &);
    sipQNetworkCookieJar &operator = (const sipQNetworkCookieJar &);

    char sipPyMethods[9];
};

sipQNetworkCookieJar::sipQNetworkCookieJar(QObject*a0): QNetworkCookieJar(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQNetworkCookieJar::~sipQNetworkCookieJar()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQNetworkCookieJar::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QNetworkCookieJar);
}

int sipQNetworkCookieJar::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QNetworkCookieJar::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QNetworkCookieJar,_c,_id,_a);

    return _id;
}

void *sipQNetworkCookieJar::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QNetworkCookieJar, _clname)) ? this : QNetworkCookieJar::qt_metacast(_clname);
}

void sipQNetworkCookieJar::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QNetworkCookieJar::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkCookieJar::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QNetworkCookieJar::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkCookieJar::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QNetworkCookieJar::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkCookieJar::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QNetworkCookieJar::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkCookieJar::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QNetworkCookieJar::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQNetworkCookieJar::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QNetworkCookieJar::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQNetworkCookieJar::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QNetworkCookieJar::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQNetworkCookieJar::setCookiesFromUrl(const QList<QNetworkCookie>& a0,const QUrl& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_setCookiesFromUrl);

    if (!sipMeth)
        return QNetworkCookieJar::setCookiesFromUrl(a0,a1);

    extern bool sipVH_QtNetwork_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QList<QNetworkCookie>&,const QUrl&);

    return sipVH_QtNetwork_11(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QList<QNetworkCookie> sipQNetworkCookieJar::cookiesForUrl(const QUrl& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_cookiesForUrl);

    if (!sipMeth)
        return QNetworkCookieJar::cookiesForUrl(a0);

    extern QList<QNetworkCookie> sipVH_QtNetwork_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QUrl&);

    return sipVH_QtNetwork_12(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QObject* sipQNetworkCookieJar::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQNetworkCookieJar::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQNetworkCookieJar::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQNetworkCookieJar::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQNetworkCookieJar::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQNetworkCookieJar::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQNetworkCookieJar::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQNetworkCookieJar::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

void sipQNetworkCookieJar::sipProtect_setAllCookies(const QList<QNetworkCookie>& a0)
{
    QNetworkCookieJar::setAllCookies(a0);
}

QList<QNetworkCookie> sipQNetworkCookieJar::sipProtect_allCookies() const
{
    return QNetworkCookieJar::allCookies();
}


PyDoc_STRVAR(doc_QNetworkCookieJar_sender, "QNetworkCookieJar.sender() -> QObject");

extern "C" {static PyObject *meth_QNetworkCookieJar_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookieJar_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQNetworkCookieJar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QNetworkCookieJar, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 28818 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookieJar, sipName_sender, doc_QNetworkCookieJar_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookieJar_receivers, "QNetworkCookieJar.receivers(SIGNAL()) -> int");

extern "C" {static PyObject *meth_QNetworkCookieJar_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookieJar_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        char* a0;
        const sipQNetworkCookieJar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkCookieJar, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 28863 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookieJar, sipName_receivers, doc_QNetworkCookieJar_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookieJar_timerEvent, "QNetworkCookieJar.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QNetworkCookieJar_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookieJar_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQNetworkCookieJar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkCookieJar, &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_QNetworkCookieJar, sipName_timerEvent, doc_QNetworkCookieJar_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookieJar_childEvent, "QNetworkCookieJar.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QNetworkCookieJar_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookieJar_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQNetworkCookieJar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkCookieJar, &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_QNetworkCookieJar, sipName_childEvent, doc_QNetworkCookieJar_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookieJar_customEvent, "QNetworkCookieJar.customEvent(QEvent)");

extern "C" {static PyObject *meth_QNetworkCookieJar_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookieJar_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQNetworkCookieJar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkCookieJar, &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_QNetworkCookieJar, sipName_customEvent, doc_QNetworkCookieJar_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookieJar_connectNotify, "QNetworkCookieJar.connectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QNetworkCookieJar_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookieJar_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQNetworkCookieJar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkCookieJar, &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_QNetworkCookieJar, sipName_connectNotify, doc_QNetworkCookieJar_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookieJar_disconnectNotify, "QNetworkCookieJar.disconnectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QNetworkCookieJar_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookieJar_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQNetworkCookieJar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkCookieJar, &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_QNetworkCookieJar, sipName_disconnectNotify, doc_QNetworkCookieJar_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookieJar_senderSignalIndex, "QNetworkCookieJar.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QNetworkCookieJar_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookieJar_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQNetworkCookieJar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QNetworkCookieJar, &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_QNetworkCookieJar, sipName_senderSignalIndex, doc_QNetworkCookieJar_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookieJar_cookiesForUrl, "QNetworkCookieJar.cookiesForUrl(QUrl) -> list-of-QNetworkCookie");

extern "C" {static PyObject *meth_QNetworkCookieJar_cookiesForUrl(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookieJar_cookiesForUrl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QUrl* a0;
        const QNetworkCookieJar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkCookieJar, &sipCpp, sipType_QUrl, &a0))
        {
            QList<QNetworkCookie>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QNetworkCookie>((sipSelfWasArg ? sipCpp->QNetworkCookieJar::cookiesForUrl(*a0) : sipCpp->cookiesForUrl(*a0)));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QNetworkCookie,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookieJar, sipName_cookiesForUrl, doc_QNetworkCookieJar_cookiesForUrl);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookieJar_setCookiesFromUrl, "QNetworkCookieJar.setCookiesFromUrl(list-of-QNetworkCookie, QUrl) -> bool");

extern "C" {static PyObject *meth_QNetworkCookieJar_setCookiesFromUrl(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookieJar_setCookiesFromUrl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QList<QNetworkCookie>* a0;
        int a0State = 0;
        const QUrl* a1;
        QNetworkCookieJar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_QNetworkCookieJar, &sipCpp, sipType_QList_0100QNetworkCookie,&a0, &a0State, sipType_QUrl, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QNetworkCookieJar::setCookiesFromUrl(*a0,*a1) : sipCpp->setCookiesFromUrl(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QNetworkCookie> *>(a0),sipType_QList_0100QNetworkCookie,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookieJar, sipName_setCookiesFromUrl, doc_QNetworkCookieJar_setCookiesFromUrl);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookieJar_setAllCookies, "QNetworkCookieJar.setAllCookies(list-of-QNetworkCookie)");

extern "C" {static PyObject *meth_QNetworkCookieJar_setAllCookies(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookieJar_setAllCookies(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<QNetworkCookie>* a0;
        int a0State = 0;
        sipQNetworkCookieJar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QNetworkCookieJar, &sipCpp, sipType_QList_0100QNetworkCookie,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setAllCookies(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QNetworkCookie> *>(a0),sipType_QList_0100QNetworkCookie,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookieJar, sipName_setAllCookies, doc_QNetworkCookieJar_setAllCookies);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookieJar_allCookies, "QNetworkCookieJar.allCookies() -> list-of-QNetworkCookie");

extern "C" {static PyObject *meth_QNetworkCookieJar_allCookies(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookieJar_allCookies(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQNetworkCookieJar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QNetworkCookieJar, &sipCpp))
        {
            QList<QNetworkCookie>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QNetworkCookie>(sipCpp->sipProtect_allCookies());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QNetworkCookie,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookieJar, sipName_allCookies, doc_QNetworkCookieJar_allCookies);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkCookieJar(void *, const sipTypeDef *);}
static void *cast_QNetworkCookieJar(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QNetworkCookieJar)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QNetworkCookieJar *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkCookieJar(void *, int);}
static void release_QNetworkCookieJar(void *sipCppV,int)
{
    QNetworkCookieJar *sipCpp = reinterpret_cast<QNetworkCookieJar *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QNetworkCookieJar(sipSimpleWrapper *);}
static void dealloc_QNetworkCookieJar(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQNetworkCookieJar *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkCookieJar(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QNetworkCookieJar(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkCookieJar(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQNetworkCookieJar *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQNetworkCookieJar(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QNetworkCookieJar[] = {{141, 0, 1}};


static PyMethodDef methods_QNetworkCookieJar[] = {
    {SIP_MLNAME_CAST(sipName_allCookies), (PyCFunction)meth_QNetworkCookieJar_allCookies, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkCookieJar_allCookies)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QNetworkCookieJar_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QNetworkCookieJar_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_cookiesForUrl), meth_QNetworkCookieJar_cookiesForUrl, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookieJar_cookiesForUrl)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QNetworkCookieJar_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QNetworkCookieJar_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QNetworkCookieJar_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QNetworkCookieJar_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QNetworkCookieJar_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setAllCookies), (PyCFunction)meth_QNetworkCookieJar_setAllCookies, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkCookieJar_setAllCookies)},
    {SIP_MLNAME_CAST(sipName_setCookiesFromUrl), meth_QNetworkCookieJar_setCookiesFromUrl, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookieJar_setCookiesFromUrl)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QNetworkCookieJar_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

PyDoc_STRVAR(doc_QNetworkCookieJar, "\1QNetworkCookieJar(QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkCookieJar = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QNetworkCookieJar,
        {0}
    },
    {
        sipNameNr_QNetworkCookieJar,
        {0, 0, 1},
        12, methods_QNetworkCookieJar,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkCookieJar,
    -1,
    -1,
    supers_QNetworkCookieJar,
    0,
    init_type_QNetworkCookieJar,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkCookieJar,
    0,
    0,
    0,
    release_QNetworkCookieJar,
    cast_QNetworkCookieJar,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QNetworkCookieJar::staticMetaObject,
    0,
    0
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkcookie.sip"
#include <qnetworkcookie.h>
#line 29332 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 29336 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 29339 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 29342 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 406 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 29345 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkCookie_isSecure, "QNetworkCookie.isSecure() -> bool");

extern "C" {static PyObject *meth_QNetworkCookie_isSecure(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_isSecure(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCookie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkCookie, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSecure();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookie, sipName_isSecure, doc_QNetworkCookie_isSecure);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_setSecure, "QNetworkCookie.setSecure(bool)");

extern "C" {static PyObject *meth_QNetworkCookie_setSecure(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_setSecure(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QNetworkCookie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QNetworkCookie, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSecure(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_QNetworkCookie, sipName_setSecure, doc_QNetworkCookie_setSecure);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_isSessionCookie, "QNetworkCookie.isSessionCookie() -> bool");

extern "C" {static PyObject *meth_QNetworkCookie_isSessionCookie(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_isSessionCookie(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCookie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkCookie, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSessionCookie();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookie, sipName_isSessionCookie, doc_QNetworkCookie_isSessionCookie);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_expirationDate, "QNetworkCookie.expirationDate() -> QDateTime");

extern "C" {static PyObject *meth_QNetworkCookie_expirationDate(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_expirationDate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCookie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkCookie, &sipCpp))
        {
            QDateTime*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->expirationDate());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookie, sipName_expirationDate, doc_QNetworkCookie_expirationDate);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_setExpirationDate, "QNetworkCookie.setExpirationDate(QDateTime)");

extern "C" {static PyObject *meth_QNetworkCookie_setExpirationDate(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_setExpirationDate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDateTime* a0;
        int a0State = 0;
        QNetworkCookie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkCookie, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setExpirationDate(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookie, sipName_setExpirationDate, doc_QNetworkCookie_setExpirationDate);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_domain, "QNetworkCookie.domain() -> str");

extern "C" {static PyObject *meth_QNetworkCookie_domain(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_domain(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCookie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkCookie, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->domain());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookie, sipName_domain, doc_QNetworkCookie_domain);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_setDomain, "QNetworkCookie.setDomain(str)");

extern "C" {static PyObject *meth_QNetworkCookie_setDomain(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_setDomain(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QNetworkCookie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkCookie, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDomain(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookie, sipName_setDomain, doc_QNetworkCookie_setDomain);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_path, "QNetworkCookie.path() -> str");

extern "C" {static PyObject *meth_QNetworkCookie_path(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_path(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCookie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkCookie, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->path());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookie, sipName_path, doc_QNetworkCookie_path);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_setPath, "QNetworkCookie.setPath(str)");

extern "C" {static PyObject *meth_QNetworkCookie_setPath(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_setPath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QNetworkCookie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkCookie, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPath(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookie, sipName_setPath, doc_QNetworkCookie_setPath);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_name, "QNetworkCookie.name() -> QByteArray");

extern "C" {static PyObject *meth_QNetworkCookie_name(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCookie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkCookie, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->name());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookie, sipName_name, doc_QNetworkCookie_name);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_setName, "QNetworkCookie.setName(QByteArray)");

extern "C" {static PyObject *meth_QNetworkCookie_setName(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_setName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        QNetworkCookie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkCookie, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookie, sipName_setName, doc_QNetworkCookie_setName);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_value, "QNetworkCookie.value() -> QByteArray");

extern "C" {static PyObject *meth_QNetworkCookie_value(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_value(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCookie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkCookie, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->value());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookie, sipName_value, doc_QNetworkCookie_value);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_setValue, "QNetworkCookie.setValue(QByteArray)");

extern "C" {static PyObject *meth_QNetworkCookie_setValue(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_setValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        QNetworkCookie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkCookie, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setValue(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookie, sipName_setValue, doc_QNetworkCookie_setValue);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_toRawForm, "QNetworkCookie.toRawForm(QNetworkCookie.RawForm form=QNetworkCookie.Full) -> QByteArray");

extern "C" {static PyObject *meth_QNetworkCookie_toRawForm(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_toRawForm(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkCookie::RawForm a0 = QNetworkCookie::Full;
        const QNetworkCookie *sipCpp;

        static const char *sipKwdList[] = {
            sipName_form,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|E", &sipSelf, sipType_QNetworkCookie, &sipCpp, sipType_QNetworkCookie_RawForm, &a0))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->toRawForm(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookie, sipName_toRawForm, doc_QNetworkCookie_toRawForm);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_parseCookies, "QNetworkCookie.parseCookies(QByteArray) -> list-of-QNetworkCookie");

extern "C" {static PyObject *meth_QNetworkCookie_parseCookies(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_parseCookies(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QByteArray, &a0, &a0State))
        {
            QList<QNetworkCookie>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QNetworkCookie>(QNetworkCookie::parseCookies(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromNewType(sipRes,sipType_QList_0100QNetworkCookie,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookie, sipName_parseCookies, doc_QNetworkCookie_parseCookies);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_isHttpOnly, "QNetworkCookie.isHttpOnly() -> bool");

extern "C" {static PyObject *meth_QNetworkCookie_isHttpOnly(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_isHttpOnly(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCookie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkCookie, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isHttpOnly();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCookie, sipName_isHttpOnly, doc_QNetworkCookie_isHttpOnly);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCookie_setHttpOnly, "QNetworkCookie.setHttpOnly(bool)");

extern "C" {static PyObject *meth_QNetworkCookie_setHttpOnly(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCookie_setHttpOnly(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QNetworkCookie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QNetworkCookie, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHttpOnly(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_QNetworkCookie, sipName_setHttpOnly, doc_QNetworkCookie_setHttpOnly);

    return NULL;
}


extern "C" {static PyObject *slot_QNetworkCookie___ne__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkCookie___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkCookie *sipCpp = reinterpret_cast<QNetworkCookie *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkCookie));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkCookie* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QNetworkCookie, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QNetworkCookie::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QNetworkCookie,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QNetworkCookie___eq__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkCookie___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkCookie *sipCpp = reinterpret_cast<QNetworkCookie *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkCookie));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkCookie* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QNetworkCookie, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QNetworkCookie::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QNetworkCookie,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkCookie(void *, const sipTypeDef *);}
static void *cast_QNetworkCookie(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QNetworkCookie)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkCookie(void *, int);}
static void release_QNetworkCookie(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QNetworkCookie *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QNetworkCookie(void *, SIP_SSIZE_T, const void *);}
static void assign_QNetworkCookie(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QNetworkCookie *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QNetworkCookie *>(sipSrc);
}


extern "C" {static void *array_QNetworkCookie(SIP_SSIZE_T);}
static void *array_QNetworkCookie(SIP_SSIZE_T sipNrElem)
{
    return new QNetworkCookie[sipNrElem];
}


extern "C" {static void *copy_QNetworkCookie(const void *, SIP_SSIZE_T);}
static void *copy_QNetworkCookie(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QNetworkCookie(reinterpret_cast<const QNetworkCookie *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QNetworkCookie(sipSimpleWrapper *);}
static void dealloc_QNetworkCookie(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkCookie(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QNetworkCookie(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkCookie(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QNetworkCookie *sipCpp = 0;

    {
        const QByteArray& a0def = QByteArray();
        const QByteArray* a0 = &a0def;
        int a0State = 0;
        const QByteArray& a1def = QByteArray();
        const QByteArray* a1 = &a1def;
        int a1State = 0;

        static const char *sipKwdList[] = {
            sipName_name,
            sipName_value,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|J1J1", sipType_QByteArray, &a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkCookie(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            return sipCpp;
        }
    }

    {
        const QNetworkCookie* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QNetworkCookie, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkCookie(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QNetworkCookie[] = {
    {(void *)slot_QNetworkCookie___ne__, ne_slot},
    {(void *)slot_QNetworkCookie___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QNetworkCookie[] = {
    {SIP_MLNAME_CAST(sipName_domain), meth_QNetworkCookie_domain, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_domain)},
    {SIP_MLNAME_CAST(sipName_expirationDate), meth_QNetworkCookie_expirationDate, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_expirationDate)},
    {SIP_MLNAME_CAST(sipName_isHttpOnly), meth_QNetworkCookie_isHttpOnly, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_isHttpOnly)},
    {SIP_MLNAME_CAST(sipName_isSecure), meth_QNetworkCookie_isSecure, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_isSecure)},
    {SIP_MLNAME_CAST(sipName_isSessionCookie), meth_QNetworkCookie_isSessionCookie, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_isSessionCookie)},
    {SIP_MLNAME_CAST(sipName_name), meth_QNetworkCookie_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_name)},
    {SIP_MLNAME_CAST(sipName_parseCookies), meth_QNetworkCookie_parseCookies, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_parseCookies)},
    {SIP_MLNAME_CAST(sipName_path), meth_QNetworkCookie_path, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_path)},
    {SIP_MLNAME_CAST(sipName_setDomain), meth_QNetworkCookie_setDomain, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_setDomain)},
    {SIP_MLNAME_CAST(sipName_setExpirationDate), meth_QNetworkCookie_setExpirationDate, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_setExpirationDate)},
    {SIP_MLNAME_CAST(sipName_setHttpOnly), meth_QNetworkCookie_setHttpOnly, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_setHttpOnly)},
    {SIP_MLNAME_CAST(sipName_setName), meth_QNetworkCookie_setName, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_setName)},
    {SIP_MLNAME_CAST(sipName_setPath), meth_QNetworkCookie_setPath, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_setPath)},
    {SIP_MLNAME_CAST(sipName_setSecure), meth_QNetworkCookie_setSecure, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_setSecure)},
    {SIP_MLNAME_CAST(sipName_setValue), meth_QNetworkCookie_setValue, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_setValue)},
    {SIP_MLNAME_CAST(sipName_toRawForm), (PyCFunction)meth_QNetworkCookie_toRawForm, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkCookie_toRawForm)},
    {SIP_MLNAME_CAST(sipName_value), meth_QNetworkCookie_value, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCookie_value)}
};

static sipEnumMemberDef enummembers_QNetworkCookie[] = {
    {sipName_Full, static_cast<int>(QNetworkCookie::Full), 58},
    {sipName_NameAndValueOnly, static_cast<int>(QNetworkCookie::NameAndValueOnly), 58},
};

PyDoc_STRVAR(doc_QNetworkCookie, "\1QNetworkCookie(QByteArray name=QByteArray(), QByteArray value=QByteArray())\n"
    "QNetworkCookie(QNetworkCookie)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkCookie = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkCookie,
        {0}
    },
    {
        sipNameNr_QNetworkCookie,
        {0, 0, 1},
        17, methods_QNetworkCookie,
        2, enummembers_QNetworkCookie,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkCookie,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QNetworkCookie,
    init_type_QNetworkCookie,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkCookie,
    assign_QNetworkCookie,
    array_QNetworkCookie,
    copy_QNetworkCookie,
    release_QNetworkCookie,
    cast_QNetworkCookie,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 30120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 30124 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static int slot_QNetworkConfiguration_StateFlags___bool__(PyObject *);}
static int slot_QNetworkConfiguration_StateFlags___bool__(PyObject *sipSelf)
{
    QNetworkConfiguration::StateFlags *sipCpp = reinterpret_cast<QNetworkConfiguration::StateFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfiguration_StateFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkConfiguration::StateFlags::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 30146 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QNetworkConfiguration_StateFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfiguration_StateFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkConfiguration::StateFlags *sipCpp = reinterpret_cast<QNetworkConfiguration::StateFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfiguration_StateFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration::StateFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkConfiguration_StateFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 361 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkConfiguration::StateFlags::Int() != a0->operator QNetworkConfiguration::StateFlags::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 30180 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(const_cast<QNetworkConfiguration::StateFlags *>(a0),sipType_QNetworkConfiguration_StateFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QNetworkConfiguration_StateFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QNetworkConfiguration_StateFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfiguration_StateFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkConfiguration::StateFlags *sipCpp = reinterpret_cast<QNetworkConfiguration::StateFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfiguration_StateFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration::StateFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkConfiguration_StateFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 352 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkConfiguration::StateFlags::Int() == a0->operator QNetworkConfiguration::StateFlags::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 30220 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(const_cast<QNetworkConfiguration::StateFlags *>(a0),sipType_QNetworkConfiguration_StateFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QNetworkConfiguration_StateFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QNetworkConfiguration_StateFlags___invert__(PyObject *);}
static PyObject *slot_QNetworkConfiguration_StateFlags___invert__(PyObject *sipSelf)
{
    QNetworkConfiguration::StateFlags *sipCpp = reinterpret_cast<QNetworkConfiguration::StateFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfiguration_StateFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QNetworkConfiguration::StateFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfiguration::StateFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfiguration_StateFlags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QNetworkConfiguration_StateFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfiguration_StateFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkConfiguration::StateFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QNetworkConfiguration_StateFlags, &a0, &a0State, &a1))
        {
            QNetworkConfiguration::StateFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfiguration::StateFlags((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkConfiguration_StateFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfiguration_StateFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QNetworkConfiguration_StateFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfiguration_StateFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkConfiguration::StateFlags* a0;
        int a0State = 0;
        QNetworkConfiguration::StateFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QNetworkConfiguration_StateFlags, &a0, &a0State, sipType_QNetworkConfiguration_StateFlags, &a1, &a1State))
        {
            QNetworkConfiguration::StateFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfiguration::StateFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkConfiguration_StateFlags,a0State);
            sipReleaseType(a1,sipType_QNetworkConfiguration_StateFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfiguration_StateFlags,NULL);
        }
    }

    {
        QNetworkConfiguration::StateFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QNetworkConfiguration_StateFlags, &a0, &a0State, &a1))
        {
            QNetworkConfiguration::StateFlags*sipRes = 0;

#line 346 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QNetworkConfiguration::StateFlags(*a0 ^ a1);
#line 30329 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(a0,sipType_QNetworkConfiguration_StateFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfiguration_StateFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QNetworkConfiguration_StateFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfiguration_StateFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkConfiguration::StateFlags* a0;
        int a0State = 0;
        QNetworkConfiguration::StateFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QNetworkConfiguration_StateFlags, &a0, &a0State, sipType_QNetworkConfiguration_StateFlags, &a1, &a1State))
        {
            QNetworkConfiguration::StateFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfiguration::StateFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkConfiguration_StateFlags,a0State);
            sipReleaseType(a1,sipType_QNetworkConfiguration_StateFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfiguration_StateFlags,NULL);
        }
    }

    {
        QNetworkConfiguration::StateFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QNetworkConfiguration_StateFlags, &a0, &a0State, &a1))
        {
            QNetworkConfiguration::StateFlags*sipRes = 0;

#line 341 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QNetworkConfiguration::StateFlags(*a0 | a1);
#line 30381 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(a0,sipType_QNetworkConfiguration_StateFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfiguration_StateFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QNetworkConfiguration_StateFlags___int__(PyObject *);}
static PyObject *slot_QNetworkConfiguration_StateFlags___int__(PyObject *sipSelf)
{
    QNetworkConfiguration::StateFlags *sipCpp = reinterpret_cast<QNetworkConfiguration::StateFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfiguration_StateFlags));

    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_QNetworkConfiguration_StateFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfiguration_StateFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QNetworkConfiguration_StateFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QNetworkConfiguration::StateFlags *sipCpp = reinterpret_cast<QNetworkConfiguration::StateFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfiguration_StateFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QNetworkConfiguration::StateFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkConfiguration_StateFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QNetworkConfiguration::StateFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkConfiguration_StateFlags,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_QNetworkConfiguration_StateFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfiguration_StateFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QNetworkConfiguration_StateFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QNetworkConfiguration::StateFlags *sipCpp = reinterpret_cast<QNetworkConfiguration::StateFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfiguration_StateFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QNetworkConfiguration::StateFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkConfiguration_StateFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QNetworkConfiguration::StateFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkConfiguration_StateFlags,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_QNetworkConfiguration_StateFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfiguration_StateFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QNetworkConfiguration_StateFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QNetworkConfiguration::StateFlags *sipCpp = reinterpret_cast<QNetworkConfiguration::StateFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfiguration_StateFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QNetworkConfiguration::StateFlags::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;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkConfiguration_StateFlags(void *, const sipTypeDef *);}
static void *cast_QNetworkConfiguration_StateFlags(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QNetworkConfiguration_StateFlags)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkConfiguration_StateFlags(void *, int);}
static void release_QNetworkConfiguration_StateFlags(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QNetworkConfiguration::StateFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QNetworkConfiguration_StateFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_QNetworkConfiguration_StateFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QNetworkConfiguration::StateFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QNetworkConfiguration::StateFlags *>(sipSrc);
}


extern "C" {static void *array_QNetworkConfiguration_StateFlags(SIP_SSIZE_T);}
static void *array_QNetworkConfiguration_StateFlags(SIP_SSIZE_T sipNrElem)
{
    return new QNetworkConfiguration::StateFlags[sipNrElem];
}


extern "C" {static void *copy_QNetworkConfiguration_StateFlags(const void *, SIP_SSIZE_T);}
static void *copy_QNetworkConfiguration_StateFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QNetworkConfiguration::StateFlags(reinterpret_cast<const QNetworkConfiguration::StateFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QNetworkConfiguration_StateFlags(sipSimpleWrapper *);}
static void dealloc_QNetworkConfiguration_StateFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkConfiguration_StateFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QNetworkConfiguration_StateFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkConfiguration_StateFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QNetworkConfiguration::StateFlags *sipCpp = 0;

    {
        const QNetworkConfiguration::StateFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QNetworkConfiguration_StateFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkConfiguration::StateFlags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QNetworkConfiguration::StateFlags *>(a0),sipType_QNetworkConfiguration_StateFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkConfiguration::StateFlags(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkConfiguration::StateFlags();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QNetworkConfiguration_StateFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_QNetworkConfiguration_StateFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QNetworkConfiguration::StateFlags **sipCppPtr = reinterpret_cast<QNetworkConfiguration::StateFlags **>(sipCppPtrV);

#line 379 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QNetworkConfiguration::StateFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QNetworkConfiguration_StateFlag)) ||
            sipCanConvertToType(sipPy, sipType_QNetworkConfiguration_StateFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QNetworkConfiguration_StateFlag)))
{
    *sipCppPtr = new QNetworkConfiguration::StateFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QNetworkConfiguration::StateFlags *>(sipConvertToType(sipPy, sipType_QNetworkConfiguration_StateFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 30676 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QNetworkConfiguration_StateFlags[] = {
    {(void *)slot_QNetworkConfiguration_StateFlags___bool__, bool_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___ne__, ne_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___eq__, eq_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___invert__, invert_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___and__, and_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___xor__, xor_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___or__, or_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___int__, int_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___ixor__, ixor_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___ior__, ior_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QNetworkConfiguration_StateFlags, "\1QNetworkConfiguration.StateFlags(QNetworkConfiguration.StateFlags)\n"
    "QNetworkConfiguration.StateFlags(int)\n"
    "QNetworkConfiguration.StateFlags()");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkConfiguration_StateFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkConfiguration__StateFlags,
        {0}
    },
    {
        sipNameNr_StateFlags,
        {48, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkConfiguration_StateFlags,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QNetworkConfiguration_StateFlags,
    init_type_QNetworkConfiguration_StateFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkConfiguration_StateFlags,
    assign_QNetworkConfiguration_StateFlags,
    array_QNetworkConfiguration_StateFlags,
    copy_QNetworkConfiguration_StateFlags,
    release_QNetworkConfiguration_StateFlags,
    cast_QNetworkConfiguration_StateFlags,
    convertTo_QNetworkConfiguration_StateFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 30757 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 30761 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 30764 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 30767 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkConfiguration_state, "QNetworkConfiguration.state() -> QNetworkConfiguration.StateFlags");

extern "C" {static PyObject *meth_QNetworkConfiguration_state(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfiguration_state(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkConfiguration, &sipCpp))
        {
            QNetworkConfiguration::StateFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfiguration::StateFlags(sipCpp->state());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfiguration_StateFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfiguration, sipName_state, doc_QNetworkConfiguration_state);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfiguration_type, "QNetworkConfiguration.type() -> QNetworkConfiguration.Type");

extern "C" {static PyObject *meth_QNetworkConfiguration_type(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfiguration_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkConfiguration, &sipCpp))
        {
            QNetworkConfiguration::Type sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QNetworkConfiguration_Type);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfiguration, sipName_type, doc_QNetworkConfiguration_type);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfiguration_purpose, "QNetworkConfiguration.purpose() -> QNetworkConfiguration.Purpose");

extern "C" {static PyObject *meth_QNetworkConfiguration_purpose(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfiguration_purpose(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkConfiguration, &sipCpp))
        {
            QNetworkConfiguration::Purpose sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->purpose();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QNetworkConfiguration_Purpose);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfiguration, sipName_purpose, doc_QNetworkConfiguration_purpose);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfiguration_bearerName, "QNetworkConfiguration.bearerName() -> str");

extern "C" {static PyObject *meth_QNetworkConfiguration_bearerName(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfiguration_bearerName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkConfiguration, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->bearerName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfiguration, sipName_bearerName, doc_QNetworkConfiguration_bearerName);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfiguration_bearerType, "QNetworkConfiguration.bearerType() -> QNetworkConfiguration.BearerType");

extern "C" {static PyObject *meth_QNetworkConfiguration_bearerType(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfiguration_bearerType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkConfiguration, &sipCpp))
        {
            QNetworkConfiguration::BearerType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->bearerType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QNetworkConfiguration_BearerType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfiguration, sipName_bearerType, doc_QNetworkConfiguration_bearerType);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfiguration_bearerTypeName, "QNetworkConfiguration.bearerTypeName() -> str");

extern "C" {static PyObject *meth_QNetworkConfiguration_bearerTypeName(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfiguration_bearerTypeName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkConfiguration, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->bearerTypeName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfiguration, sipName_bearerTypeName, doc_QNetworkConfiguration_bearerTypeName);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfiguration_identifier, "QNetworkConfiguration.identifier() -> str");

extern "C" {static PyObject *meth_QNetworkConfiguration_identifier(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfiguration_identifier(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkConfiguration, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->identifier());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfiguration, sipName_identifier, doc_QNetworkConfiguration_identifier);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfiguration_isRoamingAvailable, "QNetworkConfiguration.isRoamingAvailable() -> bool");

extern "C" {static PyObject *meth_QNetworkConfiguration_isRoamingAvailable(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfiguration_isRoamingAvailable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkConfiguration, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isRoamingAvailable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfiguration, sipName_isRoamingAvailable, doc_QNetworkConfiguration_isRoamingAvailable);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfiguration_children, "QNetworkConfiguration.children() -> list-of-QNetworkConfiguration");

extern "C" {static PyObject *meth_QNetworkConfiguration_children(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfiguration_children(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkConfiguration, &sipCpp))
        {
            QList<QNetworkConfiguration>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QNetworkConfiguration>(sipCpp->children());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QNetworkConfiguration,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfiguration, sipName_children, doc_QNetworkConfiguration_children);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfiguration_name, "QNetworkConfiguration.name() -> str");

extern "C" {static PyObject *meth_QNetworkConfiguration_name(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfiguration_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkConfiguration, &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_QNetworkConfiguration, sipName_name, doc_QNetworkConfiguration_name);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfiguration_isValid, "QNetworkConfiguration.isValid() -> bool");

extern "C" {static PyObject *meth_QNetworkConfiguration_isValid(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfiguration_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkConfiguration, &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_QNetworkConfiguration, sipName_isValid, doc_QNetworkConfiguration_isValid);

    return NULL;
}


extern "C" {static PyObject *slot_QNetworkConfiguration___ne__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfiguration___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkConfiguration *sipCpp = reinterpret_cast<QNetworkConfiguration *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfiguration));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QNetworkConfiguration, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QNetworkConfiguration::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QNetworkConfiguration,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QNetworkConfiguration___eq__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfiguration___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkConfiguration *sipCpp = reinterpret_cast<QNetworkConfiguration *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfiguration));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QNetworkConfiguration, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QNetworkConfiguration::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QNetworkConfiguration,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkConfiguration(void *, const sipTypeDef *);}
static void *cast_QNetworkConfiguration(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QNetworkConfiguration)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkConfiguration(void *, int);}
static void release_QNetworkConfiguration(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QNetworkConfiguration *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QNetworkConfiguration(void *, SIP_SSIZE_T, const void *);}
static void assign_QNetworkConfiguration(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QNetworkConfiguration *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QNetworkConfiguration *>(sipSrc);
}


extern "C" {static void *array_QNetworkConfiguration(SIP_SSIZE_T);}
static void *array_QNetworkConfiguration(SIP_SSIZE_T sipNrElem)
{
    return new QNetworkConfiguration[sipNrElem];
}


extern "C" {static void *copy_QNetworkConfiguration(const void *, SIP_SSIZE_T);}
static void *copy_QNetworkConfiguration(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QNetworkConfiguration(reinterpret_cast<const QNetworkConfiguration *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QNetworkConfiguration(sipSimpleWrapper *);}
static void dealloc_QNetworkConfiguration(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkConfiguration(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QNetworkConfiguration(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkConfiguration(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QNetworkConfiguration *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkConfiguration();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QNetworkConfiguration* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QNetworkConfiguration, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkConfiguration(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QNetworkConfiguration[] = {
    {(void *)slot_QNetworkConfiguration___ne__, ne_slot},
    {(void *)slot_QNetworkConfiguration___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QNetworkConfiguration[] = {
    {SIP_MLNAME_CAST(sipName_bearerName), meth_QNetworkConfiguration_bearerName, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfiguration_bearerName)},
    {SIP_MLNAME_CAST(sipName_bearerType), meth_QNetworkConfiguration_bearerType, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfiguration_bearerType)},
    {SIP_MLNAME_CAST(sipName_bearerTypeName), meth_QNetworkConfiguration_bearerTypeName, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfiguration_bearerTypeName)},
    {SIP_MLNAME_CAST(sipName_children), meth_QNetworkConfiguration_children, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfiguration_children)},
    {SIP_MLNAME_CAST(sipName_identifier), meth_QNetworkConfiguration_identifier, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfiguration_identifier)},
    {SIP_MLNAME_CAST(sipName_isRoamingAvailable), meth_QNetworkConfiguration_isRoamingAvailable, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfiguration_isRoamingAvailable)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QNetworkConfiguration_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfiguration_isValid)},
    {SIP_MLNAME_CAST(sipName_name), meth_QNetworkConfiguration_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfiguration_name)},
    {SIP_MLNAME_CAST(sipName_purpose), meth_QNetworkConfiguration_purpose, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfiguration_purpose)},
    {SIP_MLNAME_CAST(sipName_state), meth_QNetworkConfiguration_state, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfiguration_state)},
    {SIP_MLNAME_CAST(sipName_type), meth_QNetworkConfiguration_type, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfiguration_type)}
};

static sipEnumMemberDef enummembers_QNetworkConfiguration[] = {
    {sipName_Active, static_cast<int>(QNetworkConfiguration::Active), 51},
    {sipName_Bearer2G, static_cast<int>(QNetworkConfiguration::Bearer2G), 49},
    {sipName_BearerBluetooth, static_cast<int>(QNetworkConfiguration::BearerBluetooth), 49},
    {sipName_BearerCDMA2000, static_cast<int>(QNetworkConfiguration::BearerCDMA2000), 49},
    {sipName_BearerEthernet, static_cast<int>(QNetworkConfiguration::BearerEthernet), 49},
    {sipName_BearerHSPA, static_cast<int>(QNetworkConfiguration::BearerHSPA), 49},
    {sipName_BearerUnknown, static_cast<int>(QNetworkConfiguration::BearerUnknown), 49},
    {sipName_BearerWCDMA, static_cast<int>(QNetworkConfiguration::BearerWCDMA), 49},
    {sipName_BearerWLAN, static_cast<int>(QNetworkConfiguration::BearerWLAN), 49},
    {sipName_BearerWiMAX, static_cast<int>(QNetworkConfiguration::BearerWiMAX), 49},
    {sipName_Defined, static_cast<int>(QNetworkConfiguration::Defined), 51},
    {sipName_Discovered, static_cast<int>(QNetworkConfiguration::Discovered), 51},
    {sipName_InternetAccessPoint, static_cast<int>(QNetworkConfiguration::InternetAccessPoint), 53},
    {sipName_Invalid, static_cast<int>(QNetworkConfiguration::Invalid), 53},
    {sipName_PrivatePurpose, static_cast<int>(QNetworkConfiguration::PrivatePurpose), 50},
    {sipName_PublicPurpose, static_cast<int>(QNetworkConfiguration::PublicPurpose), 50},
    {sipName_ServiceNetwork, static_cast<int>(QNetworkConfiguration::ServiceNetwork), 53},
    {sipName_ServiceSpecificPurpose, static_cast<int>(QNetworkConfiguration::ServiceSpecificPurpose), 50},
    {sipName_Undefined, static_cast<int>(QNetworkConfiguration::Undefined), 51},
    {sipName_UnknownPurpose, static_cast<int>(QNetworkConfiguration::UnknownPurpose), 50},
    {sipName_UserChoice, static_cast<int>(QNetworkConfiguration::UserChoice), 53},
};

PyDoc_STRVAR(doc_QNetworkConfiguration, "\1QNetworkConfiguration()\n"
    "QNetworkConfiguration(QNetworkConfiguration)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkConfiguration = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkConfiguration,
        {0}
    },
    {
        sipNameNr_QNetworkConfiguration,
        {0, 0, 1},
        11, methods_QNetworkConfiguration,
        21, enummembers_QNetworkConfiguration,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkConfiguration,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QNetworkConfiguration,
    init_type_QNetworkConfiguration,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkConfiguration,
    assign_QNetworkConfiguration,
    array_QNetworkConfiguration,
    copy_QNetworkConfiguration,
    release_QNetworkConfiguration,
    cast_QNetworkConfiguration,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 39 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfigmanager.sip"
#include <qnetworkconfigmanager.h>
#line 31350 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 39 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfigmanager.sip"
#include <qnetworkconfigmanager.h>
#line 31354 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static int slot_QNetworkConfigurationManager_Capabilities___bool__(PyObject *);}
static int slot_QNetworkConfigurationManager_Capabilities___bool__(PyObject *sipSelf)
{
    QNetworkConfigurationManager::Capabilities *sipCpp = reinterpret_cast<QNetworkConfigurationManager::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfigurationManager_Capabilities));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkConfigurationManager::Capabilities::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 31376 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QNetworkConfigurationManager_Capabilities___ne__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfigurationManager_Capabilities___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkConfigurationManager::Capabilities *sipCpp = reinterpret_cast<QNetworkConfigurationManager::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfigurationManager_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfigurationManager::Capabilities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkConfigurationManager_Capabilities, &a0, &a0State))
        {
            bool sipRes = 0;

#line 361 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkConfigurationManager::Capabilities::Int() != a0->operator QNetworkConfigurationManager::Capabilities::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 31410 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(const_cast<QNetworkConfigurationManager::Capabilities *>(a0),sipType_QNetworkConfigurationManager_Capabilities,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QNetworkConfigurationManager_Capabilities,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QNetworkConfigurationManager_Capabilities___eq__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfigurationManager_Capabilities___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkConfigurationManager::Capabilities *sipCpp = reinterpret_cast<QNetworkConfigurationManager::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfigurationManager_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfigurationManager::Capabilities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkConfigurationManager_Capabilities, &a0, &a0State))
        {
            bool sipRes = 0;

#line 352 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkConfigurationManager::Capabilities::Int() == a0->operator QNetworkConfigurationManager::Capabilities::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 31450 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(const_cast<QNetworkConfigurationManager::Capabilities *>(a0),sipType_QNetworkConfigurationManager_Capabilities,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QNetworkConfigurationManager_Capabilities,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QNetworkConfigurationManager_Capabilities___invert__(PyObject *);}
static PyObject *slot_QNetworkConfigurationManager_Capabilities___invert__(PyObject *sipSelf)
{
    QNetworkConfigurationManager::Capabilities *sipCpp = reinterpret_cast<QNetworkConfigurationManager::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfigurationManager_Capabilities));

    if (!sipCpp)
        return 0;


    {
        {
            QNetworkConfigurationManager::Capabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfigurationManager::Capabilities(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfigurationManager_Capabilities,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QNetworkConfigurationManager_Capabilities___and__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfigurationManager_Capabilities___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkConfigurationManager::Capabilities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QNetworkConfigurationManager_Capabilities, &a0, &a0State, &a1))
        {
            QNetworkConfigurationManager::Capabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfigurationManager::Capabilities((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkConfigurationManager_Capabilities,a0State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfigurationManager_Capabilities,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QNetworkConfigurationManager_Capabilities___xor__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfigurationManager_Capabilities___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkConfigurationManager::Capabilities* a0;
        int a0State = 0;
        QNetworkConfigurationManager::Capabilities* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QNetworkConfigurationManager_Capabilities, &a0, &a0State, sipType_QNetworkConfigurationManager_Capabilities, &a1, &a1State))
        {
            QNetworkConfigurationManager::Capabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfigurationManager::Capabilities((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkConfigurationManager_Capabilities,a0State);
            sipReleaseType(a1,sipType_QNetworkConfigurationManager_Capabilities,a1State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfigurationManager_Capabilities,NULL);
        }
    }

    {
        QNetworkConfigurationManager::Capabilities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QNetworkConfigurationManager_Capabilities, &a0, &a0State, &a1))
        {
            QNetworkConfigurationManager::Capabilities*sipRes = 0;

#line 346 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QNetworkConfigurationManager::Capabilities(*a0 ^ a1);
#line 31559 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(a0,sipType_QNetworkConfigurationManager_Capabilities,a0State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfigurationManager_Capabilities,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QNetworkConfigurationManager_Capabilities___or__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfigurationManager_Capabilities___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkConfigurationManager::Capabilities* a0;
        int a0State = 0;
        QNetworkConfigurationManager::Capabilities* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QNetworkConfigurationManager_Capabilities, &a0, &a0State, sipType_QNetworkConfigurationManager_Capabilities, &a1, &a1State))
        {
            QNetworkConfigurationManager::Capabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfigurationManager::Capabilities((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkConfigurationManager_Capabilities,a0State);
            sipReleaseType(a1,sipType_QNetworkConfigurationManager_Capabilities,a1State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfigurationManager_Capabilities,NULL);
        }
    }

    {
        QNetworkConfigurationManager::Capabilities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QNetworkConfigurationManager_Capabilities, &a0, &a0State, &a1))
        {
            QNetworkConfigurationManager::Capabilities*sipRes = 0;

#line 341 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QNetworkConfigurationManager::Capabilities(*a0 | a1);
#line 31611 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(a0,sipType_QNetworkConfigurationManager_Capabilities,a0State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfigurationManager_Capabilities,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QNetworkConfigurationManager_Capabilities___int__(PyObject *);}
static PyObject *slot_QNetworkConfigurationManager_Capabilities___int__(PyObject *sipSelf)
{
    QNetworkConfigurationManager::Capabilities *sipCpp = reinterpret_cast<QNetworkConfigurationManager::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfigurationManager_Capabilities));

    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_QNetworkConfigurationManager_Capabilities___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfigurationManager_Capabilities___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QNetworkConfigurationManager_Capabilities)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QNetworkConfigurationManager::Capabilities *sipCpp = reinterpret_cast<QNetworkConfigurationManager::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfigurationManager_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QNetworkConfigurationManager::Capabilities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkConfigurationManager_Capabilities, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QNetworkConfigurationManager::Capabilities::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkConfigurationManager_Capabilities,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_QNetworkConfigurationManager_Capabilities___ior__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfigurationManager_Capabilities___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QNetworkConfigurationManager_Capabilities)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QNetworkConfigurationManager::Capabilities *sipCpp = reinterpret_cast<QNetworkConfigurationManager::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfigurationManager_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QNetworkConfigurationManager::Capabilities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkConfigurationManager_Capabilities, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QNetworkConfigurationManager::Capabilities::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkConfigurationManager_Capabilities,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_QNetworkConfigurationManager_Capabilities___iand__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfigurationManager_Capabilities___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QNetworkConfigurationManager_Capabilities)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QNetworkConfigurationManager::Capabilities *sipCpp = reinterpret_cast<QNetworkConfigurationManager::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkConfigurationManager_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QNetworkConfigurationManager::Capabilities::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;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkConfigurationManager_Capabilities(void *, const sipTypeDef *);}
static void *cast_QNetworkConfigurationManager_Capabilities(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QNetworkConfigurationManager_Capabilities)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkConfigurationManager_Capabilities(void *, int);}
static void release_QNetworkConfigurationManager_Capabilities(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QNetworkConfigurationManager::Capabilities *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QNetworkConfigurationManager_Capabilities(void *, SIP_SSIZE_T, const void *);}
static void assign_QNetworkConfigurationManager_Capabilities(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QNetworkConfigurationManager::Capabilities *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QNetworkConfigurationManager::Capabilities *>(sipSrc);
}


extern "C" {static void *array_QNetworkConfigurationManager_Capabilities(SIP_SSIZE_T);}
static void *array_QNetworkConfigurationManager_Capabilities(SIP_SSIZE_T sipNrElem)
{
    return new QNetworkConfigurationManager::Capabilities[sipNrElem];
}


extern "C" {static void *copy_QNetworkConfigurationManager_Capabilities(const void *, SIP_SSIZE_T);}
static void *copy_QNetworkConfigurationManager_Capabilities(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QNetworkConfigurationManager::Capabilities(reinterpret_cast<const QNetworkConfigurationManager::Capabilities *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QNetworkConfigurationManager_Capabilities(sipSimpleWrapper *);}
static void dealloc_QNetworkConfigurationManager_Capabilities(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkConfigurationManager_Capabilities(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QNetworkConfigurationManager_Capabilities(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkConfigurationManager_Capabilities(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QNetworkConfigurationManager::Capabilities *sipCpp = 0;

    {
        const QNetworkConfigurationManager::Capabilities* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QNetworkConfigurationManager_Capabilities, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkConfigurationManager::Capabilities(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QNetworkConfigurationManager::Capabilities *>(a0),sipType_QNetworkConfigurationManager_Capabilities,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkConfigurationManager::Capabilities(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkConfigurationManager::Capabilities();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QNetworkConfigurationManager_Capabilities(PyObject *, void **, int *, PyObject *);}
static int convertTo_QNetworkConfigurationManager_Capabilities(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QNetworkConfigurationManager::Capabilities **sipCppPtr = reinterpret_cast<QNetworkConfigurationManager::Capabilities **>(sipCppPtrV);

#line 379 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QNetworkConfigurationManager::Capabilities is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QNetworkConfigurationManager_Capability)) ||
            sipCanConvertToType(sipPy, sipType_QNetworkConfigurationManager_Capabilities, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QNetworkConfigurationManager_Capability)))
{
    *sipCppPtr = new QNetworkConfigurationManager::Capabilities(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QNetworkConfigurationManager::Capabilities *>(sipConvertToType(sipPy, sipType_QNetworkConfigurationManager_Capabilities, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 31906 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QNetworkConfigurationManager_Capabilities[] = {
    {(void *)slot_QNetworkConfigurationManager_Capabilities___bool__, bool_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___ne__, ne_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___eq__, eq_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___invert__, invert_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___and__, and_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___xor__, xor_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___or__, or_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___int__, int_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___ixor__, ixor_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___ior__, ior_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QNetworkConfigurationManager_Capabilities, "\1QNetworkConfigurationManager.Capabilities(QNetworkConfigurationManager.Capabilities)\n"
    "QNetworkConfigurationManager.Capabilities(int)\n"
    "QNetworkConfigurationManager.Capabilities()");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkConfigurationManager_Capabilities = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkConfigurationManager__Capabilities,
        {0}
    },
    {
        sipNameNr_Capabilities,
        {54, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkConfigurationManager_Capabilities,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QNetworkConfigurationManager_Capabilities,
    init_type_QNetworkConfigurationManager_Capabilities,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkConfigurationManager_Capabilities,
    assign_QNetworkConfigurationManager_Capabilities,
    array_QNetworkConfigurationManager_Capabilities,
    copy_QNetworkConfigurationManager_Capabilities,
    release_QNetworkConfigurationManager_Capabilities,
    cast_QNetworkConfigurationManager_Capabilities,
    convertTo_QNetworkConfigurationManager_Capabilities,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 39 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfigmanager.sip"
#include <qnetworkconfigmanager.h>
#line 31987 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 31991 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 31994 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 31997 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 32000 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 32003 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 39 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfigmanager.sip"
#include <qnetworkconfigmanager.h>
#line 32006 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 32009 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 32012 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 32015 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 32018 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 32021 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 32024 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 32027 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 32030 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 32033 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 32036 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 32039 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQNetworkConfigurationManager : public QNetworkConfigurationManager
{
public:
    sipQNetworkConfigurationManager(QObject*);
    virtual ~sipQNetworkConfigurationManager();

    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:
    sipQNetworkConfigurationManager(const sipQNetworkConfigurationManager &);
    sipQNetworkConfigurationManager &operator = (const sipQNetworkConfigurationManager &);

    char sipPyMethods[7];
};

sipQNetworkConfigurationManager::sipQNetworkConfigurationManager(QObject*a0): QNetworkConfigurationManager(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQNetworkConfigurationManager::~sipQNetworkConfigurationManager()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQNetworkConfigurationManager::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QNetworkConfigurationManager);
}

int sipQNetworkConfigurationManager::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QNetworkConfigurationManager::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QNetworkConfigurationManager,_c,_id,_a);

    return _id;
}

void *sipQNetworkConfigurationManager::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QNetworkConfigurationManager, _clname)) ? this : QNetworkConfigurationManager::qt_metacast(_clname);
}

void sipQNetworkConfigurationManager::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QNetworkConfigurationManager::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkConfigurationManager::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QNetworkConfigurationManager::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkConfigurationManager::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QNetworkConfigurationManager::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkConfigurationManager::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QNetworkConfigurationManager::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkConfigurationManager::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QNetworkConfigurationManager::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQNetworkConfigurationManager::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QNetworkConfigurationManager::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQNetworkConfigurationManager::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QNetworkConfigurationManager::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QObject* sipQNetworkConfigurationManager::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQNetworkConfigurationManager::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQNetworkConfigurationManager::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQNetworkConfigurationManager::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQNetworkConfigurationManager::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQNetworkConfigurationManager::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQNetworkConfigurationManager::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQNetworkConfigurationManager::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}


PyDoc_STRVAR(doc_QNetworkConfigurationManager_sender, "QNetworkConfigurationManager.sender() -> QObject");

extern "C" {static PyObject *meth_QNetworkConfigurationManager_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfigurationManager_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQNetworkConfigurationManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QNetworkConfigurationManager, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 32316 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfigurationManager, sipName_sender, doc_QNetworkConfigurationManager_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfigurationManager_receivers, "QNetworkConfigurationManager.receivers(SIGNAL()) -> int");

extern "C" {static PyObject *meth_QNetworkConfigurationManager_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfigurationManager_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        char* a0;
        const sipQNetworkConfigurationManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkConfigurationManager, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 32361 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfigurationManager, sipName_receivers, doc_QNetworkConfigurationManager_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfigurationManager_timerEvent, "QNetworkConfigurationManager.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QNetworkConfigurationManager_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfigurationManager_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQNetworkConfigurationManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkConfigurationManager, &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_QNetworkConfigurationManager, sipName_timerEvent, doc_QNetworkConfigurationManager_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfigurationManager_childEvent, "QNetworkConfigurationManager.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QNetworkConfigurationManager_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfigurationManager_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQNetworkConfigurationManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkConfigurationManager, &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_QNetworkConfigurationManager, sipName_childEvent, doc_QNetworkConfigurationManager_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfigurationManager_customEvent, "QNetworkConfigurationManager.customEvent(QEvent)");

extern "C" {static PyObject *meth_QNetworkConfigurationManager_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfigurationManager_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQNetworkConfigurationManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkConfigurationManager, &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_QNetworkConfigurationManager, sipName_customEvent, doc_QNetworkConfigurationManager_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfigurationManager_connectNotify, "QNetworkConfigurationManager.connectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QNetworkConfigurationManager_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfigurationManager_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQNetworkConfigurationManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkConfigurationManager, &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_QNetworkConfigurationManager, sipName_connectNotify, doc_QNetworkConfigurationManager_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfigurationManager_disconnectNotify, "QNetworkConfigurationManager.disconnectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QNetworkConfigurationManager_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfigurationManager_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQNetworkConfigurationManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkConfigurationManager, &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_QNetworkConfigurationManager, sipName_disconnectNotify, doc_QNetworkConfigurationManager_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfigurationManager_senderSignalIndex, "QNetworkConfigurationManager.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QNetworkConfigurationManager_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfigurationManager_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQNetworkConfigurationManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QNetworkConfigurationManager, &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_QNetworkConfigurationManager, sipName_senderSignalIndex, doc_QNetworkConfigurationManager_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfigurationManager_capabilities, "QNetworkConfigurationManager.capabilities() -> QNetworkConfigurationManager.Capabilities");

extern "C" {static PyObject *meth_QNetworkConfigurationManager_capabilities(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfigurationManager_capabilities(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfigurationManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkConfigurationManager, &sipCpp))
        {
            QNetworkConfigurationManager::Capabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfigurationManager::Capabilities(sipCpp->capabilities());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfigurationManager_Capabilities,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfigurationManager, sipName_capabilities, doc_QNetworkConfigurationManager_capabilities);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfigurationManager_defaultConfiguration, "QNetworkConfigurationManager.defaultConfiguration() -> QNetworkConfiguration");

extern "C" {static PyObject *meth_QNetworkConfigurationManager_defaultConfiguration(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfigurationManager_defaultConfiguration(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfigurationManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkConfigurationManager, &sipCpp))
        {
            QNetworkConfiguration*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfiguration(sipCpp->defaultConfiguration());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfiguration,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfigurationManager, sipName_defaultConfiguration, doc_QNetworkConfigurationManager_defaultConfiguration);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfigurationManager_allConfigurations, "QNetworkConfigurationManager.allConfigurations(QNetworkConfiguration.StateFlags flags=0) -> list-of-QNetworkConfiguration");

extern "C" {static PyObject *meth_QNetworkConfigurationManager_allConfigurations(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfigurationManager_allConfigurations(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkConfiguration::StateFlags a0def = 0;
        QNetworkConfiguration::StateFlags* a0 = &a0def;
        int a0State = 0;
        const QNetworkConfigurationManager *sipCpp;

        static const char *sipKwdList[] = {
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1", &sipSelf, sipType_QNetworkConfigurationManager, &sipCpp, sipType_QNetworkConfiguration_StateFlags, &a0, &a0State))
        {
            QList<QNetworkConfiguration>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QNetworkConfiguration>(sipCpp->allConfigurations(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkConfiguration_StateFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QList_0100QNetworkConfiguration,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfigurationManager, sipName_allConfigurations, doc_QNetworkConfigurationManager_allConfigurations);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfigurationManager_configurationFromIdentifier, "QNetworkConfigurationManager.configurationFromIdentifier(str) -> QNetworkConfiguration");

extern "C" {static PyObject *meth_QNetworkConfigurationManager_configurationFromIdentifier(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfigurationManager_configurationFromIdentifier(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QNetworkConfigurationManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkConfigurationManager, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QNetworkConfiguration*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfiguration(sipCpp->configurationFromIdentifier(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfiguration,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfigurationManager, sipName_configurationFromIdentifier, doc_QNetworkConfigurationManager_configurationFromIdentifier);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfigurationManager_updateConfigurations, "QNetworkConfigurationManager.updateConfigurations()");

extern "C" {static PyObject *meth_QNetworkConfigurationManager_updateConfigurations(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfigurationManager_updateConfigurations(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkConfigurationManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkConfigurationManager, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->updateConfigurations();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfigurationManager, sipName_updateConfigurations, doc_QNetworkConfigurationManager_updateConfigurations);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkConfigurationManager_isOnline, "QNetworkConfigurationManager.isOnline() -> bool");

extern "C" {static PyObject *meth_QNetworkConfigurationManager_isOnline(PyObject *, PyObject *);}
static PyObject *meth_QNetworkConfigurationManager_isOnline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfigurationManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkConfigurationManager, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isOnline();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkConfigurationManager, sipName_isOnline, doc_QNetworkConfigurationManager_isOnline);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkConfigurationManager(void *, const sipTypeDef *);}
static void *cast_QNetworkConfigurationManager(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QNetworkConfigurationManager)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QNetworkConfigurationManager *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkConfigurationManager(void *, int);}
static void release_QNetworkConfigurationManager(void *sipCppV,int)
{
    QNetworkConfigurationManager *sipCpp = reinterpret_cast<QNetworkConfigurationManager *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QNetworkConfigurationManager(sipSimpleWrapper *);}
static void dealloc_QNetworkConfigurationManager(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQNetworkConfigurationManager *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkConfigurationManager(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QNetworkConfigurationManager(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkConfigurationManager(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQNetworkConfigurationManager *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQNetworkConfigurationManager(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QNetworkConfigurationManager[] = {{141, 0, 1}};


static PyMethodDef methods_QNetworkConfigurationManager[] = {
    {SIP_MLNAME_CAST(sipName_allConfigurations), (PyCFunction)meth_QNetworkConfigurationManager_allConfigurations, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkConfigurationManager_allConfigurations)},
    {SIP_MLNAME_CAST(sipName_capabilities), meth_QNetworkConfigurationManager_capabilities, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfigurationManager_capabilities)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QNetworkConfigurationManager_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_configurationFromIdentifier), meth_QNetworkConfigurationManager_configurationFromIdentifier, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfigurationManager_configurationFromIdentifier)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QNetworkConfigurationManager_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QNetworkConfigurationManager_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultConfiguration), meth_QNetworkConfigurationManager_defaultConfiguration, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfigurationManager_defaultConfiguration)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QNetworkConfigurationManager_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isOnline), meth_QNetworkConfigurationManager_isOnline, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfigurationManager_isOnline)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QNetworkConfigurationManager_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QNetworkConfigurationManager_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QNetworkConfigurationManager_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QNetworkConfigurationManager_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_updateConfigurations), meth_QNetworkConfigurationManager_updateConfigurations, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkConfigurationManager_updateConfigurations)}
};

static sipEnumMemberDef enummembers_QNetworkConfigurationManager[] = {
    {sipName_ApplicationLevelRoaming, static_cast<int>(QNetworkConfigurationManager::ApplicationLevelRoaming), 56},
    {sipName_CanStartAndStopInterfaces, static_cast<int>(QNetworkConfigurationManager::CanStartAndStopInterfaces), 56},
    {sipName_DataStatistics, static_cast<int>(QNetworkConfigurationManager::DataStatistics), 56},
    {sipName_DirectConnectionRouting, static_cast<int>(QNetworkConfigurationManager::DirectConnectionRouting), 56},
    {sipName_ForcedRoaming, static_cast<int>(QNetworkConfigurationManager::ForcedRoaming), 56},
    {sipName_NetworkSessionRequired, static_cast<int>(QNetworkConfigurationManager::NetworkSessionRequired), 56},
    {sipName_SystemSessionSupport, static_cast<int>(QNetworkConfigurationManager::SystemSessionSupport), 56},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_QNetworkConfigurationManager[] = {
    {"updateCompleted()", "\1QNetworkConfigurationManager.updateCompleted", 0, 0},
    {"onlineStateChanged(bool)", "\1QNetworkConfigurationManager.onlineStateChanged[bool]", 0, 0},
    {"configurationChanged(QNetworkConfiguration)", "\1QNetworkConfigurationManager.configurationChanged[QNetworkConfiguration]", 0, 0},
    {"configurationRemoved(QNetworkConfiguration)", "\1QNetworkConfigurationManager.configurationRemoved[QNetworkConfiguration]", 0, 0},
    {"configurationAdded(QNetworkConfiguration)", "\1QNetworkConfigurationManager.configurationAdded[QNetworkConfiguration]", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QNetworkConfigurationManager, "\1QNetworkConfigurationManager(QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkConfigurationManager = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QNetworkConfigurationManager,
        {0}
    },
    {
        sipNameNr_QNetworkConfigurationManager,
        {0, 0, 1},
        14, methods_QNetworkConfigurationManager,
        7, enummembers_QNetworkConfigurationManager,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkConfigurationManager,
    -1,
    -1,
    supers_QNetworkConfigurationManager,
    0,
    init_type_QNetworkConfigurationManager,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkConfigurationManager,
    0,
    0,
    0,
    release_QNetworkConfigurationManager,
    cast_QNetworkConfigurationManager,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QNetworkConfigurationManager::staticMetaObject,
    0,
    signals_QNetworkConfigurationManager,
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkaccessmanager.sip"
#include <qnetworkaccessmanager.h>
#line 32912 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 32916 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 32919 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkreply.sip"
#include <qnetworkreply.h>
#line 32922 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkrequest.sip"
#include <qnetworkrequest.h>
#line 32925 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 32928 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 32931 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 190 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qabstractnetworkcache.h>
#line 32934 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 186 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 32937 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 32940 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 32943 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 32946 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 32949 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 57 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhttpmultipart.sip"
#include <qhttpmultipart.h>
#line 32952 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkcookiejar.sip"
#include <qnetworkcookiejar.h>
#line 32955 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 32958 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 32961 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 32964 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 32967 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 32970 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 32973 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 32976 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 32979 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 32982 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 32985 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 32988 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQNetworkAccessManager : public QNetworkAccessManager
{
public:
    sipQNetworkAccessManager(QObject*);
    virtual ~sipQNetworkAccessManager();

    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;
    QNetworkReply* sipProtectVirt_createRequest(bool,QNetworkAccessManager::Operation,const QNetworkRequest&,QIODevice*);

    /*
     * 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*);
    QNetworkReply* createRequest(QNetworkAccessManager::Operation,const QNetworkRequest&,QIODevice*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQNetworkAccessManager(const sipQNetworkAccessManager &);
    sipQNetworkAccessManager &operator = (const sipQNetworkAccessManager &);

    char sipPyMethods[8];
};

sipQNetworkAccessManager::sipQNetworkAccessManager(QObject*a0): QNetworkAccessManager(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQNetworkAccessManager::~sipQNetworkAccessManager()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQNetworkAccessManager::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QNetworkAccessManager);
}

int sipQNetworkAccessManager::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QNetworkAccessManager::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QNetworkAccessManager,_c,_id,_a);

    return _id;
}

void *sipQNetworkAccessManager::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QNetworkAccessManager, _clname)) ? this : QNetworkAccessManager::qt_metacast(_clname);
}

void sipQNetworkAccessManager::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QNetworkAccessManager::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkAccessManager::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QNetworkAccessManager::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkAccessManager::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QNetworkAccessManager::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkAccessManager::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QNetworkAccessManager::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQNetworkAccessManager::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QNetworkAccessManager::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQNetworkAccessManager::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QNetworkAccessManager::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQNetworkAccessManager::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QNetworkAccessManager::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QNetworkReply* sipQNetworkAccessManager::createRequest(QNetworkAccessManager::Operation a0,const QNetworkRequest& a1,QIODevice*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_createRequest);

    if (!sipMeth)
        return QNetworkAccessManager::createRequest(a0,a1,a2);

    extern QNetworkReply* sipVH_QtNetwork_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QNetworkAccessManager::Operation,const QNetworkRequest&,QIODevice*);

    return sipVH_QtNetwork_13(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

QObject* sipQNetworkAccessManager::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQNetworkAccessManager::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQNetworkAccessManager::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQNetworkAccessManager::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQNetworkAccessManager::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQNetworkAccessManager::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQNetworkAccessManager::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQNetworkAccessManager::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

QNetworkReply* sipQNetworkAccessManager::sipProtectVirt_createRequest(bool sipSelfWasArg,QNetworkAccessManager::Operation a0,const QNetworkRequest& a1,QIODevice*a2)
{
    return (sipSelfWasArg ? QNetworkAccessManager::createRequest(a0,a1,a2) : createRequest(a0,a1,a2));
}


PyDoc_STRVAR(doc_QNetworkAccessManager_sender, "QNetworkAccessManager.sender() -> QObject");

extern "C" {static PyObject *meth_QNetworkAccessManager_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQNetworkAccessManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QNetworkAccessManager, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 33287 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_sender, doc_QNetworkAccessManager_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_receivers, "QNetworkAccessManager.receivers(SIGNAL()) -> int");

extern "C" {static PyObject *meth_QNetworkAccessManager_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        char* a0;
        const sipQNetworkAccessManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 33332 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_receivers, doc_QNetworkAccessManager_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_timerEvent, "QNetworkAccessManager.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QNetworkAccessManager_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQNetworkAccessManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkAccessManager, &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_QNetworkAccessManager, sipName_timerEvent, doc_QNetworkAccessManager_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_childEvent, "QNetworkAccessManager.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QNetworkAccessManager_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQNetworkAccessManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkAccessManager, &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_QNetworkAccessManager, sipName_childEvent, doc_QNetworkAccessManager_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_customEvent, "QNetworkAccessManager.customEvent(QEvent)");

extern "C" {static PyObject *meth_QNetworkAccessManager_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQNetworkAccessManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QNetworkAccessManager, &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_QNetworkAccessManager, sipName_customEvent, doc_QNetworkAccessManager_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_connectNotify, "QNetworkAccessManager.connectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QNetworkAccessManager_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQNetworkAccessManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkAccessManager, &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_QNetworkAccessManager, sipName_connectNotify, doc_QNetworkAccessManager_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_disconnectNotify, "QNetworkAccessManager.disconnectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QNetworkAccessManager_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQNetworkAccessManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QNetworkAccessManager, &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_QNetworkAccessManager, sipName_disconnectNotify, doc_QNetworkAccessManager_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_senderSignalIndex, "QNetworkAccessManager.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QNetworkAccessManager_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQNetworkAccessManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QNetworkAccessManager, &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_QNetworkAccessManager, sipName_senderSignalIndex, doc_QNetworkAccessManager_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_proxy, "QNetworkAccessManager.proxy() -> QNetworkProxy");

extern "C" {static PyObject *meth_QNetworkAccessManager_proxy(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_proxy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkAccessManager, &sipCpp))
        {
            QNetworkProxy*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy(sipCpp->proxy());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkProxy,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_proxy, doc_QNetworkAccessManager_proxy);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_setProxy, "QNetworkAccessManager.setProxy(QNetworkProxy)");

extern "C" {static PyObject *meth_QNetworkAccessManager_setProxy(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_setProxy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxy* a0;
        QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkProxy, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProxy(*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_QNetworkAccessManager, sipName_setProxy, doc_QNetworkAccessManager_setProxy);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_cookieJar, "QNetworkAccessManager.cookieJar() -> QNetworkCookieJar");

extern "C" {static PyObject *meth_QNetworkAccessManager_cookieJar(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_cookieJar(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkAccessManager, &sipCpp))
        {
            QNetworkCookieJar*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->cookieJar();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QNetworkCookieJar,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_cookieJar, doc_QNetworkAccessManager_cookieJar);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_setCookieJar, "QNetworkAccessManager.setCookieJar(QNetworkCookieJar)");

extern "C" {static PyObject *meth_QNetworkAccessManager_setCookieJar(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_setCookieJar(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkCookieJar* a0;
        QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkCookieJar, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCookieJar(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_QNetworkAccessManager, sipName_setCookieJar, doc_QNetworkAccessManager_setCookieJar);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_head, "QNetworkAccessManager.head(QNetworkRequest) -> QNetworkReply");

extern "C" {static PyObject *meth_QNetworkAccessManager_head(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_head(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkRequest* a0;
        QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkRequest, &a0))
        {
            QNetworkReply*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->head(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QNetworkReply,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_head, doc_QNetworkAccessManager_head);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_get, "QNetworkAccessManager.get(QNetworkRequest) -> QNetworkReply");

extern "C" {static PyObject *meth_QNetworkAccessManager_get(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_get(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkRequest* a0;
        QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkRequest, &a0))
        {
            QNetworkReply*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->get(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QNetworkReply,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_get, doc_QNetworkAccessManager_get);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_post, "QNetworkAccessManager.post(QNetworkRequest, QIODevice) -> QNetworkReply\n"
    "QNetworkAccessManager.post(QNetworkRequest, QByteArray) -> QNetworkReply\n"
    "QNetworkAccessManager.post(QNetworkRequest, QHttpMultiPart) -> QNetworkReply");

extern "C" {static PyObject *meth_QNetworkAccessManager_post(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_post(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkRequest* a0;
        QIODevice* a1;
        QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J8", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkRequest, &a0, sipType_QIODevice, &a1))
        {
            QNetworkReply*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->post(*a0,a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QNetworkReply,NULL);
        }
    }

    {
        const QNetworkRequest* a0;
        const QByteArray* a1;
        int a1State = 0;
        QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkRequest, &a0, sipType_QByteArray, &a1, &a1State))
        {
            QNetworkReply*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->post(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            return sipConvertFromType(sipRes,sipType_QNetworkReply,NULL);
        }
    }

    {
        const QNetworkRequest* a0;
        QHttpMultiPart* a1;
        QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J8", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkRequest, &a0, sipType_QHttpMultiPart, &a1))
        {
            QNetworkReply*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->post(*a0,a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QNetworkReply,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_post, doc_QNetworkAccessManager_post);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_put, "QNetworkAccessManager.put(QNetworkRequest, QIODevice) -> QNetworkReply\n"
    "QNetworkAccessManager.put(QNetworkRequest, QByteArray) -> QNetworkReply\n"
    "QNetworkAccessManager.put(QNetworkRequest, QHttpMultiPart) -> QNetworkReply");

extern "C" {static PyObject *meth_QNetworkAccessManager_put(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_put(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkRequest* a0;
        QIODevice* a1;
        QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J8", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkRequest, &a0, sipType_QIODevice, &a1))
        {
            QNetworkReply*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->put(*a0,a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QNetworkReply,NULL);
        }
    }

    {
        const QNetworkRequest* a0;
        const QByteArray* a1;
        int a1State = 0;
        QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkRequest, &a0, sipType_QByteArray, &a1, &a1State))
        {
            QNetworkReply*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->put(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            return sipConvertFromType(sipRes,sipType_QNetworkReply,NULL);
        }
    }

    {
        const QNetworkRequest* a0;
        QHttpMultiPart* a1;
        QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J8", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkRequest, &a0, sipType_QHttpMultiPart, &a1))
        {
            QNetworkReply*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->put(*a0,a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QNetworkReply,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_put, doc_QNetworkAccessManager_put);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_createRequest, "QNetworkAccessManager.createRequest(QNetworkAccessManager.Operation, QNetworkRequest, QIODevice device=None) -> QNetworkReply");

extern "C" {static PyObject *meth_QNetworkAccessManager_createRequest(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_createRequest(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QNetworkAccessManager::Operation a0;
        const QNetworkRequest* a1;
        QIODevice* a2 = 0;
        sipQNetworkAccessManager *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_device,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BEJ9|J8", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkAccessManager_Operation, &a0, sipType_QNetworkRequest, &a1, sipType_QIODevice, &a2))
        {
            QNetworkReply*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_createRequest(sipSelfWasArg,a0,*a1,a2);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QNetworkReply,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_createRequest, doc_QNetworkAccessManager_createRequest);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_proxyFactory, "QNetworkAccessManager.proxyFactory() -> QNetworkProxyFactory");

extern "C" {static PyObject *meth_QNetworkAccessManager_proxyFactory(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_proxyFactory(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkAccessManager, &sipCpp))
        {
            QNetworkProxyFactory*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->proxyFactory();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QNetworkProxyFactory,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_proxyFactory, doc_QNetworkAccessManager_proxyFactory);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_setProxyFactory, "QNetworkAccessManager.setProxyFactory(QNetworkProxyFactory)");

extern "C" {static PyObject *meth_QNetworkAccessManager_setProxyFactory(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_setProxyFactory(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkProxyFactory* a0;
        QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkProxyFactory, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProxyFactory(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_QNetworkAccessManager, sipName_setProxyFactory, doc_QNetworkAccessManager_setProxyFactory);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_cache, "QNetworkAccessManager.cache() -> QAbstractNetworkCache");

extern "C" {static PyObject *meth_QNetworkAccessManager_cache(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_cache(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkAccessManager, &sipCpp))
        {
            QAbstractNetworkCache*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->cache();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QAbstractNetworkCache,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_cache, doc_QNetworkAccessManager_cache);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_setCache, "QNetworkAccessManager.setCache(QAbstractNetworkCache)");

extern "C" {static PyObject *meth_QNetworkAccessManager_setCache(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_setCache(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractNetworkCache* a0;
        QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QAbstractNetworkCache, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCache(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_QNetworkAccessManager, sipName_setCache, doc_QNetworkAccessManager_setCache);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_deleteResource, "QNetworkAccessManager.deleteResource(QNetworkRequest) -> QNetworkReply");

extern "C" {static PyObject *meth_QNetworkAccessManager_deleteResource(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_deleteResource(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkRequest* a0;
        QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkRequest, &a0))
        {
            QNetworkReply*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->deleteResource(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QNetworkReply,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_deleteResource, doc_QNetworkAccessManager_deleteResource);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_sendCustomRequest, "QNetworkAccessManager.sendCustomRequest(QNetworkRequest, QByteArray, QIODevice data=None) -> QNetworkReply");

extern "C" {static PyObject *meth_QNetworkAccessManager_sendCustomRequest(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_sendCustomRequest(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkRequest* a0;
        const QByteArray* a1;
        int a1State = 0;
        QIODevice* a2 = 0;
        QNetworkAccessManager *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_data,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9J1|J8", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkRequest, &a0, sipType_QByteArray, &a1, &a1State, sipType_QIODevice, &a2))
        {
            QNetworkReply*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sendCustomRequest(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            return sipConvertFromType(sipRes,sipType_QNetworkReply,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_sendCustomRequest, doc_QNetworkAccessManager_sendCustomRequest);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_setConfiguration, "QNetworkAccessManager.setConfiguration(QNetworkConfiguration)");

extern "C" {static PyObject *meth_QNetworkAccessManager_setConfiguration(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_setConfiguration(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkConfiguration* a0;
        QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkConfiguration, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setConfiguration(*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_QNetworkAccessManager, sipName_setConfiguration, doc_QNetworkAccessManager_setConfiguration);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_configuration, "QNetworkAccessManager.configuration() -> QNetworkConfiguration");

extern "C" {static PyObject *meth_QNetworkAccessManager_configuration(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_configuration(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkAccessManager, &sipCpp))
        {
            QNetworkConfiguration*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfiguration(sipCpp->configuration());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfiguration,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_configuration, doc_QNetworkAccessManager_configuration);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_activeConfiguration, "QNetworkAccessManager.activeConfiguration() -> QNetworkConfiguration");

extern "C" {static PyObject *meth_QNetworkAccessManager_activeConfiguration(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_activeConfiguration(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkAccessManager, &sipCpp))
        {
            QNetworkConfiguration*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkConfiguration(sipCpp->activeConfiguration());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkConfiguration,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_activeConfiguration, doc_QNetworkAccessManager_activeConfiguration);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_setNetworkAccessible, "QNetworkAccessManager.setNetworkAccessible(QNetworkAccessManager.NetworkAccessibility)");

extern "C" {static PyObject *meth_QNetworkAccessManager_setNetworkAccessible(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_setNetworkAccessible(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkAccessManager::NetworkAccessibility a0;
        QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, sipType_QNetworkAccessManager_NetworkAccessibility, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setNetworkAccessible(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_QNetworkAccessManager, sipName_setNetworkAccessible, doc_QNetworkAccessManager_setNetworkAccessible);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkAccessManager_networkAccessible, "QNetworkAccessManager.networkAccessible() -> QNetworkAccessManager.NetworkAccessibility");

extern "C" {static PyObject *meth_QNetworkAccessManager_networkAccessible(PyObject *, PyObject *);}
static PyObject *meth_QNetworkAccessManager_networkAccessible(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkAccessManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkAccessManager, &sipCpp))
        {
            QNetworkAccessManager::NetworkAccessibility sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->networkAccessible();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QNetworkAccessManager_NetworkAccessibility);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkAccessManager, sipName_networkAccessible, doc_QNetworkAccessManager_networkAccessible);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkAccessManager(void *, const sipTypeDef *);}
static void *cast_QNetworkAccessManager(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QNetworkAccessManager)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QNetworkAccessManager *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkAccessManager(void *, int);}
static void release_QNetworkAccessManager(void *sipCppV,int)
{
    QNetworkAccessManager *sipCpp = reinterpret_cast<QNetworkAccessManager *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QNetworkAccessManager(sipSimpleWrapper *);}
static void dealloc_QNetworkAccessManager(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQNetworkAccessManager *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkAccessManager(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QNetworkAccessManager(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkAccessManager(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQNetworkAccessManager *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQNetworkAccessManager(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QNetworkAccessManager[] = {{141, 0, 1}};


static PyMethodDef methods_QNetworkAccessManager[] = {
    {SIP_MLNAME_CAST(sipName_activeConfiguration), meth_QNetworkAccessManager_activeConfiguration, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_activeConfiguration)},
    {SIP_MLNAME_CAST(sipName_cache), meth_QNetworkAccessManager_cache, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_cache)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QNetworkAccessManager_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_configuration), meth_QNetworkAccessManager_configuration, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_configuration)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QNetworkAccessManager_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_cookieJar), meth_QNetworkAccessManager_cookieJar, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_cookieJar)},
    {SIP_MLNAME_CAST(sipName_createRequest), (PyCFunction)meth_QNetworkAccessManager_createRequest, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_createRequest)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QNetworkAccessManager_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteResource), meth_QNetworkAccessManager_deleteResource, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_deleteResource)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QNetworkAccessManager_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_get), meth_QNetworkAccessManager_get, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_get)},
    {SIP_MLNAME_CAST(sipName_head), meth_QNetworkAccessManager_head, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_head)},
    {SIP_MLNAME_CAST(sipName_networkAccessible), meth_QNetworkAccessManager_networkAccessible, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_networkAccessible)},
    {SIP_MLNAME_CAST(sipName_post), meth_QNetworkAccessManager_post, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_post)},
    {SIP_MLNAME_CAST(sipName_proxy), meth_QNetworkAccessManager_proxy, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_proxy)},
    {SIP_MLNAME_CAST(sipName_proxyFactory), meth_QNetworkAccessManager_proxyFactory, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_proxyFactory)},
    {SIP_MLNAME_CAST(sipName_put), meth_QNetworkAccessManager_put, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_put)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QNetworkAccessManager_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sendCustomRequest), (PyCFunction)meth_QNetworkAccessManager_sendCustomRequest, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_sendCustomRequest)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QNetworkAccessManager_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QNetworkAccessManager_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setCache), meth_QNetworkAccessManager_setCache, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_setCache)},
    {SIP_MLNAME_CAST(sipName_setConfiguration), meth_QNetworkAccessManager_setConfiguration, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_setConfiguration)},
    {SIP_MLNAME_CAST(sipName_setCookieJar), meth_QNetworkAccessManager_setCookieJar, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_setCookieJar)},
    {SIP_MLNAME_CAST(sipName_setNetworkAccessible), meth_QNetworkAccessManager_setNetworkAccessible, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_setNetworkAccessible)},
    {SIP_MLNAME_CAST(sipName_setProxy), meth_QNetworkAccessManager_setProxy, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_setProxy)},
    {SIP_MLNAME_CAST(sipName_setProxyFactory), meth_QNetworkAccessManager_setProxyFactory, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkAccessManager_setProxyFactory)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QNetworkAccessManager_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

static sipEnumMemberDef enummembers_QNetworkAccessManager[] = {
    {sipName_Accessible, static_cast<int>(QNetworkAccessManager::Accessible), 44},
    {sipName_CustomOperation, static_cast<int>(QNetworkAccessManager::CustomOperation), 45},
    {sipName_DeleteOperation, static_cast<int>(QNetworkAccessManager::DeleteOperation), 45},
    {sipName_GetOperation, static_cast<int>(QNetworkAccessManager::GetOperation), 45},
    {sipName_HeadOperation, static_cast<int>(QNetworkAccessManager::HeadOperation), 45},
    {sipName_NotAccessible, static_cast<int>(QNetworkAccessManager::NotAccessible), 44},
    {sipName_PostOperation, static_cast<int>(QNetworkAccessManager::PostOperation), 45},
    {sipName_PutOperation, static_cast<int>(QNetworkAccessManager::PutOperation), 45},
    {sipName_UnknownAccessibility, static_cast<int>(QNetworkAccessManager::UnknownAccessibility), 44},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_QNetworkAccessManager[] = {
    {"networkAccessibleChanged(QNetworkAccessManager::NetworkAccessibility)", "\1QNetworkAccessManager.networkAccessibleChanged[QNetworkAccessManager.NetworkAccessibility]", 0, 0},
    {"sslErrors(QNetworkReply*,QList<QSslError>)", "\1QNetworkAccessManager.sslErrors[QNetworkReply, list-of-QSslError]", 0, 0},
    {"finished(QNetworkReply*)", "\1QNetworkAccessManager.finished[QNetworkReply]", 0, 0},
    {"authenticationRequired(QNetworkReply*,QAuthenticator*)", "\1QNetworkAccessManager.authenticationRequired[QNetworkReply, QAuthenticator]", 0, 0},
    {"proxyAuthenticationRequired(QNetworkProxy,QAuthenticator*)", "\1QNetworkAccessManager.proxyAuthenticationRequired[QNetworkProxy, QAuthenticator]", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QNetworkAccessManager, "\1QNetworkAccessManager(QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkAccessManager = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QNetworkAccessManager,
        {0}
    },
    {
        sipNameNr_QNetworkAccessManager,
        {0, 0, 1},
        28, methods_QNetworkAccessManager,
        9, enummembers_QNetworkAccessManager,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkAccessManager,
    -1,
    -1,
    supers_QNetworkAccessManager,
    0,
    init_type_QNetworkAccessManager,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkAccessManager,
    0,
    0,
    0,
    release_QNetworkAccessManager,
    cast_QNetworkAccessManager,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QNetworkAccessManager::staticMetaObject,
    0,
    signals_QNetworkAccessManager,
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qlocalsocket.sip"
#include <qlocalsocket.h>
#line 34399 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 34403 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 455 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 34406 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 34409 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 34412 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 34415 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34418 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34421 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34424 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 34427 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 34430 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 34433 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 34436 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 34439 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 34442 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 34445 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQLocalSocket : public QLocalSocket
{
public:
    sipQLocalSocket(QObject*);
    virtual ~sipQLocalSocket();

    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;
    qint64 sipProtectVirt_readLineData(bool,char*,qint64);
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);
    qint64 sipProtectVirt_readData(bool,char*,qint64);
    qint64 sipProtectVirt_writeData(bool,const char*,PY_LONG_LONG);

    /*
     * 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*);
    qint64 readLineData(char*,qint64);
    bool reset();
    bool atEnd() const;
    bool seek(qint64);
    qint64 size() const;
    qint64 pos() const;
    bool open(QIODevice::OpenMode);
    qint64 writeData(const char*,PY_LONG_LONG);
    qint64 readData(char*,qint64);
    bool waitForReadyRead(int);
    bool waitForBytesWritten(int);
    void close();
    bool canReadLine() const;
    qint64 bytesToWrite() const;
    qint64 bytesAvailable() const;
    bool isSequential() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQLocalSocket(const sipQLocalSocket &);
    sipQLocalSocket &operator = (const sipQLocalSocket &);

    char sipPyMethods[23];
};

sipQLocalSocket::sipQLocalSocket(QObject*a0): QLocalSocket(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQLocalSocket::~sipQLocalSocket()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQLocalSocket::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QLocalSocket);
}

int sipQLocalSocket::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QLocalSocket::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QLocalSocket,_c,_id,_a);

    return _id;
}

void *sipQLocalSocket::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QLocalSocket, _clname)) ? this : QLocalSocket::qt_metacast(_clname);
}

void sipQLocalSocket::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QLocalSocket::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQLocalSocket::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QLocalSocket::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQLocalSocket::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QLocalSocket::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQLocalSocket::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QLocalSocket::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQLocalSocket::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QLocalSocket::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQLocalSocket::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QLocalSocket::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQLocalSocket::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QLocalSocket::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQLocalSocket::readLineData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_readLineData);

    if (!sipMeth)
        return QLocalSocket::readLineData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQLocalSocket::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_reset);

    if (!sipMeth)
        return QLocalSocket::reset();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQLocalSocket::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_atEnd);

    if (!sipMeth)
        return QLocalSocket::atEnd();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQLocalSocket::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_seek);

    if (!sipMeth)
        return QLocalSocket::seek(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQLocalSocket::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return QLocalSocket::size();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQLocalSocket::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_pos);

    if (!sipMeth)
        return QLocalSocket::pos();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQLocalSocket::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return QLocalSocket::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQLocalSocket::writeData(const char*a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_writeData);

    if (!sipMeth)
        return QLocalSocket::writeData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return ((sipVH_QtCore_20)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipQLocalSocket::readData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_readData);

    if (!sipMeth)
        return QLocalSocket::readData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQLocalSocket::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!sipMeth)
        return QLocalSocket::waitForReadyRead(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQLocalSocket::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!sipMeth)
        return QLocalSocket::waitForBytesWritten(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQLocalSocket::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
    {
        QLocalSocket::close();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQLocalSocket::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,NULL,sipName_canReadLine);

    if (!sipMeth)
        return QLocalSocket::canReadLine();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQLocalSocket::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,NULL,sipName_bytesToWrite);

    if (!sipMeth)
        return QLocalSocket::bytesToWrite();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQLocalSocket::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_bytesAvailable);

    if (!sipMeth)
        return QLocalSocket::bytesAvailable();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQLocalSocket::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,NULL,sipName_isSequential);

    if (!sipMeth)
        return QLocalSocket::isSequential();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

QObject* sipQLocalSocket::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQLocalSocket::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQLocalSocket::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQLocalSocket::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQLocalSocket::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQLocalSocket::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQLocalSocket::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQLocalSocket::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

qint64 sipQLocalSocket::sipProtectVirt_readLineData(bool sipSelfWasArg,char*a0,qint64 a1)
{
    return (sipSelfWasArg ? QIODevice::readLineData(a0,a1) : readLineData(a0,a1));
}

void sipQLocalSocket::sipProtect_setOpenMode(QIODevice::OpenMode a0)
{
    QIODevice::setOpenMode(a0);
}

void sipQLocalSocket::sipProtect_setErrorString(const QString& a0)
{
    QIODevice::setErrorString(a0);
}

qint64 sipQLocalSocket::sipProtectVirt_readData(bool sipSelfWasArg,char*a0,qint64 a1)
{
    return (sipSelfWasArg ? QLocalSocket::readData(a0,a1) : readData(a0,a1));
}

qint64 sipQLocalSocket::sipProtectVirt_writeData(bool sipSelfWasArg,const char*a0,PY_LONG_LONG a1)
{
    return (sipSelfWasArg ? QLocalSocket::writeData(a0,a1) : writeData(a0,a1));
}


PyDoc_STRVAR(doc_QLocalSocket_sender, "QLocalSocket.sender() -> QObject");

extern "C" {static PyObject *meth_QLocalSocket_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QLocalSocket, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 35011 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_sender, doc_QLocalSocket_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_receivers, "QLocalSocket.receivers(SIGNAL()) -> int");

extern "C" {static PyObject *meth_QLocalSocket_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        char* a0;
        const sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QLocalSocket, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 35056 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_receivers, doc_QLocalSocket_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_timerEvent, "QLocalSocket.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QLocalSocket_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QLocalSocket, &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_QLocalSocket, sipName_timerEvent, doc_QLocalSocket_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_childEvent, "QLocalSocket.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QLocalSocket_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QLocalSocket, &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_QLocalSocket, sipName_childEvent, doc_QLocalSocket_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_customEvent, "QLocalSocket.customEvent(QEvent)");

extern "C" {static PyObject *meth_QLocalSocket_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QLocalSocket, &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_QLocalSocket, sipName_customEvent, doc_QLocalSocket_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_connectNotify, "QLocalSocket.connectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QLocalSocket_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QLocalSocket, &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_QLocalSocket, sipName_connectNotify, doc_QLocalSocket_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_disconnectNotify, "QLocalSocket.disconnectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QLocalSocket_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QLocalSocket, &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_QLocalSocket, sipName_disconnectNotify, doc_QLocalSocket_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_senderSignalIndex, "QLocalSocket.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QLocalSocket_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QLocalSocket, &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_QLocalSocket, sipName_senderSignalIndex, doc_QLocalSocket_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_readLineData, "QLocalSocket.readLineData(int) -> bytes");

extern "C" {static PyObject *meth_QLocalSocket_readLineData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_readLineData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bn", &sipSelf, sipType_QLocalSocket, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 239 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QIODevice::readLineData(s, a0) : sipCpp->readLineData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readLineData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 35300 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_readLineData, doc_QLocalSocket_readLineData);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_setOpenMode, "QLocalSocket.setOpenMode(QIODevice.OpenMode)");

extern "C" {static PyObject *meth_QLocalSocket_setOpenMode(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_setOpenMode(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QIODevice::OpenMode* a0;
        int a0State = 0;
        sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QLocalSocket, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOpenMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_setOpenMode, doc_QLocalSocket_setOpenMode);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_setErrorString, "QLocalSocket.setErrorString(str)");

extern "C" {static PyObject *meth_QLocalSocket_setErrorString(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_setErrorString(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QLocalSocket, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorString(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_setErrorString, doc_QLocalSocket_setErrorString);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_connectToServer, "QLocalSocket.connectToServer(str, QIODevice.OpenMode mode=QIODevice.ReadWrite)");

extern "C" {static PyObject *meth_QLocalSocket_connectToServer(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_connectToServer(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QIODevice::OpenMode a1def = QIODevice::ReadWrite;
        QIODevice::OpenMode* a1 = &a1def;
        int a1State = 0;
        QLocalSocket *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J1", &sipSelf, sipType_QLocalSocket, &sipCpp, sipType_QString,&a0, &a0State, sipType_QIODevice_OpenMode, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToServer(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_QIODevice_OpenMode,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_connectToServer, doc_QLocalSocket_connectToServer);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_disconnectFromServer, "QLocalSocket.disconnectFromServer()");

extern "C" {static PyObject *meth_QLocalSocket_disconnectFromServer(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_disconnectFromServer(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->disconnectFromServer();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_disconnectFromServer, doc_QLocalSocket_disconnectFromServer);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_serverName, "QLocalSocket.serverName() -> str");

extern "C" {static PyObject *meth_QLocalSocket_serverName(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_serverName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalSocket, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->serverName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_serverName, doc_QLocalSocket_serverName);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_fullServerName, "QLocalSocket.fullServerName() -> str");

extern "C" {static PyObject *meth_QLocalSocket_fullServerName(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_fullServerName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalSocket, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->fullServerName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_fullServerName, doc_QLocalSocket_fullServerName);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_abort, "QLocalSocket.abort()");

extern "C" {static PyObject *meth_QLocalSocket_abort(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_abort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->abort();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_abort, doc_QLocalSocket_abort);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_isSequential, "QLocalSocket.isSequential() -> bool");

extern "C" {static PyObject *meth_QLocalSocket_isSequential(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_isSequential(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalSocket, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QLocalSocket::isSequential() : sipCpp->isSequential());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_isSequential, doc_QLocalSocket_isSequential);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_bytesAvailable, "QLocalSocket.bytesAvailable() -> int");

extern "C" {static PyObject *meth_QLocalSocket_bytesAvailable(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_bytesAvailable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalSocket, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QLocalSocket::bytesAvailable() : sipCpp->bytesAvailable());
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_bytesAvailable, doc_QLocalSocket_bytesAvailable);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_bytesToWrite, "QLocalSocket.bytesToWrite() -> int");

extern "C" {static PyObject *meth_QLocalSocket_bytesToWrite(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_bytesToWrite(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalSocket, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QLocalSocket::bytesToWrite() : sipCpp->bytesToWrite());
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_bytesToWrite, doc_QLocalSocket_bytesToWrite);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_canReadLine, "QLocalSocket.canReadLine() -> bool");

extern "C" {static PyObject *meth_QLocalSocket_canReadLine(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_canReadLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalSocket, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QLocalSocket::canReadLine() : sipCpp->canReadLine());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_canReadLine, doc_QLocalSocket_canReadLine);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_close, "QLocalSocket.close()");

extern "C" {static PyObject *meth_QLocalSocket_close(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QLocalSocket::close() : sipCpp->close());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_close, doc_QLocalSocket_close);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_error, "QLocalSocket.error() -> QLocalSocket.LocalSocketError");

extern "C" {static PyObject *meth_QLocalSocket_error(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_error(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalSocket, &sipCpp))
        {
            QLocalSocket::LocalSocketError sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QLocalSocket_LocalSocketError);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_error, doc_QLocalSocket_error);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_flush, "QLocalSocket.flush() -> bool");

extern "C" {static PyObject *meth_QLocalSocket_flush(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_flush(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalSocket, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->flush();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_flush, doc_QLocalSocket_flush);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_isValid, "QLocalSocket.isValid() -> bool");

extern "C" {static PyObject *meth_QLocalSocket_isValid(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalSocket, &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_QLocalSocket, sipName_isValid, doc_QLocalSocket_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_readBufferSize, "QLocalSocket.readBufferSize() -> int");

extern "C" {static PyObject *meth_QLocalSocket_readBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_readBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalSocket, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->readBufferSize();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_readBufferSize, doc_QLocalSocket_readBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_setReadBufferSize, "QLocalSocket.setReadBufferSize(int)");

extern "C" {static PyObject *meth_QLocalSocket_setReadBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_setReadBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qint64 a0;
        QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QLocalSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setReadBufferSize(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_QLocalSocket, sipName_setReadBufferSize, doc_QLocalSocket_setReadBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_setSocketDescriptor, "QLocalSocket.setSocketDescriptor(sip.voidptr, QLocalSocket.LocalSocketState state=QLocalSocket.ConnectedState, QIODevice.OpenMode mode=QIODevice.ReadWrite) -> bool");

extern "C" {static PyObject *meth_QLocalSocket_setSocketDescriptor(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_setSocketDescriptor(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        quintptr* a0;
        int a0State = 0;
        QLocalSocket::LocalSocketState a1 = QLocalSocket::ConnectedState;
        QIODevice::OpenMode a2def = QIODevice::ReadWrite;
        QIODevice::OpenMode* a2 = &a2def;
        int a2State = 0;
        QLocalSocket *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_state,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|EJ1", &sipSelf, sipType_QLocalSocket, &sipCpp, sipType_quintptr,&a0, &a0State, sipType_QLocalSocket_LocalSocketState, &a1, sipType_QIODevice_OpenMode, &a2, &a2State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setSocketDescriptor(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_quintptr,a0State);
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_setSocketDescriptor, doc_QLocalSocket_setSocketDescriptor);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_socketDescriptor, "QLocalSocket.socketDescriptor() -> sip.voidptr");

extern "C" {static PyObject *meth_QLocalSocket_socketDescriptor(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_socketDescriptor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalSocket, &sipCpp))
        {
            quintptr*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new quintptr(sipCpp->socketDescriptor());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_quintptr,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_socketDescriptor, doc_QLocalSocket_socketDescriptor);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_state, "QLocalSocket.state() -> QLocalSocket.LocalSocketState");

extern "C" {static PyObject *meth_QLocalSocket_state(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_state(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLocalSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalSocket, &sipCpp))
        {
            QLocalSocket::LocalSocketState sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->state();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QLocalSocket_LocalSocketState);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_state, doc_QLocalSocket_state);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_waitForBytesWritten, "QLocalSocket.waitForBytesWritten(int msecs=30000) -> bool");

extern "C" {static PyObject *meth_QLocalSocket_waitForBytesWritten(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_waitForBytesWritten(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0 = 30000;
        QLocalSocket *sipCpp;

        static const char *sipKwdList[] = {
            sipName_msecs,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QLocalSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QLocalSocket::waitForBytesWritten(a0) : sipCpp->waitForBytesWritten(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_waitForBytesWritten, doc_QLocalSocket_waitForBytesWritten);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_waitForConnected, "QLocalSocket.waitForConnected(int msecs=30000) -> bool");

extern "C" {static PyObject *meth_QLocalSocket_waitForConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_waitForConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = 30000;
        QLocalSocket *sipCpp;

        static const char *sipKwdList[] = {
            sipName_msecs,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QLocalSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForConnected(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_waitForConnected, doc_QLocalSocket_waitForConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_waitForDisconnected, "QLocalSocket.waitForDisconnected(int msecs=30000) -> bool");

extern "C" {static PyObject *meth_QLocalSocket_waitForDisconnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_waitForDisconnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = 30000;
        QLocalSocket *sipCpp;

        static const char *sipKwdList[] = {
            sipName_msecs,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QLocalSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForDisconnected(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_waitForDisconnected, doc_QLocalSocket_waitForDisconnected);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_waitForReadyRead, "QLocalSocket.waitForReadyRead(int msecs=30000) -> bool");

extern "C" {static PyObject *meth_QLocalSocket_waitForReadyRead(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_waitForReadyRead(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0 = 30000;
        QLocalSocket *sipCpp;

        static const char *sipKwdList[] = {
            sipName_msecs,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QLocalSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QLocalSocket::waitForReadyRead(a0) : sipCpp->waitForReadyRead(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_waitForReadyRead, doc_QLocalSocket_waitForReadyRead);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_readData, "QLocalSocket.readData(int) -> bytes");

extern "C" {static PyObject *meth_QLocalSocket_readData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_readData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bn", &sipSelf, sipType_QLocalSocket, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 111 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qlocalsocket.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QLocalSocket::readData(s, a0) : sipCpp->readData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 36117 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_readData, doc_QLocalSocket_readData);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalSocket_writeData, "QLocalSocket.writeData(str) -> int");

extern "C" {static PyObject *meth_QLocalSocket_writeData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_writeData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const char* a0;
        SIP_SSIZE_T a1;
        sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bk", &sipSelf, sipType_QLocalSocket, &sipCpp, &a0, &a1))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_writeData(sipSelfWasArg,a0,(PY_LONG_LONG)a1);
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalSocket, sipName_writeData, doc_QLocalSocket_writeData);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QLocalSocket(void *, const sipTypeDef *);}
static void *cast_QLocalSocket(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QLocalSocket)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QIODevice)->ctd_cast((QIODevice *)(QLocalSocket *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QLocalSocket(void *, int);}
static void release_QLocalSocket(void *sipCppV,int)
{
    QLocalSocket *sipCpp = reinterpret_cast<QLocalSocket *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QLocalSocket(sipSimpleWrapper *);}
static void dealloc_QLocalSocket(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQLocalSocket *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QLocalSocket(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QLocalSocket(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QLocalSocket(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQLocalSocket *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQLocalSocket(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QLocalSocket[] = {{81, 0, 1}};


static PyMethodDef methods_QLocalSocket[] = {
    {SIP_MLNAME_CAST(sipName_abort), meth_QLocalSocket_abort, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_abort)},
    {SIP_MLNAME_CAST(sipName_bytesAvailable), meth_QLocalSocket_bytesAvailable, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_bytesAvailable)},
    {SIP_MLNAME_CAST(sipName_bytesToWrite), meth_QLocalSocket_bytesToWrite, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_bytesToWrite)},
    {SIP_MLNAME_CAST(sipName_canReadLine), meth_QLocalSocket_canReadLine, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_canReadLine)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QLocalSocket_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_QLocalSocket_close, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_close)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QLocalSocket_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToServer), (PyCFunction)meth_QLocalSocket_connectToServer, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QLocalSocket_connectToServer)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QLocalSocket_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectFromServer), meth_QLocalSocket_disconnectFromServer, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_disconnectFromServer)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QLocalSocket_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_error), meth_QLocalSocket_error, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_error)},
    {SIP_MLNAME_CAST(sipName_flush), meth_QLocalSocket_flush, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_flush)},
    {SIP_MLNAME_CAST(sipName_fullServerName), meth_QLocalSocket_fullServerName, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_fullServerName)},
    {SIP_MLNAME_CAST(sipName_isSequential), meth_QLocalSocket_isSequential, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_isSequential)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QLocalSocket_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_isValid)},
    {SIP_MLNAME_CAST(sipName_readBufferSize), meth_QLocalSocket_readBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_readBufferSize)},
    {SIP_MLNAME_CAST(sipName_readData), (PyCFunction)meth_QLocalSocket_readData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QLocalSocket_readData)},
    {SIP_MLNAME_CAST(sipName_readLineData), (PyCFunction)meth_QLocalSocket_readLineData, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QLocalSocket_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QLocalSocket_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QLocalSocket_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_serverName), meth_QLocalSocket_serverName, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_serverName)},
    {SIP_MLNAME_CAST(sipName_setErrorString), (PyCFunction)meth_QLocalSocket_setErrorString, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpenMode), (PyCFunction)meth_QLocalSocket_setOpenMode, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setReadBufferSize), meth_QLocalSocket_setReadBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_setReadBufferSize)},
    {SIP_MLNAME_CAST(sipName_setSocketDescriptor), (PyCFunction)meth_QLocalSocket_setSocketDescriptor, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QLocalSocket_setSocketDescriptor)},
    {SIP_MLNAME_CAST(sipName_socketDescriptor), meth_QLocalSocket_socketDescriptor, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_socketDescriptor)},
    {SIP_MLNAME_CAST(sipName_state), meth_QLocalSocket_state, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalSocket_state)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QLocalSocket_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForBytesWritten), (PyCFunction)meth_QLocalSocket_waitForBytesWritten, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QLocalSocket_waitForBytesWritten)},
    {SIP_MLNAME_CAST(sipName_waitForConnected), (PyCFunction)meth_QLocalSocket_waitForConnected, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QLocalSocket_waitForConnected)},
    {SIP_MLNAME_CAST(sipName_waitForDisconnected), (PyCFunction)meth_QLocalSocket_waitForDisconnected, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QLocalSocket_waitForDisconnected)},
    {SIP_MLNAME_CAST(sipName_waitForReadyRead), (PyCFunction)meth_QLocalSocket_waitForReadyRead, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QLocalSocket_waitForReadyRead)},
    {SIP_MLNAME_CAST(sipName_writeData), (PyCFunction)meth_QLocalSocket_writeData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QLocalSocket_writeData)}
};

static sipEnumMemberDef enummembers_QLocalSocket[] = {
    {sipName_ClosingState, static_cast<int>(QLocalSocket::ClosingState), 41},
    {sipName_ConnectedState, static_cast<int>(QLocalSocket::ConnectedState), 41},
    {sipName_ConnectingState, static_cast<int>(QLocalSocket::ConnectingState), 41},
    {sipName_ConnectionError, static_cast<int>(QLocalSocket::ConnectionError), 40},
    {sipName_ConnectionRefusedError, static_cast<int>(QLocalSocket::ConnectionRefusedError), 40},
    {sipName_DatagramTooLargeError, static_cast<int>(QLocalSocket::DatagramTooLargeError), 40},
    {sipName_PeerClosedError, static_cast<int>(QLocalSocket::PeerClosedError), 40},
    {sipName_ServerNotFoundError, static_cast<int>(QLocalSocket::ServerNotFoundError), 40},
    {sipName_SocketAccessError, static_cast<int>(QLocalSocket::SocketAccessError), 40},
    {sipName_SocketResourceError, static_cast<int>(QLocalSocket::SocketResourceError), 40},
    {sipName_SocketTimeoutError, static_cast<int>(QLocalSocket::SocketTimeoutError), 40},
    {sipName_UnconnectedState, static_cast<int>(QLocalSocket::UnconnectedState), 41},
    {sipName_UnknownSocketError, static_cast<int>(QLocalSocket::UnknownSocketError), 40},
    {sipName_UnsupportedSocketOperationError, static_cast<int>(QLocalSocket::UnsupportedSocketOperationError), 40},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_QLocalSocket[] = {
    {"stateChanged(QLocalSocket::LocalSocketState)", "\1QLocalSocket.stateChanged[QLocalSocket.LocalSocketState]", 0, 0},
    {"disconnected()", "\1QLocalSocket.disconnected", 0, 0},
    {"connected()", "\1QLocalSocket.connected", 0, 0},
    {"error(QLocalSocket::LocalSocketError)", "\1QLocalSocket.error[QLocalSocket.LocalSocketError]", &methods_QLocalSocket[11], 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QLocalSocket, "\1QLocalSocket(QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QLocalSocket = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QLocalSocket,
        {0}
    },
    {
        sipNameNr_QLocalSocket,
        {0, 0, 1},
        35, methods_QLocalSocket,
        14, enummembers_QLocalSocket,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QLocalSocket,
    -1,
    -1,
    supers_QLocalSocket,
    0,
    init_type_QLocalSocket,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QLocalSocket,
    0,
    0,
    0,
    release_QLocalSocket,
    cast_QLocalSocket,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QLocalSocket::staticMetaObject,
    0,
    signals_QLocalSocket,
};

#line 39 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qlocalserver.sip"
#include <qlocalserver.h>
#line 36367 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 36371 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 455 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 36374 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 36377 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 36380 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qlocalsocket.sip"
#include <qlocalsocket.h>
#line 36383 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 36386 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 36389 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 36392 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 36395 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 36398 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 36401 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 36404 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 36407 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 36410 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 36413 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 36416 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQLocalServer : public QLocalServer
{
public:
    sipQLocalServer(QObject*);
    virtual ~sipQLocalServer();

    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;
    void sipProtectVirt_incomingConnection(bool,quintptr);

    /*
     * 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*);
    void incomingConnection(quintptr);
    QLocalSocket* nextPendingConnection();
    bool hasPendingConnections() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQLocalServer(const sipQLocalServer &);
    sipQLocalServer &operator = (const sipQLocalServer &);

    char sipPyMethods[10];
};

sipQLocalServer::sipQLocalServer(QObject*a0): QLocalServer(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQLocalServer::~sipQLocalServer()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQLocalServer::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QLocalServer);
}

int sipQLocalServer::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QLocalServer::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QLocalServer,_c,_id,_a);

    return _id;
}

void *sipQLocalServer::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QLocalServer, _clname)) ? this : QLocalServer::qt_metacast(_clname);
}

void sipQLocalServer::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QLocalServer::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQLocalServer::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QLocalServer::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQLocalServer::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QLocalServer::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQLocalServer::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QLocalServer::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQLocalServer::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QLocalServer::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQLocalServer::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QLocalServer::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQLocalServer::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QLocalServer::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQLocalServer::incomingConnection(quintptr a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_incomingConnection);

    if (!sipMeth)
    {
        QLocalServer::incomingConnection(a0);
        return;
    }

    extern void sipVH_QtNetwork_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, quintptr);

    sipVH_QtNetwork_14(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QLocalSocket* sipQLocalServer::nextPendingConnection()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_nextPendingConnection);

    if (!sipMeth)
        return QLocalServer::nextPendingConnection();

    extern QLocalSocket* sipVH_QtNetwork_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_15(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQLocalServer::hasPendingConnections() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_hasPendingConnections);

    if (!sipMeth)
        return QLocalServer::hasPendingConnections();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

QObject* sipQLocalServer::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQLocalServer::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQLocalServer::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQLocalServer::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQLocalServer::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQLocalServer::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQLocalServer::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQLocalServer::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

void sipQLocalServer::sipProtectVirt_incomingConnection(bool sipSelfWasArg,quintptr a0)
{
    (sipSelfWasArg ? QLocalServer::incomingConnection(a0) : incomingConnection(a0));
}


PyDoc_STRVAR(doc_QLocalServer_sender, "QLocalServer.sender() -> QObject");

extern "C" {static PyObject *meth_QLocalServer_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQLocalServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QLocalServer, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 36750 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalServer, sipName_sender, doc_QLocalServer_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_receivers, "QLocalServer.receivers(SIGNAL()) -> int");

extern "C" {static PyObject *meth_QLocalServer_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        char* a0;
        const sipQLocalServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QLocalServer, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 36795 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalServer, sipName_receivers, doc_QLocalServer_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_timerEvent, "QLocalServer.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QLocalServer_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQLocalServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QLocalServer, &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_QLocalServer, sipName_timerEvent, doc_QLocalServer_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_childEvent, "QLocalServer.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QLocalServer_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQLocalServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QLocalServer, &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_QLocalServer, sipName_childEvent, doc_QLocalServer_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_customEvent, "QLocalServer.customEvent(QEvent)");

extern "C" {static PyObject *meth_QLocalServer_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQLocalServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QLocalServer, &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_QLocalServer, sipName_customEvent, doc_QLocalServer_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_connectNotify, "QLocalServer.connectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QLocalServer_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQLocalServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QLocalServer, &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_QLocalServer, sipName_connectNotify, doc_QLocalServer_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_disconnectNotify, "QLocalServer.disconnectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QLocalServer_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQLocalServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QLocalServer, &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_QLocalServer, sipName_disconnectNotify, doc_QLocalServer_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_senderSignalIndex, "QLocalServer.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QLocalServer_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQLocalServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QLocalServer, &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_QLocalServer, sipName_senderSignalIndex, doc_QLocalServer_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_close, "QLocalServer.close()");

extern "C" {static PyObject *meth_QLocalServer_close(PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QLocalServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalServer, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->close();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalServer, sipName_close, doc_QLocalServer_close);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_errorString, "QLocalServer.errorString() -> str");

extern "C" {static PyObject *meth_QLocalServer_errorString(PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_errorString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLocalServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalServer, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->errorString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalServer, sipName_errorString, doc_QLocalServer_errorString);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_hasPendingConnections, "QLocalServer.hasPendingConnections() -> bool");

extern "C" {static PyObject *meth_QLocalServer_hasPendingConnections(PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_hasPendingConnections(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QLocalServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalServer, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QLocalServer::hasPendingConnections() : sipCpp->hasPendingConnections());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalServer, sipName_hasPendingConnections, doc_QLocalServer_hasPendingConnections);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_isListening, "QLocalServer.isListening() -> bool");

extern "C" {static PyObject *meth_QLocalServer_isListening(PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_isListening(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLocalServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalServer, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isListening();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalServer, sipName_isListening, doc_QLocalServer_isListening);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_listen, "QLocalServer.listen(str) -> bool");

extern "C" {static PyObject *meth_QLocalServer_listen(PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_listen(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QLocalServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QLocalServer, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->listen(*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_QLocalServer, sipName_listen, doc_QLocalServer_listen);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_maxPendingConnections, "QLocalServer.maxPendingConnections() -> int");

extern "C" {static PyObject *meth_QLocalServer_maxPendingConnections(PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_maxPendingConnections(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLocalServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalServer, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->maxPendingConnections();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalServer, sipName_maxPendingConnections, doc_QLocalServer_maxPendingConnections);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_nextPendingConnection, "QLocalServer.nextPendingConnection() -> QLocalSocket");

extern "C" {static PyObject *meth_QLocalServer_nextPendingConnection(PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_nextPendingConnection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QLocalServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalServer, &sipCpp))
        {
            QLocalSocket*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QLocalServer::nextPendingConnection() : sipCpp->nextPendingConnection());
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QLocalSocket,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalServer, sipName_nextPendingConnection, doc_QLocalServer_nextPendingConnection);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_serverName, "QLocalServer.serverName() -> str");

extern "C" {static PyObject *meth_QLocalServer_serverName(PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_serverName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLocalServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalServer, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->serverName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalServer, sipName_serverName, doc_QLocalServer_serverName);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_fullServerName, "QLocalServer.fullServerName() -> str");

extern "C" {static PyObject *meth_QLocalServer_fullServerName(PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_fullServerName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLocalServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalServer, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->fullServerName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalServer, sipName_fullServerName, doc_QLocalServer_fullServerName);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_serverError, "QLocalServer.serverError() -> QAbstractSocket.SocketError");

extern "C" {static PyObject *meth_QLocalServer_serverError(PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_serverError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLocalServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLocalServer, &sipCpp))
        {
            QAbstractSocket::SocketError sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->serverError();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QAbstractSocket_SocketError);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalServer, sipName_serverError, doc_QLocalServer_serverError);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_setMaxPendingConnections, "QLocalServer.setMaxPendingConnections(int)");

extern "C" {static PyObject *meth_QLocalServer_setMaxPendingConnections(PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_setMaxPendingConnections(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QLocalServer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QLocalServer, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMaxPendingConnections(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_QLocalServer, sipName_setMaxPendingConnections, doc_QLocalServer_setMaxPendingConnections);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_waitForNewConnection, "QLocalServer.waitForNewConnection(int msecs=0) -> (bool, bool)");

extern "C" {static PyObject *meth_QLocalServer_waitForNewConnection(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_waitForNewConnection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = 0;
        bool a1;
        QLocalServer *sipCpp;

        static const char *sipKwdList[] = {
            sipName_msecs,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QLocalServer, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForNewConnection(a0,&a1);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(bb)",sipRes,a1);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalServer, sipName_waitForNewConnection, doc_QLocalServer_waitForNewConnection);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_removeServer, "QLocalServer.removeServer(str) -> bool");

extern "C" {static PyObject *meth_QLocalServer_removeServer(PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_removeServer(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = QLocalServer::removeServer(*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_QLocalServer, sipName_removeServer, doc_QLocalServer_removeServer);

    return NULL;
}


PyDoc_STRVAR(doc_QLocalServer_incomingConnection, "QLocalServer.incomingConnection(sip.voidptr)");

extern "C" {static PyObject *meth_QLocalServer_incomingConnection(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QLocalServer_incomingConnection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        quintptr* a0;
        int a0State = 0;
        sipQLocalServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QLocalServer, &sipCpp, sipType_quintptr,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_incomingConnection(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_quintptr,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLocalServer, sipName_incomingConnection, doc_QLocalServer_incomingConnection);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QLocalServer(void *, const sipTypeDef *);}
static void *cast_QLocalServer(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QLocalServer)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QLocalServer *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QLocalServer(void *, int);}
static void release_QLocalServer(void *sipCppV,int)
{
    QLocalServer *sipCpp = reinterpret_cast<QLocalServer *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QLocalServer(sipSimpleWrapper *);}
static void dealloc_QLocalServer(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQLocalServer *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QLocalServer(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QLocalServer(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QLocalServer(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQLocalServer *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQLocalServer(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QLocalServer[] = {{141, 0, 1}};


static PyMethodDef methods_QLocalServer[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QLocalServer_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_QLocalServer_close, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalServer_close)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QLocalServer_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QLocalServer_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QLocalServer_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_QLocalServer_errorString, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalServer_errorString)},
    {SIP_MLNAME_CAST(sipName_fullServerName), meth_QLocalServer_fullServerName, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalServer_fullServerName)},
    {SIP_MLNAME_CAST(sipName_hasPendingConnections), meth_QLocalServer_hasPendingConnections, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalServer_hasPendingConnections)},
    {SIP_MLNAME_CAST(sipName_incomingConnection), (PyCFunction)meth_QLocalServer_incomingConnection, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QLocalServer_incomingConnection)},
    {SIP_MLNAME_CAST(sipName_isListening), meth_QLocalServer_isListening, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalServer_isListening)},
    {SIP_MLNAME_CAST(sipName_listen), meth_QLocalServer_listen, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalServer_listen)},
    {SIP_MLNAME_CAST(sipName_maxPendingConnections), meth_QLocalServer_maxPendingConnections, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalServer_maxPendingConnections)},
    {SIP_MLNAME_CAST(sipName_nextPendingConnection), meth_QLocalServer_nextPendingConnection, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalServer_nextPendingConnection)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QLocalServer_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_removeServer), meth_QLocalServer_removeServer, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalServer_removeServer)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QLocalServer_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QLocalServer_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_serverError), meth_QLocalServer_serverError, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalServer_serverError)},
    {SIP_MLNAME_CAST(sipName_serverName), meth_QLocalServer_serverName, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalServer_serverName)},
    {SIP_MLNAME_CAST(sipName_setMaxPendingConnections), meth_QLocalServer_setMaxPendingConnections, METH_VARARGS, SIP_MLDOC_CAST(doc_QLocalServer_setMaxPendingConnections)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QLocalServer_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForNewConnection), (PyCFunction)meth_QLocalServer_waitForNewConnection, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QLocalServer_waitForNewConnection)}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_QLocalServer[] = {
    {"newConnection()", "\1QLocalServer.newConnection", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QLocalServer, "\1QLocalServer(QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QLocalServer = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QLocalServer,
        {0}
    },
    {
        sipNameNr_QLocalServer,
        {0, 0, 1},
        22, methods_QLocalServer,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QLocalServer,
    -1,
    -1,
    supers_QLocalServer,
    0,
    init_type_QLocalServer,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QLocalServer,
    0,
    0,
    0,
    release_QLocalServer,
    cast_QLocalServer,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QLocalServer::staticMetaObject,
    0,
    signals_QLocalServer,
};

#line 57 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhttpmultipart.sip"
#include <qhttpmultipart.h>
#line 37577 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 37581 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 37584 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhttpmultipart.sip"
#include <qhttpmultipart.h>
#line 37587 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 37590 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 37593 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 37596 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 37599 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 37602 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 37605 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 37608 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 37611 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 37614 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 37617 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 37620 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQHttpMultiPart : public QHttpMultiPart
{
public:
    sipQHttpMultiPart(QObject*);
    sipQHttpMultiPart(QHttpMultiPart::ContentType,QObject*);
    virtual ~sipQHttpMultiPart();

    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:
    sipQHttpMultiPart(const sipQHttpMultiPart &);
    sipQHttpMultiPart &operator = (const sipQHttpMultiPart &);

    char sipPyMethods[7];
};

sipQHttpMultiPart::sipQHttpMultiPart(QObject*a0): QHttpMultiPart(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttpMultiPart::sipQHttpMultiPart(QHttpMultiPart::ContentType a0,QObject*a1): QHttpMultiPart(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttpMultiPart::~sipQHttpMultiPart()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQHttpMultiPart::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QHttpMultiPart);
}

int sipQHttpMultiPart::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QHttpMultiPart::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QHttpMultiPart,_c,_id,_a);

    return _id;
}

void *sipQHttpMultiPart::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QHttpMultiPart, _clname)) ? this : QHttpMultiPart::qt_metacast(_clname);
}

void sipQHttpMultiPart::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QHttpMultiPart::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQHttpMultiPart::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QHttpMultiPart::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQHttpMultiPart::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QHttpMultiPart::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQHttpMultiPart::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QHttpMultiPart::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQHttpMultiPart::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QHttpMultiPart::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQHttpMultiPart::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QHttpMultiPart::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQHttpMultiPart::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QHttpMultiPart::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QObject* sipQHttpMultiPart::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQHttpMultiPart::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQHttpMultiPart::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQHttpMultiPart::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQHttpMultiPart::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQHttpMultiPart::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQHttpMultiPart::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQHttpMultiPart::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}


PyDoc_STRVAR(doc_QHttpMultiPart_sender, "QHttpMultiPart.sender() -> QObject");

extern "C" {static PyObject *meth_QHttpMultiPart_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpMultiPart_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQHttpMultiPart *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QHttpMultiPart, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 37903 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpMultiPart, sipName_sender, doc_QHttpMultiPart_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpMultiPart_receivers, "QHttpMultiPart.receivers(SIGNAL()) -> int");

extern "C" {static PyObject *meth_QHttpMultiPart_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpMultiPart_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        char* a0;
        const sipQHttpMultiPart *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QHttpMultiPart, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 37948 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpMultiPart, sipName_receivers, doc_QHttpMultiPart_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpMultiPart_timerEvent, "QHttpMultiPart.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QHttpMultiPart_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpMultiPart_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQHttpMultiPart *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QHttpMultiPart, &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_QHttpMultiPart, sipName_timerEvent, doc_QHttpMultiPart_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpMultiPart_childEvent, "QHttpMultiPart.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QHttpMultiPart_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpMultiPart_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQHttpMultiPart *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QHttpMultiPart, &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_QHttpMultiPart, sipName_childEvent, doc_QHttpMultiPart_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpMultiPart_customEvent, "QHttpMultiPart.customEvent(QEvent)");

extern "C" {static PyObject *meth_QHttpMultiPart_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpMultiPart_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQHttpMultiPart *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QHttpMultiPart, &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_QHttpMultiPart, sipName_customEvent, doc_QHttpMultiPart_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpMultiPart_connectNotify, "QHttpMultiPart.connectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QHttpMultiPart_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpMultiPart_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQHttpMultiPart *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QHttpMultiPart, &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_QHttpMultiPart, sipName_connectNotify, doc_QHttpMultiPart_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpMultiPart_disconnectNotify, "QHttpMultiPart.disconnectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QHttpMultiPart_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpMultiPart_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQHttpMultiPart *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QHttpMultiPart, &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_QHttpMultiPart, sipName_disconnectNotify, doc_QHttpMultiPart_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpMultiPart_senderSignalIndex, "QHttpMultiPart.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QHttpMultiPart_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpMultiPart_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQHttpMultiPart *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QHttpMultiPart, &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_QHttpMultiPart, sipName_senderSignalIndex, doc_QHttpMultiPart_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpMultiPart_append, "QHttpMultiPart.append(QHttpPart)");

extern "C" {static PyObject *meth_QHttpMultiPart_append(PyObject *, PyObject *);}
static PyObject *meth_QHttpMultiPart_append(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttpPart* a0;
        QHttpMultiPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QHttpMultiPart, &sipCpp, sipType_QHttpPart, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(*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_QHttpMultiPart, sipName_append, doc_QHttpMultiPart_append);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpMultiPart_setContentType, "QHttpMultiPart.setContentType(QHttpMultiPart.ContentType)");

extern "C" {static PyObject *meth_QHttpMultiPart_setContentType(PyObject *, PyObject *);}
static PyObject *meth_QHttpMultiPart_setContentType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QHttpMultiPart::ContentType a0;
        QHttpMultiPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QHttpMultiPart, &sipCpp, sipType_QHttpMultiPart_ContentType, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setContentType(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_QHttpMultiPart, sipName_setContentType, doc_QHttpMultiPart_setContentType);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpMultiPart_boundary, "QHttpMultiPart.boundary() -> QByteArray");

extern "C" {static PyObject *meth_QHttpMultiPart_boundary(PyObject *, PyObject *);}
static PyObject *meth_QHttpMultiPart_boundary(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttpMultiPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpMultiPart, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->boundary());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpMultiPart, sipName_boundary, doc_QHttpMultiPart_boundary);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpMultiPart_setBoundary, "QHttpMultiPart.setBoundary(QByteArray)");

extern "C" {static PyObject *meth_QHttpMultiPart_setBoundary(PyObject *, PyObject *);}
static PyObject *meth_QHttpMultiPart_setBoundary(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        QHttpMultiPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHttpMultiPart, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBoundary(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpMultiPart, sipName_setBoundary, doc_QHttpMultiPart_setBoundary);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QHttpMultiPart(void *, const sipTypeDef *);}
static void *cast_QHttpMultiPart(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QHttpMultiPart)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QHttpMultiPart *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QHttpMultiPart(void *, int);}
static void release_QHttpMultiPart(void *sipCppV,int)
{
    QHttpMultiPart *sipCpp = reinterpret_cast<QHttpMultiPart *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QHttpMultiPart(sipSimpleWrapper *);}
static void dealloc_QHttpMultiPart(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQHttpMultiPart *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QHttpMultiPart(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QHttpMultiPart(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QHttpMultiPart(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQHttpMultiPart *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQHttpMultiPart(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QHttpMultiPart::ContentType a0;
        QObject* a1 = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "E|JH", sipType_QHttpMultiPart_ContentType, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQHttpMultiPart(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QHttpMultiPart[] = {{141, 0, 1}};


static PyMethodDef methods_QHttpMultiPart[] = {
    {SIP_MLNAME_CAST(sipName_append), meth_QHttpMultiPart_append, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpMultiPart_append)},
    {SIP_MLNAME_CAST(sipName_boundary), meth_QHttpMultiPart_boundary, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpMultiPart_boundary)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QHttpMultiPart_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QHttpMultiPart_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QHttpMultiPart_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QHttpMultiPart_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QHttpMultiPart_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QHttpMultiPart_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QHttpMultiPart_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setBoundary), meth_QHttpMultiPart_setBoundary, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpMultiPart_setBoundary)},
    {SIP_MLNAME_CAST(sipName_setContentType), meth_QHttpMultiPart_setContentType, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpMultiPart_setContentType)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QHttpMultiPart_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

static sipEnumMemberDef enummembers_QHttpMultiPart[] = {
    {sipName_AlternativeType, static_cast<int>(QHttpMultiPart::AlternativeType), 25},
    {sipName_FormDataType, static_cast<int>(QHttpMultiPart::FormDataType), 25},
    {sipName_MixedType, static_cast<int>(QHttpMultiPart::MixedType), 25},
    {sipName_RelatedType, static_cast<int>(QHttpMultiPart::RelatedType), 25},
};

PyDoc_STRVAR(doc_QHttpMultiPart, "\1QHttpMultiPart(QObject parent=None)\n"
    "QHttpMultiPart(QHttpMultiPart.ContentType, QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QHttpMultiPart = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QHttpMultiPart,
        {0}
    },
    {
        sipNameNr_QHttpMultiPart,
        {0, 0, 1},
        12, methods_QHttpMultiPart,
        4, enummembers_QHttpMultiPart,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QHttpMultiPart,
    -1,
    -1,
    supers_QHttpMultiPart,
    0,
    init_type_QHttpMultiPart,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QHttpMultiPart,
    0,
    0,
    0,
    release_QHttpMultiPart,
    cast_QHttpMultiPart,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QHttpMultiPart::staticMetaObject,
    0,
    0
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhttpmultipart.sip"
#include <qhttpmultipart.h>
#line 38439 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 38443 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 38446 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkrequest.sip"
#include <qnetworkrequest.h>
#line 38449 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 38452 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QHttpPart_setHeader, "QHttpPart.setHeader(QNetworkRequest.KnownHeaders, object)");

extern "C" {static PyObject *meth_QHttpPart_setHeader(PyObject *, PyObject *);}
static PyObject *meth_QHttpPart_setHeader(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkRequest::KnownHeaders a0;
        const QVariant* a1;
        int a1State = 0;
        QHttpPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_QHttpPart, &sipCpp, sipType_QNetworkRequest_KnownHeaders, &a0, sipType_QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHeader(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpPart, sipName_setHeader, doc_QHttpPart_setHeader);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpPart_setRawHeader, "QHttpPart.setRawHeader(QByteArray, QByteArray)");

extern "C" {static PyObject *meth_QHttpPart_setRawHeader(PyObject *, PyObject *);}
static PyObject *meth_QHttpPart_setRawHeader(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        const QByteArray* a1;
        int a1State = 0;
        QHttpPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QHttpPart, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRawHeader(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpPart, sipName_setRawHeader, doc_QHttpPart_setRawHeader);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpPart_setBody, "QHttpPart.setBody(QByteArray)");

extern "C" {static PyObject *meth_QHttpPart_setBody(PyObject *, PyObject *);}
static PyObject *meth_QHttpPart_setBody(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        QHttpPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHttpPart, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBody(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpPart, sipName_setBody, doc_QHttpPart_setBody);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpPart_setBodyDevice, "QHttpPart.setBodyDevice(QIODevice)");

extern "C" {static PyObject *meth_QHttpPart_setBodyDevice(PyObject *, PyObject *);}
static PyObject *meth_QHttpPart_setBodyDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QIODevice* a0;
        QHttpPart *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QHttpPart, &sipCpp, sipType_QIODevice, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBodyDevice(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_QHttpPart, sipName_setBodyDevice, doc_QHttpPart_setBodyDevice);

    return NULL;
}


extern "C" {static PyObject *slot_QHttpPart___ne__(PyObject *,PyObject *);}
static PyObject *slot_QHttpPart___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QHttpPart *sipCpp = reinterpret_cast<QHttpPart *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QHttpPart));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QHttpPart* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QHttpPart, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QHttpPart::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QHttpPart,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QHttpPart___eq__(PyObject *,PyObject *);}
static PyObject *slot_QHttpPart___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QHttpPart *sipCpp = reinterpret_cast<QHttpPart *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QHttpPart));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QHttpPart* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QHttpPart, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QHttpPart::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QHttpPart,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QHttpPart(void *, const sipTypeDef *);}
static void *cast_QHttpPart(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QHttpPart)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QHttpPart(void *, int);}
static void release_QHttpPart(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QHttpPart *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QHttpPart(void *, SIP_SSIZE_T, const void *);}
static void assign_QHttpPart(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QHttpPart *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QHttpPart *>(sipSrc);
}


extern "C" {static void *array_QHttpPart(SIP_SSIZE_T);}
static void *array_QHttpPart(SIP_SSIZE_T sipNrElem)
{
    return new QHttpPart[sipNrElem];
}


extern "C" {static void *copy_QHttpPart(const void *, SIP_SSIZE_T);}
static void *copy_QHttpPart(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QHttpPart(reinterpret_cast<const QHttpPart *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QHttpPart(sipSimpleWrapper *);}
static void dealloc_QHttpPart(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QHttpPart(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QHttpPart(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QHttpPart(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QHttpPart *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QHttpPart();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QHttpPart* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QHttpPart, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QHttpPart(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QHttpPart[] = {
    {(void *)slot_QHttpPart___ne__, ne_slot},
    {(void *)slot_QHttpPart___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QHttpPart[] = {
    {SIP_MLNAME_CAST(sipName_setBody), meth_QHttpPart_setBody, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpPart_setBody)},
    {SIP_MLNAME_CAST(sipName_setBodyDevice), meth_QHttpPart_setBodyDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpPart_setBodyDevice)},
    {SIP_MLNAME_CAST(sipName_setHeader), meth_QHttpPart_setHeader, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpPart_setHeader)},
    {SIP_MLNAME_CAST(sipName_setRawHeader), meth_QHttpPart_setRawHeader, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpPart_setRawHeader)}
};

PyDoc_STRVAR(doc_QHttpPart, "\1QHttpPart()\n"
    "QHttpPart(QHttpPart)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QHttpPart = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QHttpPart,
        {0}
    },
    {
        sipNameNr_QHttpPart,
        {0, 0, 1},
        4, methods_QHttpPart,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QHttpPart,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QHttpPart,
    init_type_QHttpPart,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QHttpPart,
    assign_QHttpPart,
    array_QHttpPart,
    copy_QHttpPart,
    release_QHttpPart,
    cast_QHttpPart,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 124 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 38811 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 38815 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 38818 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 38821 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 38824 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 38827 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 38830 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 74 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 38833 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 99 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 38836 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 38839 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 38842 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qtcpsocket.sip"
#include <qtcpsocket.h>
#line 38845 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 38848 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 38851 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 38854 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 38857 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 38860 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 38863 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 38866 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 38869 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 38872 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 38875 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQHttp : public QHttp
{
public:
    sipQHttp(QObject*);
    sipQHttp(const QString&,quint16,QObject*);
    sipQHttp(const QString&,QHttp::ConnectionMode,quint16,QObject*);
    virtual ~sipQHttp();

    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:
    sipQHttp(const sipQHttp &);
    sipQHttp &operator = (const sipQHttp &);

    char sipPyMethods[7];
};

sipQHttp::sipQHttp(QObject*a0): QHttp(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttp::sipQHttp(const QString& a0,quint16 a1,QObject*a2): QHttp(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttp::sipQHttp(const QString& a0,QHttp::ConnectionMode a1,quint16 a2,QObject*a3): QHttp(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttp::~sipQHttp()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQHttp::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QHttp);
}

int sipQHttp::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QHttp::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QHttp,_c,_id,_a);

    return _id;
}

void *sipQHttp::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QHttp, _clname)) ? this : QHttp::qt_metacast(_clname);
}

void sipQHttp::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QHttp::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQHttp::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QHttp::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQHttp::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QHttp::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQHttp::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QHttp::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQHttp::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QHttp::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQHttp::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QHttp::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQHttp::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QHttp::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QObject* sipQHttp::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQHttp::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQHttp::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQHttp::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQHttp::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQHttp::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQHttp::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQHttp::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}


PyDoc_STRVAR(doc_QHttp_sender, "QHttp.sender() -> QObject");

extern "C" {static PyObject *meth_QHttp_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttp_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQHttp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 39164 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_sender, doc_QHttp_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_receivers, "QHttp.receivers(SIGNAL()) -> int");

extern "C" {static PyObject *meth_QHttp_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttp_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        char* a0;
        const sipQHttp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QHttp, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 39209 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_receivers, doc_QHttp_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_timerEvent, "QHttp.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QHttp_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttp_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQHttp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QHttp, &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_QHttp, sipName_timerEvent, doc_QHttp_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_childEvent, "QHttp.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QHttp_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttp_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQHttp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QHttp, &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_QHttp, sipName_childEvent, doc_QHttp_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_customEvent, "QHttp.customEvent(QEvent)");

extern "C" {static PyObject *meth_QHttp_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttp_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQHttp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QHttp, &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_QHttp, sipName_customEvent, doc_QHttp_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_connectNotify, "QHttp.connectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QHttp_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttp_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQHttp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QHttp, &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_QHttp, sipName_connectNotify, doc_QHttp_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_disconnectNotify, "QHttp.disconnectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QHttp_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttp_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQHttp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QHttp, &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_QHttp, sipName_disconnectNotify, doc_QHttp_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_senderSignalIndex, "QHttp.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QHttp_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttp_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQHttp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QHttp, &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_QHttp, sipName_senderSignalIndex, doc_QHttp_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_setHost, "QHttp.setHost(str, int port=80) -> int\n"
    "QHttp.setHost(str, QHttp.ConnectionMode, int port=0) -> int");

extern "C" {static PyObject *meth_QHttp_setHost(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttp_setHost(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        quint16 a1 = 80;
        QHttp *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_port,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|t", &sipSelf, sipType_QHttp, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setHost(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QHttp::ConnectionMode a1;
        quint16 a2 = 0;
        QHttp *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_port,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1E|t", &sipSelf, sipType_QHttp, &sipCpp, sipType_QString,&a0, &a0State, sipType_QHttp_ConnectionMode, &a1, &a2))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setHost(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_setHost, doc_QHttp_setHost);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_setSocket, "QHttp.setSocket(QTcpSocket) -> int");

extern "C" {static PyObject *meth_QHttp_setSocket(PyObject *, PyObject *);}
static PyObject *meth_QHttp_setSocket(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTcpSocket* a0;
        PyObject *a0Keep;
        QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B@J8", &sipSelf, sipType_QHttp, &sipCpp, &a0Keep, sipType_QTcpSocket, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setSocket(a0);
            Py_END_ALLOW_THREADS

            sipKeepReference(sipSelf, -2, a0Keep);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_setSocket, doc_QHttp_setSocket);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_setUser, "QHttp.setUser(str, str password='') -> int");

extern "C" {static PyObject *meth_QHttp_setUser(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttp_setUser(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;
        QHttp *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_password,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J1", &sipSelf, sipType_QHttp, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setUser(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_setUser, doc_QHttp_setUser);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_setProxy, "QHttp.setProxy(str, int, str user='', str password='') -> int\n"
    "QHttp.setProxy(QNetworkProxy) -> int");

extern "C" {static PyObject *meth_QHttp_setProxy(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttp_setProxy(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        int a1;
        const QString& a2def = QString();
        const QString* a2 = &a2def;
        int a2State = 0;
        const QString& a3def = QString();
        const QString* a3 = &a3def;
        int a3State = 0;
        QHttp *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_user,
            sipName_password,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1i|J1J1", &sipSelf, sipType_QHttp, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setProxy(*a0,a1,*a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QNetworkProxy* a0;
        QHttp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QHttp, &sipCpp, sipType_QNetworkProxy, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setProxy(*a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_setProxy, doc_QHttp_setProxy);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_get, "QHttp.get(str, QIODevice to=None) -> int");

extern "C" {static PyObject *meth_QHttp_get(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttp_get(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QIODevice* a1 = 0;
        QHttp *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_to,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J8", &sipSelf, sipType_QHttp, &sipCpp, sipType_QString,&a0, &a0State, sipType_QIODevice, &a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->get(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_get, doc_QHttp_get);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_post, "QHttp.post(str, QIODevice, QIODevice to=None) -> int\n"
    "QHttp.post(str, QByteArray, QIODevice to=None) -> int");

extern "C" {static PyObject *meth_QHttp_post(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttp_post(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QIODevice* a1;
        QIODevice* a2 = 0;
        QHttp *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_to,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1J8|J8", &sipSelf, sipType_QHttp, &sipCpp, sipType_QString,&a0, &a0State, sipType_QIODevice, &a1, sipType_QIODevice, &a2))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->post(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QByteArray* a1;
        int a1State = 0;
        QIODevice* a2 = 0;
        QHttp *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_to,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1J1|J8", &sipSelf, sipType_QHttp, &sipCpp, sipType_QString,&a0, &a0State, sipType_QByteArray, &a1, &a1State, sipType_QIODevice, &a2))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->post(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_post, doc_QHttp_post);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_head, "QHttp.head(str) -> int");

extern "C" {static PyObject *meth_QHttp_head(PyObject *, PyObject *);}
static PyObject *meth_QHttp_head(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHttp, &sipCpp, sipType_QString,&a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->head(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_head, doc_QHttp_head);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_request, "QHttp.request(QHttpRequestHeader, QIODevice data=None, QIODevice to=None) -> int\n"
    "QHttp.request(QHttpRequestHeader, QByteArray, QIODevice to=None) -> int");

extern "C" {static PyObject *meth_QHttp_request(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttp_request(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttpRequestHeader* a0;
        QIODevice* a1 = 0;
        QIODevice* a2 = 0;
        QHttp *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_data,
            sipName_to,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|J8J8", &sipSelf, sipType_QHttp, &sipCpp, sipType_QHttpRequestHeader, &a0, sipType_QIODevice, &a1, sipType_QIODevice, &a2))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->request(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QHttpRequestHeader* a0;
        const QByteArray* a1;
        int a1State = 0;
        QIODevice* a2 = 0;
        QHttp *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_to,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9J1|J8", &sipSelf, sipType_QHttp, &sipCpp, sipType_QHttpRequestHeader, &a0, sipType_QByteArray, &a1, &a1State, sipType_QIODevice, &a2))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->request(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_request, doc_QHttp_request);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_close, "QHttp.close() -> int");

extern "C" {static PyObject *meth_QHttp_close(PyObject *, PyObject *);}
static PyObject *meth_QHttp_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->close();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_close, doc_QHttp_close);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_bytesAvailable, "QHttp.bytesAvailable() -> int");

extern "C" {static PyObject *meth_QHttp_bytesAvailable(PyObject *, PyObject *);}
static PyObject *meth_QHttp_bytesAvailable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->bytesAvailable();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_bytesAvailable, doc_QHttp_bytesAvailable);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_read, "QHttp.read(int) -> bytes");

extern "C" {static PyObject *meth_QHttp_read(PyObject *, PyObject *);}
static PyObject *meth_QHttp_read(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qint64 a0;
        QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QHttp, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 193 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhttp.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
            len = sipCpp->read(s, a0);
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 39914 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_read, doc_QHttp_read);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_readAll, "QHttp.readAll() -> QByteArray");

extern "C" {static PyObject *meth_QHttp_readAll(PyObject *, PyObject *);}
static PyObject *meth_QHttp_readAll(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->readAll());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_readAll, doc_QHttp_readAll);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_currentId, "QHttp.currentId() -> int");

extern "C" {static PyObject *meth_QHttp_currentId(PyObject *, PyObject *);}
static PyObject *meth_QHttp_currentId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currentId();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_currentId, doc_QHttp_currentId);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_currentSourceDevice, "QHttp.currentSourceDevice() -> QIODevice");

extern "C" {static PyObject *meth_QHttp_currentSourceDevice(PyObject *, PyObject *);}
static PyObject *meth_QHttp_currentSourceDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            QIODevice*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currentSourceDevice();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QIODevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_currentSourceDevice, doc_QHttp_currentSourceDevice);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_currentDestinationDevice, "QHttp.currentDestinationDevice() -> QIODevice");

extern "C" {static PyObject *meth_QHttp_currentDestinationDevice(PyObject *, PyObject *);}
static PyObject *meth_QHttp_currentDestinationDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            QIODevice*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currentDestinationDevice();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QIODevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_currentDestinationDevice, doc_QHttp_currentDestinationDevice);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_currentRequest, "QHttp.currentRequest() -> QHttpRequestHeader");

extern "C" {static PyObject *meth_QHttp_currentRequest(PyObject *, PyObject *);}
static PyObject *meth_QHttp_currentRequest(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            QHttpRequestHeader*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHttpRequestHeader(sipCpp->currentRequest());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHttpRequestHeader,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_currentRequest, doc_QHttp_currentRequest);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_lastResponse, "QHttp.lastResponse() -> QHttpResponseHeader");

extern "C" {static PyObject *meth_QHttp_lastResponse(PyObject *, PyObject *);}
static PyObject *meth_QHttp_lastResponse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            QHttpResponseHeader*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHttpResponseHeader(sipCpp->lastResponse());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHttpResponseHeader,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_lastResponse, doc_QHttp_lastResponse);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_hasPendingRequests, "QHttp.hasPendingRequests() -> bool");

extern "C" {static PyObject *meth_QHttp_hasPendingRequests(PyObject *, PyObject *);}
static PyObject *meth_QHttp_hasPendingRequests(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasPendingRequests();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_hasPendingRequests, doc_QHttp_hasPendingRequests);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_clearPendingRequests, "QHttp.clearPendingRequests()");

extern "C" {static PyObject *meth_QHttp_clearPendingRequests(PyObject *, PyObject *);}
static PyObject *meth_QHttp_clearPendingRequests(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearPendingRequests();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_clearPendingRequests, doc_QHttp_clearPendingRequests);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_state, "QHttp.state() -> QHttp.State");

extern "C" {static PyObject *meth_QHttp_state(PyObject *, PyObject *);}
static PyObject *meth_QHttp_state(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            QHttp::State sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->state();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QHttp_State);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_state, doc_QHttp_state);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_error, "QHttp.error() -> QHttp.Error");

extern "C" {static PyObject *meth_QHttp_error(PyObject *, PyObject *);}
static PyObject *meth_QHttp_error(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            QHttp::Error sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QHttp_Error);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_error, doc_QHttp_error);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_errorString, "QHttp.errorString() -> str");

extern "C" {static PyObject *meth_QHttp_errorString(PyObject *, PyObject *);}
static PyObject *meth_QHttp_errorString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->errorString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_errorString, doc_QHttp_errorString);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_abort, "QHttp.abort()");

extern "C" {static PyObject *meth_QHttp_abort(PyObject *, PyObject *);}
static PyObject *meth_QHttp_abort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->abort();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_abort, doc_QHttp_abort);

    return NULL;
}


PyDoc_STRVAR(doc_QHttp_ignoreSslErrors, "QHttp.ignoreSslErrors()");

extern "C" {static PyObject *meth_QHttp_ignoreSslErrors(PyObject *, PyObject *);}
static PyObject *meth_QHttp_ignoreSslErrors(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QHttp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttp, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->ignoreSslErrors();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttp, sipName_ignoreSslErrors, doc_QHttp_ignoreSslErrors);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QHttp(void *, const sipTypeDef *);}
static void *cast_QHttp(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QHttp)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QHttp *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QHttp(void *, int);}
static void release_QHttp(void *sipCppV,int)
{
    QHttp *sipCpp = reinterpret_cast<QHttp *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QHttp(sipSimpleWrapper *);}
static void dealloc_QHttp(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQHttp *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QHttp(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QHttp(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QHttp(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQHttp *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQHttp(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        quint16 a1 = 80;
        QObject* a2 = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_port,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|tJH", sipType_QString,&a0, &a0State, &a1, sipType_QObject, &a2, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQHttp(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QHttp::ConnectionMode a1;
        quint16 a2 = 0;
        QObject* a3 = 0;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_port,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1E|tJH", sipType_QString,&a0, &a0State, sipType_QHttp_ConnectionMode, &a1, &a2, sipType_QObject, &a3, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQHttp(*a0,a1,a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QHttp[] = {{141, 0, 1}};


static PyMethodDef methods_QHttp[] = {
    {SIP_MLNAME_CAST(sipName_abort), meth_QHttp_abort, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_abort)},
    {SIP_MLNAME_CAST(sipName_bytesAvailable), meth_QHttp_bytesAvailable, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_bytesAvailable)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QHttp_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_clearPendingRequests), meth_QHttp_clearPendingRequests, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_clearPendingRequests)},
    {SIP_MLNAME_CAST(sipName_close), meth_QHttp_close, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_close)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QHttp_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_currentDestinationDevice), meth_QHttp_currentDestinationDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_currentDestinationDevice)},
    {SIP_MLNAME_CAST(sipName_currentId), meth_QHttp_currentId, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_currentId)},
    {SIP_MLNAME_CAST(sipName_currentRequest), meth_QHttp_currentRequest, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_currentRequest)},
    {SIP_MLNAME_CAST(sipName_currentSourceDevice), meth_QHttp_currentSourceDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_currentSourceDevice)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QHttp_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QHttp_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_error), meth_QHttp_error, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_error)},
    {SIP_MLNAME_CAST(sipName_errorString), meth_QHttp_errorString, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_errorString)},
    {SIP_MLNAME_CAST(sipName_get), (PyCFunction)meth_QHttp_get, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QHttp_get)},
    {SIP_MLNAME_CAST(sipName_hasPendingRequests), meth_QHttp_hasPendingRequests, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_hasPendingRequests)},
    {SIP_MLNAME_CAST(sipName_head), meth_QHttp_head, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_head)},
    {SIP_MLNAME_CAST(sipName_ignoreSslErrors), meth_QHttp_ignoreSslErrors, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_ignoreSslErrors)},
    {SIP_MLNAME_CAST(sipName_lastResponse), meth_QHttp_lastResponse, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_lastResponse)},
    {SIP_MLNAME_CAST(sipName_post), (PyCFunction)meth_QHttp_post, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QHttp_post)},
    {SIP_MLNAME_CAST(sipName_read), meth_QHttp_read, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_read)},
    {SIP_MLNAME_CAST(sipName_readAll), meth_QHttp_readAll, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_readAll)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QHttp_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_request), (PyCFunction)meth_QHttp_request, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QHttp_request)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QHttp_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QHttp_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setHost), (PyCFunction)meth_QHttp_setHost, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QHttp_setHost)},
    {SIP_MLNAME_CAST(sipName_setProxy), (PyCFunction)meth_QHttp_setProxy, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QHttp_setProxy)},
    {SIP_MLNAME_CAST(sipName_setSocket), meth_QHttp_setSocket, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_setSocket)},
    {SIP_MLNAME_CAST(sipName_setUser), (PyCFunction)meth_QHttp_setUser, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QHttp_setUser)},
    {SIP_MLNAME_CAST(sipName_state), meth_QHttp_state, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttp_state)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QHttp_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

static sipEnumMemberDef enummembers_QHttp[] = {
    {sipName_Aborted, static_cast<int>(QHttp::Aborted), 21},
    {sipName_AuthenticationRequiredError, static_cast<int>(QHttp::AuthenticationRequiredError), 21},
    {sipName_Closing, static_cast<int>(QHttp::Closing), 22},
    {sipName_Connected, static_cast<int>(QHttp::Connected), 22},
    {sipName_Connecting, static_cast<int>(QHttp::Connecting), 22},
    {sipName_ConnectionModeHttp, static_cast<int>(QHttp::ConnectionModeHttp), 20},
    {sipName_ConnectionModeHttps, static_cast<int>(QHttp::ConnectionModeHttps), 20},
    {sipName_ConnectionRefused, static_cast<int>(QHttp::ConnectionRefused), 21},
    {sipName_HostLookup, static_cast<int>(QHttp::HostLookup), 22},
    {sipName_HostNotFound, static_cast<int>(QHttp::HostNotFound), 21},
    {sipName_InvalidResponseHeader, static_cast<int>(QHttp::InvalidResponseHeader), 21},
    {sipName_NoError, static_cast<int>(QHttp::NoError), 21},
    {sipName_ProxyAuthenticationRequiredError, static_cast<int>(QHttp::ProxyAuthenticationRequiredError), 21},
    {sipName_Reading, static_cast<int>(QHttp::Reading), 22},
    {sipName_Sending, static_cast<int>(QHttp::Sending), 22},
    {sipName_Unconnected, static_cast<int>(QHttp::Unconnected), 22},
    {sipName_UnexpectedClose, static_cast<int>(QHttp::UnexpectedClose), 21},
    {sipName_UnknownError, static_cast<int>(QHttp::UnknownError), 21},
    {sipName_WrongContentLength, static_cast<int>(QHttp::WrongContentLength), 21},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_QHttp[] = {
    {"sslErrors(QList<QSslError>)", "\1QHttp.sslErrors[list-of-QSslError]", 0, 0},
    {"authenticationRequired(QString,quint16,QAuthenticator*)", "\1QHttp.authenticationRequired[str, int, QAuthenticator]", 0, 0},
    {"proxyAuthenticationRequired(QNetworkProxy,QAuthenticator*)", "\1QHttp.proxyAuthenticationRequired[QNetworkProxy, QAuthenticator]", 0, 0},
    {"done(bool)", "\1QHttp.done[bool]", 0, 0},
    {"requestFinished(int,bool)", "\1QHttp.requestFinished[int, bool]", 0, 0},
    {"requestStarted(int)", "\1QHttp.requestStarted[int]", 0, 0},
    {"dataReadProgress(int,int)", "\1QHttp.dataReadProgress[int, int]", 0, 0},
    {"dataSendProgress(int,int)", "\1QHttp.dataSendProgress[int, int]", 0, 0},
    {"readyRead(QHttpResponseHeader)", "\1QHttp.readyRead[QHttpResponseHeader]", 0, 0},
    {"responseHeaderReceived(QHttpResponseHeader)", "\1QHttp.responseHeaderReceived[QHttpResponseHeader]", 0, 0},
    {"stateChanged(int)", "\1QHttp.stateChanged[int]", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QHttp, "\1QHttp(QObject parent=None)\n"
    "QHttp(str, int port=80, QObject parent=None)\n"
    "QHttp(str, QHttp.ConnectionMode, int port=0, QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QHttp = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QHttp,
        {0}
    },
    {
        sipNameNr_QHttp,
        {0, 0, 1},
        32, methods_QHttp,
        19, enummembers_QHttp,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QHttp,
    -1,
    -1,
    supers_QHttp,
    0,
    init_type_QHttp,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QHttp,
    0,
    0,
    0,
    release_QHttp,
    cast_QHttp,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QHttp::staticMetaObject,
    0,
    signals_QHttp,
};

#line 99 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 40569 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 40573 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 40576 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 201 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 40580 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 77 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 40583 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQHttpRequestHeader : public QHttpRequestHeader
{
public:
    sipQHttpRequestHeader();
    sipQHttpRequestHeader(const QString&,const QString&,int,int);
    sipQHttpRequestHeader(const QHttpRequestHeader&);
    sipQHttpRequestHeader(const QString&);
    virtual ~sipQHttpRequestHeader();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    bool sipProtect_parse(const QString&);
    void sipProtect_setValid(bool);
    bool sipProtectVirt_parseLine(bool,const QString&,int);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool parseLine(const QString&,int);
    QString toString() const;
    int minorVersion() const;
    int majorVersion() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQHttpRequestHeader(const sipQHttpRequestHeader &);
    sipQHttpRequestHeader &operator = (const sipQHttpRequestHeader &);

    char sipPyMethods[4];
};

sipQHttpRequestHeader::sipQHttpRequestHeader(): QHttpRequestHeader(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttpRequestHeader::sipQHttpRequestHeader(const QString& a0,const QString& a1,int a2,int a3): QHttpRequestHeader(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttpRequestHeader::sipQHttpRequestHeader(const QHttpRequestHeader& a0): QHttpRequestHeader(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttpRequestHeader::sipQHttpRequestHeader(const QString& a0): QHttpRequestHeader(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttpRequestHeader::~sipQHttpRequestHeader()
{
    sipCommonDtor(sipPySelf);
}

bool sipQHttpRequestHeader::parseLine(const QString& a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_parseLine);

    if (!sipMeth)
        return QHttpRequestHeader::parseLine(a0,a1);

    extern bool sipVH_QtNetwork_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,int);

    return sipVH_QtNetwork_16(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QString sipQHttpRequestHeader::toString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_toString);

    if (!sipMeth)
        return QHttpRequestHeader::toString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

int sipQHttpRequestHeader::minorVersion() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_minorVersion);

    if (!sipMeth)
        return QHttpRequestHeader::minorVersion();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

int sipQHttpRequestHeader::majorVersion() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_majorVersion);

    if (!sipMeth)
        return QHttpRequestHeader::majorVersion();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQHttpRequestHeader::sipProtect_parse(const QString& a0)
{
    return QHttpHeader::parse(a0);
}

void sipQHttpRequestHeader::sipProtect_setValid(bool a0)
{
    QHttpHeader::setValid(a0);
}

bool sipQHttpRequestHeader::sipProtectVirt_parseLine(bool sipSelfWasArg,const QString& a0,int a1)
{
    return (sipSelfWasArg ? QHttpRequestHeader::parseLine(a0,a1) : parseLine(a0,a1));
}


PyDoc_STRVAR(doc_QHttpRequestHeader_parse, "QHttpRequestHeader.parse(str) -> bool");

extern "C" {static PyObject *meth_QHttpRequestHeader_parse(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpRequestHeader_parse(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        sipQHttpRequestHeader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QHttpRequestHeader, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_parse(*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_QHttpRequestHeader, sipName_parse, doc_QHttpRequestHeader_parse);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpRequestHeader_setValid, "QHttpRequestHeader.setValid(bool)");

extern "C" {static PyObject *meth_QHttpRequestHeader_setValid(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpRequestHeader_setValid(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        sipQHttpRequestHeader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bb", &sipSelf, sipType_QHttpRequestHeader, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setValid(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_QHttpRequestHeader, sipName_setValid, doc_QHttpRequestHeader_setValid);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpRequestHeader_setRequest, "QHttpRequestHeader.setRequest(str, str, int major=1, int minor=1)");

extern "C" {static PyObject *meth_QHttpRequestHeader_setRequest(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpRequestHeader_setRequest(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        int a2 = 1;
        int a3 = 1;
        QHttpRequestHeader *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_major,
            sipName_minor,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1J1|ii", &sipSelf, sipType_QHttpRequestHeader, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, &a2, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRequest(*a0,*a1,a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpRequestHeader, sipName_setRequest, doc_QHttpRequestHeader_setRequest);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpRequestHeader_method, "QHttpRequestHeader.method() -> str");

extern "C" {static PyObject *meth_QHttpRequestHeader_method(PyObject *, PyObject *);}
static PyObject *meth_QHttpRequestHeader_method(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttpRequestHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpRequestHeader, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->method());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpRequestHeader, sipName_method, doc_QHttpRequestHeader_method);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpRequestHeader_path, "QHttpRequestHeader.path() -> str");

extern "C" {static PyObject *meth_QHttpRequestHeader_path(PyObject *, PyObject *);}
static PyObject *meth_QHttpRequestHeader_path(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttpRequestHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpRequestHeader, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->path());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpRequestHeader, sipName_path, doc_QHttpRequestHeader_path);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpRequestHeader_majorVersion, "QHttpRequestHeader.majorVersion() -> int");

extern "C" {static PyObject *meth_QHttpRequestHeader_majorVersion(PyObject *, PyObject *);}
static PyObject *meth_QHttpRequestHeader_majorVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QHttpRequestHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpRequestHeader, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QHttpRequestHeader::majorVersion() : sipCpp->majorVersion());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpRequestHeader, sipName_majorVersion, doc_QHttpRequestHeader_majorVersion);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpRequestHeader_minorVersion, "QHttpRequestHeader.minorVersion() -> int");

extern "C" {static PyObject *meth_QHttpRequestHeader_minorVersion(PyObject *, PyObject *);}
static PyObject *meth_QHttpRequestHeader_minorVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QHttpRequestHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpRequestHeader, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QHttpRequestHeader::minorVersion() : sipCpp->minorVersion());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpRequestHeader, sipName_minorVersion, doc_QHttpRequestHeader_minorVersion);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpRequestHeader_toString, "QHttpRequestHeader.toString() -> str");

extern "C" {static PyObject *meth_QHttpRequestHeader_toString(PyObject *, PyObject *);}
static PyObject *meth_QHttpRequestHeader_toString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QHttpRequestHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpRequestHeader, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->QHttpRequestHeader::toString() : 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_QHttpRequestHeader, sipName_toString, doc_QHttpRequestHeader_toString);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpRequestHeader_parseLine, "QHttpRequestHeader.parseLine(str, int) -> bool");

extern "C" {static PyObject *meth_QHttpRequestHeader_parseLine(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpRequestHeader_parseLine(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        int a1;
        sipQHttpRequestHeader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1i", &sipSelf, sipType_QHttpRequestHeader, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_parseLine(sipSelfWasArg,*a0,a1);
            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_QHttpRequestHeader, sipName_parseLine, doc_QHttpRequestHeader_parseLine);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QHttpRequestHeader(void *, const sipTypeDef *);}
static void *cast_QHttpRequestHeader(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QHttpRequestHeader)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QHttpHeader)->ctd_cast((QHttpHeader *)(QHttpRequestHeader *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QHttpRequestHeader(void *, int);}
static void release_QHttpRequestHeader(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQHttpRequestHeader *>(sipCppV);
    else
        delete reinterpret_cast<QHttpRequestHeader *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QHttpRequestHeader(void *, SIP_SSIZE_T, const void *);}
static void assign_QHttpRequestHeader(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QHttpRequestHeader *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QHttpRequestHeader *>(sipSrc);
}


extern "C" {static void *array_QHttpRequestHeader(SIP_SSIZE_T);}
static void *array_QHttpRequestHeader(SIP_SSIZE_T sipNrElem)
{
    return new QHttpRequestHeader[sipNrElem];
}


extern "C" {static void *copy_QHttpRequestHeader(const void *, SIP_SSIZE_T);}
static void *copy_QHttpRequestHeader(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QHttpRequestHeader(reinterpret_cast<const QHttpRequestHeader *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QHttpRequestHeader(sipSimpleWrapper *);}
static void dealloc_QHttpRequestHeader(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQHttpRequestHeader *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QHttpRequestHeader(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QHttpRequestHeader(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QHttpRequestHeader(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQHttpRequestHeader *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQHttpRequestHeader();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        int a2 = 1;
        int a3 = 1;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_major,
            sipName_minor,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1J1|ii", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, &a2, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQHttpRequestHeader(*a0,*a1,a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QHttpRequestHeader* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QHttpRequestHeader, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQHttpRequestHeader(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            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 sipQHttpRequestHeader(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QHttpRequestHeader[] = {{23, 255, 1}};


static PyMethodDef methods_QHttpRequestHeader[] = {
    {SIP_MLNAME_CAST(sipName_majorVersion), meth_QHttpRequestHeader_majorVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpRequestHeader_majorVersion)},
    {SIP_MLNAME_CAST(sipName_method), meth_QHttpRequestHeader_method, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpRequestHeader_method)},
    {SIP_MLNAME_CAST(sipName_minorVersion), meth_QHttpRequestHeader_minorVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpRequestHeader_minorVersion)},
    {SIP_MLNAME_CAST(sipName_parse), (PyCFunction)meth_QHttpRequestHeader_parse, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_parseLine), (PyCFunction)meth_QHttpRequestHeader_parseLine, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QHttpRequestHeader_parseLine)},
    {SIP_MLNAME_CAST(sipName_path), meth_QHttpRequestHeader_path, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpRequestHeader_path)},
    {SIP_MLNAME_CAST(sipName_setRequest), (PyCFunction)meth_QHttpRequestHeader_setRequest, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QHttpRequestHeader_setRequest)},
    {SIP_MLNAME_CAST(sipName_setValid), (PyCFunction)meth_QHttpRequestHeader_setValid, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_QHttpRequestHeader_toString, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpRequestHeader_toString)}
};

PyDoc_STRVAR(doc_QHttpRequestHeader, "\1QHttpRequestHeader()\n"
    "QHttpRequestHeader(str, str, int major=1, int minor=1)\n"
    "QHttpRequestHeader(QHttpRequestHeader)\n"
    "QHttpRequestHeader(str)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QHttpRequestHeader = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QHttpRequestHeader,
        {0}
    },
    {
        sipNameNr_QHttpRequestHeader,
        {0, 0, 1},
        9, methods_QHttpRequestHeader,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QHttpRequestHeader,
    -1,
    -1,
    supers_QHttpRequestHeader,
    0,
    init_type_QHttpRequestHeader,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QHttpRequestHeader,
    assign_QHttpRequestHeader,
    array_QHttpRequestHeader,
    copy_QHttpRequestHeader,
    release_QHttpRequestHeader,
    cast_QHttpRequestHeader,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 74 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 41236 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 41240 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 41243 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 201 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 41247 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 77 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 41250 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQHttpResponseHeader : public QHttpResponseHeader
{
public:
    sipQHttpResponseHeader();
    sipQHttpResponseHeader(const QHttpResponseHeader&);
    sipQHttpResponseHeader(const QString&);
    sipQHttpResponseHeader(int,const QString&,int,int);
    virtual ~sipQHttpResponseHeader();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    bool sipProtect_parse(const QString&);
    void sipProtect_setValid(bool);
    bool sipProtectVirt_parseLine(bool,const QString&,int);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool parseLine(const QString&,int);
    QString toString() const;
    int minorVersion() const;
    int majorVersion() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQHttpResponseHeader(const sipQHttpResponseHeader &);
    sipQHttpResponseHeader &operator = (const sipQHttpResponseHeader &);

    char sipPyMethods[4];
};

sipQHttpResponseHeader::sipQHttpResponseHeader(): QHttpResponseHeader(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttpResponseHeader::sipQHttpResponseHeader(const QHttpResponseHeader& a0): QHttpResponseHeader(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttpResponseHeader::sipQHttpResponseHeader(const QString& a0): QHttpResponseHeader(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttpResponseHeader::sipQHttpResponseHeader(int a0,const QString& a1,int a2,int a3): QHttpResponseHeader(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttpResponseHeader::~sipQHttpResponseHeader()
{
    sipCommonDtor(sipPySelf);
}

bool sipQHttpResponseHeader::parseLine(const QString& a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_parseLine);

    if (!sipMeth)
        return QHttpResponseHeader::parseLine(a0,a1);

    extern bool sipVH_QtNetwork_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,int);

    return sipVH_QtNetwork_16(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

QString sipQHttpResponseHeader::toString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_toString);

    if (!sipMeth)
        return QHttpResponseHeader::toString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

int sipQHttpResponseHeader::minorVersion() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_minorVersion);

    if (!sipMeth)
        return QHttpResponseHeader::minorVersion();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

int sipQHttpResponseHeader::majorVersion() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_majorVersion);

    if (!sipMeth)
        return QHttpResponseHeader::majorVersion();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQHttpResponseHeader::sipProtect_parse(const QString& a0)
{
    return QHttpHeader::parse(a0);
}

void sipQHttpResponseHeader::sipProtect_setValid(bool a0)
{
    QHttpHeader::setValid(a0);
}

bool sipQHttpResponseHeader::sipProtectVirt_parseLine(bool sipSelfWasArg,const QString& a0,int a1)
{
    return (sipSelfWasArg ? QHttpResponseHeader::parseLine(a0,a1) : parseLine(a0,a1));
}


PyDoc_STRVAR(doc_QHttpResponseHeader_parse, "QHttpResponseHeader.parse(str) -> bool");

extern "C" {static PyObject *meth_QHttpResponseHeader_parse(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpResponseHeader_parse(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        sipQHttpResponseHeader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QHttpResponseHeader, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_parse(*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_QHttpResponseHeader, sipName_parse, doc_QHttpResponseHeader_parse);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpResponseHeader_setValid, "QHttpResponseHeader.setValid(bool)");

extern "C" {static PyObject *meth_QHttpResponseHeader_setValid(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpResponseHeader_setValid(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        sipQHttpResponseHeader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bb", &sipSelf, sipType_QHttpResponseHeader, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setValid(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_QHttpResponseHeader, sipName_setValid, doc_QHttpResponseHeader_setValid);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpResponseHeader_setStatusLine, "QHttpResponseHeader.setStatusLine(int, str text='', int major=1, int minor=1)");

extern "C" {static PyObject *meth_QHttpResponseHeader_setStatusLine(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpResponseHeader_setStatusLine(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        int a2 = 1;
        int a3 = 1;
        QHttpResponseHeader *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_text,
            sipName_major,
            sipName_minor,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|J1ii", &sipSelf, sipType_QHttpResponseHeader, &sipCpp, &a0, sipType_QString,&a1, &a1State, &a2, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setStatusLine(a0,*a1,a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpResponseHeader, sipName_setStatusLine, doc_QHttpResponseHeader_setStatusLine);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpResponseHeader_statusCode, "QHttpResponseHeader.statusCode() -> int");

extern "C" {static PyObject *meth_QHttpResponseHeader_statusCode(PyObject *, PyObject *);}
static PyObject *meth_QHttpResponseHeader_statusCode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttpResponseHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpResponseHeader, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->statusCode();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpResponseHeader, sipName_statusCode, doc_QHttpResponseHeader_statusCode);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpResponseHeader_reasonPhrase, "QHttpResponseHeader.reasonPhrase() -> str");

extern "C" {static PyObject *meth_QHttpResponseHeader_reasonPhrase(PyObject *, PyObject *);}
static PyObject *meth_QHttpResponseHeader_reasonPhrase(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttpResponseHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpResponseHeader, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->reasonPhrase());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpResponseHeader, sipName_reasonPhrase, doc_QHttpResponseHeader_reasonPhrase);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpResponseHeader_majorVersion, "QHttpResponseHeader.majorVersion() -> int");

extern "C" {static PyObject *meth_QHttpResponseHeader_majorVersion(PyObject *, PyObject *);}
static PyObject *meth_QHttpResponseHeader_majorVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QHttpResponseHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpResponseHeader, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QHttpResponseHeader::majorVersion() : sipCpp->majorVersion());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpResponseHeader, sipName_majorVersion, doc_QHttpResponseHeader_majorVersion);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpResponseHeader_minorVersion, "QHttpResponseHeader.minorVersion() -> int");

extern "C" {static PyObject *meth_QHttpResponseHeader_minorVersion(PyObject *, PyObject *);}
static PyObject *meth_QHttpResponseHeader_minorVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QHttpResponseHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpResponseHeader, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QHttpResponseHeader::minorVersion() : sipCpp->minorVersion());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpResponseHeader, sipName_minorVersion, doc_QHttpResponseHeader_minorVersion);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpResponseHeader_toString, "QHttpResponseHeader.toString() -> str");

extern "C" {static PyObject *meth_QHttpResponseHeader_toString(PyObject *, PyObject *);}
static PyObject *meth_QHttpResponseHeader_toString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QHttpResponseHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpResponseHeader, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->QHttpResponseHeader::toString() : 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_QHttpResponseHeader, sipName_toString, doc_QHttpResponseHeader_toString);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpResponseHeader_parseLine, "QHttpResponseHeader.parseLine(str, int) -> bool");

extern "C" {static PyObject *meth_QHttpResponseHeader_parseLine(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpResponseHeader_parseLine(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        int a1;
        sipQHttpResponseHeader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1i", &sipSelf, sipType_QHttpResponseHeader, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_parseLine(sipSelfWasArg,*a0,a1);
            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_QHttpResponseHeader, sipName_parseLine, doc_QHttpResponseHeader_parseLine);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QHttpResponseHeader(void *, const sipTypeDef *);}
static void *cast_QHttpResponseHeader(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QHttpResponseHeader)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QHttpHeader)->ctd_cast((QHttpHeader *)(QHttpResponseHeader *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QHttpResponseHeader(void *, int);}
static void release_QHttpResponseHeader(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQHttpResponseHeader *>(sipCppV);
    else
        delete reinterpret_cast<QHttpResponseHeader *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QHttpResponseHeader(void *, SIP_SSIZE_T, const void *);}
static void assign_QHttpResponseHeader(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QHttpResponseHeader *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QHttpResponseHeader *>(sipSrc);
}


extern "C" {static void *array_QHttpResponseHeader(SIP_SSIZE_T);}
static void *array_QHttpResponseHeader(SIP_SSIZE_T sipNrElem)
{
    return new QHttpResponseHeader[sipNrElem];
}


extern "C" {static void *copy_QHttpResponseHeader(const void *, SIP_SSIZE_T);}
static void *copy_QHttpResponseHeader(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QHttpResponseHeader(reinterpret_cast<const QHttpResponseHeader *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QHttpResponseHeader(sipSimpleWrapper *);}
static void dealloc_QHttpResponseHeader(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQHttpResponseHeader *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QHttpResponseHeader(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QHttpResponseHeader(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QHttpResponseHeader(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQHttpResponseHeader *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQHttpResponseHeader();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QHttpResponseHeader* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QHttpResponseHeader, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQHttpResponseHeader(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            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 sipQHttpResponseHeader(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        int a2 = 1;
        int a3 = 1;

        static const char *sipKwdList[] = {
            NULL,
            sipName_text,
            sipName_major,
            sipName_minor,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "i|J1ii", &a0, sipType_QString,&a1, &a1State, &a2, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQHttpResponseHeader(a0,*a1,a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QHttpResponseHeader[] = {{23, 255, 1}};


static PyMethodDef methods_QHttpResponseHeader[] = {
    {SIP_MLNAME_CAST(sipName_majorVersion), meth_QHttpResponseHeader_majorVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpResponseHeader_majorVersion)},
    {SIP_MLNAME_CAST(sipName_minorVersion), meth_QHttpResponseHeader_minorVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpResponseHeader_minorVersion)},
    {SIP_MLNAME_CAST(sipName_parse), (PyCFunction)meth_QHttpResponseHeader_parse, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_parseLine), (PyCFunction)meth_QHttpResponseHeader_parseLine, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QHttpResponseHeader_parseLine)},
    {SIP_MLNAME_CAST(sipName_reasonPhrase), meth_QHttpResponseHeader_reasonPhrase, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpResponseHeader_reasonPhrase)},
    {SIP_MLNAME_CAST(sipName_setStatusLine), (PyCFunction)meth_QHttpResponseHeader_setStatusLine, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QHttpResponseHeader_setStatusLine)},
    {SIP_MLNAME_CAST(sipName_setValid), (PyCFunction)meth_QHttpResponseHeader_setValid, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_statusCode), meth_QHttpResponseHeader_statusCode, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpResponseHeader_statusCode)},
    {SIP_MLNAME_CAST(sipName_toString), meth_QHttpResponseHeader_toString, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpResponseHeader_toString)}
};

PyDoc_STRVAR(doc_QHttpResponseHeader, "\1QHttpResponseHeader()\n"
    "QHttpResponseHeader(QHttpResponseHeader)\n"
    "QHttpResponseHeader(str)\n"
    "QHttpResponseHeader(int, str text='', int major=1, int minor=1)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QHttpResponseHeader = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QHttpResponseHeader,
        {0}
    },
    {
        sipNameNr_QHttpResponseHeader,
        {0, 0, 1},
        9, methods_QHttpResponseHeader,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QHttpResponseHeader,
    -1,
    -1,
    supers_QHttpResponseHeader,
    0,
    init_type_QHttpResponseHeader,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QHttpResponseHeader,
    assign_QHttpResponseHeader,
    array_QHttpResponseHeader,
    copy_QHttpResponseHeader,
    release_QHttpResponseHeader,
    cast_QHttpResponseHeader,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 41901 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 41905 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 41908 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 201 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 41912 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 77 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 41915 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQHttpHeader : public QHttpHeader
{
public:
    sipQHttpHeader();
    sipQHttpHeader(const QHttpHeader&);
    sipQHttpHeader(const QString&);
    virtual ~sipQHttpHeader();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    bool sipProtectVirt_parseLine(bool,const QString&,int);
    bool sipProtect_parse(const QString&);
    void sipProtect_setValid(bool);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool parseLine(const QString&,int);
    int minorVersion() const;
    int majorVersion() const;
    QString toString() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQHttpHeader(const sipQHttpHeader &);
    sipQHttpHeader &operator = (const sipQHttpHeader &);

    char sipPyMethods[4];
};

sipQHttpHeader::sipQHttpHeader(): QHttpHeader(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttpHeader::sipQHttpHeader(const QHttpHeader& a0): QHttpHeader(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttpHeader::sipQHttpHeader(const QString& a0): QHttpHeader(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHttpHeader::~sipQHttpHeader()
{
    sipCommonDtor(sipPySelf);
}

bool sipQHttpHeader::parseLine(const QString& a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_parseLine);

    if (!sipMeth)
        return QHttpHeader::parseLine(a0,a1);

    extern bool sipVH_QtNetwork_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,int);

    return sipVH_QtNetwork_16(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipQHttpHeader::minorVersion() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,sipName_QHttpHeader,sipName_minorVersion);

    if (!sipMeth)
        return 0;

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

int sipQHttpHeader::majorVersion() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,sipName_QHttpHeader,sipName_majorVersion);

    if (!sipMeth)
        return 0;

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[6]))(sipGILState, 0, sipPySelf, sipMeth);
}

QString sipQHttpHeader::toString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_toString);

    if (!sipMeth)
        return QHttpHeader::toString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[62]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQHttpHeader::sipProtectVirt_parseLine(bool sipSelfWasArg,const QString& a0,int a1)
{
    return (sipSelfWasArg ? QHttpHeader::parseLine(a0,a1) : parseLine(a0,a1));
}

bool sipQHttpHeader::sipProtect_parse(const QString& a0)
{
    return QHttpHeader::parse(a0);
}

void sipQHttpHeader::sipProtect_setValid(bool a0)
{
    QHttpHeader::setValid(a0);
}


PyDoc_STRVAR(doc_QHttpHeader_setValue, "QHttpHeader.setValue(str, str)");

extern "C" {static PyObject *meth_QHttpHeader_setValue(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_setValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QHttpHeader, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setValue(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_setValue, doc_QHttpHeader_setValue);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_setValues, "QHttpHeader.setValues(list-of-tuple-of-QString-QString)");

extern "C" {static PyObject *meth_QHttpHeader_setValues(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_setValues(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<QPair<QString,QString> >* a0;
        int a0State = 0;
        QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHttpHeader, &sipCpp, sipType_QList_0600QPair_0100QString_0100QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setValues(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QPair<QString,QString> > *>(a0),sipType_QList_0600QPair_0100QString_0100QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_setValues, doc_QHttpHeader_setValues);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_addValue, "QHttpHeader.addValue(str, str)");

extern "C" {static PyObject *meth_QHttpHeader_addValue(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_addValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QHttpHeader, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addValue(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_addValue, doc_QHttpHeader_addValue);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_values, "QHttpHeader.values() -> list-of-tuple-of-QString-QString");

extern "C" {static PyObject *meth_QHttpHeader_values(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_values(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpHeader, &sipCpp))
        {
            QList<QPair<QString,QString> >*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QPair<QString,QString> >(sipCpp->values());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0600QPair_0100QString_0100QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_values, doc_QHttpHeader_values);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_hasKey, "QHttpHeader.hasKey(str) -> bool");

extern "C" {static PyObject *meth_QHttpHeader_hasKey(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_hasKey(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHttpHeader, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasKey(*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_QHttpHeader, sipName_hasKey, doc_QHttpHeader_hasKey);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_keys, "QHttpHeader.keys() -> list-of-str");

extern "C" {static PyObject *meth_QHttpHeader_keys(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_keys(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpHeader, &sipCpp))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->keys());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_keys, doc_QHttpHeader_keys);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_value, "QHttpHeader.value(str) -> str");

extern "C" {static PyObject *meth_QHttpHeader_value(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_value(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHttpHeader, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->value(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_value, doc_QHttpHeader_value);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_allValues, "QHttpHeader.allValues(str) -> list-of-str");

extern "C" {static PyObject *meth_QHttpHeader_allValues(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_allValues(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHttpHeader, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QStringList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->allValues(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_allValues, doc_QHttpHeader_allValues);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_removeValue, "QHttpHeader.removeValue(str)");

extern "C" {static PyObject *meth_QHttpHeader_removeValue(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_removeValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHttpHeader, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeValue(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_removeValue, doc_QHttpHeader_removeValue);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_removeAllValues, "QHttpHeader.removeAllValues(str)");

extern "C" {static PyObject *meth_QHttpHeader_removeAllValues(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_removeAllValues(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHttpHeader, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeAllValues(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_removeAllValues, doc_QHttpHeader_removeAllValues);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_hasContentLength, "QHttpHeader.hasContentLength() -> bool");

extern "C" {static PyObject *meth_QHttpHeader_hasContentLength(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_hasContentLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpHeader, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasContentLength();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_hasContentLength, doc_QHttpHeader_hasContentLength);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_contentLength, "QHttpHeader.contentLength() -> int");

extern "C" {static PyObject *meth_QHttpHeader_contentLength(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_contentLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpHeader, &sipCpp))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->contentLength();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_contentLength, doc_QHttpHeader_contentLength);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_setContentLength, "QHttpHeader.setContentLength(int)");

extern "C" {static PyObject *meth_QHttpHeader_setContentLength(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_setContentLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QHttpHeader, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setContentLength(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_QHttpHeader, sipName_setContentLength, doc_QHttpHeader_setContentLength);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_hasContentType, "QHttpHeader.hasContentType() -> bool");

extern "C" {static PyObject *meth_QHttpHeader_hasContentType(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_hasContentType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpHeader, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasContentType();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_hasContentType, doc_QHttpHeader_hasContentType);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_contentType, "QHttpHeader.contentType() -> str");

extern "C" {static PyObject *meth_QHttpHeader_contentType(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_contentType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpHeader, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->contentType());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_contentType, doc_QHttpHeader_contentType);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_setContentType, "QHttpHeader.setContentType(str)");

extern "C" {static PyObject *meth_QHttpHeader_setContentType(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_setContentType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHttpHeader, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setContentType(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_setContentType, doc_QHttpHeader_setContentType);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_toString, "QHttpHeader.toString() -> str");

extern "C" {static PyObject *meth_QHttpHeader_toString(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_toString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpHeader, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString((sipSelfWasArg ? sipCpp->QHttpHeader::toString() : 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_QHttpHeader, sipName_toString, doc_QHttpHeader_toString);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_isValid, "QHttpHeader.isValid() -> bool");

extern "C" {static PyObject *meth_QHttpHeader_isValid(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpHeader, &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_QHttpHeader, sipName_isValid, doc_QHttpHeader_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_majorVersion, "QHttpHeader.majorVersion() -> int");

extern "C" {static PyObject *meth_QHttpHeader_majorVersion(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_majorVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpHeader, &sipCpp))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QHttpHeader, sipName_majorVersion);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->majorVersion();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_majorVersion, doc_QHttpHeader_majorVersion);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_minorVersion, "QHttpHeader.minorVersion() -> int");

extern "C" {static PyObject *meth_QHttpHeader_minorVersion(PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_minorVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QHttpHeader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHttpHeader, &sipCpp))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QHttpHeader, sipName_minorVersion);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->minorVersion();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHttpHeader, sipName_minorVersion, doc_QHttpHeader_minorVersion);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_parseLine, "QHttpHeader.parseLine(str, int) -> bool");

extern "C" {static PyObject *meth_QHttpHeader_parseLine(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_parseLine(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        int a1;
        sipQHttpHeader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1i", &sipSelf, sipType_QHttpHeader, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_parseLine(sipSelfWasArg,*a0,a1);
            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_QHttpHeader, sipName_parseLine, doc_QHttpHeader_parseLine);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_parse, "QHttpHeader.parse(str) -> bool");

extern "C" {static PyObject *meth_QHttpHeader_parse(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_parse(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        sipQHttpHeader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QHttpHeader, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_parse(*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_QHttpHeader, sipName_parse, doc_QHttpHeader_parse);

    return NULL;
}


PyDoc_STRVAR(doc_QHttpHeader_setValid, "QHttpHeader.setValid(bool)");

extern "C" {static PyObject *meth_QHttpHeader_setValid(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QHttpHeader_setValid(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        sipQHttpHeader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bb", &sipSelf, sipType_QHttpHeader, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setValid(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_QHttpHeader, sipName_setValid, doc_QHttpHeader_setValid);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QHttpHeader(void *, const sipTypeDef *);}
static void *cast_QHttpHeader(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QHttpHeader)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QHttpHeader(void *, int);}
static void release_QHttpHeader(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQHttpHeader *>(sipCppV);
    else
        delete reinterpret_cast<QHttpHeader *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QHttpHeader(sipSimpleWrapper *);}
static void dealloc_QHttpHeader(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQHttpHeader *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QHttpHeader(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QHttpHeader(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QHttpHeader(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQHttpHeader *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQHttpHeader();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QHttpHeader* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QHttpHeader, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQHttpHeader(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            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 sipQHttpHeader(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QHttpHeader[] = {
    {SIP_MLNAME_CAST(sipName_addValue), meth_QHttpHeader_addValue, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_addValue)},
    {SIP_MLNAME_CAST(sipName_allValues), meth_QHttpHeader_allValues, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_allValues)},
    {SIP_MLNAME_CAST(sipName_contentLength), meth_QHttpHeader_contentLength, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_contentLength)},
    {SIP_MLNAME_CAST(sipName_contentType), meth_QHttpHeader_contentType, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_contentType)},
    {SIP_MLNAME_CAST(sipName_hasContentLength), meth_QHttpHeader_hasContentLength, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_hasContentLength)},
    {SIP_MLNAME_CAST(sipName_hasContentType), meth_QHttpHeader_hasContentType, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_hasContentType)},
    {SIP_MLNAME_CAST(sipName_hasKey), meth_QHttpHeader_hasKey, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_hasKey)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QHttpHeader_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_isValid)},
    {SIP_MLNAME_CAST(sipName_keys), meth_QHttpHeader_keys, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_keys)},
    {SIP_MLNAME_CAST(sipName_majorVersion), meth_QHttpHeader_majorVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_majorVersion)},
    {SIP_MLNAME_CAST(sipName_minorVersion), meth_QHttpHeader_minorVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_minorVersion)},
    {SIP_MLNAME_CAST(sipName_parse), (PyCFunction)meth_QHttpHeader_parse, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QHttpHeader_parse)},
    {SIP_MLNAME_CAST(sipName_parseLine), (PyCFunction)meth_QHttpHeader_parseLine, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QHttpHeader_parseLine)},
    {SIP_MLNAME_CAST(sipName_removeAllValues), meth_QHttpHeader_removeAllValues, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_removeAllValues)},
    {SIP_MLNAME_CAST(sipName_removeValue), meth_QHttpHeader_removeValue, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_removeValue)},
    {SIP_MLNAME_CAST(sipName_setContentLength), meth_QHttpHeader_setContentLength, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_setContentLength)},
    {SIP_MLNAME_CAST(sipName_setContentType), meth_QHttpHeader_setContentType, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_setContentType)},
    {SIP_MLNAME_CAST(sipName_setValid), (PyCFunction)meth_QHttpHeader_setValid, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QHttpHeader_setValid)},
    {SIP_MLNAME_CAST(sipName_setValue), meth_QHttpHeader_setValue, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_setValue)},
    {SIP_MLNAME_CAST(sipName_setValues), meth_QHttpHeader_setValues, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_setValues)},
    {SIP_MLNAME_CAST(sipName_toString), meth_QHttpHeader_toString, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_toString)},
    {SIP_MLNAME_CAST(sipName_value), meth_QHttpHeader_value, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_value)},
    {SIP_MLNAME_CAST(sipName_values), meth_QHttpHeader_values, METH_VARARGS, SIP_MLDOC_CAST(doc_QHttpHeader_values)}
};

PyDoc_STRVAR(doc_QHttpHeader, "\1QHttpHeader()\n"
    "QHttpHeader(QHttpHeader)\n"
    "QHttpHeader(str)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QHttpHeader = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_QHttpHeader,
        {0}
    },
    {
        sipNameNr_QHttpHeader,
        {0, 0, 1},
        23, methods_QHttpHeader,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QHttpHeader,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QHttpHeader,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QHttpHeader,
    0,
    0,
    0,
    release_QHttpHeader,
    cast_QHttpHeader,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostinfo.sip"
#include <qhostinfo.h>
#line 42947 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 42951 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 42954 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 42957 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 42960 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QHostInfo_hostName, "QHostInfo.hostName() -> str");

extern "C" {static PyObject *meth_QHostInfo_hostName(PyObject *, PyObject *);}
static PyObject *meth_QHostInfo_hostName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHostInfo, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->hostName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostInfo, sipName_hostName, doc_QHostInfo_hostName);

    return NULL;
}


PyDoc_STRVAR(doc_QHostInfo_setHostName, "QHostInfo.setHostName(str)");

extern "C" {static PyObject *meth_QHostInfo_setHostName(PyObject *, PyObject *);}
static PyObject *meth_QHostInfo_setHostName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QHostInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHostInfo, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHostName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostInfo, sipName_setHostName, doc_QHostInfo_setHostName);

    return NULL;
}


PyDoc_STRVAR(doc_QHostInfo_addresses, "QHostInfo.addresses() -> list-of-QHostAddress");

extern "C" {static PyObject *meth_QHostInfo_addresses(PyObject *, PyObject *);}
static PyObject *meth_QHostInfo_addresses(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHostInfo, &sipCpp))
        {
            QList<QHostAddress>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QHostAddress>(sipCpp->addresses());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0100QHostAddress,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostInfo, sipName_addresses, doc_QHostInfo_addresses);

    return NULL;
}


PyDoc_STRVAR(doc_QHostInfo_setAddresses, "QHostInfo.setAddresses(list-of-QHostAddress)");

extern "C" {static PyObject *meth_QHostInfo_setAddresses(PyObject *, PyObject *);}
static PyObject *meth_QHostInfo_setAddresses(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<QHostAddress>* a0;
        int a0State = 0;
        QHostInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHostInfo, &sipCpp, sipType_QList_0100QHostAddress,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAddresses(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QHostAddress> *>(a0),sipType_QList_0100QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostInfo, sipName_setAddresses, doc_QHostInfo_setAddresses);

    return NULL;
}


PyDoc_STRVAR(doc_QHostInfo_error, "QHostInfo.error() -> QHostInfo.HostInfoError");

extern "C" {static PyObject *meth_QHostInfo_error(PyObject *, PyObject *);}
static PyObject *meth_QHostInfo_error(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHostInfo, &sipCpp))
        {
            QHostInfo::HostInfoError sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QHostInfo_HostInfoError);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostInfo, sipName_error, doc_QHostInfo_error);

    return NULL;
}


PyDoc_STRVAR(doc_QHostInfo_setError, "QHostInfo.setError(QHostInfo.HostInfoError)");

extern "C" {static PyObject *meth_QHostInfo_setError(PyObject *, PyObject *);}
static PyObject *meth_QHostInfo_setError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QHostInfo::HostInfoError a0;
        QHostInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QHostInfo, &sipCpp, sipType_QHostInfo_HostInfoError, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setError(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_QHostInfo, sipName_setError, doc_QHostInfo_setError);

    return NULL;
}


PyDoc_STRVAR(doc_QHostInfo_errorString, "QHostInfo.errorString() -> str");

extern "C" {static PyObject *meth_QHostInfo_errorString(PyObject *, PyObject *);}
static PyObject *meth_QHostInfo_errorString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHostInfo, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->errorString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostInfo, sipName_errorString, doc_QHostInfo_errorString);

    return NULL;
}


PyDoc_STRVAR(doc_QHostInfo_setErrorString, "QHostInfo.setErrorString(str)");

extern "C" {static PyObject *meth_QHostInfo_setErrorString(PyObject *, PyObject *);}
static PyObject *meth_QHostInfo_setErrorString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QHostInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHostInfo, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setErrorString(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostInfo, sipName_setErrorString, doc_QHostInfo_setErrorString);

    return NULL;
}


PyDoc_STRVAR(doc_QHostInfo_setLookupId, "QHostInfo.setLookupId(int)");

extern "C" {static PyObject *meth_QHostInfo_setLookupId(PyObject *, PyObject *);}
static PyObject *meth_QHostInfo_setLookupId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QHostInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QHostInfo, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLookupId(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_QHostInfo, sipName_setLookupId, doc_QHostInfo_setLookupId);

    return NULL;
}


PyDoc_STRVAR(doc_QHostInfo_lookupId, "QHostInfo.lookupId() -> int");

extern "C" {static PyObject *meth_QHostInfo_lookupId(PyObject *, PyObject *);}
static PyObject *meth_QHostInfo_lookupId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHostInfo, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->lookupId();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostInfo, sipName_lookupId, doc_QHostInfo_lookupId);

    return NULL;
}


PyDoc_STRVAR(doc_QHostInfo_lookupHost, "QHostInfo.lookupHost(str, QObject, SLOT()) -> int\n"
    "QHostInfo.lookupHost(str, callable) -> int");

extern "C" {static PyObject *meth_QHostInfo_lookupHost(PyObject *, PyObject *);}
static PyObject *meth_QHostInfo_lookupHost(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QObject* a1;
        const char* a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1qS", sipType_QString,&a0, &a0State, "(QHostInfo)", &a1, &a2, &a2))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = QHostInfo::lookupHost(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QObject* a1;
        const char* a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1y", sipType_QString,&a0, &a0State, "(QHostInfo)", &a1, &a2))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = QHostInfo::lookupHost(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostInfo, sipName_lookupHost, doc_QHostInfo_lookupHost);

    return NULL;
}


PyDoc_STRVAR(doc_QHostInfo_abortHostLookup, "QHostInfo.abortHostLookup(int)");

extern "C" {static PyObject *meth_QHostInfo_abortHostLookup(PyObject *, PyObject *);}
static PyObject *meth_QHostInfo_abortHostLookup(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            QHostInfo::abortHostLookup(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_QHostInfo, sipName_abortHostLookup, doc_QHostInfo_abortHostLookup);

    return NULL;
}


PyDoc_STRVAR(doc_QHostInfo_fromName, "QHostInfo.fromName(str) -> QHostInfo");

extern "C" {static PyObject *meth_QHostInfo_fromName(PyObject *, PyObject *);}
static PyObject *meth_QHostInfo_fromName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QHostInfo*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHostInfo(QHostInfo::fromName(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QHostInfo,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostInfo, sipName_fromName, doc_QHostInfo_fromName);

    return NULL;
}


PyDoc_STRVAR(doc_QHostInfo_localHostName, "QHostInfo.localHostName() -> str");

extern "C" {static PyObject *meth_QHostInfo_localHostName(PyObject *, PyObject *);}
static PyObject *meth_QHostInfo_localHostName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(QHostInfo::localHostName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostInfo, sipName_localHostName, doc_QHostInfo_localHostName);

    return NULL;
}


PyDoc_STRVAR(doc_QHostInfo_localDomainName, "QHostInfo.localDomainName() -> str");

extern "C" {static PyObject *meth_QHostInfo_localDomainName(PyObject *, PyObject *);}
static PyObject *meth_QHostInfo_localDomainName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(QHostInfo::localDomainName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostInfo, sipName_localDomainName, doc_QHostInfo_localDomainName);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QHostInfo(void *, const sipTypeDef *);}
static void *cast_QHostInfo(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QHostInfo)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QHostInfo(void *, int);}
static void release_QHostInfo(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QHostInfo *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QHostInfo(void *, SIP_SSIZE_T, const void *);}
static void assign_QHostInfo(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QHostInfo *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QHostInfo *>(sipSrc);
}


extern "C" {static void *array_QHostInfo(SIP_SSIZE_T);}
static void *array_QHostInfo(SIP_SSIZE_T sipNrElem)
{
    return new QHostInfo[sipNrElem];
}


extern "C" {static void *copy_QHostInfo(const void *, SIP_SSIZE_T);}
static void *copy_QHostInfo(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QHostInfo(reinterpret_cast<const QHostInfo *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QHostInfo(sipSimpleWrapper *);}
static void dealloc_QHostInfo(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QHostInfo(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QHostInfo(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QHostInfo(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QHostInfo *sipCpp = 0;

    {
        int a0 = -1;

        static const char *sipKwdList[] = {
            sipName_id,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QHostInfo(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QHostInfo* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QHostInfo, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QHostInfo(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QHostInfo[] = {
    {SIP_MLNAME_CAST(sipName_abortHostLookup), meth_QHostInfo_abortHostLookup, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostInfo_abortHostLookup)},
    {SIP_MLNAME_CAST(sipName_addresses), meth_QHostInfo_addresses, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostInfo_addresses)},
    {SIP_MLNAME_CAST(sipName_error), meth_QHostInfo_error, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostInfo_error)},
    {SIP_MLNAME_CAST(sipName_errorString), meth_QHostInfo_errorString, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostInfo_errorString)},
    {SIP_MLNAME_CAST(sipName_fromName), meth_QHostInfo_fromName, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostInfo_fromName)},
    {SIP_MLNAME_CAST(sipName_hostName), meth_QHostInfo_hostName, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostInfo_hostName)},
    {SIP_MLNAME_CAST(sipName_localDomainName), meth_QHostInfo_localDomainName, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostInfo_localDomainName)},
    {SIP_MLNAME_CAST(sipName_localHostName), meth_QHostInfo_localHostName, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostInfo_localHostName)},
    {SIP_MLNAME_CAST(sipName_lookupHost), meth_QHostInfo_lookupHost, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostInfo_lookupHost)},
    {SIP_MLNAME_CAST(sipName_lookupId), meth_QHostInfo_lookupId, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostInfo_lookupId)},
    {SIP_MLNAME_CAST(sipName_setAddresses), meth_QHostInfo_setAddresses, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostInfo_setAddresses)},
    {SIP_MLNAME_CAST(sipName_setError), meth_QHostInfo_setError, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostInfo_setError)},
    {SIP_MLNAME_CAST(sipName_setErrorString), meth_QHostInfo_setErrorString, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostInfo_setErrorString)},
    {SIP_MLNAME_CAST(sipName_setHostName), meth_QHostInfo_setHostName, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostInfo_setHostName)},
    {SIP_MLNAME_CAST(sipName_setLookupId), meth_QHostInfo_setLookupId, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostInfo_setLookupId)}
};

static sipEnumMemberDef enummembers_QHostInfo[] = {
    {sipName_HostNotFound, static_cast<int>(QHostInfo::HostNotFound), 18},
    {sipName_NoError, static_cast<int>(QHostInfo::NoError), 18},
    {sipName_UnknownError, static_cast<int>(QHostInfo::UnknownError), 18},
};

PyDoc_STRVAR(doc_QHostInfo, "\1QHostInfo(int id=-1)\n"
    "QHostInfo(QHostInfo)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QHostInfo = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QHostInfo,
        {0}
    },
    {
        sipNameNr_QHostInfo,
        {0, 0, 1},
        15, methods_QHostInfo,
        3, enummembers_QHostInfo,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QHostInfo,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QHostInfo,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QHostInfo,
    assign_QHostInfo,
    array_QHostInfo,
    copy_QHostInfo,
    release_QHostInfo,
    cast_QHostInfo,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 130 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 43602 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"



extern "C" {static void assign_Q_IPV6ADDR(void *, SIP_SSIZE_T, const void *);}
static void assign_Q_IPV6ADDR(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Q_IPV6ADDR *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Q_IPV6ADDR *>(sipSrc);
}


extern "C" {static void *array_Q_IPV6ADDR(SIP_SSIZE_T);}
static void *array_Q_IPV6ADDR(SIP_SSIZE_T sipNrElem)
{
    return new Q_IPV6ADDR[sipNrElem];
}


extern "C" {static void *copy_Q_IPV6ADDR(const void *, SIP_SSIZE_T);}
static void *copy_Q_IPV6ADDR(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Q_IPV6ADDR(reinterpret_cast<const Q_IPV6ADDR *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_Q_IPV6ADDR(void *, int);}
static void release_Q_IPV6ADDR(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<Q_IPV6ADDR *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_Q_IPV6ADDR(PyObject *, void **, int *, PyObject *);}
static int convertTo_Q_IPV6ADDR(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Q_IPV6ADDR **sipCppPtr = reinterpret_cast<Q_IPV6ADDR **>(sipCppPtrV);

#line 159 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
        return (PySequence_Check(sipPy) && PySequence_Size(sipPy) == 16);

    Q_IPV6ADDR *qa = new Q_IPV6ADDR;
 
    for (SIP_SSIZE_T i = 0; i < 16; ++i)
    {
        PyObject *itm = PySequence_ITEM(sipPy, i);

        if (!itm)
        {
            delete qa;
            *sipIsErr = 1;

            return 0;
        }

        (*qa)[i] = SIPLong_AsLong(itm);

        Py_DECREF(itm);
    }
 
    *sipCppPtr = qa;
 
    return sipGetState(sipTransferObj);
#line 43670 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


extern "C" {static PyObject *convertFrom_Q_IPV6ADDR(void *, PyObject *);}
static PyObject *convertFrom_Q_IPV6ADDR(void *sipCppV, PyObject *)
{
   Q_IPV6ADDR *sipCpp = reinterpret_cast<Q_IPV6ADDR *>(sipCppV);

#line 134 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
    // Create the tuple.
    PyObject *t;

    if ((t = PyTuple_New(16)) == NULL)
        return NULL;

    // Set the tuple elements.
    for (int i = 0; i < 16; ++i)
    {
        PyObject *pobj;

        if ((pobj = SIPLong_FromLong((*sipCpp)[i])) == NULL)
        {
            Py_DECREF(t);

            return NULL;
        }

        PyTuple_SET_ITEM(t, i, pobj);
    }

    return t;
#line 43702 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_Q_IPV6ADDR = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_Q_IPV6ADDR,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_Q_IPV6ADDR,
    array_Q_IPV6ADDR,
    copy_Q_IPV6ADDR,
    release_Q_IPV6ADDR,
    convertTo_Q_IPV6ADDR,
    convertFrom_Q_IPV6ADDR
};

#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 43733 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 43737 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 130 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 43740 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 88 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qpair.sip"
#include <qpair.h>
#line 43743 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 43746 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QHostAddress_setAddress, "QHostAddress.setAddress(int)\n"
    "QHostAddress.setAddress(str) -> bool\n"
    "QHostAddress.setAddress(16-tuple-of-int)");

extern "C" {static PyObject *meth_QHostAddress_setAddress(PyObject *, PyObject *);}
static PyObject *meth_QHostAddress_setAddress(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        quint32 a0;
        QHostAddress *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_QHostAddress, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAddress(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QHostAddress *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHostAddress, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Q_IPV6ADDR* a0;
        int a0State = 0;
        QHostAddress *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHostAddress, &sipCpp, sipType_Q_IPV6ADDR,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Q_IPV6ADDR *>(a0),sipType_Q_IPV6ADDR,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostAddress, sipName_setAddress, doc_QHostAddress_setAddress);

    return NULL;
}


PyDoc_STRVAR(doc_QHostAddress_protocol, "QHostAddress.protocol() -> QAbstractSocket.NetworkLayerProtocol");

extern "C" {static PyObject *meth_QHostAddress_protocol(PyObject *, PyObject *);}
static PyObject *meth_QHostAddress_protocol(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostAddress *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHostAddress, &sipCpp))
        {
            QAbstractSocket::NetworkLayerProtocol sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->protocol();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QAbstractSocket_NetworkLayerProtocol);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostAddress, sipName_protocol, doc_QHostAddress_protocol);

    return NULL;
}


PyDoc_STRVAR(doc_QHostAddress_toIPv4Address, "QHostAddress.toIPv4Address() -> int");

extern "C" {static PyObject *meth_QHostAddress_toIPv4Address(PyObject *, PyObject *);}
static PyObject *meth_QHostAddress_toIPv4Address(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostAddress *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHostAddress, &sipCpp))
        {
            quint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toIPv4Address();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostAddress, sipName_toIPv4Address, doc_QHostAddress_toIPv4Address);

    return NULL;
}


PyDoc_STRVAR(doc_QHostAddress_toIPv6Address, "QHostAddress.toIPv6Address() -> 16-tuple-of-int");

extern "C" {static PyObject *meth_QHostAddress_toIPv6Address(PyObject *, PyObject *);}
static PyObject *meth_QHostAddress_toIPv6Address(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostAddress *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHostAddress, &sipCpp))
        {
            Q_IPV6ADDR*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Q_IPV6ADDR(sipCpp->toIPv6Address());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Q_IPV6ADDR,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostAddress, sipName_toIPv6Address, doc_QHostAddress_toIPv6Address);

    return NULL;
}


PyDoc_STRVAR(doc_QHostAddress_toString, "QHostAddress.toString() -> str");

extern "C" {static PyObject *meth_QHostAddress_toString(PyObject *, PyObject *);}
static PyObject *meth_QHostAddress_toString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostAddress *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHostAddress, &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_QHostAddress, sipName_toString, doc_QHostAddress_toString);

    return NULL;
}


PyDoc_STRVAR(doc_QHostAddress_scopeId, "QHostAddress.scopeId() -> str");

extern "C" {static PyObject *meth_QHostAddress_scopeId(PyObject *, PyObject *);}
static PyObject *meth_QHostAddress_scopeId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostAddress *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHostAddress, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->scopeId());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostAddress, sipName_scopeId, doc_QHostAddress_scopeId);

    return NULL;
}


PyDoc_STRVAR(doc_QHostAddress_setScopeId, "QHostAddress.setScopeId(str)");

extern "C" {static PyObject *meth_QHostAddress_setScopeId(PyObject *, PyObject *);}
static PyObject *meth_QHostAddress_setScopeId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QHostAddress *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHostAddress, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setScopeId(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostAddress, sipName_setScopeId, doc_QHostAddress_setScopeId);

    return NULL;
}


PyDoc_STRVAR(doc_QHostAddress_isNull, "QHostAddress.isNull() -> bool");

extern "C" {static PyObject *meth_QHostAddress_isNull(PyObject *, PyObject *);}
static PyObject *meth_QHostAddress_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostAddress *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHostAddress, &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_QHostAddress, sipName_isNull, doc_QHostAddress_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QHostAddress_clear, "QHostAddress.clear()");

extern "C" {static PyObject *meth_QHostAddress_clear(PyObject *, PyObject *);}
static PyObject *meth_QHostAddress_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QHostAddress *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHostAddress, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clear();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostAddress, sipName_clear, doc_QHostAddress_clear);

    return NULL;
}


PyDoc_STRVAR(doc_QHostAddress_isInSubnet, "QHostAddress.isInSubnet(QHostAddress, int) -> bool\n"
    "QHostAddress.isInSubnet(tuple-of-QHostAddress-int) -> bool");

extern "C" {static PyObject *meth_QHostAddress_isInSubnet(PyObject *, PyObject *);}
static PyObject *meth_QHostAddress_isInSubnet(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostAddress* a0;
        int a0State = 0;
        int a1;
        const QHostAddress *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1i", &sipSelf, sipType_QHostAddress, &sipCpp, sipType_QHostAddress, &a0, &a0State, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isInSubnet(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QPair<QHostAddress,int>* a0;
        int a0State = 0;
        const QHostAddress *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QHostAddress, &sipCpp, sipType_QPair_0100QHostAddress_1800,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isInSubnet(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QPair<QHostAddress,int> *>(a0),sipType_QPair_0100QHostAddress_1800,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostAddress, sipName_isInSubnet, doc_QHostAddress_isInSubnet);

    return NULL;
}


PyDoc_STRVAR(doc_QHostAddress_parseSubnet, "QHostAddress.parseSubnet(str) -> tuple-of-QHostAddress-int");

extern "C" {static PyObject *meth_QHostAddress_parseSubnet(PyObject *, PyObject *);}
static PyObject *meth_QHostAddress_parseSubnet(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QPair<QHostAddress,int>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QPair<QHostAddress,int>(QHostAddress::parseSubnet(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPair_0100QHostAddress_1800,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHostAddress, sipName_parseSubnet, doc_QHostAddress_parseSubnet);

    return NULL;
}


extern "C" {static long slot_QHostAddress___hash__(PyObject *);}
static long slot_QHostAddress___hash__(PyObject *sipSelf)
{
    QHostAddress *sipCpp = reinterpret_cast<QHostAddress *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QHostAddress));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 101 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
        sipRes = qHash(*sipCpp);
#line 44146 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QHostAddress___ne__(PyObject *,PyObject *);}
static PyObject *slot_QHostAddress___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QHostAddress *sipCpp = reinterpret_cast<QHostAddress *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QHostAddress));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QHostAddress* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QHostAddress, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QHostAddress::operator!=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        QHostAddress::SpecialAddress a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1E", sipType_QHostAddress_SpecialAddress, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QHostAddress::operator!=(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QHostAddress,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QHostAddress___eq__(PyObject *,PyObject *);}
static PyObject *slot_QHostAddress___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QHostAddress *sipCpp = reinterpret_cast<QHostAddress *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QHostAddress));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QHostAddress* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QHostAddress, &a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QHostAddress::operator==(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        QHostAddress::SpecialAddress a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1E", sipType_QHostAddress_SpecialAddress, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QHostAddress::operator==(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QHostAddress,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QHostAddress(void *, const sipTypeDef *);}
static void *cast_QHostAddress(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QHostAddress)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QHostAddress(void *, int);}
static void release_QHostAddress(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QHostAddress *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QHostAddress(void *, SIP_SSIZE_T, const void *);}
static void assign_QHostAddress(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QHostAddress *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QHostAddress *>(sipSrc);
}


extern "C" {static void *array_QHostAddress(SIP_SSIZE_T);}
static void *array_QHostAddress(SIP_SSIZE_T sipNrElem)
{
    return new QHostAddress[sipNrElem];
}


extern "C" {static void *copy_QHostAddress(const void *, SIP_SSIZE_T);}
static void *copy_QHostAddress(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QHostAddress(reinterpret_cast<const QHostAddress *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QHostAddress(sipSimpleWrapper *);}
static void dealloc_QHostAddress(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QHostAddress(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QHostAddress(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QHostAddress(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QHostAddress *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QHostAddress();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        QHostAddress::SpecialAddress a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "XE", sipType_QHostAddress_SpecialAddress, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QHostAddress(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        quint32 a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "u", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QHostAddress(a0);
            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 QHostAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const Q_IPV6ADDR* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_Q_IPV6ADDR,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QHostAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Q_IPV6ADDR *>(a0),sipType_Q_IPV6ADDR,a0State);

            return sipCpp;
        }
    }

    {
        const QHostAddress* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QHostAddress, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QHostAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QHostAddress(PyObject *, void **, int *, PyObject *);}
static int convertTo_QHostAddress(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QHostAddress **sipCppPtr = reinterpret_cast<QHostAddress **>(sipCppPtrV);

#line 39 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
// SIP doesn't support automatic type convertors so we explicitly allow a
// QHostAddress::SpecialAddress to be used whenever a QHostAddress is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QHostAddress_SpecialAddress)) ||
            sipCanConvertToType(sipPy, sipType_QHostAddress, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QHostAddress_SpecialAddress)))
{
    *sipCppPtr = new QHostAddress((QHostAddress::SpecialAddress)SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QHostAddress *>(sipConvertToType(sipPy, sipType_QHostAddress, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 44426 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QHostAddress[] = {
    {(void *)slot_QHostAddress___hash__, hash_slot},
    {(void *)slot_QHostAddress___ne__, ne_slot},
    {(void *)slot_QHostAddress___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QHostAddress[] = {
    {SIP_MLNAME_CAST(sipName_clear), meth_QHostAddress_clear, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostAddress_clear)},
    {SIP_MLNAME_CAST(sipName_isInSubnet), meth_QHostAddress_isInSubnet, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostAddress_isInSubnet)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QHostAddress_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostAddress_isNull)},
    {SIP_MLNAME_CAST(sipName_parseSubnet), meth_QHostAddress_parseSubnet, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostAddress_parseSubnet)},
    {SIP_MLNAME_CAST(sipName_protocol), meth_QHostAddress_protocol, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostAddress_protocol)},
    {SIP_MLNAME_CAST(sipName_scopeId), meth_QHostAddress_scopeId, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostAddress_scopeId)},
    {SIP_MLNAME_CAST(sipName_setAddress), meth_QHostAddress_setAddress, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostAddress_setAddress)},
    {SIP_MLNAME_CAST(sipName_setScopeId), meth_QHostAddress_setScopeId, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostAddress_setScopeId)},
    {SIP_MLNAME_CAST(sipName_toIPv4Address), meth_QHostAddress_toIPv4Address, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostAddress_toIPv4Address)},
    {SIP_MLNAME_CAST(sipName_toIPv6Address), meth_QHostAddress_toIPv6Address, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostAddress_toIPv6Address)},
    {SIP_MLNAME_CAST(sipName_toString), meth_QHostAddress_toString, METH_VARARGS, SIP_MLDOC_CAST(doc_QHostAddress_toString)}
};

static sipEnumMemberDef enummembers_QHostAddress[] = {
    {sipName_Any, static_cast<int>(QHostAddress::Any), 16},
    {sipName_AnyIPv6, static_cast<int>(QHostAddress::AnyIPv6), 16},
    {sipName_Broadcast, static_cast<int>(QHostAddress::Broadcast), 16},
    {sipName_LocalHost, static_cast<int>(QHostAddress::LocalHost), 16},
    {sipName_LocalHostIPv6, static_cast<int>(QHostAddress::LocalHostIPv6), 16},
    {sipName_Null, static_cast<int>(QHostAddress::Null), 16},
};

PyDoc_STRVAR(doc_QHostAddress, "\1QHostAddress()\n"
    "QHostAddress(QHostAddress.SpecialAddress)\n"
    "QHostAddress(int)\n"
    "QHostAddress(str)\n"
    "QHostAddress(16-tuple-of-int)\n"
    "QHostAddress(QHostAddress)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QHostAddress = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QHostAddress,
        {0}
    },
    {
        sipNameNr_QHostAddress,
        {0, 0, 1},
        11, methods_QHostAddress,
        6, enummembers_QHostAddress,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QHostAddress,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QHostAddress,
    init_type_QHostAddress,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QHostAddress,
    assign_QHostAddress,
    array_QHostAddress,
    copy_QHostAddress,
    release_QHostAddress,
    cast_QHostAddress,
    convertTo_QHostAddress,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qftp.sip"
#include <qftp.h>
#line 44526 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 44530 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 44533 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qurlinfo.sip"
#include <qurlinfo.h>
#line 44536 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 44539 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 44542 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 44545 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 44548 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 44551 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 44554 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 44557 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 44560 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 44563 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 44566 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 44569 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 44572 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQFtp : public QFtp
{
public:
    sipQFtp(QObject*);
    virtual ~sipQFtp();

    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:
    sipQFtp(const sipQFtp &);
    sipQFtp &operator = (const sipQFtp &);

    char sipPyMethods[7];
};

sipQFtp::sipQFtp(QObject*a0): QFtp(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQFtp::~sipQFtp()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQFtp::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QFtp);
}

int sipQFtp::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QFtp::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QFtp,_c,_id,_a);

    return _id;
}

void *sipQFtp::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QFtp, _clname)) ? this : QFtp::qt_metacast(_clname);
}

void sipQFtp::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QFtp::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQFtp::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QFtp::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQFtp::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QFtp::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQFtp::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QFtp::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQFtp::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QFtp::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQFtp::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QFtp::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQFtp::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QFtp::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QObject* sipQFtp::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQFtp::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQFtp::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQFtp::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQFtp::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQFtp::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQFtp::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQFtp::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}


PyDoc_STRVAR(doc_QFtp_sender, "QFtp.sender() -> QObject");

extern "C" {static PyObject *meth_QFtp_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFtp_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQFtp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QFtp, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 44849 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_sender, doc_QFtp_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_receivers, "QFtp.receivers(SIGNAL()) -> int");

extern "C" {static PyObject *meth_QFtp_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFtp_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        char* a0;
        const sipQFtp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QFtp, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 44894 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_receivers, doc_QFtp_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_timerEvent, "QFtp.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QFtp_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFtp_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQFtp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QFtp, &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_QFtp, sipName_timerEvent, doc_QFtp_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_childEvent, "QFtp.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QFtp_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFtp_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQFtp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QFtp, &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_QFtp, sipName_childEvent, doc_QFtp_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_customEvent, "QFtp.customEvent(QEvent)");

extern "C" {static PyObject *meth_QFtp_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFtp_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQFtp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QFtp, &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_QFtp, sipName_customEvent, doc_QFtp_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_connectNotify, "QFtp.connectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QFtp_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFtp_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQFtp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QFtp, &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_QFtp, sipName_connectNotify, doc_QFtp_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_disconnectNotify, "QFtp.disconnectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QFtp_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFtp_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQFtp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QFtp, &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_QFtp, sipName_disconnectNotify, doc_QFtp_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_senderSignalIndex, "QFtp.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QFtp_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFtp_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQFtp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QFtp, &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_QFtp, sipName_senderSignalIndex, doc_QFtp_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_setProxy, "QFtp.setProxy(str, int) -> int");

extern "C" {static PyObject *meth_QFtp_setProxy(PyObject *, PyObject *);}
static PyObject *meth_QFtp_setProxy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        quint16 a1;
        QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1t", &sipSelf, sipType_QFtp, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setProxy(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_setProxy, doc_QFtp_setProxy);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_connectToHost, "QFtp.connectToHost(str, int port=21) -> int");

extern "C" {static PyObject *meth_QFtp_connectToHost(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFtp_connectToHost(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        quint16 a1 = 21;
        QFtp *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_port,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|t", &sipSelf, sipType_QFtp, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->connectToHost(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_connectToHost, doc_QFtp_connectToHost);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_login, "QFtp.login(str user='', str password='') -> int");

extern "C" {static PyObject *meth_QFtp_login(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFtp_login(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString& a0def = QString();
        const QString* a0 = &a0def;
        int a0State = 0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        QFtp *sipCpp;

        static const char *sipKwdList[] = {
            sipName_user,
            sipName_password,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1J1", &sipSelf, sipType_QFtp, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->login(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_login, doc_QFtp_login);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_close, "QFtp.close() -> int");

extern "C" {static PyObject *meth_QFtp_close(PyObject *, PyObject *);}
static PyObject *meth_QFtp_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFtp, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->close();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_close, doc_QFtp_close);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_setTransferMode, "QFtp.setTransferMode(QFtp.TransferMode) -> int");

extern "C" {static PyObject *meth_QFtp_setTransferMode(PyObject *, PyObject *);}
static PyObject *meth_QFtp_setTransferMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFtp::TransferMode a0;
        QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QFtp, &sipCpp, sipType_QFtp_TransferMode, &a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setTransferMode(a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_setTransferMode, doc_QFtp_setTransferMode);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_list, "QFtp.list(str directory='') -> int");

extern "C" {static PyObject *meth_QFtp_list(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFtp_list(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString& a0def = QString();
        const QString* a0 = &a0def;
        int a0State = 0;
        QFtp *sipCpp;

        static const char *sipKwdList[] = {
            sipName_directory,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1", &sipSelf, sipType_QFtp, &sipCpp, sipType_QString,&a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->list(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_list, doc_QFtp_list);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_cd, "QFtp.cd(str) -> int");

extern "C" {static PyObject *meth_QFtp_cd(PyObject *, PyObject *);}
static PyObject *meth_QFtp_cd(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFtp, &sipCpp, sipType_QString,&a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->cd(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_cd, doc_QFtp_cd);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_get, "QFtp.get(str, QIODevice device=None, QFtp.TransferType type=QFtp.Binary) -> int");

extern "C" {static PyObject *meth_QFtp_get(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFtp_get(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QIODevice* a1 = 0;
        QFtp::TransferType a2 = QFtp::Binary;
        QFtp *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_device,
            sipName_type,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J8E", &sipSelf, sipType_QFtp, &sipCpp, sipType_QString,&a0, &a0State, sipType_QIODevice, &a1, sipType_QFtp_TransferType, &a2))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->get(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_get, doc_QFtp_get);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_put, "QFtp.put(QByteArray, str, QFtp.TransferType type=QFtp.Binary) -> int\n"
    "QFtp.put(QIODevice, str, QFtp.TransferType type=QFtp.Binary) -> int");

extern "C" {static PyObject *meth_QFtp_put(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFtp_put(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        QFtp::TransferType a2 = QFtp::Binary;
        QFtp *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_type,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1J1|E", &sipSelf, sipType_QFtp, &sipCpp, sipType_QByteArray, &a0, &a0State, sipType_QString,&a1, &a1State, sipType_QFtp_TransferType, &a2))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->put(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        QIODevice* a0;
        const QString* a1;
        int a1State = 0;
        QFtp::TransferType a2 = QFtp::Binary;
        QFtp *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_type,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8J1|E", &sipSelf, sipType_QFtp, &sipCpp, sipType_QIODevice, &a0, sipType_QString,&a1, &a1State, sipType_QFtp_TransferType, &a2))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->put(a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_put, doc_QFtp_put);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_remove, "QFtp.remove(str) -> int");

extern "C" {static PyObject *meth_QFtp_remove(PyObject *, PyObject *);}
static PyObject *meth_QFtp_remove(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFtp, &sipCpp, sipType_QString,&a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->remove(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_remove, doc_QFtp_remove);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_mkdir, "QFtp.mkdir(str) -> int");

extern "C" {static PyObject *meth_QFtp_mkdir(PyObject *, PyObject *);}
static PyObject *meth_QFtp_mkdir(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFtp, &sipCpp, sipType_QString,&a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->mkdir(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_mkdir, doc_QFtp_mkdir);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_rmdir, "QFtp.rmdir(str) -> int");

extern "C" {static PyObject *meth_QFtp_rmdir(PyObject *, PyObject *);}
static PyObject *meth_QFtp_rmdir(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFtp, &sipCpp, sipType_QString,&a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->rmdir(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_rmdir, doc_QFtp_rmdir);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_rename, "QFtp.rename(str, str) -> int");

extern "C" {static PyObject *meth_QFtp_rename(PyObject *, PyObject *);}
static PyObject *meth_QFtp_rename(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QFtp, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->rename(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_rename, doc_QFtp_rename);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_rawCommand, "QFtp.rawCommand(str) -> int");

extern "C" {static PyObject *meth_QFtp_rawCommand(PyObject *, PyObject *);}
static PyObject *meth_QFtp_rawCommand(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFtp, &sipCpp, sipType_QString,&a0, &a0State))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->rawCommand(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_rawCommand, doc_QFtp_rawCommand);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_bytesAvailable, "QFtp.bytesAvailable() -> int");

extern "C" {static PyObject *meth_QFtp_bytesAvailable(PyObject *, PyObject *);}
static PyObject *meth_QFtp_bytesAvailable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFtp, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->bytesAvailable();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_bytesAvailable, doc_QFtp_bytesAvailable);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_read, "QFtp.read(int) -> bytes");

extern "C" {static PyObject *meth_QFtp_read(PyObject *, PyObject *);}
static PyObject *meth_QFtp_read(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qint64 a0;
        QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QFtp, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 108 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qftp.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
            len = sipCpp->read(s, a0);
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 45675 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_read, doc_QFtp_read);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_readAll, "QFtp.readAll() -> QByteArray");

extern "C" {static PyObject *meth_QFtp_readAll(PyObject *, PyObject *);}
static PyObject *meth_QFtp_readAll(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFtp, &sipCpp))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->readAll());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_readAll, doc_QFtp_readAll);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_currentId, "QFtp.currentId() -> int");

extern "C" {static PyObject *meth_QFtp_currentId(PyObject *, PyObject *);}
static PyObject *meth_QFtp_currentId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFtp, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currentId();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_currentId, doc_QFtp_currentId);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_currentDevice, "QFtp.currentDevice() -> QIODevice");

extern "C" {static PyObject *meth_QFtp_currentDevice(PyObject *, PyObject *);}
static PyObject *meth_QFtp_currentDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFtp, &sipCpp))
        {
            QIODevice*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currentDevice();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QIODevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_currentDevice, doc_QFtp_currentDevice);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_currentCommand, "QFtp.currentCommand() -> QFtp.Command");

extern "C" {static PyObject *meth_QFtp_currentCommand(PyObject *, PyObject *);}
static PyObject *meth_QFtp_currentCommand(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFtp, &sipCpp))
        {
            QFtp::Command sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->currentCommand();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QFtp_Command);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_currentCommand, doc_QFtp_currentCommand);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_hasPendingCommands, "QFtp.hasPendingCommands() -> bool");

extern "C" {static PyObject *meth_QFtp_hasPendingCommands(PyObject *, PyObject *);}
static PyObject *meth_QFtp_hasPendingCommands(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFtp, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasPendingCommands();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_hasPendingCommands, doc_QFtp_hasPendingCommands);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_clearPendingCommands, "QFtp.clearPendingCommands()");

extern "C" {static PyObject *meth_QFtp_clearPendingCommands(PyObject *, PyObject *);}
static PyObject *meth_QFtp_clearPendingCommands(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFtp, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearPendingCommands();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_clearPendingCommands, doc_QFtp_clearPendingCommands);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_state, "QFtp.state() -> QFtp.State");

extern "C" {static PyObject *meth_QFtp_state(PyObject *, PyObject *);}
static PyObject *meth_QFtp_state(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFtp, &sipCpp))
        {
            QFtp::State sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->state();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QFtp_State);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_state, doc_QFtp_state);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_error, "QFtp.error() -> QFtp.Error");

extern "C" {static PyObject *meth_QFtp_error(PyObject *, PyObject *);}
static PyObject *meth_QFtp_error(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFtp, &sipCpp))
        {
            QFtp::Error sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QFtp_Error);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_error, doc_QFtp_error);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_errorString, "QFtp.errorString() -> str");

extern "C" {static PyObject *meth_QFtp_errorString(PyObject *, PyObject *);}
static PyObject *meth_QFtp_errorString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFtp, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->errorString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_errorString, doc_QFtp_errorString);

    return NULL;
}


PyDoc_STRVAR(doc_QFtp_abort, "QFtp.abort()");

extern "C" {static PyObject *meth_QFtp_abort(PyObject *, PyObject *);}
static PyObject *meth_QFtp_abort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFtp *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFtp, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->abort();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFtp, sipName_abort, doc_QFtp_abort);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QFtp(void *, const sipTypeDef *);}
static void *cast_QFtp(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QFtp)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QFtp *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QFtp(void *, int);}
static void release_QFtp(void *sipCppV,int)
{
    QFtp *sipCpp = reinterpret_cast<QFtp *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QFtp(sipSimpleWrapper *);}
static void dealloc_QFtp(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQFtp *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QFtp(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QFtp(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QFtp(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQFtp *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQFtp(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QFtp[] = {{141, 0, 1}};


static PyMethodDef methods_QFtp[] = {
    {SIP_MLNAME_CAST(sipName_abort), meth_QFtp_abort, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_abort)},
    {SIP_MLNAME_CAST(sipName_bytesAvailable), meth_QFtp_bytesAvailable, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_bytesAvailable)},
    {SIP_MLNAME_CAST(sipName_cd), meth_QFtp_cd, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_cd)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QFtp_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_clearPendingCommands), meth_QFtp_clearPendingCommands, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_clearPendingCommands)},
    {SIP_MLNAME_CAST(sipName_close), meth_QFtp_close, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_close)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QFtp_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToHost), (PyCFunction)meth_QFtp_connectToHost, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFtp_connectToHost)},
    {SIP_MLNAME_CAST(sipName_currentCommand), meth_QFtp_currentCommand, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_currentCommand)},
    {SIP_MLNAME_CAST(sipName_currentDevice), meth_QFtp_currentDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_currentDevice)},
    {SIP_MLNAME_CAST(sipName_currentId), meth_QFtp_currentId, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_currentId)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QFtp_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QFtp_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_error), meth_QFtp_error, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_error)},
    {SIP_MLNAME_CAST(sipName_errorString), meth_QFtp_errorString, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_errorString)},
    {SIP_MLNAME_CAST(sipName_get), (PyCFunction)meth_QFtp_get, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFtp_get)},
    {SIP_MLNAME_CAST(sipName_hasPendingCommands), meth_QFtp_hasPendingCommands, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_hasPendingCommands)},
    {SIP_MLNAME_CAST(sipName_list), (PyCFunction)meth_QFtp_list, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFtp_list)},
    {SIP_MLNAME_CAST(sipName_login), (PyCFunction)meth_QFtp_login, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFtp_login)},
    {SIP_MLNAME_CAST(sipName_mkdir), meth_QFtp_mkdir, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_mkdir)},
    {SIP_MLNAME_CAST(sipName_put), (PyCFunction)meth_QFtp_put, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFtp_put)},
    {SIP_MLNAME_CAST(sipName_rawCommand), meth_QFtp_rawCommand, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_rawCommand)},
    {SIP_MLNAME_CAST(sipName_read), meth_QFtp_read, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_read)},
    {SIP_MLNAME_CAST(sipName_readAll), meth_QFtp_readAll, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_readAll)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QFtp_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_remove), meth_QFtp_remove, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_remove)},
    {SIP_MLNAME_CAST(sipName_rename), meth_QFtp_rename, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_rename)},
    {SIP_MLNAME_CAST(sipName_rmdir), meth_QFtp_rmdir, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_rmdir)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QFtp_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QFtp_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setProxy), meth_QFtp_setProxy, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_setProxy)},
    {SIP_MLNAME_CAST(sipName_setTransferMode), meth_QFtp_setTransferMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_setTransferMode)},
    {SIP_MLNAME_CAST(sipName_state), meth_QFtp_state, METH_VARARGS, SIP_MLDOC_CAST(doc_QFtp_state)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QFtp_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

static sipEnumMemberDef enummembers_QFtp[] = {
    {sipName_Active, static_cast<int>(QFtp::Active), 12},
    {sipName_Ascii, static_cast<int>(QFtp::Ascii), 13},
    {sipName_Binary, static_cast<int>(QFtp::Binary), 13},
    {sipName_Cd, static_cast<int>(QFtp::Cd), 9},
    {sipName_Close, static_cast<int>(QFtp::Close), 9},
    {sipName_Closing, static_cast<int>(QFtp::Closing), 11},
    {sipName_ConnectToHost, static_cast<int>(QFtp::ConnectToHost), 9},
    {sipName_Connected, static_cast<int>(QFtp::Connected), 11},
    {sipName_Connecting, static_cast<int>(QFtp::Connecting), 11},
    {sipName_ConnectionRefused, static_cast<int>(QFtp::ConnectionRefused), 10},
    {sipName_Get, static_cast<int>(QFtp::Get), 9},
    {sipName_HostLookup, static_cast<int>(QFtp::HostLookup), 11},
    {sipName_HostNotFound, static_cast<int>(QFtp::HostNotFound), 10},
    {sipName_List, static_cast<int>(QFtp::List), 9},
    {sipName_LoggedIn, static_cast<int>(QFtp::LoggedIn), 11},
    {sipName_Login, static_cast<int>(QFtp::Login), 9},
    {sipName_Mkdir, static_cast<int>(QFtp::Mkdir), 9},
    {sipName_NoError, static_cast<int>(QFtp::NoError), 10},
    {sipName_None_, static_cast<int>(QFtp::None), 9},
    {sipName_NotConnected, static_cast<int>(QFtp::NotConnected), 10},
    {sipName_Passive, static_cast<int>(QFtp::Passive), 12},
    {sipName_Put, static_cast<int>(QFtp::Put), 9},
    {sipName_RawCommand, static_cast<int>(QFtp::RawCommand), 9},
    {sipName_Remove, static_cast<int>(QFtp::Remove), 9},
    {sipName_Rename, static_cast<int>(QFtp::Rename), 9},
    {sipName_Rmdir, static_cast<int>(QFtp::Rmdir), 9},
    {sipName_SetProxy, static_cast<int>(QFtp::SetProxy), 9},
    {sipName_SetTransferMode, static_cast<int>(QFtp::SetTransferMode), 9},
    {sipName_Unconnected, static_cast<int>(QFtp::Unconnected), 11},
    {sipName_UnknownError, static_cast<int>(QFtp::UnknownError), 10},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_QFtp[] = {
    {"done(bool)", "\1QFtp.done[bool]", 0, 0},
    {"commandFinished(int,bool)", "\1QFtp.commandFinished[int, bool]", 0, 0},
    {"commandStarted(int)", "\1QFtp.commandStarted[int]", 0, 0},
    {"rawCommandReply(int,QString)", "\1QFtp.rawCommandReply[int, str]", 0, 0},
    {"dataTransferProgress(qint64,qint64)", "\1QFtp.dataTransferProgress[int, int]", 0, 0},
    {"readyRead()", "\1QFtp.readyRead", 0, 0},
    {"listInfo(QUrlInfo)", "\1QFtp.listInfo[QUrlInfo]", 0, 0},
    {"stateChanged(int)", "\1QFtp.stateChanged[int]", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QFtp, "\1QFtp(QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QFtp = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QFtp,
        {0}
    },
    {
        sipNameNr_QFtp,
        {0, 0, 1},
        34, methods_QFtp,
        30, enummembers_QFtp,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QFtp,
    -1,
    -1,
    supers_QFtp,
    0,
    init_type_QFtp,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QFtp,
    0,
    0,
    0,
    release_QFtp,
    cast_QFtp,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QFtp::staticMetaObject,
    0,
    signals_QFtp,
};

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 46200 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 46204 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 46207 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qhash.sip"
#include <qhash.h>
#line 46210 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 77 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 46213 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 46216 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QAuthenticator_user, "QAuthenticator.user() -> str");

extern "C" {static PyObject *meth_QAuthenticator_user(PyObject *, PyObject *);}
static PyObject *meth_QAuthenticator_user(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAuthenticator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAuthenticator, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->user());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAuthenticator, sipName_user, doc_QAuthenticator_user);

    return NULL;
}


PyDoc_STRVAR(doc_QAuthenticator_setUser, "QAuthenticator.setUser(str)");

extern "C" {static PyObject *meth_QAuthenticator_setUser(PyObject *, PyObject *);}
static PyObject *meth_QAuthenticator_setUser(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QAuthenticator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QAuthenticator, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUser(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAuthenticator, sipName_setUser, doc_QAuthenticator_setUser);

    return NULL;
}


PyDoc_STRVAR(doc_QAuthenticator_password, "QAuthenticator.password() -> str");

extern "C" {static PyObject *meth_QAuthenticator_password(PyObject *, PyObject *);}
static PyObject *meth_QAuthenticator_password(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAuthenticator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAuthenticator, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->password());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAuthenticator, sipName_password, doc_QAuthenticator_password);

    return NULL;
}


PyDoc_STRVAR(doc_QAuthenticator_setPassword, "QAuthenticator.setPassword(str)");

extern "C" {static PyObject *meth_QAuthenticator_setPassword(PyObject *, PyObject *);}
static PyObject *meth_QAuthenticator_setPassword(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QAuthenticator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QAuthenticator, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPassword(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAuthenticator, sipName_setPassword, doc_QAuthenticator_setPassword);

    return NULL;
}


PyDoc_STRVAR(doc_QAuthenticator_realm, "QAuthenticator.realm() -> str");

extern "C" {static PyObject *meth_QAuthenticator_realm(PyObject *, PyObject *);}
static PyObject *meth_QAuthenticator_realm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAuthenticator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAuthenticator, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->realm());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAuthenticator, sipName_realm, doc_QAuthenticator_realm);

    return NULL;
}


PyDoc_STRVAR(doc_QAuthenticator_isNull, "QAuthenticator.isNull() -> bool");

extern "C" {static PyObject *meth_QAuthenticator_isNull(PyObject *, PyObject *);}
static PyObject *meth_QAuthenticator_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAuthenticator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAuthenticator, &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_QAuthenticator, sipName_isNull, doc_QAuthenticator_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QAuthenticator_option, "QAuthenticator.option(str) -> object");

extern "C" {static PyObject *meth_QAuthenticator_option(PyObject *, PyObject *);}
static PyObject *meth_QAuthenticator_option(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QAuthenticator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QAuthenticator, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->option(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAuthenticator, sipName_option, doc_QAuthenticator_option);

    return NULL;
}


PyDoc_STRVAR(doc_QAuthenticator_options, "QAuthenticator.options() -> dict-of-str-object");

extern "C" {static PyObject *meth_QAuthenticator_options(PyObject *, PyObject *);}
static PyObject *meth_QAuthenticator_options(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAuthenticator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAuthenticator, &sipCpp))
        {
            QVariantHash*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariantHash(sipCpp->options());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHash_0100QString_0100QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAuthenticator, sipName_options, doc_QAuthenticator_options);

    return NULL;
}


PyDoc_STRVAR(doc_QAuthenticator_setOption, "QAuthenticator.setOption(str, object)");

extern "C" {static PyObject *meth_QAuthenticator_setOption(PyObject *, PyObject *);}
static PyObject *meth_QAuthenticator_setOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QVariant* a1;
        int a1State = 0;
        QAuthenticator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QAuthenticator, &sipCpp, sipType_QString,&a0, &a0State, sipType_QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOption(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAuthenticator, sipName_setOption, doc_QAuthenticator_setOption);

    return NULL;
}


extern "C" {static PyObject *slot_QAuthenticator___ne__(PyObject *,PyObject *);}
static PyObject *slot_QAuthenticator___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QAuthenticator *sipCpp = reinterpret_cast<QAuthenticator *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QAuthenticator));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QAuthenticator* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QAuthenticator, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QAuthenticator::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QAuthenticator,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QAuthenticator___eq__(PyObject *,PyObject *);}
static PyObject *slot_QAuthenticator___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QAuthenticator *sipCpp = reinterpret_cast<QAuthenticator *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QAuthenticator));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QAuthenticator* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QAuthenticator, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QAuthenticator::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QAuthenticator,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QAuthenticator(void *, const sipTypeDef *);}
static void *cast_QAuthenticator(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QAuthenticator)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QAuthenticator(void *, int);}
static void release_QAuthenticator(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QAuthenticator *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QAuthenticator(void *, SIP_SSIZE_T, const void *);}
static void assign_QAuthenticator(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QAuthenticator *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QAuthenticator *>(sipSrc);
}


extern "C" {static void *array_QAuthenticator(SIP_SSIZE_T);}
static void *array_QAuthenticator(SIP_SSIZE_T sipNrElem)
{
    return new QAuthenticator[sipNrElem];
}


extern "C" {static void *copy_QAuthenticator(const void *, SIP_SSIZE_T);}
static void *copy_QAuthenticator(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QAuthenticator(reinterpret_cast<const QAuthenticator *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QAuthenticator(sipSimpleWrapper *);}
static void dealloc_QAuthenticator(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QAuthenticator(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QAuthenticator(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QAuthenticator(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QAuthenticator *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QAuthenticator();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QAuthenticator* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QAuthenticator, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QAuthenticator(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QAuthenticator[] = {
    {(void *)slot_QAuthenticator___ne__, ne_slot},
    {(void *)slot_QAuthenticator___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QAuthenticator[] = {
    {SIP_MLNAME_CAST(sipName_isNull), meth_QAuthenticator_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QAuthenticator_isNull)},
    {SIP_MLNAME_CAST(sipName_option), meth_QAuthenticator_option, METH_VARARGS, SIP_MLDOC_CAST(doc_QAuthenticator_option)},
    {SIP_MLNAME_CAST(sipName_options), meth_QAuthenticator_options, METH_VARARGS, SIP_MLDOC_CAST(doc_QAuthenticator_options)},
    {SIP_MLNAME_CAST(sipName_password), meth_QAuthenticator_password, METH_VARARGS, SIP_MLDOC_CAST(doc_QAuthenticator_password)},
    {SIP_MLNAME_CAST(sipName_realm), meth_QAuthenticator_realm, METH_VARARGS, SIP_MLDOC_CAST(doc_QAuthenticator_realm)},
    {SIP_MLNAME_CAST(sipName_setOption), meth_QAuthenticator_setOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QAuthenticator_setOption)},
    {SIP_MLNAME_CAST(sipName_setPassword), meth_QAuthenticator_setPassword, METH_VARARGS, SIP_MLDOC_CAST(doc_QAuthenticator_setPassword)},
    {SIP_MLNAME_CAST(sipName_setUser), meth_QAuthenticator_setUser, METH_VARARGS, SIP_MLDOC_CAST(doc_QAuthenticator_setUser)},
    {SIP_MLNAME_CAST(sipName_user), meth_QAuthenticator_user, METH_VARARGS, SIP_MLDOC_CAST(doc_QAuthenticator_user)}
};

PyDoc_STRVAR(doc_QAuthenticator, "\1QAuthenticator()\n"
    "QAuthenticator(QAuthenticator)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QAuthenticator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QAuthenticator,
        {0}
    },
    {
        sipNameNr_QAuthenticator,
        {0, 0, 1},
        9, methods_QAuthenticator,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QAuthenticator,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QAuthenticator,
    init_type_QAuthenticator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QAuthenticator,
    assign_QAuthenticator,
    array_QAuthenticator,
    copy_QAuthenticator,
    release_QAuthenticator,
    cast_QAuthenticator,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 46727 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 46731 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 46734 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 46737 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 46740 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 46743 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 46746 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 46749 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 46752 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 46755 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 46758 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 46761 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 46764 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 46767 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 46770 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 46773 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 46776 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 46779 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQAbstractSocket : public QAbstractSocket
{
public:
    sipQAbstractSocket(QAbstractSocket::SocketType,QObject*);
    virtual ~sipQAbstractSocket();

    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;
    void sipProtect_setOpenMode(QIODevice::OpenMode);
    void sipProtect_setErrorString(const QString&);
    void sipProtect_connectToHostImplementation(const QString&,quint16,QIODevice::OpenMode);
    void sipProtect_disconnectFromHostImplementation();
    qint64 sipProtectVirt_readData(bool,char*,qint64);
    qint64 sipProtectVirt_readLineData(bool,char*,qint64);
    qint64 sipProtectVirt_writeData(bool,const char*,PY_LONG_LONG);
    void sipProtect_setSocketState(QAbstractSocket::SocketState);
    void sipProtect_setSocketError(QAbstractSocket::SocketError);
    void sipProtect_setLocalPort(quint16);
    void sipProtect_setLocalAddress(const QHostAddress&);
    void sipProtect_setPeerPort(quint16);
    void sipProtect_setPeerAddress(const QHostAddress&);
    void sipProtect_setPeerName(const QString&);

    /*
     * 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*);
    bool reset();
    bool seek(qint64);
    qint64 size() const;
    qint64 pos() const;
    bool open(QIODevice::OpenMode);
    qint64 writeData(const char*,PY_LONG_LONG);
    qint64 readLineData(char*,qint64);
    qint64 readData(char*,qint64);
    bool waitForBytesWritten(int);
    bool waitForReadyRead(int);
    bool atEnd() const;
    bool isSequential() const;
    void close();
    bool canReadLine() const;
    qint64 bytesToWrite() const;
    qint64 bytesAvailable() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQAbstractSocket(const sipQAbstractSocket &);
    sipQAbstractSocket &operator = (const sipQAbstractSocket &);

    char sipPyMethods[23];
};

sipQAbstractSocket::sipQAbstractSocket(QAbstractSocket::SocketType a0,QObject*a1): QAbstractSocket(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQAbstractSocket::~sipQAbstractSocket()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQAbstractSocket::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QAbstractSocket);
}

int sipQAbstractSocket::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QAbstractSocket::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QAbstractSocket,_c,_id,_a);

    return _id;
}

void *sipQAbstractSocket::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QAbstractSocket, _clname)) ? this : QAbstractSocket::qt_metacast(_clname);
}

void sipQAbstractSocket::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QAbstractSocket::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQAbstractSocket::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QAbstractSocket::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQAbstractSocket::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QAbstractSocket::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQAbstractSocket::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QAbstractSocket::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQAbstractSocket::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QAbstractSocket::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQAbstractSocket::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QAbstractSocket::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQAbstractSocket::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QAbstractSocket::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQAbstractSocket::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_reset);

    if (!sipMeth)
        return QAbstractSocket::reset();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQAbstractSocket::seek(qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_seek);

    if (!sipMeth)
        return QAbstractSocket::seek(a0);

    typedef bool (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, PY_LONG_LONG);

    return ((sipVH_QtCore_32)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[32]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQAbstractSocket::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return QAbstractSocket::size();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQAbstractSocket::pos() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_pos);

    if (!sipMeth)
        return QAbstractSocket::pos();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQAbstractSocket::open(QIODevice::OpenMode a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
        return QAbstractSocket::open(a0);

    typedef bool (*sipVH_QtCore_15)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice::OpenMode);

    return ((sipVH_QtCore_15)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[15]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQAbstractSocket::writeData(const char*a0,PY_LONG_LONG a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_writeData);

    if (!sipMeth)
        return QAbstractSocket::writeData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

    return ((sipVH_QtCore_20)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[20]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipQAbstractSocket::readLineData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_readLineData);

    if (!sipMeth)
        return QAbstractSocket::readLineData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

qint64 sipQAbstractSocket::readData(char*a0,qint64 a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_readData);

    if (!sipMeth)
        return QAbstractSocket::readData(a0,a1);

    typedef PY_LONG_LONG (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*,PY_LONG_LONG);

    return ((sipVH_QtCore_21)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[21]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQAbstractSocket::waitForBytesWritten(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_waitForBytesWritten);

    if (!sipMeth)
        return QAbstractSocket::waitForBytesWritten(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQAbstractSocket::waitForReadyRead(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_waitForReadyRead);

    if (!sipMeth)
        return QAbstractSocket::waitForReadyRead(a0);

    typedef bool (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_23)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[23]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQAbstractSocket::atEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_atEnd);

    if (!sipMeth)
        return QAbstractSocket::atEnd();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQAbstractSocket::isSequential() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[18]),sipPySelf,NULL,sipName_isSequential);

    if (!sipMeth)
        return QAbstractSocket::isSequential();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQAbstractSocket::close()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_close);

    if (!sipMeth)
    {
        QAbstractSocket::close();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQAbstractSocket::canReadLine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,NULL,sipName_canReadLine);

    if (!sipMeth)
        return QAbstractSocket::canReadLine();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[7]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQAbstractSocket::bytesToWrite() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_bytesToWrite);

    if (!sipMeth)
        return QAbstractSocket::bytesToWrite();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

qint64 sipQAbstractSocket::bytesAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,NULL,sipName_bytesAvailable);

    if (!sipMeth)
        return QAbstractSocket::bytesAvailable();

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

QObject* sipQAbstractSocket::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQAbstractSocket::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQAbstractSocket::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQAbstractSocket::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQAbstractSocket::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQAbstractSocket::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQAbstractSocket::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQAbstractSocket::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

void sipQAbstractSocket::sipProtect_setOpenMode(QIODevice::OpenMode a0)
{
    QIODevice::setOpenMode(a0);
}

void sipQAbstractSocket::sipProtect_setErrorString(const QString& a0)
{
    QIODevice::setErrorString(a0);
}

void sipQAbstractSocket::sipProtect_connectToHostImplementation(const QString& a0,quint16 a1,QIODevice::OpenMode a2)
{
    QAbstractSocket::connectToHostImplementation(a0,a1,a2);
}

void sipQAbstractSocket::sipProtect_disconnectFromHostImplementation()
{
    QAbstractSocket::disconnectFromHostImplementation();
}

qint64 sipQAbstractSocket::sipProtectVirt_readData(bool sipSelfWasArg,char*a0,qint64 a1)
{
    return (sipSelfWasArg ? QAbstractSocket::readData(a0,a1) : readData(a0,a1));
}

qint64 sipQAbstractSocket::sipProtectVirt_readLineData(bool sipSelfWasArg,char*a0,qint64 a1)
{
    return (sipSelfWasArg ? QAbstractSocket::readLineData(a0,a1) : readLineData(a0,a1));
}

qint64 sipQAbstractSocket::sipProtectVirt_writeData(bool sipSelfWasArg,const char*a0,PY_LONG_LONG a1)
{
    return (sipSelfWasArg ? QAbstractSocket::writeData(a0,a1) : writeData(a0,a1));
}

void sipQAbstractSocket::sipProtect_setSocketState(QAbstractSocket::SocketState a0)
{
    QAbstractSocket::setSocketState(a0);
}

void sipQAbstractSocket::sipProtect_setSocketError(QAbstractSocket::SocketError a0)
{
    QAbstractSocket::setSocketError(a0);
}

void sipQAbstractSocket::sipProtect_setLocalPort(quint16 a0)
{
    QAbstractSocket::setLocalPort(a0);
}

void sipQAbstractSocket::sipProtect_setLocalAddress(const QHostAddress& a0)
{
    QAbstractSocket::setLocalAddress(a0);
}

void sipQAbstractSocket::sipProtect_setPeerPort(quint16 a0)
{
    QAbstractSocket::setPeerPort(a0);
}

void sipQAbstractSocket::sipProtect_setPeerAddress(const QHostAddress& a0)
{
    QAbstractSocket::setPeerAddress(a0);
}

void sipQAbstractSocket::sipProtect_setPeerName(const QString& a0)
{
    QAbstractSocket::setPeerName(a0);
}


PyDoc_STRVAR(doc_QAbstractSocket_sender, "QAbstractSocket.sender() -> QObject");

extern "C" {static PyObject *meth_QAbstractSocket_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 47399 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_sender, doc_QAbstractSocket_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_receivers, "QAbstractSocket.receivers(SIGNAL()) -> int");

extern "C" {static PyObject *meth_QAbstractSocket_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        char* a0;
        const sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QAbstractSocket, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 47444 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_receivers, doc_QAbstractSocket_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_timerEvent, "QAbstractSocket.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QAbstractSocket_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractSocket, &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_QAbstractSocket, sipName_timerEvent, doc_QAbstractSocket_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_childEvent, "QAbstractSocket.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QAbstractSocket_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractSocket, &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_QAbstractSocket, sipName_childEvent, doc_QAbstractSocket_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_customEvent, "QAbstractSocket.customEvent(QEvent)");

extern "C" {static PyObject *meth_QAbstractSocket_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractSocket, &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_QAbstractSocket, sipName_customEvent, doc_QAbstractSocket_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_connectNotify, "QAbstractSocket.connectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QAbstractSocket_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QAbstractSocket, &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_QAbstractSocket, sipName_connectNotify, doc_QAbstractSocket_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_disconnectNotify, "QAbstractSocket.disconnectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QAbstractSocket_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QAbstractSocket, &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_QAbstractSocket, sipName_disconnectNotify, doc_QAbstractSocket_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_senderSignalIndex, "QAbstractSocket.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QAbstractSocket_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QAbstractSocket, &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_QAbstractSocket, sipName_senderSignalIndex, doc_QAbstractSocket_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_setOpenMode, "QAbstractSocket.setOpenMode(QIODevice.OpenMode)");

extern "C" {static PyObject *meth_QAbstractSocket_setOpenMode(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_setOpenMode(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QIODevice::OpenMode* a0;
        int a0State = 0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QAbstractSocket, &sipCpp, sipType_QIODevice_OpenMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOpenMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QIODevice_OpenMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_setOpenMode, doc_QAbstractSocket_setOpenMode);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_setErrorString, "QAbstractSocket.setErrorString(str)");

extern "C" {static PyObject *meth_QAbstractSocket_setErrorString(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_setErrorString(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QAbstractSocket, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorString(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_setErrorString, doc_QAbstractSocket_setErrorString);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_connectToHost, "QAbstractSocket.connectToHost(str, int, QIODevice.OpenMode mode=QIODevice.ReadWrite)\n"
    "QAbstractSocket.connectToHost(QHostAddress, int, QIODevice.OpenMode mode=QIODevice.ReadWrite)");

extern "C" {static PyObject *meth_QAbstractSocket_connectToHost(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_connectToHost(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        quint16 a1;
        QIODevice::OpenMode a2def = QIODevice::ReadWrite;
        QIODevice::OpenMode* a2 = &a2def;
        int a2State = 0;
        QAbstractSocket *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1t|J1", &sipSelf, sipType_QAbstractSocket, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QIODevice_OpenMode, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHost(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QHostAddress* a0;
        int a0State = 0;
        quint16 a1;
        QIODevice::OpenMode a2def = QIODevice::ReadWrite;
        QIODevice::OpenMode* a2 = &a2def;
        int a2State = 0;
        QAbstractSocket *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1t|J1", &sipSelf, sipType_QAbstractSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State, &a1, sipType_QIODevice_OpenMode, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->connectToHost(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_connectToHost, doc_QAbstractSocket_connectToHost);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_disconnectFromHost, "QAbstractSocket.disconnectFromHost()");

extern "C" {static PyObject *meth_QAbstractSocket_disconnectFromHost(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_disconnectFromHost(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->disconnectFromHost();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_disconnectFromHost, doc_QAbstractSocket_disconnectFromHost);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_isValid, "QAbstractSocket.isValid() -> bool");

extern "C" {static PyObject *meth_QAbstractSocket_isValid(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &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_QAbstractSocket, sipName_isValid, doc_QAbstractSocket_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_bytesAvailable, "QAbstractSocket.bytesAvailable() -> int");

extern "C" {static PyObject *meth_QAbstractSocket_bytesAvailable(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_bytesAvailable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QAbstractSocket::bytesAvailable() : sipCpp->bytesAvailable());
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_bytesAvailable, doc_QAbstractSocket_bytesAvailable);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_bytesToWrite, "QAbstractSocket.bytesToWrite() -> int");

extern "C" {static PyObject *meth_QAbstractSocket_bytesToWrite(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_bytesToWrite(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QAbstractSocket::bytesToWrite() : sipCpp->bytesToWrite());
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_bytesToWrite, doc_QAbstractSocket_bytesToWrite);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_canReadLine, "QAbstractSocket.canReadLine() -> bool");

extern "C" {static PyObject *meth_QAbstractSocket_canReadLine(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_canReadLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QAbstractSocket::canReadLine() : sipCpp->canReadLine());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_canReadLine, doc_QAbstractSocket_canReadLine);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_localPort, "QAbstractSocket.localPort() -> int");

extern "C" {static PyObject *meth_QAbstractSocket_localPort(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_localPort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            quint16 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->localPort();
            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_QAbstractSocket, sipName_localPort, doc_QAbstractSocket_localPort);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_localAddress, "QAbstractSocket.localAddress() -> QHostAddress");

extern "C" {static PyObject *meth_QAbstractSocket_localAddress(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_localAddress(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            QHostAddress*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHostAddress(sipCpp->localAddress());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHostAddress,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_localAddress, doc_QAbstractSocket_localAddress);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_peerPort, "QAbstractSocket.peerPort() -> int");

extern "C" {static PyObject *meth_QAbstractSocket_peerPort(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_peerPort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            quint16 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->peerPort();
            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_QAbstractSocket, sipName_peerPort, doc_QAbstractSocket_peerPort);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_peerAddress, "QAbstractSocket.peerAddress() -> QHostAddress");

extern "C" {static PyObject *meth_QAbstractSocket_peerAddress(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_peerAddress(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            QHostAddress*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHostAddress(sipCpp->peerAddress());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHostAddress,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_peerAddress, doc_QAbstractSocket_peerAddress);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_peerName, "QAbstractSocket.peerName() -> str");

extern "C" {static PyObject *meth_QAbstractSocket_peerName(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_peerName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->peerName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_peerName, doc_QAbstractSocket_peerName);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_readBufferSize, "QAbstractSocket.readBufferSize() -> int");

extern "C" {static PyObject *meth_QAbstractSocket_readBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_readBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->readBufferSize();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_readBufferSize, doc_QAbstractSocket_readBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_setReadBufferSize, "QAbstractSocket.setReadBufferSize(int)");

extern "C" {static PyObject *meth_QAbstractSocket_setReadBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_setReadBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qint64 a0;
        QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QAbstractSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setReadBufferSize(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_QAbstractSocket, sipName_setReadBufferSize, doc_QAbstractSocket_setReadBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_abort, "QAbstractSocket.abort()");

extern "C" {static PyObject *meth_QAbstractSocket_abort(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_abort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->abort();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_abort, doc_QAbstractSocket_abort);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_socketDescriptor, "QAbstractSocket.socketDescriptor() -> int");

extern "C" {static PyObject *meth_QAbstractSocket_socketDescriptor(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_socketDescriptor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->socketDescriptor();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_socketDescriptor, doc_QAbstractSocket_socketDescriptor);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_setSocketDescriptor, "QAbstractSocket.setSocketDescriptor(int, QAbstractSocket.SocketState state=QAbstractSocket.ConnectedState, QIODevice.OpenMode mode=QIODevice.ReadWrite) -> bool");

extern "C" {static PyObject *meth_QAbstractSocket_setSocketDescriptor(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_setSocketDescriptor(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QAbstractSocket::SocketState a1 = QAbstractSocket::ConnectedState;
        QIODevice::OpenMode a2def = QIODevice::ReadWrite;
        QIODevice::OpenMode* a2 = &a2def;
        int a2State = 0;
        QAbstractSocket *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_state,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|EJ1", &sipSelf, sipType_QAbstractSocket, &sipCpp, &a0, sipType_QAbstractSocket_SocketState, &a1, sipType_QIODevice_OpenMode, &a2, &a2State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setSocketDescriptor(a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_setSocketDescriptor, doc_QAbstractSocket_setSocketDescriptor);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_socketType, "QAbstractSocket.socketType() -> QAbstractSocket.SocketType");

extern "C" {static PyObject *meth_QAbstractSocket_socketType(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_socketType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            QAbstractSocket::SocketType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->socketType();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QAbstractSocket_SocketType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_socketType, doc_QAbstractSocket_socketType);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_state, "QAbstractSocket.state() -> QAbstractSocket.SocketState");

extern "C" {static PyObject *meth_QAbstractSocket_state(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_state(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            QAbstractSocket::SocketState sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->state();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QAbstractSocket_SocketState);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_state, doc_QAbstractSocket_state);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_error, "QAbstractSocket.error() -> QAbstractSocket.SocketError");

extern "C" {static PyObject *meth_QAbstractSocket_error(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_error(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            QAbstractSocket::SocketError sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->error();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QAbstractSocket_SocketError);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_error, doc_QAbstractSocket_error);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_close, "QAbstractSocket.close()");

extern "C" {static PyObject *meth_QAbstractSocket_close(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->QAbstractSocket::close() : sipCpp->close());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_close, doc_QAbstractSocket_close);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_isSequential, "QAbstractSocket.isSequential() -> bool");

extern "C" {static PyObject *meth_QAbstractSocket_isSequential(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_isSequential(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QAbstractSocket::isSequential() : sipCpp->isSequential());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_isSequential, doc_QAbstractSocket_isSequential);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_atEnd, "QAbstractSocket.atEnd() -> bool");

extern "C" {static PyObject *meth_QAbstractSocket_atEnd(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_atEnd(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QAbstractSocket::atEnd() : sipCpp->atEnd());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_atEnd, doc_QAbstractSocket_atEnd);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_flush, "QAbstractSocket.flush() -> bool");

extern "C" {static PyObject *meth_QAbstractSocket_flush(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_flush(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->flush();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_flush, doc_QAbstractSocket_flush);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_waitForConnected, "QAbstractSocket.waitForConnected(int msecs=30000) -> bool");

extern "C" {static PyObject *meth_QAbstractSocket_waitForConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_waitForConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = 30000;
        QAbstractSocket *sipCpp;

        static const char *sipKwdList[] = {
            sipName_msecs,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QAbstractSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForConnected(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_waitForConnected, doc_QAbstractSocket_waitForConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_waitForReadyRead, "QAbstractSocket.waitForReadyRead(int msecs=30000) -> bool");

extern "C" {static PyObject *meth_QAbstractSocket_waitForReadyRead(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_waitForReadyRead(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0 = 30000;
        QAbstractSocket *sipCpp;

        static const char *sipKwdList[] = {
            sipName_msecs,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QAbstractSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QAbstractSocket::waitForReadyRead(a0) : sipCpp->waitForReadyRead(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_waitForReadyRead, doc_QAbstractSocket_waitForReadyRead);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_waitForBytesWritten, "QAbstractSocket.waitForBytesWritten(int msecs=30000) -> bool");

extern "C" {static PyObject *meth_QAbstractSocket_waitForBytesWritten(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_waitForBytesWritten(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0 = 30000;
        QAbstractSocket *sipCpp;

        static const char *sipKwdList[] = {
            sipName_msecs,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QAbstractSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->QAbstractSocket::waitForBytesWritten(a0) : sipCpp->waitForBytesWritten(a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_waitForBytesWritten, doc_QAbstractSocket_waitForBytesWritten);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_waitForDisconnected, "QAbstractSocket.waitForDisconnected(int msecs=30000) -> bool");

extern "C" {static PyObject *meth_QAbstractSocket_waitForDisconnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_waitForDisconnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = 30000;
        QAbstractSocket *sipCpp;

        static const char *sipKwdList[] = {
            sipName_msecs,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QAbstractSocket, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForDisconnected(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_waitForDisconnected, doc_QAbstractSocket_waitForDisconnected);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_setProxy, "QAbstractSocket.setProxy(QNetworkProxy)");

extern "C" {static PyObject *meth_QAbstractSocket_setProxy(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_setProxy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkProxy* a0;
        QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QAbstractSocket, &sipCpp, sipType_QNetworkProxy, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProxy(*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_QAbstractSocket, sipName_setProxy, doc_QAbstractSocket_setProxy);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_proxy, "QAbstractSocket.proxy() -> QNetworkProxy");

extern "C" {static PyObject *meth_QAbstractSocket_proxy(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_proxy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            QNetworkProxy*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkProxy(sipCpp->proxy());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkProxy,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_proxy, doc_QAbstractSocket_proxy);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_connectToHostImplementation, "QAbstractSocket.connectToHostImplementation(str, int, QIODevice.OpenMode mode=QIODevice.ReadWrite)");

extern "C" {static PyObject *meth_QAbstractSocket_connectToHostImplementation(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_connectToHostImplementation(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        quint16 a1;
        QIODevice::OpenMode a2def = QIODevice::ReadWrite;
        QIODevice::OpenMode* a2 = &a2def;
        int a2State = 0;
        sipQAbstractSocket *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1t|J1", &sipSelf, sipType_QAbstractSocket, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QIODevice_OpenMode, &a2, &a2State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_connectToHostImplementation(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QIODevice_OpenMode,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_connectToHostImplementation, doc_QAbstractSocket_connectToHostImplementation);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_disconnectFromHostImplementation, "QAbstractSocket.disconnectFromHostImplementation()");

extern "C" {static PyObject *meth_QAbstractSocket_disconnectFromHostImplementation(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_disconnectFromHostImplementation(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QAbstractSocket, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_disconnectFromHostImplementation();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_disconnectFromHostImplementation, doc_QAbstractSocket_disconnectFromHostImplementation);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_readData, "QAbstractSocket.readData(int) -> bytes");

extern "C" {static PyObject *meth_QAbstractSocket_readData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_readData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bn", &sipSelf, sipType_QAbstractSocket, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 309 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QAbstractSocket::readData(s, a0) : sipCpp->readData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 48748 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_readData, doc_QAbstractSocket_readData);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_readLineData, "QAbstractSocket.readLineData(int) -> bytes");

extern "C" {static PyObject *meth_QAbstractSocket_readLineData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_readLineData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        qint64 a0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bn", &sipSelf, sipType_QAbstractSocket, &sipCpp, &a0))
        {
            PyObject * sipRes = 0;
            int sipIsErr = 0;

#line 347 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractsocket.sip"
        // Return the data read or None if there was an error.
        if (a0 < 0)
        {
            PyErr_SetString(PyExc_ValueError, "maximum length of data to be read cannot be negative");
            sipIsErr = 1;
        }
        else
        {
            char *s = new char[a0];
            qint64 len;
        
            Py_BEGIN_ALLOW_THREADS
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            len = sipSelfWasArg ? sipCpp->QAbstractSocket::readLineData(s, a0) : sipCpp->readLineData(s, a0);
        #else
            len = sipCpp->sipProtectVirt_readLineData(sipSelfWasArg, s, a0);
        #endif
            Py_END_ALLOW_THREADS
        
            if (len < 0)
            {
                Py_INCREF(Py_None);
                sipRes = Py_None;
            }
            else
            {
                sipRes = SIPBytes_FromStringAndSize(s, len);
        
                if (!sipRes)
                    sipIsErr = 1;
            }
        
            delete[] s;
        }
#line 48816 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipIsErr)
                return 0;

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_readLineData, doc_QAbstractSocket_readLineData);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_writeData, "QAbstractSocket.writeData(str) -> int");

extern "C" {static PyObject *meth_QAbstractSocket_writeData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_writeData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const char* a0;
        SIP_SSIZE_T a1;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bk", &sipSelf, sipType_QAbstractSocket, &sipCpp, &a0, &a1))
        {
            qint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_writeData(sipSelfWasArg,a0,(PY_LONG_LONG)a1);
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_writeData, doc_QAbstractSocket_writeData);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_setSocketState, "QAbstractSocket.setSocketState(QAbstractSocket.SocketState)");

extern "C" {static PyObject *meth_QAbstractSocket_setSocketState(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_setSocketState(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractSocket::SocketState a0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QAbstractSocket, &sipCpp, sipType_QAbstractSocket_SocketState, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setSocketState(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_QAbstractSocket, sipName_setSocketState, doc_QAbstractSocket_setSocketState);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_setSocketError, "QAbstractSocket.setSocketError(QAbstractSocket.SocketError)");

extern "C" {static PyObject *meth_QAbstractSocket_setSocketError(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_setSocketError(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractSocket::SocketError a0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QAbstractSocket, &sipCpp, sipType_QAbstractSocket_SocketError, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setSocketError(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_QAbstractSocket, sipName_setSocketError, doc_QAbstractSocket_setSocketError);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_setLocalPort, "QAbstractSocket.setLocalPort(int)");

extern "C" {static PyObject *meth_QAbstractSocket_setLocalPort(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_setLocalPort(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        quint16 a0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bt", &sipSelf, sipType_QAbstractSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalPort(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_QAbstractSocket, sipName_setLocalPort, doc_QAbstractSocket_setLocalPort);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_setLocalAddress, "QAbstractSocket.setLocalAddress(QHostAddress)");

extern "C" {static PyObject *meth_QAbstractSocket_setLocalAddress(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_setLocalAddress(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostAddress* a0;
        int a0State = 0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QAbstractSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_setLocalAddress, doc_QAbstractSocket_setLocalAddress);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_setPeerPort, "QAbstractSocket.setPeerPort(int)");

extern "C" {static PyObject *meth_QAbstractSocket_setPeerPort(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_setPeerPort(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        quint16 a0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bt", &sipSelf, sipType_QAbstractSocket, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerPort(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_QAbstractSocket, sipName_setPeerPort, doc_QAbstractSocket_setPeerPort);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_setPeerAddress, "QAbstractSocket.setPeerAddress(QHostAddress)");

extern "C" {static PyObject *meth_QAbstractSocket_setPeerAddress(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_setPeerAddress(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QHostAddress* a0;
        int a0State = 0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QAbstractSocket, &sipCpp, sipType_QHostAddress, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerAddress(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_setPeerAddress, doc_QAbstractSocket_setPeerAddress);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_setPeerName, "QAbstractSocket.setPeerName(str)");

extern "C" {static PyObject *meth_QAbstractSocket_setPeerName(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_setPeerName(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QAbstractSocket, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPeerName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_setPeerName, doc_QAbstractSocket_setPeerName);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_setSocketOption, "QAbstractSocket.setSocketOption(QAbstractSocket.SocketOption, object)");

extern "C" {static PyObject *meth_QAbstractSocket_setSocketOption(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_setSocketOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractSocket::SocketOption a0;
        const QVariant* a1;
        int a1State = 0;
        QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_QAbstractSocket, &sipCpp, sipType_QAbstractSocket_SocketOption, &a0, sipType_QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSocketOption(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_setSocketOption, doc_QAbstractSocket_setSocketOption);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractSocket_socketOption, "QAbstractSocket.socketOption(QAbstractSocket.SocketOption) -> object");

extern "C" {static PyObject *meth_QAbstractSocket_socketOption(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_socketOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractSocket::SocketOption a0;
        QAbstractSocket *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QAbstractSocket, &sipCpp, sipType_QAbstractSocket_SocketOption, &a0))
        {
            QVariant*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->socketOption(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractSocket, sipName_socketOption, doc_QAbstractSocket_socketOption);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QAbstractSocket(void *, const sipTypeDef *);}
static void *cast_QAbstractSocket(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QAbstractSocket)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QIODevice)->ctd_cast((QIODevice *)(QAbstractSocket *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QAbstractSocket(void *, int);}
static void release_QAbstractSocket(void *sipCppV,int)
{
    QAbstractSocket *sipCpp = reinterpret_cast<QAbstractSocket *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QAbstractSocket(sipSimpleWrapper *);}
static void dealloc_QAbstractSocket(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQAbstractSocket *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QAbstractSocket(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QAbstractSocket(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QAbstractSocket(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQAbstractSocket *sipCpp = 0;

    {
        QAbstractSocket::SocketType a0;
        QObject* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EJH", sipType_QAbstractSocket_SocketType, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQAbstractSocket(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QAbstractSocket[] = {{81, 0, 1}};


static PyMethodDef methods_QAbstractSocket[] = {
    {SIP_MLNAME_CAST(sipName_abort), meth_QAbstractSocket_abort, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_abort)},
    {SIP_MLNAME_CAST(sipName_atEnd), meth_QAbstractSocket_atEnd, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_atEnd)},
    {SIP_MLNAME_CAST(sipName_bytesAvailable), meth_QAbstractSocket_bytesAvailable, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_bytesAvailable)},
    {SIP_MLNAME_CAST(sipName_bytesToWrite), meth_QAbstractSocket_bytesToWrite, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_bytesToWrite)},
    {SIP_MLNAME_CAST(sipName_canReadLine), meth_QAbstractSocket_canReadLine, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_canReadLine)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QAbstractSocket_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_QAbstractSocket_close, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_close)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QAbstractSocket_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectToHost), (PyCFunction)meth_QAbstractSocket_connectToHost, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_connectToHost)},
    {SIP_MLNAME_CAST(sipName_connectToHostImplementation), (PyCFunction)meth_QAbstractSocket_connectToHostImplementation, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_connectToHostImplementation)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QAbstractSocket_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectFromHost), meth_QAbstractSocket_disconnectFromHost, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_disconnectFromHost)},
    {SIP_MLNAME_CAST(sipName_disconnectFromHostImplementation), (PyCFunction)meth_QAbstractSocket_disconnectFromHostImplementation, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_disconnectFromHostImplementation)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QAbstractSocket_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_error), meth_QAbstractSocket_error, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_error)},
    {SIP_MLNAME_CAST(sipName_flush), meth_QAbstractSocket_flush, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_flush)},
    {SIP_MLNAME_CAST(sipName_isSequential), meth_QAbstractSocket_isSequential, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_isSequential)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QAbstractSocket_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_isValid)},
    {SIP_MLNAME_CAST(sipName_localAddress), meth_QAbstractSocket_localAddress, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_localAddress)},
    {SIP_MLNAME_CAST(sipName_localPort), meth_QAbstractSocket_localPort, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_localPort)},
    {SIP_MLNAME_CAST(sipName_peerAddress), meth_QAbstractSocket_peerAddress, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_peerAddress)},
    {SIP_MLNAME_CAST(sipName_peerName), meth_QAbstractSocket_peerName, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_peerName)},
    {SIP_MLNAME_CAST(sipName_peerPort), meth_QAbstractSocket_peerPort, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_peerPort)},
    {SIP_MLNAME_CAST(sipName_proxy), meth_QAbstractSocket_proxy, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_proxy)},
    {SIP_MLNAME_CAST(sipName_readBufferSize), meth_QAbstractSocket_readBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_readBufferSize)},
    {SIP_MLNAME_CAST(sipName_readData), (PyCFunction)meth_QAbstractSocket_readData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_readData)},
    {SIP_MLNAME_CAST(sipName_readLineData), (PyCFunction)meth_QAbstractSocket_readLineData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_readLineData)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QAbstractSocket_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QAbstractSocket_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QAbstractSocket_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorString), (PyCFunction)meth_QAbstractSocket_setErrorString, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalAddress), (PyCFunction)meth_QAbstractSocket_setLocalAddress, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_setLocalAddress)},
    {SIP_MLNAME_CAST(sipName_setLocalPort), (PyCFunction)meth_QAbstractSocket_setLocalPort, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_setLocalPort)},
    {SIP_MLNAME_CAST(sipName_setOpenMode), (PyCFunction)meth_QAbstractSocket_setOpenMode, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setPeerAddress), (PyCFunction)meth_QAbstractSocket_setPeerAddress, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_setPeerAddress)},
    {SIP_MLNAME_CAST(sipName_setPeerName), (PyCFunction)meth_QAbstractSocket_setPeerName, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_setPeerName)},
    {SIP_MLNAME_CAST(sipName_setPeerPort), (PyCFunction)meth_QAbstractSocket_setPeerPort, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_setPeerPort)},
    {SIP_MLNAME_CAST(sipName_setProxy), meth_QAbstractSocket_setProxy, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_setProxy)},
    {SIP_MLNAME_CAST(sipName_setReadBufferSize), meth_QAbstractSocket_setReadBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_setReadBufferSize)},
    {SIP_MLNAME_CAST(sipName_setSocketDescriptor), (PyCFunction)meth_QAbstractSocket_setSocketDescriptor, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_setSocketDescriptor)},
    {SIP_MLNAME_CAST(sipName_setSocketError), (PyCFunction)meth_QAbstractSocket_setSocketError, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_setSocketError)},
    {SIP_MLNAME_CAST(sipName_setSocketOption), meth_QAbstractSocket_setSocketOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_setSocketOption)},
    {SIP_MLNAME_CAST(sipName_setSocketState), (PyCFunction)meth_QAbstractSocket_setSocketState, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_setSocketState)},
    {SIP_MLNAME_CAST(sipName_socketDescriptor), meth_QAbstractSocket_socketDescriptor, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_socketDescriptor)},
    {SIP_MLNAME_CAST(sipName_socketOption), meth_QAbstractSocket_socketOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_socketOption)},
    {SIP_MLNAME_CAST(sipName_socketType), meth_QAbstractSocket_socketType, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_socketType)},
    {SIP_MLNAME_CAST(sipName_state), meth_QAbstractSocket_state, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractSocket_state)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QAbstractSocket_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForBytesWritten), (PyCFunction)meth_QAbstractSocket_waitForBytesWritten, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_waitForBytesWritten)},
    {SIP_MLNAME_CAST(sipName_waitForConnected), (PyCFunction)meth_QAbstractSocket_waitForConnected, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_waitForConnected)},
    {SIP_MLNAME_CAST(sipName_waitForDisconnected), (PyCFunction)meth_QAbstractSocket_waitForDisconnected, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_waitForDisconnected)},
    {SIP_MLNAME_CAST(sipName_waitForReadyRead), (PyCFunction)meth_QAbstractSocket_waitForReadyRead, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_waitForReadyRead)},
    {SIP_MLNAME_CAST(sipName_writeData), (PyCFunction)meth_QAbstractSocket_writeData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractSocket_writeData)}
};

static sipEnumMemberDef enummembers_QAbstractSocket[] = {
    {sipName_AddressInUseError, static_cast<int>(QAbstractSocket::AddressInUseError), 3},
    {sipName_BoundState, static_cast<int>(QAbstractSocket::BoundState), 5},
    {sipName_ClosingState, static_cast<int>(QAbstractSocket::ClosingState), 5},
    {sipName_ConnectedState, static_cast<int>(QAbstractSocket::ConnectedState), 5},
    {sipName_ConnectingState, static_cast<int>(QAbstractSocket::ConnectingState), 5},
    {sipName_ConnectionRefusedError, static_cast<int>(QAbstractSocket::ConnectionRefusedError), 3},
    {sipName_DatagramTooLargeError, static_cast<int>(QAbstractSocket::DatagramTooLargeError), 3},
    {sipName_HostLookupState, static_cast<int>(QAbstractSocket::HostLookupState), 5},
    {sipName_HostNotFoundError, static_cast<int>(QAbstractSocket::HostNotFoundError), 3},
    {sipName_IPv4Protocol, static_cast<int>(QAbstractSocket::IPv4Protocol), 2},
    {sipName_IPv6Protocol, static_cast<int>(QAbstractSocket::IPv6Protocol), 2},
    {sipName_KeepAliveOption, static_cast<int>(QAbstractSocket::KeepAliveOption), 4},
    {sipName_ListeningState, static_cast<int>(QAbstractSocket::ListeningState), 5},
    {sipName_LowDelayOption, static_cast<int>(QAbstractSocket::LowDelayOption), 4},
    {sipName_MulticastLoopbackOption, static_cast<int>(QAbstractSocket::MulticastLoopbackOption), 4},
    {sipName_MulticastTtlOption, static_cast<int>(QAbstractSocket::MulticastTtlOption), 4},
    {sipName_NetworkError, static_cast<int>(QAbstractSocket::NetworkError), 3},
    {sipName_ProxyAuthenticationRequiredError, static_cast<int>(QAbstractSocket::ProxyAuthenticationRequiredError), 3},
    {sipName_ProxyConnectionClosedError, static_cast<int>(QAbstractSocket::ProxyConnectionClosedError), 3},
    {sipName_ProxyConnectionRefusedError, static_cast<int>(QAbstractSocket::ProxyConnectionRefusedError), 3},
    {sipName_ProxyConnectionTimeoutError, static_cast<int>(QAbstractSocket::ProxyConnectionTimeoutError), 3},
    {sipName_ProxyNotFoundError, static_cast<int>(QAbstractSocket::ProxyNotFoundError), 3},
    {sipName_ProxyProtocolError, static_cast<int>(QAbstractSocket::ProxyProtocolError), 3},
    {sipName_RemoteHostClosedError, static_cast<int>(QAbstractSocket::RemoteHostClosedError), 3},
    {sipName_SocketAccessError, static_cast<int>(QAbstractSocket::SocketAccessError), 3},
    {sipName_SocketAddressNotAvailableError, static_cast<int>(QAbstractSocket::SocketAddressNotAvailableError), 3},
    {sipName_SocketResourceError, static_cast<int>(QAbstractSocket::SocketResourceError), 3},
    {sipName_SocketTimeoutError, static_cast<int>(QAbstractSocket::SocketTimeoutError), 3},
    {sipName_SslHandshakeFailedError, static_cast<int>(QAbstractSocket::SslHandshakeFailedError), 3},
    {sipName_TcpSocket, static_cast<int>(QAbstractSocket::TcpSocket), 6},
    {sipName_UdpSocket, static_cast<int>(QAbstractSocket::UdpSocket), 6},
    {sipName_UnconnectedState, static_cast<int>(QAbstractSocket::UnconnectedState), 5},
    {sipName_UnfinishedSocketOperationError, static_cast<int>(QAbstractSocket::UnfinishedSocketOperationError), 3},
    {sipName_UnknownNetworkLayerProtocol, static_cast<int>(QAbstractSocket::UnknownNetworkLayerProtocol), 2},
    {sipName_UnknownSocketError, static_cast<int>(QAbstractSocket::UnknownSocketError), 3},
    {sipName_UnknownSocketType, static_cast<int>(QAbstractSocket::UnknownSocketType), 6},
    {sipName_UnsupportedSocketOperationError, static_cast<int>(QAbstractSocket::UnsupportedSocketOperationError), 3},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_QAbstractSocket[] = {
    {"proxyAuthenticationRequired(QNetworkProxy,QAuthenticator*)", "\1QAbstractSocket.proxyAuthenticationRequired[QNetworkProxy, QAuthenticator]", 0, 0},
    {"stateChanged(QAbstractSocket::SocketState)", "\1QAbstractSocket.stateChanged[QAbstractSocket.SocketState]", 0, 0},
    {"disconnected()", "\1QAbstractSocket.disconnected", 0, 0},
    {"connected()", "\1QAbstractSocket.connected", 0, 0},
    {"hostFound()", "\1QAbstractSocket.hostFound", 0, 0},
    {"error(QAbstractSocket::SocketError)", "\1QAbstractSocket.error[QAbstractSocket.SocketError]", &methods_QAbstractSocket[14], 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QAbstractSocket, "\1QAbstractSocket(QAbstractSocket.SocketType, QObject)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QAbstractSocket = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QAbstractSocket,
        {0}
    },
    {
        sipNameNr_QAbstractSocket,
        {0, 0, 1},
        53, methods_QAbstractSocket,
        37, enummembers_QAbstractSocket,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QAbstractSocket,
    -1,
    -1,
    supers_QAbstractSocket,
    0,
    init_type_QAbstractSocket,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QAbstractSocket,
    0,
    0,
    0,
    release_QAbstractSocket,
    cast_QAbstractSocket,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QAbstractSocket::staticMetaObject,
    0,
    signals_QAbstractSocket,
};

#line 190 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qabstractnetworkcache.h>
#line 49377 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 49381 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 49384 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 148 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qabstractnetworkcache.h>
#line 49387 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 107 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 49390 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 49393 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 355 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 49396 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 49399 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 49402 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 49405 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 49408 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 49411 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 49414 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 49417 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 36 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 49420 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 49423 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 49426 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


class sipQAbstractNetworkCache : public QAbstractNetworkCache
{
public:
    sipQAbstractNetworkCache(QObject*);
    virtual ~sipQAbstractNetworkCache();

    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*);
    void clear();
    void insert(QIODevice*);
    QIODevice* prepare(const QNetworkCacheMetaData&);
    qint64 cacheSize() const;
    bool remove(const QUrl&);
    QIODevice* data(const QUrl&);
    void updateMetaData(const QNetworkCacheMetaData&);
    QNetworkCacheMetaData metaData(const QUrl&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQAbstractNetworkCache(const sipQAbstractNetworkCache &);
    sipQAbstractNetworkCache &operator = (const sipQAbstractNetworkCache &);

    char sipPyMethods[15];
};

sipQAbstractNetworkCache::sipQAbstractNetworkCache(QObject*a0): QAbstractNetworkCache(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQAbstractNetworkCache::~sipQAbstractNetworkCache()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQAbstractNetworkCache::metaObject() const
{
    return sip_QtNetwork_qt_metaobject(sipPySelf,sipType_QAbstractNetworkCache);
}

int sipQAbstractNetworkCache::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QAbstractNetworkCache::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtNetwork_qt_metacall(sipPySelf,sipType_QAbstractNetworkCache,_c,_id,_a);

    return _id;
}

void *sipQAbstractNetworkCache::qt_metacast(const char *_clname)
{
    return (sip_QtNetwork_qt_metacast(sipPySelf, sipType_QAbstractNetworkCache, _clname)) ? this : QAbstractNetworkCache::qt_metacast(_clname);
}

void sipQAbstractNetworkCache::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QAbstractNetworkCache::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQAbstractNetworkCache::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QAbstractNetworkCache::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    ((sipVH_QtCore_24)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[24]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQAbstractNetworkCache::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QAbstractNetworkCache::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_17)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[17]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQAbstractNetworkCache::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QAbstractNetworkCache::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[25]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQAbstractNetworkCache::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QAbstractNetworkCache::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[9]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipQAbstractNetworkCache::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QAbstractNetworkCache::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[18]))(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipQAbstractNetworkCache::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QAbstractNetworkCache::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[5]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQAbstractNetworkCache::clear()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_QAbstractNetworkCache,sipName_clear);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[11]))(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQAbstractNetworkCache::insert(QIODevice*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,sipName_QAbstractNetworkCache,sipName_insert);

    if (!sipMeth)
        return;

    extern void sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIODevice*);

    sipVH_QtNetwork_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QIODevice* sipQAbstractNetworkCache::prepare(const QNetworkCacheMetaData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,sipName_QAbstractNetworkCache,sipName_prepare);

    if (!sipMeth)
        return 0;

    extern QIODevice* sipVH_QtNetwork_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QNetworkCacheMetaData&);

    return sipVH_QtNetwork_6(sipGILState, 0, sipPySelf, sipMeth, a0);
}

qint64 sipQAbstractNetworkCache::cacheSize() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,sipName_QAbstractNetworkCache,sipName_cacheSize);

    if (!sipMeth)
        return 0;

    typedef PY_LONG_LONG (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtNetwork_QtCore->em_virthandlers[22]))(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQAbstractNetworkCache::remove(const QUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,sipName_QAbstractNetworkCache,sipName_remove);

    if (!sipMeth)
        return 0;

    extern bool sipVH_QtNetwork_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QUrl&);

    return sipVH_QtNetwork_7(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QIODevice* sipQAbstractNetworkCache::data(const QUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,sipName_QAbstractNetworkCache,sipName_data);

    if (!sipMeth)
        return 0;

    extern QIODevice* sipVH_QtNetwork_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QUrl&);

    return sipVH_QtNetwork_8(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQAbstractNetworkCache::updateMetaData(const QNetworkCacheMetaData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,sipName_QAbstractNetworkCache,sipName_updateMetaData);

    if (!sipMeth)
        return;

    extern void sipVH_QtNetwork_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QNetworkCacheMetaData&);

    sipVH_QtNetwork_9(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QNetworkCacheMetaData sipQAbstractNetworkCache::metaData(const QUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,sipName_QAbstractNetworkCache,sipName_metaData);

    if (!sipMeth)
        return QNetworkCacheMetaData();

    extern QNetworkCacheMetaData sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QUrl&);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth, a0);
}

QObject* sipQAbstractNetworkCache::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQAbstractNetworkCache::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQAbstractNetworkCache::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQAbstractNetworkCache::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQAbstractNetworkCache::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQAbstractNetworkCache::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQAbstractNetworkCache::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char*a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQAbstractNetworkCache::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_sender, "QAbstractNetworkCache.sender() -> QObject");

extern "C" {static PyObject *meth_QAbstractNetworkCache_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQAbstractNetworkCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QAbstractNetworkCache, &sipCpp))
        {
            QObject*sipRes = 0;

#line 643 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 49831 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractNetworkCache, sipName_sender, doc_QAbstractNetworkCache_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_receivers, "QAbstractNetworkCache.receivers(SIGNAL()) -> int");

extern "C" {static PyObject *meth_QAbstractNetworkCache_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        char* a0;
        const sipQAbstractNetworkCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QAbstractNetworkCache, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 669 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-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 49876 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractNetworkCache, sipName_receivers, doc_QAbstractNetworkCache_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_timerEvent, "QAbstractNetworkCache.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QAbstractNetworkCache_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQAbstractNetworkCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractNetworkCache, &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_QAbstractNetworkCache, sipName_timerEvent, doc_QAbstractNetworkCache_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_childEvent, "QAbstractNetworkCache.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QAbstractNetworkCache_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQAbstractNetworkCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractNetworkCache, &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_QAbstractNetworkCache, sipName_childEvent, doc_QAbstractNetworkCache_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_customEvent, "QAbstractNetworkCache.customEvent(QEvent)");

extern "C" {static PyObject *meth_QAbstractNetworkCache_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQAbstractNetworkCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractNetworkCache, &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_QAbstractNetworkCache, sipName_customEvent, doc_QAbstractNetworkCache_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_connectNotify, "QAbstractNetworkCache.connectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QAbstractNetworkCache_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQAbstractNetworkCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QAbstractNetworkCache, &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_QAbstractNetworkCache, sipName_connectNotify, doc_QAbstractNetworkCache_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_disconnectNotify, "QAbstractNetworkCache.disconnectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QAbstractNetworkCache_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQAbstractNetworkCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QAbstractNetworkCache, &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_QAbstractNetworkCache, sipName_disconnectNotify, doc_QAbstractNetworkCache_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_senderSignalIndex, "QAbstractNetworkCache.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QAbstractNetworkCache_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQAbstractNetworkCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QAbstractNetworkCache, &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_QAbstractNetworkCache, sipName_senderSignalIndex, doc_QAbstractNetworkCache_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_metaData, "QAbstractNetworkCache.metaData(QUrl) -> QNetworkCacheMetaData");

extern "C" {static PyObject *meth_QAbstractNetworkCache_metaData(PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_metaData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QUrl* a0;
        QAbstractNetworkCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QAbstractNetworkCache, &sipCpp, sipType_QUrl, &a0))
        {
            QNetworkCacheMetaData*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractNetworkCache, sipName_metaData);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkCacheMetaData(sipCpp->metaData(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkCacheMetaData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractNetworkCache, sipName_metaData, doc_QAbstractNetworkCache_metaData);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_updateMetaData, "QAbstractNetworkCache.updateMetaData(QNetworkCacheMetaData)");

extern "C" {static PyObject *meth_QAbstractNetworkCache_updateMetaData(PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_updateMetaData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QNetworkCacheMetaData* a0;
        QAbstractNetworkCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QAbstractNetworkCache, &sipCpp, sipType_QNetworkCacheMetaData, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractNetworkCache, sipName_updateMetaData);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->updateMetaData(*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_QAbstractNetworkCache, sipName_updateMetaData, doc_QAbstractNetworkCache_updateMetaData);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_data, "QAbstractNetworkCache.data(QUrl) -> QIODevice");

extern "C" {static PyObject *meth_QAbstractNetworkCache_data(PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QUrl* a0;
        QAbstractNetworkCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QAbstractNetworkCache, &sipCpp, sipType_QUrl, &a0))
        {
            QIODevice*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractNetworkCache, sipName_data);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->data(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QIODevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractNetworkCache, sipName_data, doc_QAbstractNetworkCache_data);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_remove, "QAbstractNetworkCache.remove(QUrl) -> bool");

extern "C" {static PyObject *meth_QAbstractNetworkCache_remove(PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_remove(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QUrl* a0;
        QAbstractNetworkCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QAbstractNetworkCache, &sipCpp, sipType_QUrl, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractNetworkCache, sipName_remove);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->remove(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractNetworkCache, sipName_remove, doc_QAbstractNetworkCache_remove);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_cacheSize, "QAbstractNetworkCache.cacheSize() -> int");

extern "C" {static PyObject *meth_QAbstractNetworkCache_cacheSize(PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_cacheSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QAbstractNetworkCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractNetworkCache, &sipCpp))
        {
            qint64 sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractNetworkCache, sipName_cacheSize);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->cacheSize();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractNetworkCache, sipName_cacheSize, doc_QAbstractNetworkCache_cacheSize);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_prepare, "QAbstractNetworkCache.prepare(QNetworkCacheMetaData) -> QIODevice");

extern "C" {static PyObject *meth_QAbstractNetworkCache_prepare(PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_prepare(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QNetworkCacheMetaData* a0;
        QAbstractNetworkCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QAbstractNetworkCache, &sipCpp, sipType_QNetworkCacheMetaData, &a0))
        {
            QIODevice*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractNetworkCache, sipName_prepare);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->prepare(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QIODevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractNetworkCache, sipName_prepare, doc_QAbstractNetworkCache_prepare);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_insert, "QAbstractNetworkCache.insert(QIODevice)");

extern "C" {static PyObject *meth_QAbstractNetworkCache_insert(PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_insert(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QIODevice* a0;
        QAbstractNetworkCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QAbstractNetworkCache, &sipCpp, sipType_QIODevice, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractNetworkCache, sipName_insert);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->insert(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_QAbstractNetworkCache, sipName_insert, doc_QAbstractNetworkCache_insert);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractNetworkCache_clear, "QAbstractNetworkCache.clear()");

extern "C" {static PyObject *meth_QAbstractNetworkCache_clear(PyObject *, PyObject *);}
static PyObject *meth_QAbstractNetworkCache_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QAbstractNetworkCache *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractNetworkCache, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractNetworkCache, sipName_clear);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->clear();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractNetworkCache, sipName_clear, doc_QAbstractNetworkCache_clear);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QAbstractNetworkCache(void *, const sipTypeDef *);}
static void *cast_QAbstractNetworkCache(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QAbstractNetworkCache)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QAbstractNetworkCache *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QAbstractNetworkCache(void *, int);}
static void release_QAbstractNetworkCache(void *sipCppV,int)
{
    QAbstractNetworkCache *sipCpp = reinterpret_cast<QAbstractNetworkCache *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QAbstractNetworkCache(sipSimpleWrapper *);}
static void dealloc_QAbstractNetworkCache(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQAbstractNetworkCache *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QAbstractNetworkCache(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QAbstractNetworkCache(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QAbstractNetworkCache(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQAbstractNetworkCache *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQAbstractNetworkCache(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QAbstractNetworkCache[] = {{141, 0, 1}};


static PyMethodDef methods_QAbstractNetworkCache[] = {
    {SIP_MLNAME_CAST(sipName_cacheSize), meth_QAbstractNetworkCache_cacheSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractNetworkCache_cacheSize)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QAbstractNetworkCache_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_QAbstractNetworkCache_clear, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractNetworkCache_clear)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QAbstractNetworkCache_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QAbstractNetworkCache_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_QAbstractNetworkCache_data, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractNetworkCache_data)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QAbstractNetworkCache_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_insert), meth_QAbstractNetworkCache_insert, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractNetworkCache_insert)},
    {SIP_MLNAME_CAST(sipName_metaData), meth_QAbstractNetworkCache_metaData, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractNetworkCache_metaData)},
    {SIP_MLNAME_CAST(sipName_prepare), meth_QAbstractNetworkCache_prepare, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractNetworkCache_prepare)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QAbstractNetworkCache_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_remove), meth_QAbstractNetworkCache_remove, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractNetworkCache_remove)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QAbstractNetworkCache_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QAbstractNetworkCache_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QAbstractNetworkCache_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMetaData), meth_QAbstractNetworkCache_updateMetaData, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractNetworkCache_updateMetaData)}
};

PyDoc_STRVAR(doc_QAbstractNetworkCache, "\1QAbstractNetworkCache(QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QAbstractNetworkCache = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QAbstractNetworkCache,
        {0}
    },
    {
        sipNameNr_QAbstractNetworkCache,
        {0, 0, 1},
        16, methods_QAbstractNetworkCache,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QAbstractNetworkCache,
    -1,
    -1,
    supers_QAbstractNetworkCache,
    0,
    init_type_QAbstractNetworkCache,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QAbstractNetworkCache,
    0,
    0,
    0,
    release_QAbstractNetworkCache,
    cast_QAbstractNetworkCache,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QAbstractNetworkCache::staticMetaObject,
    0,
    0
};

#line 148 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qabstractnetworkcache.h>
#line 50515 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 39 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qhash.h>
#include <qnetworkrequest.h>
#include <qvariant.h>
#line 50521 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkrequest.sip"
#include <qnetworkrequest.h>
#line 50524 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 50527 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 406 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 50530 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 201 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 50534 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 37 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 50537 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 107 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 50540 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkCacheMetaData_isValid, "QNetworkCacheMetaData.isValid() -> bool");

extern "C" {static PyObject *meth_QNetworkCacheMetaData_isValid(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCacheMetaData_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCacheMetaData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkCacheMetaData, &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_QNetworkCacheMetaData, sipName_isValid, doc_QNetworkCacheMetaData_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCacheMetaData_url, "QNetworkCacheMetaData.url() -> QUrl");

extern "C" {static PyObject *meth_QNetworkCacheMetaData_url(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCacheMetaData_url(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCacheMetaData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkCacheMetaData, &sipCpp))
        {
            QUrl*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->url());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCacheMetaData, sipName_url, doc_QNetworkCacheMetaData_url);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCacheMetaData_setUrl, "QNetworkCacheMetaData.setUrl(QUrl)");

extern "C" {static PyObject *meth_QNetworkCacheMetaData_setUrl(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCacheMetaData_setUrl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QUrl* a0;
        QNetworkCacheMetaData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QNetworkCacheMetaData, &sipCpp, sipType_QUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUrl(*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_QNetworkCacheMetaData, sipName_setUrl, doc_QNetworkCacheMetaData_setUrl);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCacheMetaData_rawHeaders, "QNetworkCacheMetaData.rawHeaders() -> list-of-tuple-of-QByteArray-QByteArray");

extern "C" {static PyObject *meth_QNetworkCacheMetaData_rawHeaders(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCacheMetaData_rawHeaders(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCacheMetaData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkCacheMetaData, &sipCpp))
        {
            QNetworkCacheMetaData::RawHeaderList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkCacheMetaData::RawHeaderList(sipCpp->rawHeaders());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0600QPair_0100QByteArray_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCacheMetaData, sipName_rawHeaders, doc_QNetworkCacheMetaData_rawHeaders);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCacheMetaData_setRawHeaders, "QNetworkCacheMetaData.setRawHeaders(list-of-tuple-of-QByteArray-QByteArray)");

extern "C" {static PyObject *meth_QNetworkCacheMetaData_setRawHeaders(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCacheMetaData_setRawHeaders(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCacheMetaData::RawHeaderList* a0;
        int a0State = 0;
        QNetworkCacheMetaData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkCacheMetaData, &sipCpp, sipType_QList_0600QPair_0100QByteArray_0100QByteArray,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRawHeaders(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QNetworkCacheMetaData::RawHeaderList *>(a0),sipType_QList_0600QPair_0100QByteArray_0100QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCacheMetaData, sipName_setRawHeaders, doc_QNetworkCacheMetaData_setRawHeaders);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCacheMetaData_lastModified, "QNetworkCacheMetaData.lastModified() -> QDateTime");

extern "C" {static PyObject *meth_QNetworkCacheMetaData_lastModified(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCacheMetaData_lastModified(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCacheMetaData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkCacheMetaData, &sipCpp))
        {
            QDateTime*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->lastModified());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCacheMetaData, sipName_lastModified, doc_QNetworkCacheMetaData_lastModified);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCacheMetaData_setLastModified, "QNetworkCacheMetaData.setLastModified(QDateTime)");

extern "C" {static PyObject *meth_QNetworkCacheMetaData_setLastModified(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCacheMetaData_setLastModified(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDateTime* a0;
        int a0State = 0;
        QNetworkCacheMetaData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkCacheMetaData, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLastModified(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCacheMetaData, sipName_setLastModified, doc_QNetworkCacheMetaData_setLastModified);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCacheMetaData_expirationDate, "QNetworkCacheMetaData.expirationDate() -> QDateTime");

extern "C" {static PyObject *meth_QNetworkCacheMetaData_expirationDate(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCacheMetaData_expirationDate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCacheMetaData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkCacheMetaData, &sipCpp))
        {
            QDateTime*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->expirationDate());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QDateTime,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCacheMetaData, sipName_expirationDate, doc_QNetworkCacheMetaData_expirationDate);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCacheMetaData_setExpirationDate, "QNetworkCacheMetaData.setExpirationDate(QDateTime)");

extern "C" {static PyObject *meth_QNetworkCacheMetaData_setExpirationDate(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCacheMetaData_setExpirationDate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDateTime* a0;
        int a0State = 0;
        QNetworkCacheMetaData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkCacheMetaData, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setExpirationDate(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCacheMetaData, sipName_setExpirationDate, doc_QNetworkCacheMetaData_setExpirationDate);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCacheMetaData_saveToDisk, "QNetworkCacheMetaData.saveToDisk() -> bool");

extern "C" {static PyObject *meth_QNetworkCacheMetaData_saveToDisk(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCacheMetaData_saveToDisk(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCacheMetaData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkCacheMetaData, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->saveToDisk();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCacheMetaData, sipName_saveToDisk, doc_QNetworkCacheMetaData_saveToDisk);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCacheMetaData_setSaveToDisk, "QNetworkCacheMetaData.setSaveToDisk(bool)");

extern "C" {static PyObject *meth_QNetworkCacheMetaData_setSaveToDisk(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCacheMetaData_setSaveToDisk(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QNetworkCacheMetaData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QNetworkCacheMetaData, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSaveToDisk(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_QNetworkCacheMetaData, sipName_setSaveToDisk, doc_QNetworkCacheMetaData_setSaveToDisk);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCacheMetaData_attributes, "QNetworkCacheMetaData.attributes() -> dict-of-QNetworkRequest.Attribute-object");

extern "C" {static PyObject *meth_QNetworkCacheMetaData_attributes(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCacheMetaData_attributes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCacheMetaData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNetworkCacheMetaData, &sipCpp))
        {
            QNetworkCacheMetaData::AttributesMap*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkCacheMetaData::AttributesMap(sipCpp->attributes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHash_0100QNetworkRequest_Attribute_0100QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCacheMetaData, sipName_attributes, doc_QNetworkCacheMetaData_attributes);

    return NULL;
}


PyDoc_STRVAR(doc_QNetworkCacheMetaData_setAttributes, "QNetworkCacheMetaData.setAttributes(dict-of-QNetworkRequest.Attribute-object)");

extern "C" {static PyObject *meth_QNetworkCacheMetaData_setAttributes(PyObject *, PyObject *);}
static PyObject *meth_QNetworkCacheMetaData_setAttributes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNetworkCacheMetaData::AttributesMap* a0;
        int a0State = 0;
        QNetworkCacheMetaData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QNetworkCacheMetaData, &sipCpp, sipType_QHash_0100QNetworkRequest_Attribute_0100QVariant,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAttributes(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QNetworkCacheMetaData::AttributesMap *>(a0),sipType_QHash_0100QNetworkRequest_Attribute_0100QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNetworkCacheMetaData, sipName_setAttributes, doc_QNetworkCacheMetaData_setAttributes);

    return NULL;
}


extern "C" {static PyObject *slot_QNetworkCacheMetaData___ne__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkCacheMetaData___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkCacheMetaData *sipCpp = reinterpret_cast<QNetworkCacheMetaData *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkCacheMetaData));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkCacheMetaData* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QNetworkCacheMetaData, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QNetworkCacheMetaData::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QNetworkCacheMetaData,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QNetworkCacheMetaData___eq__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkCacheMetaData___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkCacheMetaData *sipCpp = reinterpret_cast<QNetworkCacheMetaData *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkCacheMetaData));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkCacheMetaData* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QNetworkCacheMetaData, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->QNetworkCacheMetaData::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,eq_slot,sipType_QNetworkCacheMetaData,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNetworkCacheMetaData(void *, const sipTypeDef *);}
static void *cast_QNetworkCacheMetaData(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QNetworkCacheMetaData)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNetworkCacheMetaData(void *, int);}
static void release_QNetworkCacheMetaData(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<QNetworkCacheMetaData *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_QNetworkCacheMetaData(void *, SIP_SSIZE_T, const void *);}
static void assign_QNetworkCacheMetaData(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QNetworkCacheMetaData *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QNetworkCacheMetaData *>(sipSrc);
}


extern "C" {static void *array_QNetworkCacheMetaData(SIP_SSIZE_T);}
static void *array_QNetworkCacheMetaData(SIP_SSIZE_T sipNrElem)
{
    return new QNetworkCacheMetaData[sipNrElem];
}


extern "C" {static void *copy_QNetworkCacheMetaData(const void *, SIP_SSIZE_T);}
static void *copy_QNetworkCacheMetaData(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QNetworkCacheMetaData(reinterpret_cast<const QNetworkCacheMetaData *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QNetworkCacheMetaData(sipSimpleWrapper *);}
static void dealloc_QNetworkCacheMetaData(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QNetworkCacheMetaData(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QNetworkCacheMetaData(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNetworkCacheMetaData(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QNetworkCacheMetaData *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkCacheMetaData();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QNetworkCacheMetaData* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QNetworkCacheMetaData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QNetworkCacheMetaData(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QNetworkCacheMetaData[] = {
    {(void *)slot_QNetworkCacheMetaData___ne__, ne_slot},
    {(void *)slot_QNetworkCacheMetaData___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QNetworkCacheMetaData[] = {
    {SIP_MLNAME_CAST(sipName_attributes), meth_QNetworkCacheMetaData_attributes, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCacheMetaData_attributes)},
    {SIP_MLNAME_CAST(sipName_expirationDate), meth_QNetworkCacheMetaData_expirationDate, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCacheMetaData_expirationDate)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QNetworkCacheMetaData_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCacheMetaData_isValid)},
    {SIP_MLNAME_CAST(sipName_lastModified), meth_QNetworkCacheMetaData_lastModified, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCacheMetaData_lastModified)},
    {SIP_MLNAME_CAST(sipName_rawHeaders), meth_QNetworkCacheMetaData_rawHeaders, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCacheMetaData_rawHeaders)},
    {SIP_MLNAME_CAST(sipName_saveToDisk), meth_QNetworkCacheMetaData_saveToDisk, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCacheMetaData_saveToDisk)},
    {SIP_MLNAME_CAST(sipName_setAttributes), meth_QNetworkCacheMetaData_setAttributes, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCacheMetaData_setAttributes)},
    {SIP_MLNAME_CAST(sipName_setExpirationDate), meth_QNetworkCacheMetaData_setExpirationDate, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCacheMetaData_setExpirationDate)},
    {SIP_MLNAME_CAST(sipName_setLastModified), meth_QNetworkCacheMetaData_setLastModified, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCacheMetaData_setLastModified)},
    {SIP_MLNAME_CAST(sipName_setRawHeaders), meth_QNetworkCacheMetaData_setRawHeaders, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCacheMetaData_setRawHeaders)},
    {SIP_MLNAME_CAST(sipName_setSaveToDisk), meth_QNetworkCacheMetaData_setSaveToDisk, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCacheMetaData_setSaveToDisk)},
    {SIP_MLNAME_CAST(sipName_setUrl), meth_QNetworkCacheMetaData_setUrl, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCacheMetaData_setUrl)},
    {SIP_MLNAME_CAST(sipName_url), meth_QNetworkCacheMetaData_url, METH_VARARGS, SIP_MLDOC_CAST(doc_QNetworkCacheMetaData_url)}
};

PyDoc_STRVAR(doc_QNetworkCacheMetaData, "\1QNetworkCacheMetaData()\n"
    "QNetworkCacheMetaData(QNetworkCacheMetaData)");


pyqt4ClassTypeDef sipTypeDef_QtNetwork_QNetworkCacheMetaData = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkCacheMetaData,
        {0}
    },
    {
        sipNameNr_QNetworkCacheMetaData,
        {0, 0, 1},
        13, methods_QNetworkCacheMetaData,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNetworkCacheMetaData,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QNetworkCacheMetaData,
    init_type_QNetworkCacheMetaData,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNetworkCacheMetaData,
    assign_QNetworkCacheMetaData,
    array_QNetworkCacheMetaData,
    copy_QNetworkCacheMetaData,
    release_QNetworkCacheMetaData,
    cast_QNetworkCacheMetaData,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 39 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qhash.h>
#include <qnetworkrequest.h>
#include <qvariant.h>
#line 51169 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 33 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qnetworkrequest.sip"
#include <qnetworkrequest.h>
#line 51173 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 51176 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static void assign_QHash_0100QNetworkRequest_Attribute_0100QVariant(void *, SIP_SSIZE_T, const void *);}
static void assign_QHash_0100QNetworkRequest_Attribute_0100QVariant(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QHash<QNetworkRequest::Attribute,QVariant> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QHash<QNetworkRequest::Attribute,QVariant> *>(sipSrc);
}


extern "C" {static void *array_QHash_0100QNetworkRequest_Attribute_0100QVariant(SIP_SSIZE_T);}
static void *array_QHash_0100QNetworkRequest_Attribute_0100QVariant(SIP_SSIZE_T sipNrElem)
{
    return new QHash<QNetworkRequest::Attribute,QVariant>[sipNrElem];
}


extern "C" {static void *copy_QHash_0100QNetworkRequest_Attribute_0100QVariant(const void *, SIP_SSIZE_T);}
static void *copy_QHash_0100QNetworkRequest_Attribute_0100QVariant(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QHash<QNetworkRequest::Attribute,QVariant>(reinterpret_cast<const QHash<QNetworkRequest::Attribute,QVariant> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QHash_0100QNetworkRequest_Attribute_0100QVariant(void *, int);}
static void release_QHash_0100QNetworkRequest_Attribute_0100QVariant(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QHash<QNetworkRequest::Attribute,QVariant> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QHash_0100QNetworkRequest_Attribute_0100QVariant(PyObject *, void **, int *, PyObject *);}
static int convertTo_QHash_0100QNetworkRequest_Attribute_0100QVariant(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QHash<QNetworkRequest::Attribute,QVariant> **sipCppPtr = reinterpret_cast<QHash<QNetworkRequest::Attribute,QVariant> **>(sipCppPtrV);

#line 90 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractnetworkcache.sip"
    PyObject *t1obj, *t2obj;
    SIP_SSIZE_T i = 0;

    // Check the type if that is all that is required.
    if (!sipIsErr)
    {
        if (!PyDict_Check(sipPy))
            return 0;

        while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
        {
            if (!sipCanConvertToEnum(t1obj, sipType_QNetworkRequest_Attribute))
                return 0;

            if (!sipCanConvertToType(t2obj, sipType_QVariant, SIP_NOT_NONE))
                return 0;
        } 

        return 1;
    }

    QHash<QNetworkRequest::Attribute, QVariant> *qm = new QHash<QNetworkRequest::Attribute, QVariant>;
 
    while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
    {
        PyErr_Clear();
        QNetworkRequest::Attribute t1 = (QNetworkRequest::Attribute)SIPLong_AsLong(t1obj);

        if (PyErr_Occurred())
            *sipIsErr = 1;

        int state2;
        QVariant *t2 = reinterpret_cast<QVariant *>(sipConvertToType(t2obj,
                sipType_QVariant, sipTransferObj, SIP_NOT_NONE, &state2,
                sipIsErr));

        if (*sipIsErr)
        {
            delete qm;
            return 0;
        }

        qm->insert(t1, *t2);
 
        sipReleaseType(t2, sipType_QVariant, state2);
    }
 
    *sipCppPtr = qm;
 
    return sipGetState(sipTransferObj);
#line 51267 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


extern "C" {static PyObject *convertFrom_QHash_0100QNetworkRequest_Attribute_0100QVariant(void *, PyObject *);}
static PyObject *convertFrom_QHash_0100QNetworkRequest_Attribute_0100QVariant(void *sipCppV, PyObject *sipTransferObj)
{
   QHash<QNetworkRequest::Attribute,QVariant> *sipCpp = reinterpret_cast<QHash<QNetworkRequest::Attribute,QVariant> *>(sipCppV);

#line 45 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/sip/QtNetwork/qabstractnetworkcache.sip"
    // Create the dictionary.
    PyObject *d = PyDict_New();

    if (!d)
        return NULL;

    // Set the dictionary elements.
    QHash<QNetworkRequest::Attribute, QVariant>::const_iterator i = sipCpp->constBegin();

    while (i != sipCpp->constEnd())
    {
        PyObject *t1obj = sipConvertFromEnum((int)i.key(),
                sipType_QNetworkRequest_Attribute);

        QVariant *t2 = new QVariant(i.value());
        PyObject *t2obj = sipConvertFromNewType(t2, sipType_QVariant,
                sipTransferObj);

        if (!t1obj || !t2obj || PyDict_SetItem(d, t1obj, t2obj) < 0)
        {
            Py_DECREF(d);
            Py_XDECREF(t1obj);

            if (t2obj)
            {
                Py_DECREF(t2obj);
            }
            else
            {
                delete t2;
            }

            return 0;
        }

        Py_DECREF(t1obj);
        Py_DECREF(t2obj);

        ++i;
    }

    return d;
#line 51319 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.3-2.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QHash_0100QNetworkRequest_Attribute_0100QVariant = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_135,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QHash_0100QNetworkRequest_Attribute_0100QVariant,
    array_QHash_0100QNetworkRequest_Attribute_0100QVariant,
    copy_QHash_0100QNetworkRequest_Attribute_0100QVariant,
    release_QHash_0100QNetworkRequest_Attribute_0100QVariant,
    convertTo_QHash_0100QNetworkRequest_Attribute_0100QVariant,
    convertFrom_QHash_0100QNetworkRequest_Attribute_0100QVariant
};
