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

#include "sipAPIQtNetwork.h"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfigmanager.sip"
#include <qnetworkconfigmanager.h>
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 64 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 35 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 38 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qudpsocket.sip"
#include <qudpsocket.h>
#line 41 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 44 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 47 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 50 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 53 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 137 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qabstractnetworkcache.h>
#line 56 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 98 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 59 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 62 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 65 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 68 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qlocalsocket.sip"
#include <qlocalsocket.h>
#line 71 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 466 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 74 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkreply.sip"
#include <qnetworkreply.h>
#line 77 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkaccessmanager.sip"
#include <qnetworkaccessmanager.h>
#line 80 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkrequest.sip"
#include <qnetworkrequest.h>
#line 83 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 86 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkcookie.sip"
#include <qnetworkcookie.h>
#line 89 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 92 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 95 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 123 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 98 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qtcpsocket.sip"
#include <qtcpsocket.h>
#line 101 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 397 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 104 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 107 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 110 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostinfo.sip"
#include <qhostinfo.h>
#line 113 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 69 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 116 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 94 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 119 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhttpmultipart.sip"
#include <qhttpmultipart.h>
#line 122 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfigmanager.sip"
#include <qnetworkconfigmanager.h>
#line 125 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 128 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 131 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 134 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 64 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 137 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 140 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 143 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 146 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslconfiguration.sip"
#include <qsslconfiguration.h>
#line 149 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslcipher.sip"
#include <qsslcipher.h>
#line 152 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 155 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslkey.sip"
#include <qsslkey.h>
#line 158 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qudpsocket.sip"
#include <qudpsocket.h>
#line 161 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qurlinfo.sip"
#include <qurlinfo.h>
#line 164 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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,
    '_', '_', 'x', 'o', 'r', '_', '_', 0,
    '_', '_', 'i', 'o', 'r', '_', '_', 0,
    '_', '_', 'a', 'n', 'd', '_', '_', 0,
    '_', '_', 'i', 'n', 't', '_', '_', 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', '2', 0,
    'v', 'a', 'l', 'u', 'e', '1', 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,
    '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,
    '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,
    'N', 'o', 'n', 'e', '_', 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 106 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostinfo.sip"
// Imports from QtCore.
pyqt4_qtnetwork_get_connection_parts_t pyqt4_qtnetwork_get_connection_parts;
pyqt4_qtnetwork_get_slot_t pyqt4_qtnetwork_get_slot;
#line 1025 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

void sipVH_QtNetwork_35(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QDateTime& a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "N", new  ::QDateTime(a0), sipType_QDateTime, NULL);
}

void sipVH_QtNetwork_34(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, bool a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "b", a0);
}

void sipVH_QtNetwork_33(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QString& a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "N", new  ::QString(a0), sipType_QString, NULL);
}

void sipVH_QtNetwork_32(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "i", a0);
}

 ::QTcpSocket* sipVH_QtNetwork_31(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;
}

void sipVH_QtNetwork_30(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::qint64 a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "n", a0);
}

QList< ::QNetworkProxy> sipVH_QtNetwork_29(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;
}

bool sipVH_QtNetwork_28(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_27(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_26(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_25(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::quintptr a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "N", new  ::quintptr(a0), sipType_quintptr, NULL);
}

 ::QLocalSocket* sipVH_QtNetwork_24(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_23(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;
}

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

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

    return sipRes;
}

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

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

    return sipRes;
}

bool sipVH_QtNetwork_20(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QIODevice::OpenMode a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N", new  ::QIODevice::OpenMode(a0), sipType_QIODevice_OpenMode, NULL);

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

    return sipRes;
}

bool sipVH_QtNetwork_19(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::qint64 a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "n", a0);

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

    return sipRes;
}

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

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

    return sipRes;
}

bool sipVH_QtNetwork_17(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "i", a0);

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

    return sipRes;
}

 ::qint64 sipVH_QtNetwork_16(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, char*a0, ::qint64 a1)
{
     ::qint64 sipRes = 0;
    int sipIsErr = 0;

#line 202 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
        PyObject *result = sipCallMethod(&sipIsErr, sipMethod, "n", a1);
        
        if (result != NULL)
        {
            PyObject *buf;
        
            sipParseResult(&sipIsErr, sipMethod, result, "O", &buf);
        
            if (buf == Py_None)
                sipRes = -1L;
            else if (!SIPBytes_Check(buf))
            {
                sipBadCatcherResult(sipMethod);
                sipIsErr = 1;
            }
            else
            {
                memcpy(a0, SIPBytes_AS_STRING(buf), SIPBytes_GET_SIZE(buf));
                sipRes = SIPBytes_GET_SIZE(buf);
            }
        
            Py_DECREF(buf);
            Py_DECREF(result);
        }
#line 1220 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

    Py_DECREF(sipMethod);

    if (sipIsErr)
        sipCallErrorHandler(sipErrorHandler, sipPySelf, sipGILState);

    SIP_RELEASE_GIL(sipGILState)

    return sipRes;
}

 ::qint64 sipVH_QtNetwork_15(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, char*a0, ::qint64 a1)
{
     ::qint64 sipRes = 0;
    int sipIsErr = 0;

#line 267 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
        PyObject *result = sipCallMethod(&sipIsErr, sipMethod, "n", a1);
        
        if (result != NULL)
        {
            PyObject *buf;
        
            sipParseResult(&sipIsErr, sipMethod, result, "O", &buf);
        
            if (buf == Py_None)
                sipRes = -1L;
            else if (!SIPBytes_Check(buf))
            {
                sipBadCatcherResult(sipMethod);
                sipIsErr = 1;
            }
            else
            {
                memcpy(a0, SIPBytes_AS_STRING(buf), SIPBytes_GET_SIZE(buf));
                sipRes = SIPBytes_GET_SIZE(buf);
            }
        
            Py_DECREF(buf);
            Py_DECREF(result);
        }
#line 1262 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

    Py_DECREF(sipMethod);

    if (sipIsErr)
        sipCallErrorHandler(sipErrorHandler, sipPySelf, sipGILState);

    SIP_RELEASE_GIL(sipGILState)

    return sipRes;
}

 ::qint64 sipVH_QtNetwork_14(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const char*a0,PY_LONG_LONG a1)
{
     ::qint64 sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "g", a0, (SIP_SSIZE_T)a1);

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

    return sipRes;
}

void sipVH_QtNetwork_13(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "");
}

void sipVH_QtNetwork_12(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QIODevice*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QIODevice, NULL);
}

 ::QIODevice* sipVH_QtNetwork_11(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;
}

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

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

    return sipRes;
}

bool sipVH_QtNetwork_9(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_7(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QNetworkCacheMetaData& a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "N", new  ::QNetworkCacheMetaData(a0), sipType_QNetworkCacheMetaData, NULL);
}

 ::QNetworkCacheMetaData sipVH_QtNetwork_6(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_5(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QEvent*a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D", a0, sipType_QEvent, NULL);

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

    return sipRes;
}

bool sipVH_QtNetwork_4(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QObject*a0, ::QEvent*a1)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "DD", a0, sipType_QObject, NULL, a1, sipType_QEvent, NULL);

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

    return sipRes;
}

void sipVH_QtNetwork_3(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QTimerEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QTimerEvent, NULL);
}

void sipVH_QtNetwork_2(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QChildEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QChildEvent, NULL);
}

void sipVH_QtNetwork_1(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QEvent, NULL);
}

void sipVH_QtNetwork_0(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const char*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "S", a0);
}


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 30 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 1595 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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>(sipConvertToEnum(sipSelf, sipType_QHostAddress_SpecialAddress));

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


/*
 * This defines each type in this module.
 */
sipTypeDef *sipExportedTypes_QtNetwork[] = {
    &sipTypeDef_QtNetwork_QAbstractNetworkCache.ctd_base,
    &sipTypeDef_QtNetwork_QAbstractSocket.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.ctd_base,
    &sipTypeDef_QtNetwork_QFtp.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.ctd_base,
    &enumTypes[39].etd_base,
    &sipTypeDef_QtNetwork_QHostInfo.ctd_base,
    &enumTypes[38].etd_base,
    &sipTypeDef_QtNetwork_QHttp.ctd_base,
    &enumTypes[37].etd_base,
    &enumTypes[35].etd_base,
    &enumTypes[36].etd_base,
    &sipTypeDef_QtNetwork_QHttpHeader.ctd_base,
    &sipTypeDef_QtNetwork_QHttpMultiPart.ctd_base,
    &enumTypes[34].etd_base,
    &sipTypeDef_QtNetwork_QHttpPart.ctd_base,
    &sipTypeDef_QtNetwork_QHttpRequestHeader.ctd_base,
    &sipTypeDef_QtNetwork_QHttpResponseHeader.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.ctd_base,
    &sipTypeDef_QtNetwork_QLocalSocket.ctd_base,
    &enumTypes[33].etd_base,
    &enumTypes[32].etd_base,
    &sipTypeDef_QtNetwork_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString.mtd_base,
    &sipTypeDef_QtNetwork_QNetworkAccessManager.ctd_base,
    &enumTypes[30].etd_base,
    &enumTypes[31].etd_base,
    &sipTypeDef_QtNetwork_QNetworkAddressEntry.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkCacheMetaData.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkConfiguration.ctd_base,
    &enumTypes[25].etd_base,
    &enumTypes[27].etd_base,
    &enumTypes[26].etd_base,
    &sipTypeDef_QtNetwork_QNetworkConfiguration_StateFlags.ctd_base,
    &enumTypes[28].etd_base,
    &sipTypeDef_QtNetwork_QNetworkConfigurationManager.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkConfigurationManager_Capabilities.ctd_base,
    &enumTypes[29].etd_base,
    &sipTypeDef_QtNetwork_QNetworkCookie.ctd_base,
    &enumTypes[24].etd_base,
    &sipTypeDef_QtNetwork_QNetworkCookieJar.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkDiskCache.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkInterface.ctd_base,
    &enumTypes[23].etd_base,
    &sipTypeDef_QtNetwork_QNetworkInterface_InterfaceFlags.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkProxy.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkProxy_Capabilities.ctd_base,
    &enumTypes[21].etd_base,
    &enumTypes[22].etd_base,
    &sipTypeDef_QtNetwork_QNetworkProxyFactory.ctd_base,
    &sipTypeDef_QtNetwork_QNetworkProxyQuery.ctd_base,
    &enumTypes[20].etd_base,
    &sipTypeDef_QtNetwork_QNetworkReply.ctd_base,
    &enumTypes[19].etd_base,
    &sipTypeDef_QtNetwork_QNetworkRequest.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.ctd_base,
    &enumTypes[12].etd_base,
    &enumTypes[13].etd_base,
    &sipTypeDef_QtNetwork_QPair_0100QHostAddress_1800.mtd_base,
    &sipTypeDef_QtNetwork_QSsl.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.ctd_base,
    &enumTypes[7].etd_base,
    &sipTypeDef_QtNetwork_QSslCertificate.ctd_base,
    &enumTypes[5].etd_base,
    &sipTypeDef_QtNetwork_QSslCipher.ctd_base,
    &sipTypeDef_QtNetwork_QSslConfiguration.ctd_base,
    &sipTypeDef_QtNetwork_QSslError.ctd_base,
    &enumTypes[4].etd_base,
    &sipTypeDef_QtNetwork_QSslKey.ctd_base,
    &sipTypeDef_QtNetwork_QSslSocket.ctd_base,
    &enumTypes[2].etd_base,
    &enumTypes[3].etd_base,
    &sipTypeDef_QtNetwork_QTcpServer.ctd_base,
    &sipTypeDef_QtNetwork_QTcpSocket.ctd_base,
    &sipTypeDef_QtNetwork_QUdpSocket.ctd_base,
    &enumTypes[1].etd_base,
    &sipTypeDef_QtNetwork_QUdpSocket_BindMode.ctd_base,
    &sipTypeDef_QtNetwork_QUrlInfo.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 types that this module needs to import from QtCore. */
sipImportedTypeDef sipImportedTypes_QtNetwork_QtCore[] = {
    {"QByteArray"},
    {"QChildEvent"},
    {"QCryptographicHash::Algorithm"},
    {"QDataStream"},
    {"QDateTime"},
    {"QEvent"},
    {"QHash<QString,QVariant>"},
    {"QIODevice"},
    {"QIODevice::OpenMode"},
    {"QList<QByteArray>"},
    {"QList<QPair<QByteArray,QByteArray> >"},
    {"QList<QPair<QString,QString> >"},
    {"QObject"},
    {"QRegExp::PatternSyntax"},
    {"QString"},
    {"QStringList"},
    {"QTimerEvent"},
    {"QUrl"},
    {"QVariant"},
    {"quintptr"},
    {NULL}
};


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


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


/* This defines this module. */
sipExportedModuleDef sipModuleAPI_QtNetwork = {
    0,
    SIP_API_MINOR_NR,
    sipNameNr_PyQt4_QtNetwork,
    0,
    sipStrings_QtNetwork,
    importsTable,
    NULL,
    109,
    sipExportedTypes_QtNetwork,
    NULL,
    0,
    NULL,
    2,
    typedefsTable,
    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;

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("PyQt4.sip");
#else
    sip_sipmod = PyImport_ImportModule(const_cast<char *>("PyQt4.sip"));
#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, "PyQt4.sip._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);
    }
#line 112 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostinfo.sip"
// Imports from QtCore.
pyqt4_qtnetwork_get_connection_parts = (pyqt4_qtnetwork_get_connection_parts_t)sipImportSymbol("pyqt4_get_connection_parts");
Q_ASSERT(pyqt4_qtnetwork_get_connection_parts);

pyqt4_qtnetwork_get_slot = (pyqt4_qtnetwork_get_slot_t)sipImportSymbol("pyqt4_get_slot");
Q_ASSERT(pyqt4_qtnetwork_get_slot);
#line 2208 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

    SIP_MODULE_RETURN(sipModule);
}

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2215 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslcipher.sip"
#include <qsslcipher.h>
#line 2219 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static void assign_QList_0100QSslCipher(void *, SIP_SSIZE_T, void *);}
static void assign_QList_0100QSslCipher(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast<QList< ::QSslCipher> *>(sipDst)[sipDstIdx] = *reinterpret_cast<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 59 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 2309 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 2343 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QSslCipher = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_5745,     /* QList<QSslCipher> */
        {0},
        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 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2375 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 2379 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static void assign_QList_0100QSslCertificate(void *, SIP_SSIZE_T, void *);}
static void assign_QList_0100QSslCertificate(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast<QList< ::QSslCertificate> *>(sipDst)[sipDstIdx] = *reinterpret_cast<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 59 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 2469 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 2503 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QSslCertificate = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_3167,     /* QList<QSslCertificate> */
        {0},
        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 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2535 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 2539 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static void assign_QList_0100QNetworkProxy(void *, SIP_SSIZE_T, void *);}
static void assign_QList_0100QNetworkProxy(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast<QList< ::QNetworkProxy> *>(sipDst)[sipDstIdx] = *reinterpret_cast<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 59 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 2629 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 2663 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QNetworkProxy = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_3927,     /* QList<QNetworkProxy> */
        {0},
        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 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2695 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 64 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 2699 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static void assign_QList_0100QNetworkInterface(void *, SIP_SSIZE_T, void *);}
static void assign_QList_0100QNetworkInterface(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast<QList< ::QNetworkInterface> *>(sipDst)[sipDstIdx] = *reinterpret_cast<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 59 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 2789 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 2823 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QNetworkInterface = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_2628,     /* QList<QNetworkInterface> */
        {0},
        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 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2855 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 2859 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static void assign_QList_0100QNetworkAddressEntry(void *, SIP_SSIZE_T, void *);}
static void assign_QList_0100QNetworkAddressEntry(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast<QList< ::QNetworkAddressEntry> *>(sipDst)[sipDstIdx] = *reinterpret_cast<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 59 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 2949 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 2983 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QNetworkAddressEntry = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1760,     /* QList<QNetworkAddressEntry> */
        {0},
        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 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3015 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkcookie.sip"
#include <qnetworkcookie.h>
#line 3019 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static void assign_QList_0100QNetworkCookie(void *, SIP_SSIZE_T, void *);}
static void assign_QList_0100QNetworkCookie(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast<QList< ::QNetworkCookie> *>(sipDst)[sipDstIdx] = *reinterpret_cast<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 59 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 3109 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 3143 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QNetworkCookie = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_3443,     /* QList<QNetworkCookie> */
        {0},
        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 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3175 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 3179 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static void assign_QList_0100QNetworkConfiguration(void *, SIP_SSIZE_T, void *);}
static void assign_QList_0100QNetworkConfiguration(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast<QList< ::QNetworkConfiguration> *>(sipDst)[sipDstIdx] = *reinterpret_cast<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 59 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 3269 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 3303 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QNetworkConfiguration = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1354,     /* QList<QNetworkConfiguration> */
        {0},
        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 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3335 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 3339 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static void assign_QList_0100QSslError(void *, SIP_SSIZE_T, void *);}
static void assign_QList_0100QSslError(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast<QList< ::QSslError> *>(sipDst)[sipDstIdx] = *reinterpret_cast<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 59 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 3429 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 3463 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QSslError = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_6357,     /* QList<QSslError> */
        {0},
        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 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3495 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 3499 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static void assign_QList_0100QHostAddress(void *, SIP_SSIZE_T, void *);}
static void assign_QList_0100QHostAddress(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast<QList< ::QHostAddress> *>(sipDst)[sipDstIdx] = *reinterpret_cast<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 59 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 3589 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 3623 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QList_0100QHostAddress = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_4536,     /* QList<QHostAddress> */
        {0},
        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 83 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qpair.sip"
#include <qpair.h>
#line 3655 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 3659 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static void assign_QPair_0100QHostAddress_1800(void *, SIP_SSIZE_T, void *);}
static void assign_QPair_0100QHostAddress_1800(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast<QPair< ::QHostAddress,int> *>(sipDst)[sipDstIdx] = *reinterpret_cast<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 125 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 3725 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 87 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 3770 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QPair_0100QHostAddress_1800 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_2903,     /* QPair<QHostAddress,int> */
        {0},
        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 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qurlinfo.sip"
#include <qurlinfo.h>
#line 3802 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3806 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 397 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 3809 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 98 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 3812 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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()
{
    sipInstanceDestroyedEx(&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_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDateTime&);

    sipVH_QtNetwork_35(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;
    }

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

    sipVH_QtNetwork_32(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_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_QtNetwork_34(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_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_QtNetwork_34(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_30(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::qint64);

    sipVH_QtNetwork_30(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;
    }

    extern void sipVH_QtNetwork_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    sipVH_QtNetwork_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;
    }

    extern void sipVH_QtNetwork_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    sipVH_QtNetwork_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_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_QtNetwork_34(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_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_QtNetwork_34(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_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_QtNetwork_34(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;
    }

    extern void sipVH_QtNetwork_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

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


PyDoc_STRVAR(doc_QUrlInfo_setName, "setName(self, 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 || sipIsDerivedClass((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, "setDir(self, 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 || sipIsDerivedClass((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, "setFile(self, 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 || sipIsDerivedClass((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, "setSymLink(self, 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 || sipIsDerivedClass((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, "setOwner(self, 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 || sipIsDerivedClass((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, "setGroup(self, 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 || sipIsDerivedClass((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, "setSize(self, 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 || sipIsDerivedClass((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, "setWritable(self, 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 || sipIsDerivedClass((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, "setReadable(self, 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 || sipIsDerivedClass((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, "setPermissions(self, 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 || sipIsDerivedClass((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, "setLastModified(self, Union[QDateTime, datetime.datetime])");

extern "C" {static PyObject *meth_QUrlInfo_setLastModified(PyObject *, PyObject *);}
static PyObject *meth_QUrlInfo_setLastModified(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((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, "isValid(self) -> 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, "name(self) -> 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, "permissions(self) -> 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, "owner(self) -> 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, "group(self) -> 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, "size(self) -> 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, "lastModified(self) -> 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, "lastRead(self) -> 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, "isDir(self) -> 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, "isFile(self) -> 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, "isSymLink(self) -> 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, "isWritable(self) -> 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, "isReadable(self) -> 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, "isExecutable(self) -> 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, "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, "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, "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, "setLastRead(self, Union[QDateTime, datetime.datetime])");

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);
}


/* 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, void *);}
static void assign_QUrlInfo(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QUrlInfo *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQUrlInfo *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QUrlInfo(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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, Union[QDateTime, datetime.datetime], Union[QDateTime, datetime.datetime], bool, bool, bool, bool, bool, bool)\n"
"QUrlInfo(QUrl, int, str, str, int, Union[QDateTime, datetime.datetime], Union[QDateTime, datetime.datetime], bool, bool, bool, bool, bool, bool)");


static pyqt4ClassPluginDef plugin_QUrlInfo = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QUrlInfo = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QUrlInfo,
        {0},
        &plugin_QUrlInfo
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qudpsocket.sip"
#include <qudpsocket.h>
#line 5318 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qudpsocket.sip"
#include <qudpsocket.h>
#line 5322 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 381 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QUdpSocket::BindMode::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 5344 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 372 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 5378 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 363 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 5418 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 357 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
        *sipCpp = QUdpSocket::BindMode(*sipCpp ^ a0);
#line 5457 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            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___xor__(PyObject *,PyObject *);}
static PyObject *slot_QUdpSocket_BindMode___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
        *sipCpp = QUdpSocket::BindMode(*sipCpp | a0);
#line 5531 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            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___or__(PyObject *,PyObject *);}
static PyObject *slot_QUdpSocket_BindMode___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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, void *);}
static void assign_QUdpSocket_BindMode(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QUdpSocket::BindMode *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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;

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

            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;
        }
    }

    {
        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;
        }
    }

    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 390 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 5819 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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___ixor__, ixor_slot},
    {(void *)slot_QUdpSocket_BindMode___xor__, xor_slot},
    {(void *)slot_QUdpSocket_BindMode___ior__, ior_slot},
    {(void *)slot_QUdpSocket_BindMode___or__, or_slot},
    {(void *)slot_QUdpSocket_BindMode___iand__, iand_slot},
    {(void *)slot_QUdpSocket_BindMode___and__, and_slot},
    {(void *)slot_QUdpSocket_BindMode___invert__, invert_slot},
    {(void *)slot_QUdpSocket_BindMode___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QUdpSocket_BindMode, "\1QUdpSocket.BindMode()\n"
"QUdpSocket.BindMode(Union[QUdpSocket.BindMode, QUdpSocket.BindFlag])\n"
"QUdpSocket.BindMode(QUdpSocket.BindMode)");


static pyqt4ClassPluginDef plugin_QUdpSocket_BindMode = {
    0,
    1,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QUdpSocket_BindMode = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QUdpSocket__BindMode,
        {0},
        &plugin_QUdpSocket_BindMode
    },
    {
        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,
    0,
    convertTo_QUdpSocket_BindMode,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qudpsocket.sip"
#include <qudpsocket.h>
#line 5905 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5909 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 64 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 5912 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 5915 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5918 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qudpsocket.sip"
#include <qudpsocket.h>
#line 5921 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5924 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 5927 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5930 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 5933 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 5936 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 5939 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5942 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5945 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5948 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5951 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5954 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5957 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 5960 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5963 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5966 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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:
     ::qint64 writeData(const char*,PY_LONG_LONG);
     ::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;
    void close();
    bool open( ::QIODevice::OpenMode);
    bool isSequential() const;
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

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()
{
    sipInstanceDestroyedEx(&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);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

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

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

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

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

    extern bool sipVH_QtNetwork_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

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

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

    extern bool sipVH_QtNetwork_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::qint64);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern void sipVH_QtNetwork_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtNetwork_13(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QIODevice::OpenMode);

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

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 ::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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 6589 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQUdpSocket *sipCpp;

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

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 6655 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QUdpSocket, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 6811 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQUdpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QUdpSocket, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 6875 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "setOpenMode(self, 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, "setErrorString(self, 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, "connectToHostImplementation(self, str, int, mode: QIODevice.OpenMode = 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, "disconnectFromHostImplementation(self)");

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, "readData(self, 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 || sipIsDerivedClass((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 300 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 7116 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "readLineData(self, 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 || sipIsDerivedClass((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 338 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 7185 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "writeData(self, bytes) -> 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 || sipIsDerivedClass((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, "setSocketState(self, 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, "setSocketError(self, 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, "setLocalPort(self, 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, "setLocalAddress(self, Union[QHostAddress, QHostAddress.SpecialAddress])");

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, "setPeerPort(self, 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, "setPeerAddress(self, Union[QHostAddress, QHostAddress.SpecialAddress])");

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, "setPeerName(self, 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, "bind(self, Union[QHostAddress, QHostAddress.SpecialAddress], int) -> bool\n"
"bind(self, port: int = 0) -> bool\n"
"bind(self, Union[QHostAddress, QHostAddress.SpecialAddress], int, QUdpSocket.BindMode) -> bool\n"
"bind(self, 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, "hasPendingDatagrams(self) -> 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, "pendingDatagramSize(self) -> 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, "readDatagram(self, int) -> Tuple[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 62 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 7666 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "writeDatagram(self, bytes, Union[QHostAddress, QHostAddress.SpecialAddress], int) -> int\n"
"writeDatagram(self, Union[QByteArray, bytes, bytearray], Union[QHostAddress, QHostAddress.SpecialAddress], 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, "joinMulticastGroup(self, Union[QHostAddress, QHostAddress.SpecialAddress]) -> bool\n"
"joinMulticastGroup(self, Union[QHostAddress, QHostAddress.SpecialAddress], 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, "leaveMulticastGroup(self, Union[QHostAddress, QHostAddress.SpecialAddress]) -> bool\n"
"leaveMulticastGroup(self, Union[QHostAddress, QHostAddress.SpecialAddress], 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, "multicastInterface(self) -> 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, "setMulticastInterface(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QUdpSocket(void *, const sipTypeDef *);}
static void *cast_QUdpSocket(void *sipCppV, const sipTypeDef *targetType)
{
     ::QUdpSocket *sipCpp = reinterpret_cast< ::QUdpSocket *>(sipCppV);

    if (targetType == sipType_QAbstractSocket)
        return static_cast< ::QAbstractSocket *>(sipCpp);

    if (targetType == sipType_QIODevice)
        return static_cast< ::QIODevice *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQUdpSocket *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QUdpSocket(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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(parent: QObject = None)");


static pyqt4ClassPluginDef plugin_QUdpSocket = {
    & ::QUdpSocket::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QUdpSocket = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QUdpSocket,
        {0},
        &plugin_QUdpSocket
    },
    {
        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
};

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qtcpserver.sip"
#include <qtcpserver.h>
#line 8094 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 8098 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qtcpsocket.sip"
#include <qtcpsocket.h>
#line 8101 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 8104 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8107 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 8110 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 8113 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8116 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8119 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8122 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8125 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8128 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 8131 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8134 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8137 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 8140 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 8143 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 8146 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 incomingConnection(int);
     ::QTcpSocket* nextPendingConnection();
    bool hasPendingConnections() const;
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

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()
{
    sipInstanceDestroyedEx(&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::incomingConnection(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QTcpServer::incomingConnection(a0);
        return;
    }

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

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

 ::QTcpSocket* sipQTcpServer::nextPendingConnection()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QTcpServer::nextPendingConnection();

    extern  ::QTcpSocket* sipVH_QtNetwork_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_31(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQTcpServer::hasPendingConnections() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QTcpServer::hasPendingConnections();

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 ::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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 8489 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQTcpServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QTcpServer, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 8555 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQTcpServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QTcpServer, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 8711 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQTcpServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QTcpServer, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 8775 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "listen(self, address: Union[QHostAddress, QHostAddress.SpecialAddress] = QHostAddress.Any, port: int = 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, "close(self)");

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, "isListening(self) -> 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, "setMaxPendingConnections(self, 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, "maxPendingConnections(self) -> 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, "serverPort(self) -> 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, "serverAddress(self) -> 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, "socketDescriptor(self) -> 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, "setSocketDescriptor(self, 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, "waitForNewConnection(self, msecs: int = 0) -> Tuple[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, "hasPendingConnections(self) -> 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 || sipIsDerivedClass((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, "nextPendingConnection(self) -> 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 || sipIsDerivedClass((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, "serverError(self) -> 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(static_cast<int>(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, "errorString(self) -> 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, "setProxy(self, 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, "proxy(self) -> 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, "incomingConnection(self, 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 || sipIsDerivedClass((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, "addPendingConnection(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QTcpServer(void *, const sipTypeDef *);}
static void *cast_QTcpServer(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTcpServer *sipCpp = reinterpret_cast< ::QTcpServer *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQTcpServer *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QTcpServer(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{12, 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)}
};

PyDoc_STRVAR(doc_QTcpServer, "\1QTcpServer(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt4QtSignal signals_QTcpServer[] = {
    {"newConnection()", "\1newConnection(self)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_QTcpServer = {
    & ::QTcpServer::staticMetaObject,
    0,
    signals_QTcpServer
};


sipClassTypeDef sipTypeDef_QtNetwork_QTcpServer = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QTcpServer,
        {0},
        &plugin_QTcpServer
    },
    {
        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
};

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslsocket.sip"
#include <qsslsocket.h>
#line 9563 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 9567 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9570 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 9573 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 9576 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 9579 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslconfiguration.sip"
#include <qsslconfiguration.h>
#line 9582 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 9585 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9588 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9591 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 9594 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 9597 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 9600 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9603 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslcipher.sip"
#include <qsslcipher.h>
#line 9606 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslkey.sip"
#include <qsslkey.h>
#line 9609 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 9612 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 9615 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 9618 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 9621 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9624 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9627 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 9630 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9633 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 9636 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 9639 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 9642 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 9645 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 isSequential() const;
    bool open( ::QIODevice::OpenMode);
    void close();
     ::qint64 pos() const;
     ::qint64 size() const;
    bool seek( ::qint64);
    bool atEnd() const;
    bool reset();
     ::qint64 bytesAvailable() const;
     ::qint64 bytesToWrite() const;
    bool canReadLine() const;
    bool waitForReadyRead(int);
    bool waitForBytesWritten(int);
     ::qint64 readData(char*, ::qint64);
     ::qint64 readLineData(char*, ::qint64);
     ::qint64 writeData(const char*,PY_LONG_LONG);

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()
{
    sipInstanceDestroyedEx(&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;
    }

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

    sipVH_QtNetwork_0(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;
    }

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

    sipVH_QtNetwork_0(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;
    }

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

    sipVH_QtNetwork_1(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;
    }

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

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

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtNetwork_3(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);

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtNetwork_4(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);

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QIODevice::OpenMode);

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

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

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

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

    extern void sipVH_QtNetwork_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtNetwork_13(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();

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::qint64);

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

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

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

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

    extern bool sipVH_QtNetwork_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

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

 ::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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 10268 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QSslSocket, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 10334 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QSslSocket, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 10490 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQSslSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QSslSocket, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 10554 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "setOpenMode(self, 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, "setErrorString(self, 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, "readLineData(self, 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 || sipIsDerivedClass((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 338 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 10723 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "setSocketState(self, 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, "setSocketError(self, 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, "setLocalPort(self, 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, "setLocalAddress(self, Union[QHostAddress, QHostAddress.SpecialAddress])");

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, "setPeerPort(self, 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, "setPeerAddress(self, Union[QHostAddress, QHostAddress.SpecialAddress])");

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, "setPeerName(self, 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, "connectToHostEncrypted(self, str, int, mode: QIODevice.OpenMode = QIODevice.ReadWrite)\n"
"connectToHostEncrypted(self, str, int, str, mode: QIODevice.OpenMode = 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, "setSocketDescriptor(self, int, state: QAbstractSocket.SocketState = QAbstractSocket.ConnectedState, mode: Union[QIODevice.OpenMode, QIODevice.OpenModeFlag] = 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, "mode(self) -> 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(static_cast<int>(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, "isEncrypted(self) -> 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, "protocol(self) -> 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(static_cast<int>(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, "setProtocol(self, 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, "bytesAvailable(self) -> 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 || sipIsDerivedClass((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, "bytesToWrite(self) -> 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 || sipIsDerivedClass((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, "canReadLine(self) -> 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 || sipIsDerivedClass((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, "close(self)");

extern "C" {static PyObject *meth_QSslSocket_close(PyObject *, PyObject *);}
static PyObject *meth_QSslSocket_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((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, "atEnd(self) -> 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 || sipIsDerivedClass((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, "flush(self) -> 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, "abort(self)");

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, "setLocalCertificate(self, QSslCertificate)\n"
"setLocalCertificate(self, str, format: QSsl.EncodingFormat = 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, "localCertificate(self) -> 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, "peerCertificate(self) -> 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, "peerCertificateChain(self) -> List[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, "sessionCipher(self) -> 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, "setPrivateKey(self, QSslKey)\n"
"setPrivateKey(self, str, algorithm: QSsl.KeyAlgorithm = QSsl.Rsa, format: QSsl.EncodingFormat = QSsl.Pem, passPhrase: Union[QByteArray, bytes, bytearray] = 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, "privateKey(self) -> 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, "ciphers(self) -> List[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, "setCiphers(self, Sequence[QSslCipher])\n"
"setCiphers(self, 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, "setDefaultCiphers(Sequence[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, "defaultCiphers() -> List[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, "supportedCiphers() -> List[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, "addCaCertificates(self, str, format: QSsl.EncodingFormat = QSsl.Pem, syntax: QRegExp.PatternSyntax = QRegExp.FixedString) -> bool\n"
"addCaCertificates(self, Sequence[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, "addCaCertificate(self, 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, "setCaCertificates(self, Sequence[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, "caCertificates(self) -> List[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, "addDefaultCaCertificates(str, format: QSsl.EncodingFormat = QSsl.Pem, syntax: QRegExp.PatternSyntax = QRegExp.FixedString) -> bool\n"
"addDefaultCaCertificates(Sequence[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, "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, "setDefaultCaCertificates(Sequence[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, "defaultCaCertificates() -> List[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, "systemCaCertificates() -> List[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, "waitForConnected(self, msecs: int = 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, "waitForEncrypted(self, msecs: int = 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, "waitForReadyRead(self, msecs: int = 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 || sipIsDerivedClass((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, "waitForBytesWritten(self, msecs: int = 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 || sipIsDerivedClass((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, "waitForDisconnected(self, msecs: int = 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, "sslErrors(self) -> List[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, "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, "startClientEncryption(self)");

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, "startServerEncryption(self)");

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, "ignoreSslErrors(self)\n"
"ignoreSslErrors(self, Sequence[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, "connectToHostImplementation(self, 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, "disconnectFromHostImplementation(self)");

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, "readData(self, 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 || sipIsDerivedClass((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 141 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 12627 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "writeData(self, bytes) -> 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 || sipIsDerivedClass((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, "peerVerifyMode(self) -> 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(static_cast<int>(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, "setPeerVerifyMode(self, 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, "peerVerifyDepth(self) -> 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, "setPeerVerifyDepth(self, 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, "setReadBufferSize(self, 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, "encryptedBytesAvailable(self) -> 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, "encryptedBytesToWrite(self) -> 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, "sslConfiguration(self) -> 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, "setSslConfiguration(self, 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, "setSocketOption(self, QAbstractSocket.SocketOption, Any)");

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, "socketOption(self, QAbstractSocket.SocketOption) -> Any");

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, "peerVerifyName(self) -> 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, "setPeerVerifyName(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QSslSocket(void *, const sipTypeDef *);}
static void *cast_QSslSocket(void *sipCppV, const sipTypeDef *targetType)
{
     ::QSslSocket *sipCpp = reinterpret_cast< ::QSslSocket *>(sipCppV);

    if (targetType == sipType_QTcpSocket)
        return static_cast< ::QTcpSocket *>(sipCpp);

    if (targetType == sipType_QAbstractSocket)
        return static_cast< ::QAbstractSocket *>(sipCpp);

    if (targetType == sipType_QIODevice)
        return static_cast< ::QIODevice *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQSslSocket *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QSslSocket(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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},
};

PyDoc_STRVAR(doc_QSslSocket, "\1QSslSocket(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt4QtSignal signals_QSslSocket[] = {
    {"encryptedBytesWritten(qint64)", "\1encryptedBytesWritten(self, int)", 0, 0},
    {"peerVerifyError(QSslError)", "\1peerVerifyError(self, QSslError)", 0, 0},
    {"modeChanged(QSslSocket::SslMode)", "\1modeChanged(self, QSslSocket.SslMode)", 0, 0},
    {"encrypted()", "\1encrypted(self)", 0, 0},
    {"sslErrors(QList<QSslError>)", "\1sslErrors(self, Sequence[QSslError])", &methods_QSslSocket[66], 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_QSslSocket = {
    & ::QSslSocket::staticMetaObject,
    0,
    signals_QSslSocket
};


sipClassTypeDef sipTypeDef_QtNetwork_QSslSocket = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QSslSocket,
        {0},
        &plugin_QSslSocket
    },
    {
        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
};

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qtcpsocket.sip"
#include <qtcpsocket.h>
#line 13321 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 13325 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 13328 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 13331 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 13334 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 13337 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 13340 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 13343 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 13346 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 13349 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13352 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13355 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13358 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 13361 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13364 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 13367 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 13370 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 13373 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 13376 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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:
     ::qint64 writeData(const char*,PY_LONG_LONG);
     ::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;
    void close();
    bool open( ::QIODevice::OpenMode);
    bool isSequential() const;
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

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()
{
    sipInstanceDestroyedEx(&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);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

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

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

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

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

    extern bool sipVH_QtNetwork_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

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

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

    extern bool sipVH_QtNetwork_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::qint64);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern void sipVH_QtNetwork_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtNetwork_13(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QIODevice::OpenMode);

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

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 ::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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 13999 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QTcpSocket, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 14065 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QTcpSocket, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 14221 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQTcpSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QTcpSocket, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 14285 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "setOpenMode(self, 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, "setErrorString(self, 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, "connectToHostImplementation(self, str, int, mode: QIODevice.OpenMode = 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, "disconnectFromHostImplementation(self)");

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, "readData(self, 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 || sipIsDerivedClass((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 300 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 14526 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "readLineData(self, 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 || sipIsDerivedClass((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 338 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 14595 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "writeData(self, bytes) -> 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 || sipIsDerivedClass((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, "setSocketState(self, 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, "setSocketError(self, 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, "setLocalPort(self, 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, "setLocalAddress(self, Union[QHostAddress, QHostAddress.SpecialAddress])");

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, "setPeerPort(self, 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, "setPeerAddress(self, Union[QHostAddress, QHostAddress.SpecialAddress])");

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, "setPeerName(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QTcpSocket(void *, const sipTypeDef *);}
static void *cast_QTcpSocket(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTcpSocket *sipCpp = reinterpret_cast< ::QTcpSocket *>(sipCppV);

    if (targetType == sipType_QAbstractSocket)
        return static_cast< ::QAbstractSocket *>(sipCpp);

    if (targetType == sipType_QIODevice)
        return static_cast< ::QIODevice *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQTcpSocket *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QTcpSocket(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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(parent: QObject = None)");


static pyqt4ClassPluginDef plugin_QTcpSocket = {
    & ::QTcpSocket::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QTcpSocket = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QTcpSocket,
        {0},
        &plugin_QTcpSocket
    },
    {
        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
};

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslkey.sip"
#include <qsslkey.h>
#line 15028 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 15032 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 15035 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 15038 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QSslKey_isNull, "isNull(self) -> 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, "clear(self)");

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, "length(self) -> 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, "type(self) -> 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(static_cast<int>(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, "algorithm(self) -> 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(static_cast<int>(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, "toPem(self, passPhrase: Union[QByteArray, bytes, bytearray] = 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, "toDer(self, passPhrase: Union[QByteArray, bytes, bytearray] = 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, "handle(self) -> 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);
}


/* 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, void *);}
static void assign_QSslKey(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QSslKey *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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(Union[QByteArray, bytes, bytearray], QSsl.KeyAlgorithm, encoding: QSsl.EncodingFormat = QSsl.Pem, type: QSsl.KeyType = QSsl.PrivateKey, passPhrase: Union[QByteArray, bytes, bytearray] = QByteArray())\n"
"QSslKey(QIODevice, QSsl.KeyAlgorithm, encoding: QSsl.EncodingFormat = QSsl.Pem, type: QSsl.KeyType = QSsl.PrivateKey, passPhrase: Union[QByteArray, bytes, bytearray] = QByteArray())\n"
"QSslKey(QSslKey)");


static pyqt4ClassPluginDef plugin_QSslKey = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QSslKey = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QSslKey,
        {0},
        &plugin_QSslKey
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 15585 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 15589 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 15592 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QSslError_error, "error(self) -> 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(static_cast<int>(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, "errorString(self) -> 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, "certificate(self) -> 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);
}


/* 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, void *);}
static void assign_QSslError(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QSslError *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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)");


static pyqt4ClassPluginDef plugin_QSslError = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QSslError = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QSslError,
        {0},
        &plugin_QSslError
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslcipher.sip"
#include <qsslcipher.h>
#line 15967 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 15971 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 15974 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QSslCipher_isNull, "isNull(self) -> 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, "name(self) -> 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, "supportedBits(self) -> 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, "usedBits(self) -> 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, "keyExchangeMethod(self) -> 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, "authenticationMethod(self) -> 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, "encryptionMethod(self) -> 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, "protocolString(self) -> 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, "protocol(self) -> 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(static_cast<int>(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);
}


/* 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, void *);}
static void assign_QSslCipher(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QSslCipher *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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)");


static pyqt4ClassPluginDef plugin_QSslCipher = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QSslCipher = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QSslCipher,
        {0},
        &plugin_QSslCipher
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslconfiguration.sip"
#include <qsslconfiguration.h>
#line 16493 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 16497 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 16500 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 16503 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 16506 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslcipher.sip"
#include <qsslcipher.h>
#line 16509 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslkey.sip"
#include <qsslkey.h>
#line 16512 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslsocket.sip"
#include <qsslsocket.h>
#line 16515 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QSslConfiguration_isNull, "isNull(self) -> 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, "protocol(self) -> 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(static_cast<int>(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, "setProtocol(self, 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, "peerVerifyMode(self) -> 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(static_cast<int>(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, "setPeerVerifyMode(self, 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, "peerVerifyDepth(self) -> 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, "setPeerVerifyDepth(self, 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, "localCertificate(self) -> 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, "setLocalCertificate(self, 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, "peerCertificate(self) -> 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, "peerCertificateChain(self) -> List[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, "sessionCipher(self) -> 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, "privateKey(self) -> 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, "setPrivateKey(self, 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, "ciphers(self) -> object");

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, "setCiphers(self, Sequence[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, "caCertificates(self) -> List[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, "setCaCertificates(self, Sequence[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, "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, "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, "setSslOption(self, 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, "testSslOption(self, 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);
}


/* 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, void *);}
static void assign_QSslConfiguration(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QSslConfiguration *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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)");


static pyqt4ClassPluginDef plugin_QSslConfiguration = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QSslConfiguration = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QSslConfiguration,
        {0},
        &plugin_QSslConfiguration
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 287 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslcertificate.sip"
#include <QtCore/qmap.h>
#include <QtCore/qstring.h>
#include <QtNetwork/qssl.h>
#line 17424 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 17428 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 17431 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static void assign_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString(void *, SIP_SSIZE_T, void *);}
static void assign_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QMultiMap< ::QSsl::AlternateNameEntryType, ::QString> *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 415 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 17482 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 293 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 17611 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QMultiMap_0100QSsl_AlternateNameEntryType_0100QString = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_0,     /* QMultiMap<QSsl::AlternateNameEntryType,QString> */
        {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 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslcertificate.sip"
#include <qsslcertificate.h>
#line 17643 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 17647 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 17650 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 17653 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 17656 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 17659 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 17662 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslkey.sip"
#include <qsslkey.h>
#line 17665 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 397 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 17668 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 287 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslcertificate.sip"
#include <QtCore/qmap.h>
#include <QtCore/qstring.h>
#include <QtNetwork/qssl.h>
#line 17673 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcryptographichash.sip"
#include <qcryptographichash.h>
#line 17676 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QSslCertificate_isNull, "isNull(self) -> 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, "isValid(self) -> 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, "clear(self)");

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, "version(self) -> 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, "serialNumber(self) -> 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, "digest(self, algorithm: QCryptographicHash.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, "issuerInfo(self, QSslCertificate.SubjectInfo) -> str\n"
"issuerInfo(self, Union[QByteArray, bytes, bytearray]) -> 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, "subjectInfo(self, QSslCertificate.SubjectInfo) -> str\n"
"subjectInfo(self, Union[QByteArray, bytes, bytearray]) -> 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, "alternateSubjectNames(self) -> Dict[QSsl.AlternateNameEntryType, List[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, "effectiveDate(self) -> 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, "expiryDate(self) -> 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, "publicKey(self) -> 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, "toPem(self) -> 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, "toDer(self) -> 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, "fromPath(str, format: QSsl.EncodingFormat = QSsl.Pem, syntax: QRegExp.PatternSyntax = QRegExp.FixedString) -> object");

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, "fromDevice(QIODevice, format: QSsl.EncodingFormat = QSsl.Pem) -> List[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, "fromData(Union[QByteArray, bytes, bytearray], format: QSsl.EncodingFormat = QSsl.Pem) -> List[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, "handle(self) -> 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);
}


/* 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, void *);}
static void assign_QSslCertificate(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QSslCertificate *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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, format: QSsl.EncodingFormat = QSsl.Pem)\n"
"QSslCertificate(data: Union[QByteArray, bytes, bytearray] = QByteArray(), format: QSsl.EncodingFormat = QSsl.Pem)\n"
"QSslCertificate(QSslCertificate)");


static pyqt4ClassPluginDef plugin_QSslCertificate = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QSslCertificate = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QSslCertificate,
        {0},
        &plugin_QSslCertificate
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 18567 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 18571 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 381 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QSsl::SslOptions::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 18593 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 372 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 18627 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 363 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 18667 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 357 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
        *sipCpp = QSsl::SslOptions(*sipCpp ^ a0);
#line 18706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            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___xor__(PyObject *,PyObject *);}
static PyObject *slot_QSsl_SslOptions___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
        *sipCpp = QSsl::SslOptions(*sipCpp | a0);
#line 18780 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            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___or__(PyObject *,PyObject *);}
static PyObject *slot_QSsl_SslOptions___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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, void *);}
static void assign_QSsl_SslOptions(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QSsl::SslOptions *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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;

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

            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;
        }
    }

    {
        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;
        }
    }

    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 390 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 19068 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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___ixor__, ixor_slot},
    {(void *)slot_QSsl_SslOptions___xor__, xor_slot},
    {(void *)slot_QSsl_SslOptions___ior__, ior_slot},
    {(void *)slot_QSsl_SslOptions___or__, or_slot},
    {(void *)slot_QSsl_SslOptions___iand__, iand_slot},
    {(void *)slot_QSsl_SslOptions___and__, and_slot},
    {(void *)slot_QSsl_SslOptions___invert__, invert_slot},
    {(void *)slot_QSsl_SslOptions___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QSsl_SslOptions, "\1QSsl.SslOptions()\n"
"QSsl.SslOptions(Union[QSsl.SslOptions, QSsl.SslOption])\n"
"QSsl.SslOptions(QSsl.SslOptions)");


static pyqt4ClassPluginDef plugin_QSsl_SslOptions = {
    0,
    1,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QSsl_SslOptions = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QSsl__SslOptions,
        {0},
        &plugin_QSsl_SslOptions
    },
    {
        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,
    0,
    convertTo_QSsl_SslOptions,
    0,
    0,
    0,
    0,
    0
};

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qssl.sip"
#include <qssl.h>
#line 19154 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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},
};


static pyqt4ClassPluginDef plugin_QSsl = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QSsl = {
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_QSsl,
        {0},
        &plugin_QSsl
    },
    {
        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
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworksession.sip"
#include <qnetworksession.h>
#line 19239 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 19243 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 19246 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19249 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 19252 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 64 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 19255 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19258 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19261 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19264 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 19267 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 19270 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 19273 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 19276 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 19279 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 19282 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 19285 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(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()
{
    sipInstanceDestroyedEx(&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);
}

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

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

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

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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;
    }

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    sipVH_QtNetwork_0(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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 19565 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQNetworkSession *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkSession, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 19631 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isOpen(self) -> 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, "configuration(self) -> 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, "interface(self) -> 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, "state(self) -> 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(static_cast<int>(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, "error(self) -> 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(static_cast<int>(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, "errorString(self) -> 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, "sessionProperty(self, str) -> Any");

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, "setSessionProperty(self, str, Any)");

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, "bytesWritten(self) -> 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, "bytesReceived(self) -> 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, "activeTime(self) -> 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, "waitForOpened(self, msecs: int = 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, "open(self)");

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, "close(self)");

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, "stop(self)");

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, "migrate(self)");

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, "ignore(self)");

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, "accept(self)");

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, "reject(self)");

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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQNetworkSession *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkSession, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 91 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworksession.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QNetworkSession::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 20393 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQNetworkSession *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkSession, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 124 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworksession.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QNetworkSession::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 20457 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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 inheritance hierarchy. */
extern "C" {static void *cast_QNetworkSession(void *, const sipTypeDef *);}
static void *cast_QNetworkSession(void *sipCppV, const sipTypeDef *targetType)
{
     ::QNetworkSession *sipCpp = reinterpret_cast< ::QNetworkSession *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQNetworkSession *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QNetworkSession(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{12, 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},
};

PyDoc_STRVAR(doc_QNetworkSession, "\1QNetworkSession(QNetworkConfiguration, parent: QObject = None)");


/* Define this type's signals. */
static const pyqt4QtSignal signals_QNetworkSession[] = {
    {"newConfigurationActivated()", "\1newConfigurationActivated(self)", 0, 0},
    {"preferredConfigurationChanged(QNetworkConfiguration,bool)", "\1preferredConfigurationChanged(self, QNetworkConfiguration, bool)", 0, 0},
    {"closed()", "\1closed(self)", 0, 0},
    {"opened()", "\1opened(self)", 0, 0},
    {"stateChanged(QNetworkSession::State)", "\1stateChanged(self, QNetworkSession.State)", 0, 0},
    {"error(QNetworkSession::SessionError)", "\1error(self, QNetworkSession.SessionError)", &methods_QNetworkSession[10], 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_QNetworkSession = {
    & ::QNetworkSession::staticMetaObject,
    0,
    signals_QNetworkSession
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkSession = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QNetworkSession,
        {0},
        &plugin_QNetworkSession
    },
    {
        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
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkrequest.sip"
#include <qnetworkrequest.h>
#line 20675 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 98 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 20679 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 20682 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslconfiguration.sip"
#include <qsslconfiguration.h>
#line 20685 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 20688 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 20691 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 20694 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkRequest_url, "url(self) -> 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, "setUrl(self, 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, "header(self, QNetworkRequest.KnownHeaders) -> Any");

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, "setHeader(self, QNetworkRequest.KnownHeaders, Any)");

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, "hasRawHeader(self, Union[QByteArray, bytes, bytearray]) -> 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, "rawHeaderList(self) -> List[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, "rawHeader(self, Union[QByteArray, bytes, bytearray]) -> 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, "setRawHeader(self, Union[QByteArray, bytes, bytearray], Union[QByteArray, bytes, bytearray])");

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, "attribute(self, QNetworkRequest.Attribute, defaultValue: Any = None) -> Any");

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, "setAttribute(self, QNetworkRequest.Attribute, Any)");

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, "sslConfiguration(self) -> 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, "setSslConfiguration(self, 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, "setOriginatingObject(self, 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, -2, 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, "originatingObject(self) -> 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, "priority(self) -> 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(static_cast<int>(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, "setPriority(self, 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);
}


/* 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, void *);}
static void assign_QNetworkRequest(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QNetworkRequest *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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(url: QUrl = QUrl())\n"
"QNetworkRequest(QNetworkRequest)");


static pyqt4ClassPluginDef plugin_QNetworkRequest = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkRequest = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkRequest,
        {0},
        &plugin_QNetworkRequest
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkreply.sip"
#include <qnetworkreply.h>
#line 21485 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 21489 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 196 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 21493 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 21496 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkrequest.sip"
#include <qnetworkrequest.h>
#line 21499 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 21502 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 98 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 21505 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 21508 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkaccessmanager.sip"
#include <qnetworkaccessmanager.h>
#line 21511 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 21514 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 21517 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslconfiguration.sip"
#include <qsslconfiguration.h>
#line 21520 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 21523 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 21526 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 21529 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 21532 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 21535 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 21538 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 21541 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 21544 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 21547 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 21550 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 ignoreSslErrors();
    void setReadBufferSize( ::qint64);
    void abort();
    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 isSequential() const;
    bool open( ::QIODevice::OpenMode);
    void close();
     ::qint64 pos() const;
     ::qint64 size() const;
    bool seek( ::qint64);
    bool atEnd() const;
    bool reset();
     ::qint64 bytesAvailable() const;
     ::qint64 bytesToWrite() const;
    bool canReadLine() const;
    bool waitForReadyRead(int);
    bool waitForBytesWritten(int);
     ::qint64 readData(char*, ::qint64);
     ::qint64 readLineData(char*, ::qint64);
     ::qint64 writeData(const char*,PY_LONG_LONG);

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()
{
    sipInstanceDestroyedEx(&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::ignoreSslErrors()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QNetworkReply::ignoreSslErrors();
        return;
    }

    extern void sipVH_QtNetwork_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtNetwork_13(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQNetworkReply::setReadBufferSize( ::qint64 a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QNetworkReply::setReadBufferSize(a0);
        return;
    }

    extern void sipVH_QtNetwork_30(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::qint64);

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

void sipQNetworkReply::abort()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_QNetworkReply,sipName_abort);

    if (!sipMeth)
        return;

    extern void sipVH_QtNetwork_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtNetwork_13(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QIODevice::OpenMode);

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

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

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

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

    extern void sipVH_QtNetwork_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtNetwork_13(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::qint64);

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

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

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

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

    extern bool sipVH_QtNetwork_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,sipName_QNetworkReply,sipName_readData);

    if (!sipMeth)
        return 0;

    extern  ::qint64 sipVH_QtNetwork_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

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

 ::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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 22221 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkReply, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 22287 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkReply, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 22443 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQNetworkReply *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkReply, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 22507 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "readData(self, 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 165 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 22618 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "readLineData(self, 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 || sipIsDerivedClass((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 230 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 22687 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "setOpenMode(self, 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, "setErrorString(self, 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, "abort(self)");

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, "close(self)");

extern "C" {static PyObject *meth_QNetworkReply_close(PyObject *, PyObject *);}
static PyObject *meth_QNetworkReply_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((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, "isSequential(self) -> 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 || sipIsDerivedClass((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, "readBufferSize(self) -> 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, "setReadBufferSize(self, 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 || sipIsDerivedClass((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, "manager(self) -> 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, "operation(self) -> 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(static_cast<int>(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, "request(self) -> 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, "error(self) -> 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(static_cast<int>(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, "url(self) -> 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, "header(self, QNetworkRequest.KnownHeaders) -> Any");

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, "hasRawHeader(self, Union[QByteArray, bytes, bytearray]) -> 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, "rawHeaderList(self) -> List[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, "rawHeader(self, Union[QByteArray, bytes, bytearray]) -> 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, "attribute(self, QNetworkRequest.Attribute) -> Any");

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, "sslConfiguration(self) -> 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, "setSslConfiguration(self, 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, "ignoreSslErrors(self)\n"
"ignoreSslErrors(self, Sequence[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 || sipIsDerivedClass((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, "writeData(self, bytes) -> 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 || sipIsDerivedClass((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, "setOperation(self, 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, "setRequest(self, 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, "setError(self, 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, "setUrl(self, 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, "setHeader(self, QNetworkRequest.KnownHeaders, Any)");

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, "setRawHeader(self, Union[QByteArray, bytes, bytearray], Union[QByteArray, bytes, bytearray])");

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, "setAttribute(self, QNetworkRequest.Attribute, Any)");

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, "setFinished(self, 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, "isFinished(self) -> 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, "isRunning(self) -> 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, "rawHeaderPairs(self) -> List[Tuple[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 inheritance hierarchy. */
extern "C" {static void *cast_QNetworkReply(void *, const sipTypeDef *);}
static void *cast_QNetworkReply(void *sipCppV, const sipTypeDef *targetType)
{
     ::QNetworkReply *sipCpp = reinterpret_cast< ::QNetworkReply *>(sipCppV);

    if (targetType == sipType_QIODevice)
        return static_cast< ::QIODevice *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQNetworkReply *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QNetworkReply(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{7, 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},
};

PyDoc_STRVAR(doc_QNetworkReply, "\1QNetworkReply(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt4QtSignal signals_QNetworkReply[] = {
    {"downloadProgress(qint64,qint64)", "\1downloadProgress(self, int, int)", 0, 0},
    {"uploadProgress(qint64,qint64)", "\1uploadProgress(self, int, int)", 0, 0},
    {"sslErrors(QList<QSslError>)", "\1sslErrors(self, Sequence[QSslError])", 0, 0},
    {"finished()", "\1finished(self)", 0, 0},
    {"metaDataChanged()", "\1metaDataChanged(self)", 0, 0},
    {"error(QNetworkReply::NetworkError)", "\1error(self, QNetworkReply.NetworkError)", &methods_QNetworkReply[7], 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_QNetworkReply = {
    & ::QNetworkReply::staticMetaObject,
    0,
    signals_QNetworkReply
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkReply = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QNetworkReply,
        {0},
        &plugin_QNetworkReply
    },
    {
        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
};

#line 181 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 23943 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 23947 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 23950 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 123 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 23953 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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()
{
    sipInstanceDestroyedEx(&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_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QNetworkProxyQuery&);

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


PyDoc_STRVAR(doc_QNetworkProxyFactory_queryProxy, "queryProxy(self, query: QNetworkProxyQuery = QNetworkProxyQuery()) -> object");

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, "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, "proxyForQuery(QNetworkProxyQuery) -> List[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, "systemProxyForQuery(query: QNetworkProxyQuery = QNetworkProxyQuery()) -> List[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, "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;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQNetworkProxyFactory *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QNetworkProxyFactory(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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)");


static pyqt4ClassPluginDef plugin_QNetworkProxyFactory = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkProxyFactory = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_QNetworkProxyFactory,
        {0},
        &plugin_QNetworkProxyFactory
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 123 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 24314 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 98 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 24318 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 24321 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 24324 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkProxyQuery_queryType, "queryType(self) -> 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(static_cast<int>(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, "setQueryType(self, 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, "peerPort(self) -> 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, "setPeerPort(self, 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, "peerHostName(self) -> 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, "setPeerHostName(self, 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, "localPort(self) -> 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, "setLocalPort(self, 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, "protocolTag(self) -> 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, "setProtocolTag(self, 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, "url(self) -> 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, "setUrl(self, 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, "networkConfiguration(self) -> 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, "setNetworkConfiguration(self, 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);
}


/* 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, void *);}
static void assign_QNetworkProxyQuery(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QNetworkProxyQuery *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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, type: QNetworkProxyQuery.QueryType = QNetworkProxyQuery.UrlRequest)\n"
"QNetworkProxyQuery(str, int, protocolTag: str = '', type: QNetworkProxyQuery.QueryType = QNetworkProxyQuery.TcpSocket)\n"
"QNetworkProxyQuery(int, protocolTag: str = '', type: QNetworkProxyQuery.QueryType = QNetworkProxyQuery.TcpServer)\n"
"QNetworkProxyQuery(QNetworkConfiguration, QUrl, queryType: QNetworkProxyQuery.QueryType = QNetworkProxyQuery.UrlRequest)\n"
"QNetworkProxyQuery(QNetworkConfiguration, str, int, protocolTag: str = '', type: QNetworkProxyQuery.QueryType = QNetworkProxyQuery.TcpSocket)\n"
"QNetworkProxyQuery(QNetworkConfiguration, int, protocolTag: str = '', type: QNetworkProxyQuery.QueryType = QNetworkProxyQuery.TcpServer)\n"
"QNetworkProxyQuery(QNetworkProxyQuery)");


static pyqt4ClassPluginDef plugin_QNetworkProxyQuery = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkProxyQuery = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkProxyQuery,
        {0},
        &plugin_QNetworkProxyQuery
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 25151 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 25155 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 381 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkProxy::Capabilities::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 25177 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 372 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 25211 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 363 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 25251 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 357 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
        *sipCpp = QNetworkProxy::Capabilities(*sipCpp ^ a0);
#line 25290 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            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___xor__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkProxy_Capabilities___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
        *sipCpp = QNetworkProxy::Capabilities(*sipCpp | a0);
#line 25364 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            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___or__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkProxy_Capabilities___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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, void *);}
static void assign_QNetworkProxy_Capabilities(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QNetworkProxy::Capabilities *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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;

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

            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;
        }
    }

    {
        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;
        }
    }

    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 390 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 25652 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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___ixor__, ixor_slot},
    {(void *)slot_QNetworkProxy_Capabilities___xor__, xor_slot},
    {(void *)slot_QNetworkProxy_Capabilities___ior__, ior_slot},
    {(void *)slot_QNetworkProxy_Capabilities___or__, or_slot},
    {(void *)slot_QNetworkProxy_Capabilities___iand__, iand_slot},
    {(void *)slot_QNetworkProxy_Capabilities___and__, and_slot},
    {(void *)slot_QNetworkProxy_Capabilities___invert__, invert_slot},
    {(void *)slot_QNetworkProxy_Capabilities___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QNetworkProxy_Capabilities, "\1QNetworkProxy.Capabilities()\n"
"QNetworkProxy.Capabilities(Union[QNetworkProxy.Capabilities, QNetworkProxy.Capability])\n"
"QNetworkProxy.Capabilities(QNetworkProxy.Capabilities)");


static pyqt4ClassPluginDef plugin_QNetworkProxy_Capabilities = {
    0,
    1,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkProxy_Capabilities = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkProxy__Capabilities,
        {0},
        &plugin_QNetworkProxy_Capabilities
    },
    {
        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,
    0,
    convertTo_QNetworkProxy_Capabilities,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 25738 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 25742 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 25745 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkProxy_setType, "setType(self, 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, "type(self) -> 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(static_cast<int>(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, "setUser(self, 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, "user(self) -> 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, "setPassword(self, 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, "password(self) -> 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, "setHostName(self, 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, "hostName(self) -> 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, "setPort(self, 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, "port(self) -> 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, "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, "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, "isCachingProxy(self) -> 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, "isTransparentProxy(self) -> 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, "setCapabilities(self, 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, "capabilities(self) -> 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);
}


/* 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, void *);}
static void assign_QNetworkProxy(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QNetworkProxy *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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, hostName: str = '', port: int = 0, user: str = '', password: str = '')\n"
"QNetworkProxy(QNetworkProxy)");


static pyqt4ClassPluginDef plugin_QNetworkProxy = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkProxy = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkProxy,
        {0},
        &plugin_QNetworkProxy
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 64 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 26522 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 64 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 26526 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 381 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkInterface::InterfaceFlags::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 26548 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 372 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 26582 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 363 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 26622 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 357 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
        *sipCpp = QNetworkInterface::InterfaceFlags(*sipCpp ^ a0);
#line 26661 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            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___xor__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkInterface_InterfaceFlags___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
        *sipCpp = QNetworkInterface::InterfaceFlags(*sipCpp | a0);
#line 26735 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            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___or__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkInterface_InterfaceFlags___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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, void *);}
static void assign_QNetworkInterface_InterfaceFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QNetworkInterface::InterfaceFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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;

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

            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;
        }
    }

    {
        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;
        }
    }

    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 390 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 27023 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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___ixor__, ixor_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___xor__, xor_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___ior__, ior_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___or__, or_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___iand__, iand_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___and__, and_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___invert__, invert_slot},
    {(void *)slot_QNetworkInterface_InterfaceFlags___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QNetworkInterface_InterfaceFlags, "\1QNetworkInterface.InterfaceFlags()\n"
"QNetworkInterface.InterfaceFlags(Union[QNetworkInterface.InterfaceFlags, QNetworkInterface.InterfaceFlag])\n"
"QNetworkInterface.InterfaceFlags(QNetworkInterface.InterfaceFlags)");


static pyqt4ClassPluginDef plugin_QNetworkInterface_InterfaceFlags = {
    0,
    1,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkInterface_InterfaceFlags = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkInterface__InterfaceFlags,
        {0},
        &plugin_QNetworkInterface_InterfaceFlags
    },
    {
        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,
    0,
    convertTo_QNetworkInterface_InterfaceFlags,
    0,
    0,
    0,
    0,
    0
};

#line 64 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 27109 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 27113 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 27116 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 27119 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 27122 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 27125 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 27128 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 64 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 27131 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkInterface_isValid, "isValid(self) -> 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, "name(self) -> 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, "flags(self) -> 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, "hardwareAddress(self) -> 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, "addressEntries(self) -> object");

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, "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, "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, "allInterfaces() -> object");

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, "allAddresses() -> List[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, "index(self) -> 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, "humanReadableName(self) -> 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;
}


/* 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, void *);}
static void assign_QNetworkInterface(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QNetworkInterface *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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)");


static pyqt4ClassPluginDef plugin_QNetworkInterface = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkInterface = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkInterface,
        {0},
        &plugin_QNetworkInterface
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkinterface.sip"
#include <qnetworkinterface.h>
#line 27625 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 27629 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkAddressEntry_ip, "ip(self) -> 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, "setIp(self, Union[QHostAddress, QHostAddress.SpecialAddress])");

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, "netmask(self) -> 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, "setNetmask(self, Union[QHostAddress, QHostAddress.SpecialAddress])");

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, "broadcast(self) -> 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, "setBroadcast(self, Union[QHostAddress, QHostAddress.SpecialAddress])");

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, "prefixLength(self) -> 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, "setPrefixLength(self, 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);
}


/* 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, void *);}
static void assign_QNetworkAddressEntry(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QNetworkAddressEntry *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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)");


static pyqt4ClassPluginDef plugin_QNetworkAddressEntry = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkAddressEntry = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkAddressEntry,
        {0},
        &plugin_QNetworkAddressEntry
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkdiskcache.sip"
#include <qnetworkdiskcache.h>
#line 28105 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 28109 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 137 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qabstractnetworkcache.h>
#line 28112 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 28115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 28118 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 98 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 28121 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28124 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28127 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 28130 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 28133 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 28136 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 28139 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 28142 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 28145 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 28148 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 28151 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 28154 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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:
     ::qint64 expire();
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent( ::QEvent*);
    void childEvent( ::QChildEvent*);
    void timerEvent( ::QTimerEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    bool event( ::QEvent*);
     ::QNetworkCacheMetaData metaData(const  ::QUrl&);
    void updateMetaData(const  ::QNetworkCacheMetaData&);
     ::QIODevice* data(const  ::QUrl&);
    bool remove(const  ::QUrl&);
     ::qint64 cacheSize() const;
     ::QIODevice* prepare(const  ::QNetworkCacheMetaData&);
    void insert( ::QIODevice*);
    void clear();

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()
{
    sipInstanceDestroyedEx(&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);
}

 ::qint64 sipQNetworkDiskCache::expire()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QNetworkDiskCache::expire();

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

 ::QNetworkCacheMetaData sipQNetworkDiskCache::metaData(const  ::QUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QNetworkDiskCache::metaData(a0);

    extern  ::QNetworkCacheMetaData sipVH_QtNetwork_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QUrl&);

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

void sipQNetworkDiskCache::updateMetaData(const  ::QNetworkCacheMetaData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QNetworkDiskCache::updateMetaData(a0);
        return;
    }

    extern void sipVH_QtNetwork_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QNetworkCacheMetaData&);

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

 ::QIODevice* sipQNetworkDiskCache::data(const  ::QUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],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);
}

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_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QUrl&);

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

 ::qint64 sipQNetworkDiskCache::cacheSize() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QNetworkDiskCache::cacheSize();

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QIODevice* sipQNetworkDiskCache::prepare(const  ::QNetworkCacheMetaData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QNetworkDiskCache::prepare(a0);

    extern  ::QIODevice* sipVH_QtNetwork_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QNetworkCacheMetaData&);

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

void sipQNetworkDiskCache::insert( ::QIODevice*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QNetworkDiskCache::insert(a0);
        return;
    }

    extern void sipVH_QtNetwork_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QIODevice*);

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

void sipQNetworkDiskCache::clear()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QNetworkDiskCache::clear();
        return;
    }

    extern void sipVH_QtNetwork_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtNetwork_13(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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 28593 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQNetworkDiskCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkDiskCache, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 28659 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQNetworkDiskCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkDiskCache, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 28815 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQNetworkDiskCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkDiskCache, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 28879 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "cacheDirectory(self) -> 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, "setCacheDirectory(self, 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, "maximumCacheSize(self) -> 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, "setMaximumCacheSize(self, 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, "cacheSize(self) -> 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 || sipIsDerivedClass((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, "metaData(self, 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 || sipIsDerivedClass((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, "updateMetaData(self, 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 || sipIsDerivedClass((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, "data(self, 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 || sipIsDerivedClass((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, "remove(self, 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 || sipIsDerivedClass((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, "prepare(self, 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 || sipIsDerivedClass((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, "insert(self, 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 || sipIsDerivedClass((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, "fileMetaData(self, 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, "clear(self)");

extern "C" {static PyObject *meth_QNetworkDiskCache_clear(PyObject *, PyObject *);}
static PyObject *meth_QNetworkDiskCache_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((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, "expire(self) -> 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 || sipIsDerivedClass((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 inheritance hierarchy. */
extern "C" {static void *cast_QNetworkDiskCache(void *, const sipTypeDef *);}
static void *cast_QNetworkDiskCache(void *sipCppV, const sipTypeDef *targetType)
{
     ::QNetworkDiskCache *sipCpp = reinterpret_cast< ::QNetworkDiskCache *>(sipCppV);

    if (targetType == sipType_QAbstractNetworkCache)
        return static_cast< ::QAbstractNetworkCache *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQNetworkDiskCache *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QNetworkDiskCache(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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(parent: QObject = None)");


static pyqt4ClassPluginDef plugin_QNetworkDiskCache = {
    & ::QNetworkDiskCache::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkDiskCache = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QNetworkDiskCache,
        {0},
        &plugin_QNetworkDiskCache
    },
    {
        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
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkcookiejar.sip"
#include <qnetworkcookiejar.h>
#line 29533 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 29537 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 29540 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkcookie.sip"
#include <qnetworkcookie.h>
#line 29543 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 98 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 29546 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 29549 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 29552 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 29555 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 29558 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 29561 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 29564 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 29567 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 29570 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 29573 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 29576 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 29579 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 29582 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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:
    bool setCookiesFromUrl(const QList< ::QNetworkCookie>&,const  ::QUrl&);
    QList< ::QNetworkCookie> cookiesForUrl(const  ::QUrl&) const;
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

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()
{
    sipInstanceDestroyedEx(&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);
}

bool sipQNetworkCookieJar::setCookiesFromUrl(const QList< ::QNetworkCookie>& a0,const  ::QUrl& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QNetworkCookieJar::setCookiesFromUrl(a0,a1);

    extern bool sipVH_QtNetwork_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QList< ::QNetworkCookie>&,const  ::QUrl&);

    return sipVH_QtNetwork_28(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[1]),sipPySelf,NULL,sipName_cookiesForUrl);

    if (!sipMeth)
        return  ::QNetworkCookieJar::cookiesForUrl(a0);

    extern QList< ::QNetworkCookie> sipVH_QtNetwork_27(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QUrl&);

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

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

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

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

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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;
    }

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    sipVH_QtNetwork_0(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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 29906 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQNetworkCookieJar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkCookieJar, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 29972 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQNetworkCookieJar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkCookieJar, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 30128 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQNetworkCookieJar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkCookieJar, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 30192 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "cookiesForUrl(self, QUrl) -> List[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 || sipIsDerivedClass((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, "setCookiesFromUrl(self, Sequence[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 || sipIsDerivedClass((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, "setAllCookies(self, Sequence[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, "allCookies(self) -> List[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 inheritance hierarchy. */
extern "C" {static void *cast_QNetworkCookieJar(void *, const sipTypeDef *);}
static void *cast_QNetworkCookieJar(void *sipCppV, const sipTypeDef *targetType)
{
     ::QNetworkCookieJar *sipCpp = reinterpret_cast< ::QNetworkCookieJar *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQNetworkCookieJar *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QNetworkCookieJar(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{12, 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(parent: QObject = None)");


static pyqt4ClassPluginDef plugin_QNetworkCookieJar = {
    & ::QNetworkCookieJar::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkCookieJar = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QNetworkCookieJar,
        {0},
        &plugin_QNetworkCookieJar
    },
    {
        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
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkcookie.sip"
#include <qnetworkcookie.h>
#line 30525 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 30529 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 30532 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 30535 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 397 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 30538 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkCookie_isSecure, "isSecure(self) -> 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, "setSecure(self, 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, "isSessionCookie(self) -> 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, "expirationDate(self) -> 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, "setExpirationDate(self, Union[QDateTime, datetime.datetime])");

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, "domain(self) -> 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, "setDomain(self, 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, "path(self) -> 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, "setPath(self, 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, "name(self) -> 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, "setName(self, Union[QByteArray, bytes, bytearray])");

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, "value(self) -> 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, "setValue(self, Union[QByteArray, bytes, bytearray])");

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, "toRawForm(self, form: QNetworkCookie.RawForm = 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, "parseCookies(Union[QByteArray, bytes, bytearray]) -> object");

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, "isHttpOnly(self) -> 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, "setHttpOnly(self, 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);
}


/* 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, void *);}
static void assign_QNetworkCookie(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QNetworkCookie *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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(name: Union[QByteArray, bytes, bytearray] = QByteArray(), value: Union[QByteArray, bytes, bytearray] = QByteArray())\n"
"QNetworkCookie(QNetworkCookie)");


static pyqt4ClassPluginDef plugin_QNetworkCookie = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkCookie = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkCookie,
        {0},
        &plugin_QNetworkCookie
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 31323 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 31327 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 381 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkConfiguration::StateFlags::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 31349 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 372 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 31383 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 363 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 31423 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 357 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
        *sipCpp = QNetworkConfiguration::StateFlags(*sipCpp ^ a0);
#line 31462 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            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___xor__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfiguration_StateFlags___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
        *sipCpp = QNetworkConfiguration::StateFlags(*sipCpp | a0);
#line 31536 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            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___or__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfiguration_StateFlags___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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, void *);}
static void assign_QNetworkConfiguration_StateFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QNetworkConfiguration::StateFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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;

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

            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;
        }
    }

    {
        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;
        }
    }

    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 390 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 31824 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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___ixor__, ixor_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___xor__, xor_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___ior__, ior_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___or__, or_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___iand__, iand_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___and__, and_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___invert__, invert_slot},
    {(void *)slot_QNetworkConfiguration_StateFlags___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QNetworkConfiguration_StateFlags, "\1QNetworkConfiguration.StateFlags()\n"
"QNetworkConfiguration.StateFlags(Union[QNetworkConfiguration.StateFlags, QNetworkConfiguration.StateFlag])\n"
"QNetworkConfiguration.StateFlags(QNetworkConfiguration.StateFlags)");


static pyqt4ClassPluginDef plugin_QNetworkConfiguration_StateFlags = {
    0,
    1,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkConfiguration_StateFlags = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkConfiguration__StateFlags,
        {0},
        &plugin_QNetworkConfiguration_StateFlags
    },
    {
        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,
    0,
    convertTo_QNetworkConfiguration_StateFlags,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 31910 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 31914 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 31917 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 31920 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkConfiguration_state, "state(self) -> 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, "type(self) -> 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(static_cast<int>(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, "purpose(self) -> 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(static_cast<int>(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, "bearerName(self) -> 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, "bearerType(self) -> 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(static_cast<int>(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, "bearerTypeName(self) -> 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, "identifier(self) -> 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, "isRoamingAvailable(self) -> 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, "children(self) -> List[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, "name(self) -> 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, "isValid(self) -> 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);
}


/* 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, void *);}
static void assign_QNetworkConfiguration(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QNetworkConfiguration *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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)");


static pyqt4ClassPluginDef plugin_QNetworkConfiguration = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkConfiguration = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkConfiguration,
        {0},
        &plugin_QNetworkConfiguration
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfigmanager.sip"
#include <qnetworkconfigmanager.h>
#line 32507 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfigmanager.sip"
#include <qnetworkconfigmanager.h>
#line 32511 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 381 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkConfigurationManager::Capabilities::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 32533 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 372 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 32567 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 363 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 32607 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 357 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
        *sipCpp = QNetworkConfigurationManager::Capabilities(*sipCpp ^ a0);
#line 32646 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            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___xor__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfigurationManager_Capabilities___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
        *sipCpp = QNetworkConfigurationManager::Capabilities(*sipCpp | a0);
#line 32720 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            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___or__(PyObject *,PyObject *);}
static PyObject *slot_QNetworkConfigurationManager_Capabilities___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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, void *);}
static void assign_QNetworkConfigurationManager_Capabilities(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QNetworkConfigurationManager::Capabilities *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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;

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

            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;
        }
    }

    {
        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;
        }
    }

    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 390 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 33008 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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___ixor__, ixor_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___xor__, xor_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___ior__, ior_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___or__, or_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___iand__, iand_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___and__, and_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___invert__, invert_slot},
    {(void *)slot_QNetworkConfigurationManager_Capabilities___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QNetworkConfigurationManager_Capabilities, "\1QNetworkConfigurationManager.Capabilities()\n"
"QNetworkConfigurationManager.Capabilities(Union[QNetworkConfigurationManager.Capabilities, QNetworkConfigurationManager.Capability])\n"
"QNetworkConfigurationManager.Capabilities(QNetworkConfigurationManager.Capabilities)");


static pyqt4ClassPluginDef plugin_QNetworkConfigurationManager_Capabilities = {
    0,
    1,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkConfigurationManager_Capabilities = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkConfigurationManager__Capabilities,
        {0},
        &plugin_QNetworkConfigurationManager_Capabilities
    },
    {
        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,
    0,
    convertTo_QNetworkConfigurationManager_Capabilities,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfigmanager.sip"
#include <qnetworkconfigmanager.h>
#line 33094 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 33098 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 33101 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 33104 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 33107 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 33110 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfigmanager.sip"
#include <qnetworkconfigmanager.h>
#line 33113 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 33116 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 33119 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 33122 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 33125 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 33128 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 33131 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 33134 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 33137 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 33140 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 33143 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 33146 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

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()
{
    sipInstanceDestroyedEx(&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);
}

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

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

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

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtNetwork_3(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;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    sipVH_QtNetwork_0(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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 33426 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQNetworkConfigurationManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkConfigurationManager, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 33492 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQNetworkConfigurationManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkConfigurationManager, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 33648 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQNetworkConfigurationManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkConfigurationManager, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 33712 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "capabilities(self) -> 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, "defaultConfiguration(self) -> 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, "allConfigurations(self, flags: QNetworkConfiguration.StateFlags = 0) -> object");

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, "configurationFromIdentifier(self, 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, "updateConfigurations(self)");

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, "isOnline(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QNetworkConfigurationManager(void *, const sipTypeDef *);}
static void *cast_QNetworkConfigurationManager(void *sipCppV, const sipTypeDef *targetType)
{
     ::QNetworkConfigurationManager *sipCpp = reinterpret_cast< ::QNetworkConfigurationManager *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQNetworkConfigurationManager *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QNetworkConfigurationManager(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{12, 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},
};

PyDoc_STRVAR(doc_QNetworkConfigurationManager, "\1QNetworkConfigurationManager(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt4QtSignal signals_QNetworkConfigurationManager[] = {
    {"updateCompleted()", "\1updateCompleted(self)", 0, 0},
    {"onlineStateChanged(bool)", "\1onlineStateChanged(self, bool)", 0, 0},
    {"configurationChanged(QNetworkConfiguration)", "\1configurationChanged(self, QNetworkConfiguration)", 0, 0},
    {"configurationRemoved(QNetworkConfiguration)", "\1configurationRemoved(self, QNetworkConfiguration)", 0, 0},
    {"configurationAdded(QNetworkConfiguration)", "\1configurationAdded(self, QNetworkConfiguration)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_QNetworkConfigurationManager = {
    & ::QNetworkConfigurationManager::staticMetaObject,
    0,
    signals_QNetworkConfigurationManager
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkConfigurationManager = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QNetworkConfigurationManager,
        {0},
        &plugin_QNetworkConfigurationManager
    },
    {
        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
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkaccessmanager.sip"
#include <qnetworkaccessmanager.h>
#line 34129 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 34133 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkconfiguration.sip"
#include <qnetworkconfiguration.h>
#line 34136 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkreply.sip"
#include <qnetworkreply.h>
#line 34139 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkrequest.sip"
#include <qnetworkrequest.h>
#line 34142 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 34145 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 34148 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 179 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qabstractnetworkcache.h>
#line 34151 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 181 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 34154 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 34157 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 34160 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 34163 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 34166 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 52 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhttpmultipart.sip"
#include <qhttpmultipart.h>
#line 34169 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkcookiejar.sip"
#include <qnetworkcookiejar.h>
#line 34172 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34175 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34178 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34181 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 34184 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 34187 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 34190 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 34193 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 34196 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 34199 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 34202 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 34205 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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:
     ::QNetworkReply* createRequest( ::QNetworkAccessManager::Operation,const  ::QNetworkRequest&, ::QIODevice*);
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

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()
{
    sipInstanceDestroyedEx(&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);
}

 ::QNetworkReply* sipQNetworkAccessManager::createRequest( ::QNetworkAccessManager::Operation a0,const  ::QNetworkRequest& a1, ::QIODevice*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QNetworkAccessManager::createRequest(a0,a1,a2);

    extern  ::QNetworkReply* sipVH_QtNetwork_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QNetworkAccessManager::Operation,const  ::QNetworkRequest&, ::QIODevice*);

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

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

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

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

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 ::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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 34507 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQNetworkAccessManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 34573 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQNetworkAccessManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 34729 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQNetworkAccessManager *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QNetworkAccessManager, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 34793 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "proxy(self) -> 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, "setProxy(self, 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, "cookieJar(self) -> 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, "setCookieJar(self, 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, "head(self, 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, "get(self, 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, "post(self, QNetworkRequest, QIODevice) -> QNetworkReply\n"
"post(self, QNetworkRequest, Union[QByteArray, bytes, bytearray]) -> QNetworkReply\n"
"post(self, 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, "put(self, QNetworkRequest, QIODevice) -> QNetworkReply\n"
"put(self, QNetworkRequest, Union[QByteArray, bytes, bytearray]) -> QNetworkReply\n"
"put(self, 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, "createRequest(self, QNetworkAccessManager.Operation, QNetworkRequest, device: QIODevice = 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 || sipIsDerivedClass((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, "proxyFactory(self) -> 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, "setProxyFactory(self, 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, "cache(self) -> 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, "setCache(self, 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, "deleteResource(self, 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, "sendCustomRequest(self, QNetworkRequest, Union[QByteArray, bytes, bytearray], data: QIODevice = 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, "setConfiguration(self, 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, "configuration(self) -> 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, "activeConfiguration(self) -> 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, "setNetworkAccessible(self, 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, "networkAccessible(self) -> 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(static_cast<int>(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 inheritance hierarchy. */
extern "C" {static void *cast_QNetworkAccessManager(void *, const sipTypeDef *);}
static void *cast_QNetworkAccessManager(void *sipCppV, const sipTypeDef *targetType)
{
     ::QNetworkAccessManager *sipCpp = reinterpret_cast< ::QNetworkAccessManager *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQNetworkAccessManager *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QNetworkAccessManager(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{12, 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},
};

PyDoc_STRVAR(doc_QNetworkAccessManager, "\1QNetworkAccessManager(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt4QtSignal signals_QNetworkAccessManager[] = {
    {"networkAccessibleChanged(QNetworkAccessManager::NetworkAccessibility)", "\1networkAccessibleChanged(self, QNetworkAccessManager.NetworkAccessibility)", 0, 0},
    {"sslErrors(QNetworkReply*,QList<QSslError>)", "\1sslErrors(self, QNetworkReply, Sequence[QSslError])", 0, 0},
    {"finished(QNetworkReply*)", "\1finished(self, QNetworkReply)", 0, 0},
    {"authenticationRequired(QNetworkReply*,QAuthenticator*)", "\1authenticationRequired(self, QNetworkReply, QAuthenticator)", 0, 0},
    {"proxyAuthenticationRequired(QNetworkProxy,QAuthenticator*)", "\1proxyAuthenticationRequired(self, QNetworkProxy, QAuthenticator)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_QNetworkAccessManager = {
    & ::QNetworkAccessManager::staticMetaObject,
    0,
    signals_QNetworkAccessManager
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkAccessManager = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QNetworkAccessManager,
        {0},
        &plugin_QNetworkAccessManager
    },
    {
        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
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qlocalsocket.sip"
#include <qlocalsocket.h>
#line 35744 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 35748 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 466 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 35751 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 35754 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 35757 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 35760 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 35763 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 35766 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 35769 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 35772 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 35775 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 35778 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 35781 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 35784 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 35787 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 35790 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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*);
    bool isSequential() const;
    bool open( ::QIODevice::OpenMode);
    void close();
     ::qint64 pos() const;
     ::qint64 size() const;
    bool seek( ::qint64);
    bool atEnd() const;
    bool reset();
     ::qint64 bytesAvailable() const;
     ::qint64 bytesToWrite() const;
    bool canReadLine() const;
    bool waitForReadyRead(int);
    bool waitForBytesWritten(int);
     ::qint64 readData(char*, ::qint64);
     ::qint64 readLineData(char*, ::qint64);
     ::qint64 writeData(const char*,PY_LONG_LONG);

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()
{
    sipInstanceDestroyedEx(&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;
    }

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

    sipVH_QtNetwork_0(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;
    }

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

    sipVH_QtNetwork_0(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;
    }

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

    sipVH_QtNetwork_1(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;
    }

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

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

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtNetwork_3(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);

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtNetwork_4(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);

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QIODevice::OpenMode);

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

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

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

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

    extern void sipVH_QtNetwork_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtNetwork_13(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

 ::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();

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::qint64);

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

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

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

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

    extern bool sipVH_QtNetwork_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

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

 ::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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 36359 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QLocalSocket, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 36425 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QLocalSocket, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 36581 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQLocalSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QLocalSocket, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 36645 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "readLineData(self, 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 || sipIsDerivedClass((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 230 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 36750 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "setOpenMode(self, 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, "setErrorString(self, 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, "connectToServer(self, str, mode: Union[QIODevice.OpenMode, QIODevice.OpenModeFlag] = 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, "disconnectFromServer(self)");

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, "serverName(self) -> 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, "fullServerName(self) -> 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, "abort(self)");

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, "isSequential(self) -> 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 || sipIsDerivedClass((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, "bytesAvailable(self) -> 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 || sipIsDerivedClass((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, "bytesToWrite(self) -> 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 || sipIsDerivedClass((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, "canReadLine(self) -> 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 || sipIsDerivedClass((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, "close(self)");

extern "C" {static PyObject *meth_QLocalSocket_close(PyObject *, PyObject *);}
static PyObject *meth_QLocalSocket_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((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, "error(self) -> 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(static_cast<int>(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, "flush(self) -> 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, "isValid(self) -> 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, "readBufferSize(self) -> 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, "setReadBufferSize(self, 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, "setSocketDescriptor(self, sip.voidptr, state: QLocalSocket.LocalSocketState = QLocalSocket.ConnectedState, mode: Union[QIODevice.OpenMode, QIODevice.OpenModeFlag] = 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, "socketDescriptor(self) -> 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, "state(self) -> 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(static_cast<int>(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, "waitForBytesWritten(self, msecs: int = 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 || sipIsDerivedClass((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, "waitForConnected(self, msecs: int = 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, "waitForDisconnected(self, msecs: int = 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, "waitForReadyRead(self, msecs: int = 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 || sipIsDerivedClass((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, "readData(self, 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 || sipIsDerivedClass((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 106 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 37592 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "writeData(self, bytes) -> 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 || sipIsDerivedClass((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 inheritance hierarchy. */
extern "C" {static void *cast_QLocalSocket(void *, const sipTypeDef *);}
static void *cast_QLocalSocket(void *sipCppV, const sipTypeDef *targetType)
{
     ::QLocalSocket *sipCpp = reinterpret_cast< ::QLocalSocket *>(sipCppV);

    if (targetType == sipType_QIODevice)
        return static_cast< ::QIODevice *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQLocalSocket *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QLocalSocket(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{7, 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},
};

PyDoc_STRVAR(doc_QLocalSocket, "\1QLocalSocket(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt4QtSignal signals_QLocalSocket[] = {
    {"stateChanged(QLocalSocket::LocalSocketState)", "\1stateChanged(self, QLocalSocket.LocalSocketState)", 0, 0},
    {"disconnected()", "\1disconnected(self)", 0, 0},
    {"connected()", "\1connected(self)", 0, 0},
    {"error(QLocalSocket::LocalSocketError)", "\1error(self, QLocalSocket.LocalSocketError)", &methods_QLocalSocket[11], 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_QLocalSocket = {
    & ::QLocalSocket::staticMetaObject,
    0,
    signals_QLocalSocket
};


sipClassTypeDef sipTypeDef_QtNetwork_QLocalSocket = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QLocalSocket,
        {0},
        &plugin_QLocalSocket
    },
    {
        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
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qlocalserver.sip"
#include <qlocalserver.h>
#line 37846 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 37850 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 466 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 37853 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 37856 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 37859 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qlocalsocket.sip"
#include <qlocalsocket.h>
#line 37862 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 37865 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 37868 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 37871 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 37874 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 37877 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 37880 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 37883 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 37886 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 37889 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 37892 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 37895 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 incomingConnection( ::quintptr);
     ::QLocalSocket* nextPendingConnection();
    bool hasPendingConnections() const;
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

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()
{
    sipInstanceDestroyedEx(&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::incomingConnection( ::quintptr a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QLocalServer::incomingConnection(a0);
        return;
    }

    extern void sipVH_QtNetwork_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::quintptr);

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

 ::QLocalSocket* sipQLocalServer::nextPendingConnection()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QLocalServer::nextPendingConnection();

    extern  ::QLocalSocket* sipVH_QtNetwork_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_24(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQLocalServer::hasPendingConnections() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QLocalServer::hasPendingConnections();

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 ::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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 38232 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQLocalServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QLocalServer, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 38298 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQLocalServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QLocalServer, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 38454 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQLocalServer *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QLocalServer, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 38518 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "close(self)");

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, "errorString(self) -> 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, "hasPendingConnections(self) -> 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 || sipIsDerivedClass((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, "isListening(self) -> 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, "listen(self, 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, "maxPendingConnections(self) -> 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, "nextPendingConnection(self) -> 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 || sipIsDerivedClass((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, "serverName(self) -> 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, "fullServerName(self) -> 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, "serverError(self) -> 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(static_cast<int>(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, "setMaxPendingConnections(self, 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, "waitForNewConnection(self, msecs: int = 0) -> Tuple[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, "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, "incomingConnection(self, 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 || sipIsDerivedClass((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 inheritance hierarchy. */
extern "C" {static void *cast_QLocalServer(void *, const sipTypeDef *);}
static void *cast_QLocalServer(void *sipCppV, const sipTypeDef *targetType)
{
     ::QLocalServer *sipCpp = reinterpret_cast< ::QLocalServer *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQLocalServer *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QLocalServer(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{12, 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)}
};

PyDoc_STRVAR(doc_QLocalServer, "\1QLocalServer(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt4QtSignal signals_QLocalServer[] = {
    {"newConnection()", "\1newConnection(self)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_QLocalServer = {
    & ::QLocalServer::staticMetaObject,
    0,
    signals_QLocalServer
};


sipClassTypeDef sipTypeDef_QtNetwork_QLocalServer = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QLocalServer,
        {0},
        &plugin_QLocalServer
    },
    {
        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
};

#line 52 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhttpmultipart.sip"
#include <qhttpmultipart.h>
#line 39174 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 39178 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 39181 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhttpmultipart.sip"
#include <qhttpmultipart.h>
#line 39184 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 39187 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 39190 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 39193 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 39196 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 39199 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 39202 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 39205 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 39208 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 39211 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 39214 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 39217 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

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()
{
    sipInstanceDestroyedEx(&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);
}

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

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

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

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtNetwork_3(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;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    sipVH_QtNetwork_0(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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 39503 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQHttpMultiPart *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QHttpMultiPart, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 39569 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQHttpMultiPart *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QHttpMultiPart, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 39725 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQHttpMultiPart *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QHttpMultiPart, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 39789 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "append(self, 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, "setContentType(self, 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, "boundary(self) -> 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, "setBoundary(self, Union[QByteArray, bytes, bytearray])");

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 inheritance hierarchy. */
extern "C" {static void *cast_QHttpMultiPart(void *, const sipTypeDef *);}
static void *cast_QHttpMultiPart(void *sipCppV, const sipTypeDef *targetType)
{
     ::QHttpMultiPart *sipCpp = reinterpret_cast< ::QHttpMultiPart *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQHttpMultiPart *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QHttpMultiPart(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{12, 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(parent: QObject = None)\n"
"QHttpMultiPart(QHttpMultiPart.ContentType, parent: QObject = None)");


static pyqt4ClassPluginDef plugin_QHttpMultiPart = {
    & ::QHttpMultiPart::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QHttpMultiPart = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QHttpMultiPart,
        {0},
        &plugin_QHttpMultiPart
    },
    {
        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
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhttpmultipart.sip"
#include <qhttpmultipart.h>
#line 40145 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 40149 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 40152 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkrequest.sip"
#include <qnetworkrequest.h>
#line 40155 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 40158 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QHttpPart_setHeader, "setHeader(self, QNetworkRequest.KnownHeaders, Any)");

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, "setRawHeader(self, Union[QByteArray, bytes, bytearray], Union[QByteArray, bytes, bytearray])");

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, "setBody(self, Union[QByteArray, bytes, bytearray])");

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, "setBodyDevice(self, 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);
}


/* 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, void *);}
static void assign_QHttpPart(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QHttpPart *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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)");


static pyqt4ClassPluginDef plugin_QHttpPart = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QHttpPart = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QHttpPart,
        {0},
        &plugin_QHttpPart
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 119 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 40514 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 40518 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 40521 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 40524 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qsslerror.sip"
#include <qsslerror.h>
#line 40527 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 40530 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 40533 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 69 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 40536 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 94 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 40539 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 40542 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 40545 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qtcpsocket.sip"
#include <qtcpsocket.h>
#line 40548 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 40551 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 40554 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 40557 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 40560 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 40563 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 40566 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 40569 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 40572 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 40575 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 40578 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

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()
{
    sipInstanceDestroyedEx(&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);
}

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

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

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

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtNetwork_3(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;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    sipVH_QtNetwork_0(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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 40870 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQHttp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QHttp, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 40936 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQHttp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QHttp, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 41092 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQHttp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QHttp, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 41156 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "setHost(self, str, port: int = 80) -> int\n"
"setHost(self, str, QHttp.ConnectionMode, port: int = 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, "setSocket(self, 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, -1, 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, "setUser(self, str, password: str = '') -> 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, "setProxy(self, str, int, user: str = '', password: str = '') -> int\n"
"setProxy(self, 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, "get(self, str, to: QIODevice = 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, "post(self, str, QIODevice, to: QIODevice = None) -> int\n"
"post(self, str, Union[QByteArray, bytes, bytearray], to: QIODevice = 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, "head(self, 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, "request(self, QHttpRequestHeader, data: QIODevice = None, to: QIODevice = None) -> int\n"
"request(self, QHttpRequestHeader, Union[QByteArray, bytes, bytearray], to: QIODevice = 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, "close(self) -> 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, "bytesAvailable(self) -> 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, "read(self, 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 188 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 41736 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "readAll(self) -> 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, "currentId(self) -> 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, "currentSourceDevice(self) -> 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, "currentDestinationDevice(self) -> 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, "currentRequest(self) -> 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, "lastResponse(self) -> 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, "hasPendingRequests(self) -> 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, "clearPendingRequests(self)");

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, "state(self) -> 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(static_cast<int>(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, "error(self) -> 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(static_cast<int>(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, "errorString(self) -> 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, "abort(self)");

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, "ignoreSslErrors(self)");

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 inheritance hierarchy. */
extern "C" {static void *cast_QHttp(void *, const sipTypeDef *);}
static void *cast_QHttp(void *sipCppV, const sipTypeDef *targetType)
{
     ::QHttp *sipCpp = reinterpret_cast< ::QHttp *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQHttp *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QHttp(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{12, 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},
};

PyDoc_STRVAR(doc_QHttp, "\1QHttp(parent: QObject = None)\n"
"QHttp(str, port: int = 80, parent: QObject = None)\n"
"QHttp(str, QHttp.ConnectionMode, port: int = 0, parent: QObject = None)");


/* Define this type's signals. */
static const pyqt4QtSignal signals_QHttp[] = {
    {"sslErrors(QList<QSslError>)", "\1sslErrors(self, object)", 0, 0},
    {"authenticationRequired(QString,quint16,QAuthenticator*)", "\1authenticationRequired(self, str, int, QAuthenticator)", 0, 0},
    {"proxyAuthenticationRequired(QNetworkProxy,QAuthenticator*)", "\1proxyAuthenticationRequired(self, QNetworkProxy, QAuthenticator)", 0, 0},
    {"done(bool)", "\1done(self, bool)", 0, 0},
    {"requestFinished(int,bool)", "\1requestFinished(self, int, bool)", 0, 0},
    {"requestStarted(int)", "\1requestStarted(self, int)", 0, 0},
    {"dataReadProgress(int,int)", "\1dataReadProgress(self, int, int)", 0, 0},
    {"dataSendProgress(int,int)", "\1dataSendProgress(self, int, int)", 0, 0},
    {"readyRead(QHttpResponseHeader)", "\1readyRead(self, QHttpResponseHeader)", 0, 0},
    {"responseHeaderReceived(QHttpResponseHeader)", "\1responseHeaderReceived(self, QHttpResponseHeader)", 0, 0},
    {"stateChanged(int)", "\1stateChanged(self, int)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_QHttp = {
    & ::QHttp::staticMetaObject,
    0,
    signals_QHttp
};


sipClassTypeDef sipTypeDef_QtNetwork_QHttp = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QHttp,
        {0},
        &plugin_QHttp
    },
    {
        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
};

#line 94 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 42406 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 42410 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 42413 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 196 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 42417 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 68 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 42420 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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:
     ::QString toString() const;
    int majorVersion() const;
    int minorVersion() const;
    bool parseLine(const  ::QString&,int);

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()
{
    sipInstanceDestroyedEx(&sipPySelf);
}

 ::QString sipQHttpRequestHeader::toString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QHttpRequestHeader::toString();

    extern  ::QString sipVH_QtNetwork_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_21(sipGILState, 0, sipPySelf, sipMeth);
}

int sipQHttpRequestHeader::majorVersion() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QHttpRequestHeader::majorVersion();

    extern int sipVH_QtNetwork_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_22(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();

    extern int sipVH_QtNetwork_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_22(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQHttpRequestHeader::parseLine(const  ::QString& a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QHttpRequestHeader::parseLine(a0,a1);

    extern bool sipVH_QtNetwork_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,int);

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

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, "parse(self, 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, "setValid(self, 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, "setRequest(self, str, str, major: int = 1, minor: int = 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, "method(self) -> 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, "path(self) -> 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, "majorVersion(self) -> 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 || sipIsDerivedClass((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, "minorVersion(self) -> 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 || sipIsDerivedClass((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, "toString(self) -> 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 || sipIsDerivedClass((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, "parseLine(self, 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 || sipIsDerivedClass((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 inheritance hierarchy. */
extern "C" {static void *cast_QHttpRequestHeader(void *, const sipTypeDef *);}
static void *cast_QHttpRequestHeader(void *sipCppV, const sipTypeDef *targetType)
{
     ::QHttpRequestHeader *sipCpp = reinterpret_cast< ::QHttpRequestHeader *>(sipCppV);

    if (targetType == sipType_QHttpHeader)
        return static_cast< ::QHttpHeader *>(sipCpp);

    return sipCppV;
}


/* 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, void *);}
static void assign_QHttpRequestHeader(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QHttpRequestHeader *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQHttpRequestHeader *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QHttpRequestHeader(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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, major: int = 1, minor: int = 1)\n"
"QHttpRequestHeader(QHttpRequestHeader)\n"
"QHttpRequestHeader(str)");


static pyqt4ClassPluginDef plugin_QHttpRequestHeader = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QHttpRequestHeader = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QHttpRequestHeader,
        {0},
        &plugin_QHttpRequestHeader
    },
    {
        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
};

#line 69 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 43085 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 43089 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 43092 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 196 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 43096 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 68 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 43099 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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:
     ::QString toString() const;
    int majorVersion() const;
    int minorVersion() const;
    bool parseLine(const  ::QString&,int);

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()
{
    sipInstanceDestroyedEx(&sipPySelf);
}

 ::QString sipQHttpResponseHeader::toString() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QHttpResponseHeader::toString();

    extern  ::QString sipVH_QtNetwork_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_21(sipGILState, 0, sipPySelf, sipMeth);
}

int sipQHttpResponseHeader::majorVersion() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QHttpResponseHeader::majorVersion();

    extern int sipVH_QtNetwork_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_22(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();

    extern int sipVH_QtNetwork_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_22(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQHttpResponseHeader::parseLine(const  ::QString& a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QHttpResponseHeader::parseLine(a0,a1);

    extern bool sipVH_QtNetwork_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,int);

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

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, "parse(self, 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, "setValid(self, 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, "setStatusLine(self, int, text: str = '', major: int = 1, minor: int = 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, "statusCode(self) -> 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, "reasonPhrase(self) -> 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, "majorVersion(self) -> 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 || sipIsDerivedClass((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, "minorVersion(self) -> 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 || sipIsDerivedClass((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, "toString(self) -> 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 || sipIsDerivedClass((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, "parseLine(self, 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 || sipIsDerivedClass((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 inheritance hierarchy. */
extern "C" {static void *cast_QHttpResponseHeader(void *, const sipTypeDef *);}
static void *cast_QHttpResponseHeader(void *sipCppV, const sipTypeDef *targetType)
{
     ::QHttpResponseHeader *sipCpp = reinterpret_cast< ::QHttpResponseHeader *>(sipCppV);

    if (targetType == sipType_QHttpHeader)
        return static_cast< ::QHttpHeader *>(sipCpp);

    return sipCppV;
}


/* 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, void *);}
static void assign_QHttpResponseHeader(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QHttpResponseHeader *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQHttpResponseHeader *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QHttpResponseHeader(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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, text: str = '', major: int = 1, minor: int = 1)");


static pyqt4ClassPluginDef plugin_QHttpResponseHeader = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QHttpResponseHeader = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QHttpResponseHeader,
        {0},
        &plugin_QHttpResponseHeader
    },
    {
        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
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhttp.sip"
#include <qhttp.h>
#line 43762 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 43766 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 43769 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 196 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 43773 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 68 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 43776 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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()
{
    sipInstanceDestroyedEx(&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_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,int);

    return sipVH_QtNetwork_23(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;

    extern int sipVH_QtNetwork_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_22(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;

    extern int sipVH_QtNetwork_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_22(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();

    extern  ::QString sipVH_QtNetwork_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_21(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, "setValue(self, 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, "setValues(self, Sequence[Tuple[str, str]])");

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, "addValue(self, 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, "values(self) -> List[Tuple[str, str]]");

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, "hasKey(self, 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, "keys(self) -> List[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, "value(self, 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, "allValues(self, str) -> List[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, "removeValue(self, 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, "removeAllValues(self, 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, "hasContentLength(self) -> 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, "contentLength(self) -> 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, "setContentLength(self, 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, "hasContentType(self) -> 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, "contentType(self) -> 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, "setContentType(self, 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, "toString(self) -> 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 || sipIsDerivedClass((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, "isValid(self) -> 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, "majorVersion(self) -> 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, "minorVersion(self) -> 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, "parseLine(self, 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 || sipIsDerivedClass((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, "parse(self, 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, "setValid(self, 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;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQHttpHeader *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QHttpHeader(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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)");


static pyqt4ClassPluginDef plugin_QHttpHeader = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QHttpHeader = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_QHttpHeader,
        {0},
        &plugin_QHttpHeader
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostinfo.sip"
#include <qhostinfo.h>
#line 44825 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 44829 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 44832 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 44835 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 44838 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QHostInfo_hostName, "hostName(self) -> 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, "setHostName(self, 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, "addresses(self) -> object");

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, "setAddresses(self, Sequence[Union[QHostAddress, QHostAddress.SpecialAddress]])");

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, "error(self) -> 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(static_cast<int>(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, "setError(self, 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, "errorString(self) -> 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, "setErrorString(self, 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, "setLookupId(self, 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, "lookupId(self) -> 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, "lookupHost(str, QObject, QT_SLOT) -> int\n"
"lookupHost(str, PYQT_SLOT) -> 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;
        PyObject * a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J8P0", sipType_QString,&a0, &a0State, sipType_QObject, &a1, &a2))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 57 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostinfo.sip"
        const char *slot = pyqt4_qtnetwork_get_slot(a2);
        
        if (slot)
        {
            Py_BEGIN_ALLOW_THREADS
            QHostInfo::lookupHost(*a0, a1, slot);
            Py_END_ALLOW_THREADS
        }
        else
        {
            sipError = sipBadCallableArg(2, a2);
        }
#line 45181 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
        PyObject * a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1P0", sipType_QString,&a0, &a0State, &a1))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 73 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostinfo.sip"
        QObject *receiver;
        QByteArray slot_signature;
        
        if ((sipError = pyqt4_qtnetwork_get_connection_parts(a1, 0, "(QHostInfo)", true, &receiver, slot_signature)) == sipErrorNone)
        {
            Py_BEGIN_ALLOW_THREADS
            QHostInfo::lookupHost(*a0, receiver, slot_signature.constData());
            Py_END_ALLOW_THREADS
        }
        else if (sipError == sipErrorContinue)
        {
            sipError = sipBadCallableArg(1, a1);
        }
#line 45220 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "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, "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, "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, "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;
}


/* 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, void *);}
static void assign_QHostInfo(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QHostInfo *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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(id: int = -1)\n"
"QHostInfo(QHostInfo)");


static pyqt4ClassPluginDef plugin_QHostInfo = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QHostInfo = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QHostInfo,
        {0},
        &plugin_QHostInfo
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 121 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 45529 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"



extern "C" {static void assign_Q_IPV6ADDR(void *, SIP_SSIZE_T, void *);}
static void assign_Q_IPV6ADDR(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::Q_IPV6ADDR *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 150 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 45597 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 125 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 45629 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_Q_IPV6ADDR = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_Q_IPV6ADDR,     /* Q_IPV6ADDR */
        {0},
        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 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 45661 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 45665 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 121 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 45668 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 83 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qpair.sip"
#include <qpair.h>
#line 45671 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 45674 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QHostAddress_setAddress, "setAddress(self, int)\n"
"setAddress(self, str) -> bool\n"
"setAddress(self, Tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, 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, "protocol(self) -> 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(static_cast<int>(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, "toIPv4Address(self) -> 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, "toIPv6Address(self) -> Tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, 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, "toString(self) -> 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, "scopeId(self) -> 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, "setScopeId(self, 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, "isNull(self) -> 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, "clear(self)");

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, "isInSubnet(self, Union[QHostAddress, QHostAddress.SpecialAddress], int) -> bool\n"
"isInSubnet(self, object) -> 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, "parseSubnet(str) -> Tuple[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 92 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostaddress.sip"
        sipRes = qHash(*sipCpp);
#line 46088 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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);
}


/* 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, void *);}
static void assign_QHostAddress(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QHostAddress *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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 30 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 46357 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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(Tuple[int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int])\n"
"QHostAddress(Union[QHostAddress, QHostAddress.SpecialAddress])");


static pyqt4ClassPluginDef plugin_QHostAddress = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QHostAddress = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QHostAddress,
        {0},
        &plugin_QHostAddress
    },
    {
        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,
    0,
    convertTo_QHostAddress,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qftp.sip"
#include <qftp.h>
#line 46465 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 46469 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 46472 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qurlinfo.sip"
#include <qurlinfo.h>
#line 46475 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 46478 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 46481 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 46484 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 46487 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 46490 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 46493 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 46496 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 46499 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 46502 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 46505 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 46508 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 46511 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

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()
{
    sipInstanceDestroyedEx(&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);
}

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

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

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

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

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

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

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

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

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtNetwork_3(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;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    sipVH_QtNetwork_0(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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 46791 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQFtp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QFtp, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 46857 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQFtp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QFtp, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 47013 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQFtp *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QFtp, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 47077 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "setProxy(self, 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, "connectToHost(self, str, port: int = 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, "login(self, user: str = '', password: str = '') -> 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, "close(self) -> 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, "setTransferMode(self, 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, "list(self, directory: str = '') -> 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, "cd(self, 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, "get(self, str, device: QIODevice = None, type: QFtp.TransferType = 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, "put(self, Union[QByteArray, bytes, bytearray], str, type: QFtp.TransferType = QFtp.Binary) -> int\n"
"put(self, QIODevice, str, type: QFtp.TransferType = 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, "remove(self, 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, "mkdir(self, 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, "rmdir(self, 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, "rename(self, 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, "rawCommand(self, 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, "bytesAvailable(self) -> 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, "read(self, 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 103 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 47735 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "readAll(self) -> 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, "currentId(self) -> 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, "currentDevice(self) -> 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, "currentCommand(self) -> 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(static_cast<int>(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, "hasPendingCommands(self) -> 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, "clearPendingCommands(self)");

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, "state(self) -> 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(static_cast<int>(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, "error(self) -> 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(static_cast<int>(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, "errorString(self) -> 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, "abort(self)");

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 inheritance hierarchy. */
extern "C" {static void *cast_QFtp(void *, const sipTypeDef *);}
static void *cast_QFtp(void *sipCppV, const sipTypeDef *targetType)
{
     ::QFtp *sipCpp = reinterpret_cast< ::QFtp *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQFtp *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QFtp(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{12, 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},
};

PyDoc_STRVAR(doc_QFtp, "\1QFtp(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt4QtSignal signals_QFtp[] = {
    {"done(bool)", "\1done(self, bool)", 0, 0},
    {"commandFinished(int,bool)", "\1commandFinished(self, int, bool)", 0, 0},
    {"commandStarted(int)", "\1commandStarted(self, int)", 0, 0},
    {"rawCommandReply(int,QString)", "\1rawCommandReply(self, int, str)", 0, 0},
    {"dataTransferProgress(qint64,qint64)", "\1dataTransferProgress(self, int, int)", 0, 0},
    {"readyRead()", "\1readyRead(self)", 0, 0},
    {"listInfo(QUrlInfo)", "\1listInfo(self, QUrlInfo)", 0, 0},
    {"stateChanged(int)", "\1stateChanged(self, int)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_QFtp = {
    & ::QFtp::staticMetaObject,
    0,
    signals_QFtp
};


sipClassTypeDef sipTypeDef_QtNetwork_QFtp = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QFtp,
        {0},
        &plugin_QFtp
    },
    {
        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
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 48270 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 48274 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 48277 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qhash.sip"
#include <qhash.h>
#line 48280 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 68 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 48283 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 48286 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QAuthenticator_user, "user(self) -> 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, "setUser(self, 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, "password(self) -> 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, "setPassword(self, 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, "realm(self) -> 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, "isNull(self) -> 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, "option(self, str) -> Any");

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, "options(self) -> 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, "setOption(self, str, Any)");

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);
}


/* 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, void *);}
static void assign_QAuthenticator(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QAuthenticator *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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)");


static pyqt4ClassPluginDef plugin_QAuthenticator = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QAuthenticator = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QAuthenticator,
        {0},
        &plugin_QAuthenticator
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qabstractsocket.sip"
#include <qabstractsocket.h>
#line 48799 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 48803 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 48806 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 48809 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 48812 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 48815 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkproxy.sip"
#include <qnetworkproxy.h>
#line 48818 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qauthenticator.sip"
#include <qauthenticator.h>
#line 48821 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 48824 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 48827 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 48830 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 48833 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 48836 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 48839 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 48842 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 48845 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 48848 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 48851 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 isSequential() const;
    bool open( ::QIODevice::OpenMode);
    void close();
     ::qint64 pos() const;
     ::qint64 size() const;
    bool seek( ::qint64);
    bool atEnd() const;
    bool reset();
     ::qint64 bytesAvailable() const;
     ::qint64 bytesToWrite() const;
    bool canReadLine() const;
    bool waitForReadyRead(int);
    bool waitForBytesWritten(int);
     ::qint64 readData(char*, ::qint64);
     ::qint64 readLineData(char*, ::qint64);
     ::qint64 writeData(const char*,PY_LONG_LONG);

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()
{
    sipInstanceDestroyedEx(&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;
    }

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

    sipVH_QtNetwork_0(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;
    }

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

    sipVH_QtNetwork_0(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;
    }

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

    sipVH_QtNetwork_1(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;
    }

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

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

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtNetwork_3(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);

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtNetwork_4(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);

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QIODevice::OpenMode);

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

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

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

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

    extern void sipVH_QtNetwork_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtNetwork_13(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();

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::qint64);

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

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_18(sipGILState, 0, sipPySelf, sipMeth);
}

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

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

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

    extern bool sipVH_QtNetwork_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

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

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

    extern bool sipVH_QtNetwork_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, char*, ::qint64);

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

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

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

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

    extern  ::qint64 sipVH_QtNetwork_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,PY_LONG_LONG);

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

 ::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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 49474 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QAbstractSocket, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 49540 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QAbstractSocket, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 49696 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQAbstractSocket *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QAbstractSocket, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 49760 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "setOpenMode(self, 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, "setErrorString(self, 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, "connectToHost(self, str, int, mode: QIODevice.OpenMode = QIODevice.ReadWrite)\n"
"connectToHost(self, Union[QHostAddress, QHostAddress.SpecialAddress], int, mode: QIODevice.OpenMode = 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, "disconnectFromHost(self)");

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, "isValid(self) -> 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, "bytesAvailable(self) -> 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 || sipIsDerivedClass((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, "bytesToWrite(self) -> 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 || sipIsDerivedClass((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, "canReadLine(self) -> 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 || sipIsDerivedClass((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, "localPort(self) -> 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, "localAddress(self) -> 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, "peerPort(self) -> 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, "peerAddress(self) -> 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, "peerName(self) -> 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, "readBufferSize(self) -> 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, "setReadBufferSize(self, 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, "abort(self)");

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, "socketDescriptor(self) -> 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, "setSocketDescriptor(self, int, state: QAbstractSocket.SocketState = QAbstractSocket.ConnectedState, mode: Union[QIODevice.OpenMode, QIODevice.OpenModeFlag] = 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, "socketType(self) -> 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(static_cast<int>(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, "state(self) -> 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(static_cast<int>(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, "error(self) -> 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(static_cast<int>(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, "close(self)");

extern "C" {static PyObject *meth_QAbstractSocket_close(PyObject *, PyObject *);}
static PyObject *meth_QAbstractSocket_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((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, "isSequential(self) -> 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 || sipIsDerivedClass((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, "atEnd(self) -> 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 || sipIsDerivedClass((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, "flush(self) -> 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, "waitForConnected(self, msecs: int = 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, "waitForReadyRead(self, msecs: int = 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 || sipIsDerivedClass((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, "waitForBytesWritten(self, msecs: int = 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 || sipIsDerivedClass((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, "waitForDisconnected(self, msecs: int = 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, "setProxy(self, 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, "proxy(self) -> 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, "connectToHostImplementation(self, str, int, mode: QIODevice.OpenMode = 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, "disconnectFromHostImplementation(self)");

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, "readData(self, 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 || sipIsDerivedClass((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 300 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 50959 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "readLineData(self, 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 || sipIsDerivedClass((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 338 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 51028 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "writeData(self, bytes) -> 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 || sipIsDerivedClass((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, "setSocketState(self, 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, "setSocketError(self, 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, "setLocalPort(self, 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, "setLocalAddress(self, Union[QHostAddress, QHostAddress.SpecialAddress])");

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, "setPeerPort(self, 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, "setPeerAddress(self, Union[QHostAddress, QHostAddress.SpecialAddress])");

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, "setPeerName(self, 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, "setSocketOption(self, QAbstractSocket.SocketOption, Any)");

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, "socketOption(self, QAbstractSocket.SocketOption) -> Any");

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 inheritance hierarchy. */
extern "C" {static void *cast_QAbstractSocket(void *, const sipTypeDef *);}
static void *cast_QAbstractSocket(void *sipCppV, const sipTypeDef *targetType)
{
     ::QAbstractSocket *sipCpp = reinterpret_cast< ::QAbstractSocket *>(sipCppV);

    if (targetType == sipType_QIODevice)
        return static_cast< ::QIODevice *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQAbstractSocket *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QAbstractSocket(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{7, 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},
};

PyDoc_STRVAR(doc_QAbstractSocket, "\1QAbstractSocket(QAbstractSocket.SocketType, QObject)");


/* Define this type's signals. */
static const pyqt4QtSignal signals_QAbstractSocket[] = {
    {"proxyAuthenticationRequired(QNetworkProxy,QAuthenticator*)", "\1proxyAuthenticationRequired(self, QNetworkProxy, QAuthenticator)", 0, 0},
    {"stateChanged(QAbstractSocket::SocketState)", "\1stateChanged(self, QAbstractSocket.SocketState)", 0, 0},
    {"disconnected()", "\1disconnected(self)", 0, 0},
    {"connected()", "\1connected(self)", 0, 0},
    {"hostFound()", "\1hostFound(self)", 0, 0},
    {"error(QAbstractSocket::SocketError)", "\1error(self, QAbstractSocket.SocketError)", &methods_QAbstractSocket[14], 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_QAbstractSocket = {
    & ::QAbstractSocket::staticMetaObject,
    0,
    signals_QAbstractSocket
};


sipClassTypeDef sipTypeDef_QtNetwork_QAbstractSocket = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QAbstractSocket,
        {0},
        &plugin_QAbstractSocket
    },
    {
        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
};

#line 179 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qabstractnetworkcache.h>
#line 51602 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 29 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 51606 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 51609 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 137 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qabstractnetworkcache.h>
#line 51612 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 98 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 51615 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 51618 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 368 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 51621 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 351 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 51624 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 51627 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 51630 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 51633 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 51636 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 115 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 51639 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 51642 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 27 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 51645 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 51648 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 26 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 51651 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 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&);
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

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()
{
    sipInstanceDestroyedEx(&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::clear()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_QAbstractNetworkCache,sipName_clear);

    if (!sipMeth)
        return;

    extern void sipVH_QtNetwork_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtNetwork_13(sipGILState, 0, sipPySelf, sipMeth);
}

void sipQAbstractNetworkCache::insert( ::QIODevice*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_QAbstractNetworkCache,sipName_insert);

    if (!sipMeth)
        return;

    extern void sipVH_QtNetwork_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QIODevice*);

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

 ::QIODevice* sipQAbstractNetworkCache::prepare(const  ::QNetworkCacheMetaData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_QAbstractNetworkCache,sipName_prepare);

    if (!sipMeth)
        return 0;

    extern  ::QIODevice* sipVH_QtNetwork_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QNetworkCacheMetaData&);

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

 ::qint64 sipQAbstractNetworkCache::cacheSize() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,sipName_QAbstractNetworkCache,sipName_cacheSize);

    if (!sipMeth)
        return 0;

    extern  ::qint64 sipVH_QtNetwork_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtNetwork_10(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipQAbstractNetworkCache::remove(const  ::QUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,sipName_QAbstractNetworkCache,sipName_remove);

    if (!sipMeth)
        return 0;

    extern bool sipVH_QtNetwork_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QUrl&);

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

 ::QIODevice* sipQAbstractNetworkCache::data(const  ::QUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],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[6],sipPySelf,sipName_QAbstractNetworkCache,sipName_updateMetaData);

    if (!sipMeth)
        return;

    extern void sipVH_QtNetwork_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QNetworkCacheMetaData&);

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

 ::QNetworkCacheMetaData sipQAbstractNetworkCache::metaData(const  ::QUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_QAbstractNetworkCache,sipName_metaData);

    if (!sipMeth)
        return  ::QNetworkCacheMetaData();

    extern  ::QNetworkCacheMetaData sipVH_QtNetwork_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QUrl&);

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

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

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

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

    extern bool sipVH_QtNetwork_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

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

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

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

    if (!sipMeth)
        return  ::QAbstractNetworkCache::eventFilter(a0,a1);

    extern bool sipVH_QtNetwork_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtNetwork_4(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipQAbstractNetworkCache::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QAbstractNetworkCache::timerEvent(a0);
        return;
    }

    extern void sipVH_QtNetwork_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtNetwork_3(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQAbstractNetworkCache::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::QAbstractNetworkCache::childEvent(a0);
        return;
    }

    extern void sipVH_QtNetwork_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtNetwork_2(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQAbstractNetworkCache::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QAbstractNetworkCache::customEvent(a0);
        return;
    }

    extern void sipVH_QtNetwork_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtNetwork_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQAbstractNetworkCache::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QAbstractNetworkCache::connectNotify(a0);
        return;
    }

    extern void sipVH_QtNetwork_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_QtNetwork_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipQAbstractNetworkCache::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QAbstractNetworkCache::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtNetwork_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_QtNetwork_0(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, "sender(self) -> 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 678 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
        {
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
            Q_ASSERT(helper);
        }
        
        // 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
        
        sipRes = helper(sipRes);
#line 52059 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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, "receivers(self, QT_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;

    {
        PyObject * a0;
        const sipQAbstractNetworkCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QAbstractNetworkCache, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 706 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helpers if it hasn't already been done.
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        typedef int (*receivers_helper_func)(QObject *, const char *, int);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        static receivers_helper_func receivers_helper = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        if (!receivers_helper)
        {
            receivers_helper = (receivers_helper_func)sipImportSymbol("qpycore_qobject_receivers");
            Q_ASSERT(receivers_helper);
        }
        
        // PyQt5: Get rid of the const casts.
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = receivers_helper(const_cast<QObject *>(sipCpp), sig, sipCpp->receivers(sig));
        #else
            sipRes = receivers_helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), sig, sipCpp->sipProtect_receivers(sig));
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 52125 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQAbstractNetworkCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QAbstractNetworkCache, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 752 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::connectNotify(sig) : sipCpp->connectNotify(sig));
        #else
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 52281 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "disconnectNotify(self, QT_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 || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        PyObject * a0;
        sipQAbstractNetworkCache *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QAbstractNetworkCache, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 785 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qobject.sip"
        typedef const char *(*pyqt4_get_signal_t)(PyObject *);
        
        static pyqt4_get_signal_t pyqt4_get_signal = 0;
        
        if (!pyqt4_get_signal)
        {
            pyqt4_get_signal = (pyqt4_get_signal_t)sipImportSymbol("pyqt4_get_signal");
            Q_ASSERT(pyqt4_get_signal);
        }
        
        const char *sig = pyqt4_get_signal(a0);
            
        if (sig)
        {
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            (sipSelfWasArg ? sipCpp->QObject::disconnectNotify(sig) : sipCpp->disconnectNotify(sig));
        #else
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg, sig);
        #endif
        }
        else
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 52345 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* 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, "senderSignalIndex(self) -> 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, "metaData(self, 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, "updateMetaData(self, 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, "data(self, 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, "remove(self, 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, "cacheSize(self) -> 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, "prepare(self, 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, "insert(self, 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, "clear(self)");

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 inheritance hierarchy. */
extern "C" {static void *cast_QAbstractNetworkCache(void *, const sipTypeDef *);}
static void *cast_QAbstractNetworkCache(void *sipCppV, const sipTypeDef *targetType)
{
     ::QAbstractNetworkCache *sipCpp = reinterpret_cast< ::QAbstractNetworkCache *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQAbstractNetworkCache *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QAbstractNetworkCache(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{12, 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(parent: QObject = None)");


static pyqt4ClassPluginDef plugin_QAbstractNetworkCache = {
    & ::QAbstractNetworkCache::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QAbstractNetworkCache = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QAbstractNetworkCache,
        {0},
        &plugin_QAbstractNetworkCache
    },
    {
        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
};

#line 137 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qabstractnetworkcache.h>
#line 52852 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qhash.h>
#include <qnetworkrequest.h>
#include <qvariant.h>
#line 52858 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkrequest.sip"
#include <qnetworkrequest.h>
#line 52861 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 52864 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 397 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 52867 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 196 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 52871 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 32 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 52874 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 98 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qurl.sip"
#include <qurl.h>
#line 52877 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


PyDoc_STRVAR(doc_QNetworkCacheMetaData_isValid, "isValid(self) -> 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, "url(self) -> 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, "setUrl(self, 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, "rawHeaders(self) -> List[Tuple[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, "setRawHeaders(self, Sequence[Tuple[Union[QByteArray, bytes, bytearray], Union[QByteArray, bytes, bytearray]]])");

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, "lastModified(self) -> 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, "setLastModified(self, Union[QDateTime, datetime.datetime])");

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, "expirationDate(self) -> 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, "setExpirationDate(self, Union[QDateTime, datetime.datetime])");

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, "saveToDisk(self) -> 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, "setSaveToDisk(self, 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, "attributes(self) -> Dict[QNetworkRequest.Attribute, Any]");

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, "setAttributes(self, Dict[QNetworkRequest.Attribute, Any])");

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);
}


/* 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, void *);}
static void assign_QNetworkCacheMetaData(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QNetworkCacheMetaData *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 (sipIsOwnedByPython(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)");


static pyqt4ClassPluginDef plugin_QNetworkCacheMetaData = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtNetwork_QNetworkCacheMetaData = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QNetworkCacheMetaData,
        {0},
        &plugin_QNetworkCacheMetaData
    },
    {
        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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qabstractnetworkcache.sip"
#include <qhash.h>
#include <qnetworkrequest.h>
#include <qvariant.h>
#line 53512 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"

#line 28 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtNetwork/qnetworkrequest.sip"
#include <qnetworkrequest.h>
#line 53516 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
#line 265 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 53519 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"


extern "C" {static void assign_QHash_0100QNetworkRequest_Attribute_0100QVariant(void *, SIP_SSIZE_T, void *);}
static void assign_QHash_0100QNetworkRequest_Attribute_0100QVariant(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QHash< ::QNetworkRequest::Attribute, ::QVariant> *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::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 79 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 53610 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.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 34 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/src/PyQt4_gpl_x11-4.12.3/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 53662 "/wip/cygport-git/python-pyqt4/python-pyqt4-4.12.3-1.x86_64/build/QtNetwork/sipQtNetworkpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtNetwork_QHash_0100QNetworkRequest_Attribute_0100QVariant = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_135,     /* QHash<QNetworkRequest::Attribute,QVariant> */
        {0},
        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
};
