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

#include "sipAPIQtDBus.h"

#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusargument.sip"
#include <qdbusargument.h>
#line 32 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 52 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 35 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 52 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 38 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 54 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusextratypes.sip"
#include <qdbusextratypes.h>
#line 41 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 107 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusextratypes.sip"
#include <qdbusextratypes.h>
#line 44 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 156 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusextratypes.sip"
#include <qdbusextratypes.h>
#line 47 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusmessage.sip"
#include <qdbusmessage.h>
#line 50 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusservicewatcher.sip"
#include <qdbusservicewatcher.h>
#line 53 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusunixfiledescriptor.sip"
#include <qdbusunixfiledescriptor.h>
#line 56 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbuspendingreply.sip"
#include <qpydbuspendingreply.h>
#line 59 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

/* Define the strings used by this module. */
const char sipStrings_QtDBus[] = {
    'Q', 'D', 'B', 'u', 's', 'R', 'e', 'p', 'l', 'y', '<', 'Q', 'D', 'B', 'u', 's', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', ':', ':', 'R', 'e', 'g', 'i', 's', 't', 'e', 'r', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 'R', 'e', 'p', 'l', 'y', '>', 0,
    'Q', 'D', 'B', 'u', 's', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', ':', ':', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 'R', 'e', 'p', 'l', 'a', 'c', 'e', 'm', 'e', 'n', 't', 'O', 'p', 't', 'i', 'o', 'n', 's', 0,
    'Q', 'D', 'B', 'u', 's', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', ':', ':', 'R', 'e', 'g', 'i', 's', 't', 'e', 'r', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 'R', 'e', 'p', 'l', 'y', 0,
    'Q', 'D', 'B', 'u', 's', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', ':', ':', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 'Q', 'u', 'e', 'u', 'e', 'O', 'p', 't', 'i', 'o', 'n', 's', 0,
    'Q', 'D', 'B', 'u', 's', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ':', ':', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'C', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'i', 'e', 's', 0,
    'Q', 'D', 'B', 'u', 's', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ':', ':', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'C', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'y', 0,
    'Q', 'D', 'B', 'u', 's', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 'W', 'a', 't', 'c', 'h', 'e', 'r', ':', ':', 'W', 'a', 't', 'c', 'h', 'M', 'o', 'd', 'e', 'F', 'l', 'a', 'g', 0,
    'Q', 'D', 'B', 'u', 's', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ':', ':', 'R', 'e', 'g', 'i', 's', 't', 'e', 'r', 'O', 'p', 't', 'i', 'o', 'n', 's', 0,
    'Q', 'D', 'B', 'u', 's', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ':', ':', 'U', 'n', 'r', 'e', 'g', 'i', 's', 't', 'e', 'r', 'M', 'o', 'd', 'e', 0,
    'Q', 'D', 'B', 'u', 's', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ':', ':', 'R', 'e', 'g', 'i', 's', 't', 'e', 'r', 'O', 'p', 't', 'i', 'o', 'n', 0,
    'Q', 'D', 'B', 'u', 's', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 'W', 'a', 't', 'c', 'h', 'e', 'r', ':', ':', 'W', 'a', 't', 'c', 'h', 'M', 'o', 'd', 'e', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'N', 'o', 'n', 'S', 'c', 'r', 'i', 'p', 't', 'a', 'b', 'l', 'e', 'I', 'n', 'v', 'o', 'k', 'a', 'b', 'l', 'e', 's', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'N', 'o', 'n', 'S', 'c', 'r', 'i', 'p', 't', 'a', 'b', 'l', 'e', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'i', 'e', 's', 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,
    'E', 'x', 'p', 'o', 'r', 't', 'N', 'o', 'n', 'S', 'c', 'r', 'i', 'p', 't', 'a', 'b', 'l', 'e', 'C', 'o', 'n', 't', 'e', 'n', 't', 's', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'N', 'o', 'n', 'S', 'c', 'r', 'i', 'p', 't', 'a', 'b', 'l', 'e', 'S', 'i', 'g', 'n', 'a', 'l', 's', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'S', 'c', 'r', 'i', 'p', 't', 'a', 'b', 'l', 'e', 'I', 'n', 'v', 'o', 'k', 'a', 'b', 'l', 'e', 's', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'S', 'c', 'r', 'i', 'p', 't', 'a', 'b', 'l', 'e', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'i', 'e', 's', 0,
    'Q', 'D', 'B', 'u', 's', 'M', 'e', 's', 's', 'a', 'g', 'e', ':', ':', 'M', 'e', 's', 's', 'a', 'g', 'e', 'T', 'y', 'p', 'e', 0,
    'U', 'n', 'i', 'x', 'F', 'i', 'l', 'e', 'D', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', 'P', 'a', 's', 's', 'i', 'n', 'g', 0,
    'a', 's', 'y', 'n', 'c', 'C', 'a', 'l', 'l', 'W', 'i', 't', 'h', 'A', 'r', 'g', 'u', 'm', 'e', 'n', 't', 'L', 'i', 's', 't', 0,
    'Q', 'D', 'B', 'u', 's', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'N', 'o', 'n', 'S', 'c', 'r', 'i', 'p', 't', 'a', 'b', 'l', 'e', 'S', 'l', 'o', 't', 's', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'S', 'c', 'r', 'i', 'p', 't', 'a', 'b', 'l', 'e', 'C', 'o', 'n', 't', 'e', 'n', 't', 's', 0,
    'Q', 'D', 'B', 'u', 's', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', ':', ':', 'B', 'u', 's', 'T', 'y', 'p', 'e', 0,
    'Q', 'D', 'B', 'u', 's', 'R', 'e', 'p', 'l', 'y', '<', 'Q', 'S', 't', 'r', 'i', 'n', 'g', 'L', 'i', 's', 't', '>', 0,
    'Q', 'D', 'B', 'u', 's', 'U', 'n', 'i', 'x', 'F', 'i', 'l', 'e', 'D', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', 0,
    'Q', 'D', 'B', 'u', 's', 'P', 'e', 'n', 'd', 'i', 'n', 'g', 'C', 'a', 'l', 'l', 'W', 'a', 't', 'c', 'h', 'e', 'r', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'S', 'c', 'r', 'i', 'p', 't', 'a', 'b', 'l', 'e', 'S', 'i', 'g', 'n', 'a', 'l', 's', 0,
    'W', 'a', 't', 'c', 'h', 'F', 'o', 'r', 'U', 'n', 'r', 'e', 'g', 'i', 's', 't', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'c', 'a', 'l', 'l', 'W', 'i', 't', 'h', 'C', 'a', 'l', 'l', 'b', 'a', 'c', 'k', 'F', 'a', 'i', 'l', 'e', 'd', 0,
    'r', 'e', 'g', 'i', 's', 't', 'e', 'r', 'e', 'd', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 'N', 'a', 'm', 'e', 's', 0,
    'R', 'e', 'p', 'l', 'a', 'c', 'e', 'E', 'x', 'i', 's', 't', 'i', 'n', 'g', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 0,
    'c', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 'C', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'i', 'e', 's', 0,
    'Q', 'D', 'B', 'u', 's', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 0,
    'Q', 'D', 'B', 'u', 's', 'E', 'r', 'r', 'o', 'r', ':', ':', 'E', 'r', 'r', 'o', 'r', 'T', 'y', 'p', 'e', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'S', 'c', 'r', 'i', 'p', 't', 'a', 'b', 'l', 'e', 'S', 'l', 'o', 't', 's', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 'W', 'a', 't', 'c', 'h', 'e', 'd', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 0,
    'W', 'a', 't', 'c', 'h', 'F', 'o', 'r', 'R', 'e', 'g', 'i', 's', 't', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'S', 'e', 'r', 'v', 'i', 'c', 'e', 'N', 'o', 't', 'R', 'e', 'g', 'i', 's', 't', 'e', 'r', 'e', 'd', 0,
    'D', 'o', 'n', 't', 'A', 'l', 'l', 'o', 'w', 'R', 'e', 'p', 'l', 'a', 'c', 'e', 'm', 'e', 'n', 't', 0,
    'c', 'a', 'l', 'l', 'W', 'i', 't', 'h', 'A', 'r', 'g', 'u', 'm', 'e', 'n', 't', 'L', 'i', 's', 't', 0,
    'Q', 'D', 'B', 'u', 's', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'A', 'd', 'a', 'p', 't', 'o', 'r', 0,
    'Q', 'D', 'B', 'u', 's', 'R', 'e', 'p', 'l', 'y', '<', 'Q', 'S', 't', 'r', 'i', 'n', 'g', '>', 0,
    'Q', 'P', 'y', 'D', 'B', 'u', 's', 'P', 'e', 'n', 'd', 'i', 'n', 'g', 'R', 'e', 'p', 'l', 'y', 0,
    'W', 'a', 't', 'c', 'h', 'F', 'o', 'r', 'O', 'w', 'n', 'e', 'r', 'C', 'h', 'a', 'n', 'g', 'e', 0,
    'Q', 'D', 'B', 'u', 's', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 'W', 'a', 't', 'c', 'h', 'e', 'r', 0,
    's', 'e', 't', 'A', 'u', 't', 'o', 'S', 't', 'a', 'r', 't', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 0,
    's', 'e', 'r', 'v', 'i', 'c', 'e', 'O', 'w', 'n', 'e', 'r', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 'r', 'v', 'i', 'c', 'e', 'U', 'n', 'r', 'e', 'g', 'i', 's', 't', 'e', 'r', 'e', 'd', 0,
    'i', 's', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 'R', 'e', 'g', 'i', 's', 't', 'e', 'r', 'e', 'd', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'A', 'l', 'l', 'I', 'n', 'v', 'o', 'k', 'a', 'b', 'l', 'e', 's', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'A', 'l', 'l', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'i', 'e', 's', 0,
    's', 'e', 't', 'A', 'u', 't', 'o', 'R', 'e', 'l', 'a', 'y', 'S', 'i', 'g', 'n', 'a', 'l', 's', 0,
    's', 'e', 't', 'W', 'a', 't', 'c', 'h', 'e', 'd', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 's', 0,
    'd', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'F', 'r', 'o', 'm', 'P', 'e', 'e', 'r', 0,
    'o', 'b', 'j', 'e', 'c', 't', 'R', 'e', 'g', 'i', 's', 't', 'e', 'r', 'e', 'd', 'A', 't', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'C', 'h', 'i', 'l', 'd', 'O', 'b', 'j', 'e', 'c', 't', 's', 0,
    'Q', 'D', 'B', 'u', 's', 'P', 'e', 'n', 'd', 'i', 'n', 'g', 'R', 'e', 'p', 'l', 'y', 0,
    's', 'e', 't', 'F', 'i', 'l', 'e', 'D', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', 0,
    'a', 'd', 'd', 'W', 'a', 't', 'c', 'h', 'e', 'd', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 0,
    'f', 'r', 'o', 'm', 'C', 'o', 'm', 'p', 'l', 'e', 't', 'e', 'd', 'C', 'a', 'l', 'l', 0,
    'M', 'e', 't', 'h', 'o', 'd', 'C', 'a', 'l', 'l', 'M', 'e', 's', 's', 'a', 'g', 'e', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'O', 'b', 'j', 'e', 'c', 't', 'P', 'a', 't', 'h', 0,
    's', 'e', 'r', 'v', 'i', 'c', 'e', 'R', 'e', 'g', 'i', 's', 't', 'e', 'r', 'e', 'd', 0,
    'd', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'F', 'r', 'o', 'm', 'B', 'u', 's', 0,
    'u', 'n', 'r', 'e', 'g', 'i', 's', 't', 'e', 'r', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'A', 'l', 'l', 'C', 'o', 'n', 't', 'e', 'n', 't', 's', 0,
    's', 'e', 'n', 'd', 'e', 'r', 'S', 'i', 'g', 'n', 'a', 'l', 'I', 'n', 'd', 'e', 'x', 0,
    's', 'i', 'p', '.', 's', 'i', 'm', 'p', 'l', 'e', 'w', 'r', 'a', 'p', 'p', 'e', 'r', 0,
    'Q', 'D', 'B', 'u', 's', 'R', 'e', 'p', 'l', 'y', '<', 'u', 'i', 'n', 't', '>', 0,
    'Q', 'D', 'B', 'u', 's', 'R', 'e', 'p', 'l', 'y', '<', 'b', 'o', 'o', 'l', '>', 0,
    'Q', 'D', 'B', 'u', 's', 'R', 'e', 'p', 'l', 'y', '<', 'v', 'o', 'i', 'd', '>', 0,
    'Q', 'D', 'B', 'u', 's', 'P', 'e', 'n', 'd', 'i', 'n', 'g', 'C', 'a', 'l', 'l', 0,
    'a', 'u', 't', 'o', 'S', 't', 'a', 'r', 't', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'E', 'r', 'r', 'o', 'r', 'R', 'e', 'p', 'l', 'y', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'M', 'e', 't', 'h', 'o', 'd', 'C', 'a', 'l', 'l', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'S', 'i', 'g', 'n', 'a', 't', 'u', 'r', 'e', 0,
    'D', 'o', 'n', 't', 'Q', 'u', 'e', 'u', 'e', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 0,
    'u', 'n', 'r', 'e', 'g', 'i', 's', 't', 'e', 'r', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'A', 'l', 'l', 'S', 'i', 'g', 'n', 'a', 'l', 's', 0,
    'c', 'a', 'l', 'l', 'W', 'i', 't', 'h', 'C', 'a', 'l', 'l', 'b', 'a', 'c', 'k', 0,
    'a', 'u', 't', 'o', 'R', 'e', 'l', 'a', 'y', 'S', 'i', 'g', 'n', 'a', 'l', 's', 0,
    'd', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'N', 'o', 't', 'i', 'f', 'y', 0,
    'w', 'a', 't', 'c', 'h', 'e', 'd', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 's', 0,
    's', 'e', 't', 'D', 'e', 'l', 'a', 'y', 'e', 'd', 'R', 'e', 'p', 'l', 'y', 0,
    'i', 's', 'R', 'e', 'p', 'l', 'y', 'R', 'e', 'q', 'u', 'i', 'r', 'e', 'd', 0,
    'Q', 'D', 'B', 'u', 's', 'O', 'b', 'j', 'e', 'c', 't', 'P', 'a', 't', 'h', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'A', 'l', 'l', 'S', 'i', 'g', 'n', 'a', 'l', 0,
    'Q', 'D', 'B', 'u', 's', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'Q', 'D', 'B', 'u', 's', ':', ':', 'C', 'a', 'l', 'l', 'M', 'o', 'd', 'e', 0,
    'w', 'a', 'i', 't', 'F', 'o', 'r', 'F', 'i', 'n', 'i', 's', 'h', 'e', 'd', 0,
    'f', 'i', 'l', 'e', 'D', 'e', 's', 'c', 'r', 'i', 'p', 't', 'o', 'r', 0,
    'i', 's', 'D', 'e', 'l', 'a', 'y', 'e', 'd', 'R', 'e', 'p', 'l', 'y', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'M', 'e', 's', 's', 'a', 'g', 'e', 0,
    'Q', 'D', 'B', 'u', 's', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 0,
    'Q', 'D', 'B', 'u', 's', 'S', 'i', 'g', 'n', 'a', 't', 'u', 'r', 'e', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 0,
    'L', 'i', 'm', 'i', 't', 's', 'E', 'x', 'c', 'e', 'e', 'd', 'e', 'd', 0,
    'S', 'e', 'r', 'v', 'i', 'c', 'e', 'U', 'n', 'k', 'n', 'o', 'w', 'n', 0,
    'l', 'o', 'c', 'a', 'l', 'M', 'a', 'c', 'h', 'i', 'n', 'e', 'I', 'd', 0,
    'U', 'n', 'r', 'e', 'g', 'i', 's', 't', 'e', 'r', 'T', 'r', 'e', 'e', 0,
    'U', 'n', 'r', 'e', 'g', 'i', 's', 't', 'e', 'r', 'N', 'o', 'd', 'e', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'A', 'l', 'l', 'S', 'l', 'o', 't', 's', 0,
    'E', 'x', 'p', 'o', 'r', 't', 'A', 'd', 'a', 'p', 't', 'o', 'r', 's', 0,
    'b', 'e', 'g', 'i', 'n', 'S', 't', 'r', 'u', 'c', 't', 'u', 'r', 'e', 0,
    's', 'e', 't', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'S', 'i', 'g', 'n', 'a', 'l', 'M', 'e', 's', 's', 'a', 'g', 'e', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'M', 'e', 'm', 'b', 'e', 'r', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'I', 'n', 't', 'e', 'r', 'n', 'a', 'l', 'E', 'r', 'r', 'o', 'r', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'M', 'e', 't', 'h', 'o', 'd', 0,
    'S', 'e', 'r', 'v', 'i', 'c', 'e', 'Q', 'u', 'e', 'u', 'e', 'd', 0,
    'c', 'o', 'n', 'n', 'e', 'c', 't', 'T', 'o', 'P', 'e', 'e', 'r', 0,
    'A', 'c', 't', 'i', 'v', 'a', 't', 'i', 'o', 'n', 'B', 'u', 's', 0,
    'b', 'e', 'g', 'i', 'n', 'M', 'a', 'p', 'E', 'n', 't', 'r', 'y', 0,
    'Q', 'D', 'B', 'u', 's', 'A', 'r', 'g', 'u', 'm', 'e', 'n', 't', 0,
    'Q', 'P', 'y', 'D', 'B', 'u', 's', 'R', 'e', 'p', 'l', 'y', 0,
    's', 'e', 't', 'W', 'a', 't', 'c', 'h', 'M', 'o', 'd', 'e', 0,
    's', 'e', 't', 'A', 'r', 'g', 'u', 'm', 'e', 'n', 't', 's', 0,
    'e', 'r', 'r', 'o', 'r', 'M', 'e', 's', 's', 'a', 'g', 'e', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'S', 'i', 'g', 'n', 'a', 'l', 0,
    'E', 'r', 'r', 'o', 'r', 'M', 'e', 's', 's', 'a', 'g', 'e', 0,
    'R', 'e', 'p', 'l', 'y', 'M', 'e', 's', 's', 'a', 'g', 'e', 0,
    'Q', 'D', 'B', 'u', 's', 'M', 'e', 's', 's', 'a', 'g', 'e', 0,
    'Q', 'D', 'B', 'u', 's', 'V', 'a', 'r', 'i', 'a', 'n', 't', 0,
    's', 'e', 't', 'S', 'i', 'g', 'n', 'a', 't', 'u', 'r', 'e', 0,
    'D', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd', 0,
    'A', 'd', 'd', 'r', 'e', 's', 's', 'I', 'n', 'U', 's', 'e', 0,
    'A', 'c', 'c', 'e', 's', 's', 'D', 'e', 'n', 'i', 'e', 'd', 0,
    'N', 'o', 't', 'S', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 0,
    's', 't', 'a', 'r', 't', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 0,
    's', 'e', 'r', 'v', 'i', 'c', 'e', 'O', 'w', 'n', 'e', 'r', 0,
    'c', 'o', 'n', 'n', 'e', 'c', 't', 'T', 'o', 'B', 'u', 's', 0,
    'B', 'l', 'o', 'c', 'k', 'W', 'i', 't', 'h', 'G', 'u', 'i', 0,
    'e', 'n', 'd', 'S', 't', 'r', 'u', 'c', 't', 'u', 'r', 'e', 0,
    'P', 'y', 'Q', 't', '4', '.', 'Q', 't', 'D', 'B', 'u', 's', 0,
    'i', 's', 'S', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'R', 'e', 'p', 'l', 'y', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'E', 'r', 'r', 'o', 'r', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'A', 'r', 'g', 's', 0,
    'b', 'a', 's', 'e', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 0,
    'i', 's', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd', 0,
    'e', 'n', 'd', 'M', 'a', 'p', 'E', 'n', 't', 'r', '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,
    'e', 'r', 'r', 'o', 'r', 'S', 't', 'r', 'i', 'n', 'g', 0,
    'Q', 'D', 'B', 'u', 's', 'R', 'e', 'p', 'l', 'y', 0,
    'a', 'r', 'g', 'u', 'm', 'e', 'n', 't', 'A', 't', 0,
    's', 'e', 't', 'V', 'a', 'r', 'i', 'a', 'n', 't', 0,
    'B', 'a', 'd', 'A', 'd', 'd', 'r', 'e', 's', 's', 0,
    'Q', 'D', 'B', 'u', 's', 'E', 'r', 'r', 'o', 'r', 0,
    's', 'e', 'r', 'v', 'i', 'c', 'e', 'U', 'i', 'd', 0,
    's', 'e', 'r', 'v', 'i', 'c', 'e', 'P', 'i', 'd', 0,
    's', 'e', 's', 's', 'i', 'o', 'n', 'B', 'u', 's', 0,
    'S', 'e', 's', 's', 'i', 'o', 'n', 'B', 'u', 's', 0,
    'A', 'u', 't', 'o', 'D', 'e', 't', 'e', 'c', 't', 0,
    'b', 'e', 'g', 'i', 'n', 'A', 'r', 'r', 'a', 'y', 0,
    's', 'e', 't', 'T', 'i', 'm', 'e', 'o', 'u', 't', 0,
    'c', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 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,
    'd', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 0,
    '_', '_', 'l', 's', 'h', 'i', 'f', 't', '_', '_', 0,
    '_', '_', 'i', 'n', 'v', 'e', 'r', 't', '_', '_', 0,
    'w', 'a', 't', 'c', 'h', 'M', 'o', 'd', 'e', 0,
    'f', 'r', 'o', 'm', 'E', 'r', 'r', 'o', 'r', 0,
    'e', 'r', 'r', 'o', 'r', 'N', 'a', 'm', 'e', 0,
    'N', 'o', 'N', 'e', 't', 'w', 'o', 'r', 'k', 0,
    's', 'y', 's', 't', 'e', 'm', 'B', 'u', 's', 0,
    'S', 'y', 's', 't', 'e', 'm', 'B', 'u', 's', 0,
    'a', 's', 'y', 'n', 'c', 'C', 'a', 'l', 'l', 0,
    'l', 'a', 's', 't', 'E', 'r', 'r', 'o', 'r', 0,
    'i', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 0,
    'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', 0,
    'r', 'e', 'c', 'e', 'i', 'v', 'e', 'r', 's', 0,
    's', 'i', 'g', 'n', 'a', 't', 'u', 'r', 'e', 0,
    'a', 'r', 'g', 'u', 'm', 'e', 'n', 't', 's', 0,
    'p', 'r', 'e', 'c', 'i', 's', 'i', 'o', 'n', 0,
    'T', 'i', 'm', 'e', 'd', 'O', 'u', 't', 0,
    'N', 'o', 'S', 'e', 'r', 'v', 'e', 'r', 0,
    'N', 'o', 'M', 'e', 'm', 'o', 'r', 'y', 0,
    'b', 'e', 'g', 'i', 'n', 'M', 'a', 'p', 0,
    'b', 'e', 'h', 'a', 'v', 'i', 'o', 'r', 0,
    'f', 'i', 'l', 'l', 'C', 'h', 'a', 'r', 0,
    'e', 'n', 'd', 'A', 'r', 'r', 'a', 'y', 0,
    '_', '_', 'h', 'a', 's', 'h', '_', '_', 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,
    'i', 's', 'E', 'r', 'r', 'o', 'r', 0,
    'N', 'o', 'R', 'e', 'p', 'l', 'y', 0,
    'r', 'o', 'p', 't', 'i', 'o', 'n', 0,
    'q', 'o', 'p', 't', 'i', 'o', 'n', 0,
    'N', 'o', 'B', 'l', 'o', 'c', 'k', 0,
    's', 'e', 'r', 'v', 'i', 'c', 'e', 0,
    'v', 'a', 'r', 'i', 'a', 'n', 't', 0,
    'o', 'p', 't', 'i', 'o', 'n', 's', 0,
    'N', 'o', 'E', 'r', 'r', 'o', 'r', 0,
    't', 'i', 'm', 'e', 'o', 'u', 't', 0,
    's', 'e', 't', 'P', 'a', 't', 'h', 0,
    'e', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'i', 's', 'V', 'a', 'l', 'i', 'd', 0,
    'f', 'i', 'l', 't', 'e', 'r', 's', 0,
    'm', 'e', 's', 's', 'a', 'g', 'e', 0,
    '_', '_', 'a', 'n', 'd', '_', '_', 0,
    '_', '_', 'x', 'o', 'r', '_', '_', 0,
    '_', '_', 'i', 'n', 't', '_', '_', 0,
    '_', '_', 'i', 'o', 'r', '_', '_', 0,
    'e', 'n', 'd', 'M', 'a', 'p', 0,
    'p', 'r', 'o', 'p', 'e', 'r', 0,
    'm', 'e', 'm', 'b', 'e', 'r', 0,
    's', 'e', 'n', 'd', 'e', 'r', 0,
    'v', 'a', 'l', 'u', 'e', '9', 0,
    'v', 'a', 'l', 'u', 'e', '8', 0,
    'v', 'a', 'l', 'u', 'e', '7', 0,
    'v', 'a', 'l', 'u', 'e', '6', 0,
    'v', 'a', 'l', 'u', 'e', '5', 0,
    'v', 'a', 'l', 'u', 'e', '4', 0,
    'v', 'a', 'l', 'u', 'e', '3', 0,
    'v', 'a', 'l', 'u', 'e', '0', 0,
    's', 'y', 'm', 'b', 'o', 'l', 0,
    's', 'u', 'f', 'f', 'i', 'x', 0,
    'p', 'r', 'e', 'f', 'i', 'x', 0,
    'f', 'o', 'r', 'm', 'a', 't', 0,
    '_', '_', 'g', 'e', '_', '_', 0,
    'v', 'a', 'l', 'u', 'e', '2', 0,
    'v', 'a', 'l', 'u', 'e', '1', 0,
    '_', '_', 'l', 't', '_', '_', 0,
    'o', 'b', 'j', 'e', 'c', 't', 0,
    'p', 'a', 'r', 'e', 'n', 't', 0,
    '_', '_', 'n', 'e', '_', '_', 0,
    '_', '_', 'e', 'q', '_', '_', 0,
    '_', '_', 'o', 'r', '_', '_', 0,
    'r', 'e', 'p', 'l', 'y', 0,
    'O', 't', 'h', 'e', 'r', 0,
    'Q', 'D', 'B', 'u', 's', 0,
    'v', 'a', 'l', 'u', 'e', 0,
    'e', 'r', 'r', 'o', 'r', 0,
    'f', 'l', 'a', 'g', 's', 0,
    'e', 'v', 'e', 'n', 't', 0,
    'm', 's', 'e', 'c', 's', 0,
    's', 'e', 'n', 'd', 0,
    'c', 'a', 'l', 'l', 0,
    'a', 'r', 'g', '8', 0,
    'a', 'r', 'g', '7', 0,
    'a', 'r', 'g', '6', 0,
    'a', 'r', 'g', '5', 0,
    'a', 'r', 'g', '4', 0,
    'a', 'r', 'g', '3', 0,
    'a', 'r', 'g', '2', 0,
    'a', 'r', 'g', '1', 0,
    'm', 'o', 'd', 'e', 0,
    'n', 'a', 'm', 'e', 0,
    'b', 'a', 's', 'e', 0,
    'f', 'r', 'o', 'm', 0,
    's', 'o', 'r', 't', 0,
    'p', 'a', 't', 'h', 0,
    't', 'y', 'p', 'e', 0,
    'a', 'd', 'd', 0,
};
#line 25 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 316 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
QByteArray (*qpycore_pyqtslot_get_parts)(PyObject *, QObject **);
PyObject *(*qpycore_qvariant_value)(QVariant &, PyObject *);
#line 25 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusextratypes.sip"
#include <qdbusextratypes.h>
#line 25 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusservicewatcher.sip"
#include <qdbusservicewatcher.h>
#line 338 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


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

#line 32 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusabstractinterface.sip"
    static struct class_graph {
        const char *name;
        sipTypeDef **type;
        int yes, no;
    } graph[] = {
        {sipName_QDBusPendingCallWatcher, &sipType_QDBusPendingCallWatcher, -1, 1},
        {sipName_QDBusAbstractInterface, &sipType_QDBusAbstractInterface, 4, 2},
        {sipName_QDBusServiceWatcher, &sipType_QDBusServiceWatcher, -1, 3},
        {sipName_QDBusAbstractAdaptor, &sipType_QDBusAbstractAdaptor, -1, -1},
        {sipName_QDBusConnectionInterface, &sipType_QDBusConnectionInterface, -1, 5},
        {sipName_QDBusInterface, &sipType_QDBusInterface, -1, -1},
    };
    
    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 379 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

    return sipType;
}


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

    {
        QDBusServiceWatcher::WatchModeFlag a0;
        QDBusServiceWatcher::WatchMode* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QDBusServiceWatcher_WatchModeFlag, &a0, sipType_QDBusServiceWatcher_WatchMode, &a1, &a1State))
        {
            QDBusServiceWatcher::WatchMode*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusServiceWatcher::WatchMode((a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QDBusServiceWatcher_WatchMode,a1State);

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

    {
        QDBusServiceWatcher::WatchModeFlag a0;
        QDBusServiceWatcher::WatchModeFlag a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EE", sipType_QDBusServiceWatcher_WatchModeFlag, &a0, sipType_QDBusServiceWatcher_WatchModeFlag, &a1))
        {
            QDBusServiceWatcher::WatchMode*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusServiceWatcher::WatchMode((a0 | a1));
            Py_END_ALLOW_THREADS

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

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



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

    {
        QDBusConnection::RegisterOption a0;
        QDBusConnection::RegisterOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QDBusConnection_RegisterOption, &a0, sipType_QDBusConnection_RegisterOptions, &a1, &a1State))
        {
            QDBusConnection::RegisterOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection::RegisterOptions((a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_QDBusConnection_RegisterOptions,a1State);

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

    {
        QDBusConnection::RegisterOption a0;
        QDBusConnection::RegisterOption a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EE", sipType_QDBusConnection_RegisterOption, &a0, sipType_QDBusConnection_RegisterOption, &a1))
        {
            QDBusConnection::RegisterOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection::RegisterOptions((a0 | a1));
            Py_END_ALLOW_THREADS

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

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

static sipEnumTypeDef enumTypes[] = {
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QDBusServiceWatcher__WatchModeFlag, {0}}, sipNameNr_WatchModeFlag, 30, slots_QDBusServiceWatcher_WatchModeFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QDBusMessage__MessageType, {0}}, sipNameNr_MessageType, 19, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QDBusError__ErrorType, {0}}, sipNameNr_ErrorType, 16, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QDBusConnectionInterface__RegisterServiceReply, {0}}, sipNameNr_RegisterServiceReply, 12, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QDBusConnectionInterface__ServiceReplacementOptions, {0}}, sipNameNr_ServiceReplacementOptions, 12, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QDBusConnectionInterface__ServiceQueueOptions, {0}}, sipNameNr_ServiceQueueOptions, 12, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QDBusConnection__ConnectionCapability, {0}}, sipNameNr_ConnectionCapability, 5, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QDBusConnection__UnregisterMode, {0}}, sipNameNr_UnregisterMode, 5, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QDBusConnection__RegisterOption, {0}}, sipNameNr_RegisterOption, 5, slots_QDBusConnection_RegisterOption},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QDBusConnection__BusType, {0}}, sipNameNr_BusType, 5, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QDBus__CallMode, {0}}, sipNameNr_CallMode, 0, NULL},
};


/*
 * This defines each type in this module.
 */
static sipTypeDef *typesTable[] = {
    &sipTypeDef_QtDBus_QDBus.super.ctd_base,
    &enumTypes[10].etd_base,
    &sipTypeDef_QtDBus_QDBusAbstractAdaptor.super.ctd_base,
    &sipTypeDef_QtDBus_QDBusAbstractInterface.super.ctd_base,
    &sipTypeDef_QtDBus_QDBusArgument.super.ctd_base,
    &sipTypeDef_QtDBus_QDBusConnection.super.ctd_base,
    &enumTypes[9].etd_base,
    &sipTypeDef_QtDBus_QDBusConnection_ConnectionCapabilities.super.ctd_base,
    &enumTypes[6].etd_base,
    &enumTypes[8].etd_base,
    &sipTypeDef_QtDBus_QDBusConnection_RegisterOptions.super.ctd_base,
    &enumTypes[7].etd_base,
    &sipTypeDef_QtDBus_QDBusConnectionInterface.super.ctd_base,
    &enumTypes[3].etd_base,
    &enumTypes[5].etd_base,
    &enumTypes[4].etd_base,
    &sipTypeDef_QtDBus_QDBusError.super.ctd_base,
    &enumTypes[2].etd_base,
    &sipTypeDef_QtDBus_QDBusInterface.super.ctd_base,
    &sipTypeDef_QtDBus_QDBusMessage.super.ctd_base,
    &enumTypes[1].etd_base,
    &sipTypeDef_QtDBus_QDBusObjectPath.super.ctd_base,
    &sipTypeDef_QtDBus_QDBusPendingCall.super.ctd_base,
    &sipTypeDef_QtDBus_QDBusPendingCallWatcher.super.ctd_base,
    &sipTypeDef_QtDBus_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply.mtd_base,
    &sipTypeDef_QtDBus_QDBusReply_0100QString.mtd_base,
    &sipTypeDef_QtDBus_QDBusReply_0100QStringList.mtd_base,
    &sipTypeDef_QtDBus_QDBusReply_2600.mtd_base,
    &sipTypeDef_QtDBus_QDBusReply_1900.mtd_base,
    &sipTypeDef_QtDBus_QDBusReply_0400.mtd_base,
    &sipTypeDef_QtDBus_QDBusServiceWatcher.super.ctd_base,
    &sipTypeDef_QtDBus_QDBusServiceWatcher_WatchMode.super.ctd_base,
    &enumTypes[0].etd_base,
    &sipTypeDef_QtDBus_QDBusSignature.super.ctd_base,
    &sipTypeDef_QtDBus_QDBusUnixFileDescriptor.super.ctd_base,
    &sipTypeDef_QtDBus_QDBusVariant.super.ctd_base,
    &sipTypeDef_QtDBus_QPyDBusPendingReply.super.ctd_base,
    &sipTypeDef_QtDBus_QPyDBusReply.super.ctd_base,
};


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


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


/* This defines this module. */
sipExportedModuleDef sipModuleAPI_QtDBus = {
    0,
    SIP_API_MINOR_NR,
    sipNameNr_PyQt4_QtDBus,
    0,
    -1,
    sipStrings_QtDBus,
    importsTable,
    NULL,
    38,
    typesTable,
    NULL,
    0,
    NULL,
    0,
    NULL,
    NULL,
    NULL,
    convertorsTable,
    {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL},
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
};


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

sip_qt_metaobject_func sip_QtDBus_qt_metaobject;
sip_qt_metacall_func sip_QtDBus_qt_metacall;
sip_qt_metacast_func sip_QtDBus_qt_metacast;


/* The Python module initialisation function. */
#if PY_MAJOR_VERSION >= 3
#define SIP_MODULE_ENTRY        PyInit_QtDBus
#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        initQtDBus
#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.QtDBus",
        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_QtDBus, sip_methods);
#else
    sipModule = Py_InitModule(const_cast<char *>(sipName_PyQt4_QtDBus), sip_methods);
#endif

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

    sipModuleDict = PyModule_GetDict(sipModule);

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

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

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

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

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

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

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

    sip_QtDBus_qt_metaobject = (sip_qt_metaobject_func)sipImportSymbol("qtcore_qt_metaobject");
    sip_QtDBus_qt_metacall = (sip_qt_metacall_func)sipImportSymbol("qtcore_qt_metacall");
    sip_QtDBus_qt_metacast = (sip_qt_metacast_func)sipImportSymbol("qtcore_qt_metacast");

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

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

    /* Get the APIs of the modules that this one is dependent on. */
    sipModuleAPI_QtDBus_QtCore = sipModuleAPI_QtDBus.em_imports[0].im_module;
#line 157 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusabstractinterface.sip"
qpydbus_post_init();
#line 321 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
// Import helpers from the QtCore module.
qpycore_pyqtslot_get_parts = (QByteArray (*)(PyObject *, QObject **))sipImportSymbol("qpycore_pyqtslot_get_parts");
qpycore_qvariant_value = (PyObject *(*)(QVariant &, PyObject *))sipImportSymbol("qpycore_qvariant_value");
#line 731 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

    SIP_MODULE_RETURN(sipModule);
}

#line 46 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
#include <qdbusreply.h>
#include <qpydbusreply.h>
#line 739 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 72 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 743 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 746 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


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


extern "C" {static void *array_QDBusReply_0100QString(SIP_SSIZE_T);}
static void *array_QDBusReply_0100QString(SIP_SSIZE_T sipNrElem)
{
    return new QDBusReply<QString>[sipNrElem];
}


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


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



extern "C" {static int convertTo_QDBusReply_0100QString(PyObject *, void **, int *, PyObject *);}
static int convertTo_QDBusReply_0100QString(PyObject *,void **,int *,PyObject *)
{
#line 84 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
    // We never create a QDBusReply from Python.
    return 0;
#line 787 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
}


extern "C" {static PyObject *convertFrom_QDBusReply_0100QString(void *, PyObject *);}
static PyObject *convertFrom_QDBusReply_0100QString(void *sipCppV, PyObject *sipTransferObj)
{
   QDBusReply<QString> *sipCpp = reinterpret_cast<QDBusReply<QString> *>(sipCppV);

#line 51 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
    PyObject *value_obj;

    if (sipCpp->isValid())
    {
        // Convert the value to a Python object.
        QString *value = new QString(sipCpp->value());

        if ((value_obj = sipConvertFromNewType(value, sipType_QString, NULL)) == NULL)
        {
            delete value;
            return NULL;
        }
    }
    else
    {
        value_obj = 0;
    }

    QPyDBusReply *reply = new QPyDBusReply(value_obj,
            sipCpp->isValid(), sipCpp->error());

    PyObject *reply_obj = sipConvertFromNewType(reply, sipType_QPyDBusReply, sipTransferObj);

    if (reply_obj == NULL)
    {
        delete reply;
        return NULL;
    }

    return reply_obj;
#line 827 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtDBus_QDBusReply_0100QString = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1225,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QDBusReply_0100QString,
    array_QDBusReply_0100QString,
    copy_QDBusReply_0100QString,
    release_QDBusReply_0100QString,
    convertTo_QDBusReply_0100QString,
    convertFrom_QDBusReply_0100QString
};

#line 46 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
#include <qdbusreply.h>
#include <qpydbusreply.h>
#line 859 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 51 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 863 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 866 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


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


extern "C" {static void *array_QDBusReply_0100QStringList(SIP_SSIZE_T);}
static void *array_QDBusReply_0100QStringList(SIP_SSIZE_T sipNrElem)
{
    return new QDBusReply<QStringList>[sipNrElem];
}


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


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



extern "C" {static int convertTo_QDBusReply_0100QStringList(PyObject *, void **, int *, PyObject *);}
static int convertTo_QDBusReply_0100QStringList(PyObject *,void **,int *,PyObject *)
{
#line 84 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
    // We never create a QDBusReply from Python.
    return 0;
#line 907 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
}


extern "C" {static PyObject *convertFrom_QDBusReply_0100QStringList(void *, PyObject *);}
static PyObject *convertFrom_QDBusReply_0100QStringList(void *sipCppV, PyObject *sipTransferObj)
{
   QDBusReply<QStringList> *sipCpp = reinterpret_cast<QDBusReply<QStringList> *>(sipCppV);

#line 51 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
    PyObject *value_obj;

    if (sipCpp->isValid())
    {
        // Convert the value to a Python object.
        QStringList *value = new QStringList(sipCpp->value());

        if ((value_obj = sipConvertFromNewType(value, sipType_QStringList, NULL)) == NULL)
        {
            delete value;
            return NULL;
        }
    }
    else
    {
        value_obj = 0;
    }

    QPyDBusReply *reply = new QPyDBusReply(value_obj,
            sipCpp->isValid(), sipCpp->error());

    PyObject *reply_obj = sipConvertFromNewType(reply, sipType_QPyDBusReply, sipTransferObj);

    if (reply_obj == NULL)
    {
        delete reply;
        return NULL;
    }

    return reply_obj;
#line 947 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtDBus_QDBusReply_0100QStringList = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_821,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QDBusReply_0100QStringList,
    array_QDBusReply_0100QStringList,
    copy_QDBusReply_0100QStringList,
    release_QDBusReply_0100QStringList,
    convertTo_QDBusReply_0100QStringList,
    convertFrom_QDBusReply_0100QStringList
};

#line 205 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
#include <qdbusreply.h>
#include <qpydbusreply.h>
#line 979 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnectioninterface.sip"
#include <qdbusconnectioninterface.h>
#line 983 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


extern "C" {static void assign_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(void *, SIP_SSIZE_T, const void *);}
static void assign_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QDBusReply<QDBusConnectionInterface::RegisterServiceReply> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QDBusReply<QDBusConnectionInterface::RegisterServiceReply> *>(sipSrc);
}


extern "C" {static void *array_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(SIP_SSIZE_T);}
static void *array_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(SIP_SSIZE_T sipNrElem)
{
    return new QDBusReply<QDBusConnectionInterface::RegisterServiceReply>[sipNrElem];
}


extern "C" {static void *copy_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(const void *, SIP_SSIZE_T);}
static void *copy_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QDBusReply<QDBusConnectionInterface::RegisterServiceReply>(reinterpret_cast<const QDBusReply<QDBusConnectionInterface::RegisterServiceReply> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(void *, int);}
static void release_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QDBusReply<QDBusConnectionInterface::RegisterServiceReply> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(PyObject *, void **, int *, PyObject *);}
static int convertTo_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(PyObject *,void **,int *,PyObject *)
{
#line 237 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
    // We never create a QDBusReply from Python.
    return 0;
#line 1024 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
}


extern "C" {static PyObject *convertFrom_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(void *, PyObject *);}
static PyObject *convertFrom_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply(void *sipCppV, PyObject *sipTransferObj)
{
   QDBusReply<QDBusConnectionInterface::RegisterServiceReply> *sipCpp = reinterpret_cast<QDBusReply<QDBusConnectionInterface::RegisterServiceReply> *>(sipCppV);

#line 210 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
    PyObject *value_obj;

    if (sipCpp->isValid())
    {
        if ((value_obj = sipConvertFromEnum(sipCpp->value(), sipType_QDBusConnectionInterface_RegisterServiceReply)) == NULL)
            return NULL;
    }
    else
    {
        value_obj = 0;
    }

    QPyDBusReply *reply = new QPyDBusReply(value_obj,
            sipCpp->isValid(), sipCpp->error());

    PyObject *reply_obj = sipConvertFromNewType(reply, sipType_QPyDBusReply, sipTransferObj);

    if (reply_obj == NULL)
    {
        delete reply;
        return NULL;
    }

    return reply_obj;
#line 1058 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtDBus_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_0,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply,
    array_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply,
    copy_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply,
    release_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply,
    convertTo_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply,
    convertFrom_QDBusReply_0100QDBusConnectionInterface_RegisterServiceReply
};

#line 164 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
#include <qdbusreply.h>
#include <qpydbusreply.h>
#line 1090 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"



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


extern "C" {static void *array_QDBusReply_1900(SIP_SSIZE_T);}
static void *array_QDBusReply_1900(SIP_SSIZE_T sipNrElem)
{
    return new QDBusReply<uint>[sipNrElem];
}


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


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



extern "C" {static int convertTo_QDBusReply_1900(PyObject *, void **, int *, PyObject *);}
static int convertTo_QDBusReply_1900(PyObject *,void **,int *,PyObject *)
{
#line 196 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
    // We never create a QDBusReply from Python.
    return 0;
#line 1132 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
}


extern "C" {static PyObject *convertFrom_QDBusReply_1900(void *, PyObject *);}
static PyObject *convertFrom_QDBusReply_1900(void *sipCppV, PyObject *sipTransferObj)
{
   QDBusReply<uint> *sipCpp = reinterpret_cast<QDBusReply<uint> *>(sipCppV);

#line 169 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
    PyObject *value_obj;

    if (sipCpp->isValid())
    {
        if ((value_obj = PyLong_FromUnsignedLong(sipCpp->value())) == NULL)
            return NULL;
    }
    else
    {
        value_obj = 0;
    }

    QPyDBusReply *reply = new QPyDBusReply(value_obj,
            sipCpp->isValid(), sipCpp->error());

    PyObject *reply_obj = sipConvertFromNewType(reply, sipType_QPyDBusReply, sipTransferObj);

    if (reply_obj == NULL)
    {
        delete reply;
        return NULL;
    }

    return reply_obj;
#line 1166 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtDBus_QDBusReply_1900 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1737,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QDBusReply_1900,
    array_QDBusReply_1900,
    copy_QDBusReply_1900,
    release_QDBusReply_1900,
    convertTo_QDBusReply_1900,
    convertFrom_QDBusReply_1900
};

#line 123 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
#include <qdbusreply.h>
#include <qpydbusreply.h>
#line 1198 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"



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


extern "C" {static void *array_QDBusReply_2600(SIP_SSIZE_T);}
static void *array_QDBusReply_2600(SIP_SSIZE_T sipNrElem)
{
    return new QDBusReply<bool>[sipNrElem];
}


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


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



extern "C" {static int convertTo_QDBusReply_2600(PyObject *, void **, int *, PyObject *);}
static int convertTo_QDBusReply_2600(PyObject *,void **,int *,PyObject *)
{
#line 155 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
    // We never create a QDBusReply from Python.
    return 0;
#line 1240 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
}


extern "C" {static PyObject *convertFrom_QDBusReply_2600(void *, PyObject *);}
static PyObject *convertFrom_QDBusReply_2600(void *sipCppV, PyObject *sipTransferObj)
{
   QDBusReply<bool> *sipCpp = reinterpret_cast<QDBusReply<bool> *>(sipCppV);

#line 128 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
    PyObject *value_obj;

    if (sipCpp->isValid())
    {
        if ((value_obj = PyBool_FromLong(sipCpp->value())) == NULL)
            return NULL;
    }
    else
    {
        value_obj = 0;
    }

    QPyDBusReply *reply = new QPyDBusReply(value_obj,
            sipCpp->isValid(), sipCpp->error());

    PyObject *reply_obj = sipConvertFromNewType(reply, sipType_QPyDBusReply, sipTransferObj);

    if (reply_obj == NULL)
    {
        delete reply;
        return NULL;
    }

    return reply_obj;
#line 1274 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtDBus_QDBusReply_2600 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1754,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QDBusReply_2600,
    array_QDBusReply_2600,
    copy_QDBusReply_2600,
    release_QDBusReply_2600,
    convertTo_QDBusReply_2600,
    convertFrom_QDBusReply_2600
};

#line 93 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
#include <qdbusreply.h>
#include <qpydbusreply.h>
#line 1306 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"



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


extern "C" {static void *array_QDBusReply_0400(SIP_SSIZE_T);}
static void *array_QDBusReply_0400(SIP_SSIZE_T sipNrElem)
{
    return new QDBusReply<void>[sipNrElem];
}


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


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



extern "C" {static int convertTo_QDBusReply_0400(PyObject *, void **, int *, PyObject *);}
static int convertTo_QDBusReply_0400(PyObject *,void **,int *,PyObject *)
{
#line 114 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
    // We never create a QDBusReply from Python.
    return 0;
#line 1348 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
}


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

#line 98 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
    Py_INCREF(Py_None);
    QPyDBusReply *reply = new QPyDBusReply(Py_None,
            sipCpp->isValid(), sipCpp->error());

    PyObject *reply_obj = sipConvertFromNewType(reply, sipType_QPyDBusReply, sipTransferObj);

    if (reply_obj == NULL)
    {
        delete reply;
        return NULL;
    }

    return reply_obj;
#line 1371 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtDBus_QDBusReply_0400 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1771,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QDBusReply_0400,
    array_QDBusReply_0400,
    copy_QDBusReply_0400,
    release_QDBusReply_0400,
    convertTo_QDBusReply_0400,
    convertFrom_QDBusReply_0400
};

#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
#include <qpydbusreply.h>
#line 1402 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusmessage.sip"
#include <qdbusmessage.h>
#line 1406 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuspendingcall.sip"
#include <qdbuspendingcall.h>
#line 1409 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuserror.sip"
#include <qdbuserror.h>
#line 1412 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


PyDoc_STRVAR(doc_QPyDBusReply_error, "QDBusReply.error() -> QDBusError");

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

    {
        const QPyDBusReply *sipCpp;

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

            sipRes = new QDBusError(sipCpp->error());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusReply, sipName_error, doc_QPyDBusReply_error);

    return NULL;
}


PyDoc_STRVAR(doc_QPyDBusReply_isValid, "QDBusReply.isValid() -> bool");

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

    {
        const QPyDBusReply *sipCpp;

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

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


PyDoc_STRVAR(doc_QPyDBusReply_value, "QDBusReply.value(object type=None) -> object");

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

    {
        PyObject * a0 = 0;
        const QPyDBusReply *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|P0", &sipSelf, sipType_QPyDBusReply, &sipCpp, &a0))
        {
            PyObject * sipRes;

            sipRes = sipCpp->value(a0);

            return sipRes;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPyDBusReply(void *, int);}
static void release_QPyDBusReply(void *sipCppV,int)
{
    delete reinterpret_cast<QPyDBusReply *>(sipCppV);
}


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


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

    {
        const QDBusMessage* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QDBusMessage, &a0))
        {
            sipCpp = new QPyDBusReply(*a0);

            return sipCpp;
        }
    }

    {
        const QDBusPendingCall* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QDBusPendingCall, &a0))
        {
            sipCpp = new QPyDBusReply(*a0);

            return sipCpp;
        }
    }

    {
        const QDBusError* a0;

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

            return sipCpp;
        }
    }

    {
        const QPyDBusReply* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPyDBusReply, &a0))
        {
            sipCpp = new QPyDBusReply(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QPyDBusReply[] = {
    {SIP_MLNAME_CAST(sipName_error), meth_QPyDBusReply_error, METH_VARARGS, SIP_MLDOC_CAST(doc_QPyDBusReply_error)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QPyDBusReply_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QPyDBusReply_isValid)},
    {SIP_MLNAME_CAST(sipName_value), (PyCFunction)meth_QPyDBusReply_value, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPyDBusReply_value)}
};

PyDoc_STRVAR(doc_QPyDBusReply, "\1QDBusReply(QDBusMessage)\n"
    "QDBusReply(QDBusPendingCall)\n"
    "QDBusReply(QDBusError)\n"
    "QDBusReply(QDBusReply)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QPyDBusReply = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QPyDBusReply,
        {0}
    },
    {
        sipNameNr_QDBusReply,
        {0, 0, 1},
        3, methods_QPyDBusReply,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPyDBusReply,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QPyDBusReply,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPyDBusReply,
    0,
    0,
    0,
    release_QPyDBusReply,
    cast_QPyDBusReply,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbuspendingreply.sip"
#include <qpydbuspendingreply.h>
#line 1653 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuspendingcall.sip"
#include <qdbuspendingcall.h>
#line 1657 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusmessage.sip"
#include <qdbusmessage.h>
#line 1660 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuserror.sip"
#include <qdbuserror.h>
#line 1663 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 269 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1666 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


PyDoc_STRVAR(doc_QPyDBusPendingReply_argumentAt, "QDBusPendingReply.argumentAt(int) -> object");

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

    {
        int a0;
        const QPyDBusPendingReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPyDBusPendingReply, &sipCpp, &a0))
        {
            QVariant*sipRes;

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusPendingReply, sipName_argumentAt, doc_QPyDBusPendingReply_argumentAt);

    return NULL;
}


PyDoc_STRVAR(doc_QPyDBusPendingReply_error, "QDBusPendingReply.error() -> QDBusError");

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

    {
        const QPyDBusPendingReply *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusError(sipCpp->error());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusPendingReply, sipName_error, doc_QPyDBusPendingReply_error);

    return NULL;
}


PyDoc_STRVAR(doc_QPyDBusPendingReply_isError, "QDBusPendingReply.isError() -> bool");

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

    {
        const QPyDBusPendingReply *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isError();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


PyDoc_STRVAR(doc_QPyDBusPendingReply_isFinished, "QDBusPendingReply.isFinished() -> bool");

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

    {
        const QPyDBusPendingReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPyDBusPendingReply, &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_QDBusPendingReply, sipName_isFinished, doc_QPyDBusPendingReply_isFinished);

    return NULL;
}


PyDoc_STRVAR(doc_QPyDBusPendingReply_isValid, "QDBusPendingReply.isValid() -> bool");

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

    {
        const QPyDBusPendingReply *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPyDBusPendingReply, &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_QDBusPendingReply, sipName_isValid, doc_QPyDBusPendingReply_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QPyDBusPendingReply_reply, "QDBusPendingReply.reply() -> QDBusMessage");

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

    {
        const QPyDBusPendingReply *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusMessage(sipCpp->reply());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusPendingReply, sipName_reply, doc_QPyDBusPendingReply_reply);

    return NULL;
}


PyDoc_STRVAR(doc_QPyDBusPendingReply_waitForFinished, "QDBusPendingReply.waitForFinished()");

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

    {
        QPyDBusPendingReply *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusPendingReply, sipName_waitForFinished, doc_QPyDBusPendingReply_waitForFinished);

    return NULL;
}


PyDoc_STRVAR(doc_QPyDBusPendingReply_value, "QDBusPendingReply.value(object type=None) -> object");

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

    {
        PyObject * a0 = 0;
        const QPyDBusPendingReply *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|P0", &sipSelf, sipType_QPyDBusPendingReply, &sipCpp, &a0))
        {
            PyObject * sipRes;

            sipRes = sipCpp->value(a0);

            return sipRes;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_QPyDBusPendingReply)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QDBusPendingCall)->ctd_cast((QDBusPendingCall *)(QPyDBusPendingReply *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<QPyDBusPendingReply *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const QPyDBusPendingReply* a0;

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

            return sipCpp;
        }
    }

    {
        const QDBusPendingCall* a0;

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

            return sipCpp;
        }
    }

    {
        const QDBusMessage* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QPyDBusPendingReply[] = {{22, 255, 1}};


static PyMethodDef methods_QPyDBusPendingReply[] = {
    {SIP_MLNAME_CAST(sipName_argumentAt), meth_QPyDBusPendingReply_argumentAt, METH_VARARGS, SIP_MLDOC_CAST(doc_QPyDBusPendingReply_argumentAt)},
    {SIP_MLNAME_CAST(sipName_error), meth_QPyDBusPendingReply_error, METH_VARARGS, SIP_MLDOC_CAST(doc_QPyDBusPendingReply_error)},
    {SIP_MLNAME_CAST(sipName_isError), meth_QPyDBusPendingReply_isError, METH_VARARGS, SIP_MLDOC_CAST(doc_QPyDBusPendingReply_isError)},
    {SIP_MLNAME_CAST(sipName_isFinished), meth_QPyDBusPendingReply_isFinished, METH_VARARGS, SIP_MLDOC_CAST(doc_QPyDBusPendingReply_isFinished)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QPyDBusPendingReply_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QPyDBusPendingReply_isValid)},
    {SIP_MLNAME_CAST(sipName_reply), meth_QPyDBusPendingReply_reply, METH_VARARGS, SIP_MLDOC_CAST(doc_QPyDBusPendingReply_reply)},
    {SIP_MLNAME_CAST(sipName_value), (PyCFunction)meth_QPyDBusPendingReply_value, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPyDBusPendingReply_value)},
    {SIP_MLNAME_CAST(sipName_waitForFinished), meth_QPyDBusPendingReply_waitForFinished, METH_VARARGS, SIP_MLDOC_CAST(doc_QPyDBusPendingReply_waitForFinished)}
};

PyDoc_STRVAR(doc_QPyDBusPendingReply, "\1QDBusPendingReply()\n"
    "QDBusPendingReply(QDBusPendingReply)\n"
    "QDBusPendingReply(QDBusPendingCall)\n"
    "QDBusPendingReply(QDBusMessage)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QPyDBusPendingReply = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QPyDBusPendingReply,
        {0}
    },
    {
        sipNameNr_QDBusPendingReply,
        {0, 0, 1},
        8, methods_QPyDBusPendingReply,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPyDBusPendingReply,
    -1,
    -1,
    supers_QPyDBusPendingReply,
    0,
    init_type_QPyDBusPendingReply,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPyDBusPendingReply,
    assign_QPyDBusPendingReply,
    array_QPyDBusPendingReply,
    copy_QPyDBusPendingReply,
    release_QPyDBusPendingReply,
    cast_QPyDBusPendingReply,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusunixfiledescriptor.sip"
#include <qdbusunixfiledescriptor.h>
#line 2099 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"



PyDoc_STRVAR(doc_QDBusUnixFileDescriptor_isValid, "QDBusUnixFileDescriptor.isValid() -> bool");

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

    {
        const QDBusUnixFileDescriptor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDBusUnixFileDescriptor, &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_QDBusUnixFileDescriptor, sipName_isValid, doc_QDBusUnixFileDescriptor_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusUnixFileDescriptor_fileDescriptor, "QDBusUnixFileDescriptor.fileDescriptor() -> int");

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

    {
        const QDBusUnixFileDescriptor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->fileDescriptor();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusUnixFileDescriptor, sipName_fileDescriptor, doc_QDBusUnixFileDescriptor_fileDescriptor);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusUnixFileDescriptor_setFileDescriptor, "QDBusUnixFileDescriptor.setFileDescriptor(int)");

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

    {
        int a0;
        QDBusUnixFileDescriptor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QDBusUnixFileDescriptor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFileDescriptor(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusUnixFileDescriptor, sipName_setFileDescriptor, doc_QDBusUnixFileDescriptor_setFileDescriptor);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusUnixFileDescriptor_isSupported, "QDBusUnixFileDescriptor.isSupported() -> bool");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = QDBusUnixFileDescriptor::isSupported();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusUnixFileDescriptor, sipName_isSupported, doc_QDBusUnixFileDescriptor_isSupported);

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<QDBusUnixFileDescriptor *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

    {
        const QDBusUnixFileDescriptor* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QDBusUnixFileDescriptor[] = {
    {SIP_MLNAME_CAST(sipName_fileDescriptor), meth_QDBusUnixFileDescriptor_fileDescriptor, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusUnixFileDescriptor_fileDescriptor)},
    {SIP_MLNAME_CAST(sipName_isSupported), meth_QDBusUnixFileDescriptor_isSupported, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusUnixFileDescriptor_isSupported)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QDBusUnixFileDescriptor_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusUnixFileDescriptor_isValid)},
    {SIP_MLNAME_CAST(sipName_setFileDescriptor), meth_QDBusUnixFileDescriptor_setFileDescriptor, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusUnixFileDescriptor_setFileDescriptor)}
};

PyDoc_STRVAR(doc_QDBusUnixFileDescriptor, "\1QDBusUnixFileDescriptor()\n"
    "QDBusUnixFileDescriptor(int)\n"
    "QDBusUnixFileDescriptor(QDBusUnixFileDescriptor)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusUnixFileDescriptor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QDBusUnixFileDescriptor,
        {0}
    },
    {
        sipNameNr_QDBusUnixFileDescriptor,
        {0, 0, 1},
        4, methods_QDBusUnixFileDescriptor,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusUnixFileDescriptor,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QDBusUnixFileDescriptor,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusUnixFileDescriptor,
    assign_QDBusUnixFileDescriptor,
    array_QDBusUnixFileDescriptor,
    copy_QDBusUnixFileDescriptor,
    release_QDBusUnixFileDescriptor,
    cast_QDBusUnixFileDescriptor,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusservicewatcher.sip"
#include <qdbusservicewatcher.h>
#line 2385 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusservicewatcher.sip"
#include <qdbusservicewatcher.h>
#line 2389 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


extern "C" {static int slot_QDBusServiceWatcher_WatchMode___bool__(PyObject *);}
static int slot_QDBusServiceWatcher_WatchMode___bool__(PyObject *sipSelf)
{
    QDBusServiceWatcher::WatchMode *sipCpp = reinterpret_cast<QDBusServiceWatcher::WatchMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusServiceWatcher_WatchMode));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 389 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QDBusServiceWatcher::WatchMode::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 2411 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QDBusServiceWatcher_WatchMode___ne__(PyObject *,PyObject *);}
static PyObject *slot_QDBusServiceWatcher_WatchMode___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusServiceWatcher::WatchMode *sipCpp = reinterpret_cast<QDBusServiceWatcher::WatchMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusServiceWatcher_WatchMode));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusServiceWatcher::WatchMode* a0;
        int a0State = 0;

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

#line 380 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QDBusServiceWatcher::WatchMode::Int() != a0->operator QDBusServiceWatcher::WatchMode::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 2445 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(const_cast<QDBusServiceWatcher::WatchMode *>(a0),sipType_QDBusServiceWatcher_WatchMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,ne_slot,sipType_QDBusServiceWatcher_WatchMode,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QDBusServiceWatcher_WatchMode___eq__(PyObject *,PyObject *);}
static PyObject *slot_QDBusServiceWatcher_WatchMode___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusServiceWatcher::WatchMode *sipCpp = reinterpret_cast<QDBusServiceWatcher::WatchMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusServiceWatcher_WatchMode));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusServiceWatcher::WatchMode* a0;
        int a0State = 0;

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

#line 371 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QDBusServiceWatcher::WatchMode::Int() == a0->operator QDBusServiceWatcher::WatchMode::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 2485 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(const_cast<QDBusServiceWatcher::WatchMode *>(a0),sipType_QDBusServiceWatcher_WatchMode,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,eq_slot,sipType_QDBusServiceWatcher_WatchMode,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QDBusServiceWatcher_WatchMode___invert__(PyObject *);}
static PyObject *slot_QDBusServiceWatcher_WatchMode___invert__(PyObject *sipSelf)
{
    QDBusServiceWatcher::WatchMode *sipCpp = reinterpret_cast<QDBusServiceWatcher::WatchMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusServiceWatcher_WatchMode));

    if (!sipCpp)
        return 0;


    {
        {
            QDBusServiceWatcher::WatchMode*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusServiceWatcher::WatchMode(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        QDBusServiceWatcher::WatchMode* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QDBusServiceWatcher_WatchMode, &a0, &a0State, &a1))
        {
            QDBusServiceWatcher::WatchMode*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusServiceWatcher::WatchMode((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDBusServiceWatcher_WatchMode,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        QDBusServiceWatcher::WatchMode* a0;
        int a0State = 0;
        QDBusServiceWatcher::WatchMode* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QDBusServiceWatcher_WatchMode, &a0, &a0State, sipType_QDBusServiceWatcher_WatchMode, &a1, &a1State))
        {
            QDBusServiceWatcher::WatchMode*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusServiceWatcher::WatchMode((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDBusServiceWatcher_WatchMode,a0State);
            sipReleaseType(a1,sipType_QDBusServiceWatcher_WatchMode,a1State);

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

    {
        QDBusServiceWatcher::WatchMode* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QDBusServiceWatcher_WatchMode, &a0, &a0State, &a1))
        {
            QDBusServiceWatcher::WatchMode*sipRes = 0;

#line 365 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QDBusServiceWatcher::WatchMode(*a0 ^ a1);
#line 2594 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(a0,sipType_QDBusServiceWatcher_WatchMode,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        QDBusServiceWatcher::WatchMode* a0;
        int a0State = 0;
        QDBusServiceWatcher::WatchMode* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QDBusServiceWatcher_WatchMode, &a0, &a0State, sipType_QDBusServiceWatcher_WatchMode, &a1, &a1State))
        {
            QDBusServiceWatcher::WatchMode*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusServiceWatcher::WatchMode((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDBusServiceWatcher_WatchMode,a0State);
            sipReleaseType(a1,sipType_QDBusServiceWatcher_WatchMode,a1State);

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

    {
        QDBusServiceWatcher::WatchMode* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QDBusServiceWatcher_WatchMode, &a0, &a0State, &a1))
        {
            QDBusServiceWatcher::WatchMode*sipRes = 0;

#line 360 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QDBusServiceWatcher::WatchMode(*a0 | a1);
#line 2646 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(a0,sipType_QDBusServiceWatcher_WatchMode,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_QDBusServiceWatcher_WatchMode___int__(PyObject *);}
static PyObject *slot_QDBusServiceWatcher_WatchMode___int__(PyObject *sipSelf)
{
    QDBusServiceWatcher::WatchMode *sipCpp = reinterpret_cast<QDBusServiceWatcher::WatchMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusServiceWatcher_WatchMode));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    QDBusServiceWatcher::WatchMode *sipCpp = reinterpret_cast<QDBusServiceWatcher::WatchMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusServiceWatcher_WatchMode));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QDBusServiceWatcher::WatchMode* a0;
        int a0State = 0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    QDBusServiceWatcher::WatchMode *sipCpp = reinterpret_cast<QDBusServiceWatcher::WatchMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusServiceWatcher_WatchMode));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QDBusServiceWatcher::WatchMode* a0;
        int a0State = 0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    QDBusServiceWatcher::WatchMode *sipCpp = reinterpret_cast<QDBusServiceWatcher::WatchMode *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusServiceWatcher_WatchMode));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<QDBusServiceWatcher::WatchMode *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_QDBusServiceWatcher_WatchMode(SIP_SSIZE_T);}
static void *array_QDBusServiceWatcher_WatchMode(SIP_SSIZE_T sipNrElem)
{
    return new QDBusServiceWatcher::WatchMode[sipNrElem];
}


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


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


extern "C" {static void *init_type_QDBusServiceWatcher_WatchMode(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QDBusServiceWatcher_WatchMode(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QDBusServiceWatcher::WatchMode *sipCpp = 0;

    {
        const QDBusServiceWatcher::WatchMode* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QDBusServiceWatcher_WatchModeFlag)) ||
            sipCanConvertToType(sipPy, sipType_QDBusServiceWatcher_WatchMode, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QDBusServiceWatcher_WatchModeFlag)))
{
    *sipCppPtr = new QDBusServiceWatcher::WatchMode(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QDBusServiceWatcher::WatchMode *>(sipConvertToType(sipPy, sipType_QDBusServiceWatcher_WatchMode, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 2941 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QDBusServiceWatcher_WatchMode[] = {
    {(void *)slot_QDBusServiceWatcher_WatchMode___bool__, bool_slot},
    {(void *)slot_QDBusServiceWatcher_WatchMode___ne__, ne_slot},
    {(void *)slot_QDBusServiceWatcher_WatchMode___eq__, eq_slot},
    {(void *)slot_QDBusServiceWatcher_WatchMode___invert__, invert_slot},
    {(void *)slot_QDBusServiceWatcher_WatchMode___and__, and_slot},
    {(void *)slot_QDBusServiceWatcher_WatchMode___xor__, xor_slot},
    {(void *)slot_QDBusServiceWatcher_WatchMode___or__, or_slot},
    {(void *)slot_QDBusServiceWatcher_WatchMode___int__, int_slot},
    {(void *)slot_QDBusServiceWatcher_WatchMode___ixor__, ixor_slot},
    {(void *)slot_QDBusServiceWatcher_WatchMode___ior__, ior_slot},
    {(void *)slot_QDBusServiceWatcher_WatchMode___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QDBusServiceWatcher_WatchMode, "\1QDBusServiceWatcher.WatchMode(QDBusServiceWatcher.WatchMode)\n"
    "QDBusServiceWatcher.WatchMode(int)\n"
    "QDBusServiceWatcher.WatchMode()");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusServiceWatcher_WatchMode = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QDBusServiceWatcher__WatchMode,
        {0}
    },
    {
        sipNameNr_WatchMode,
        {30, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusServiceWatcher_WatchMode,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QDBusServiceWatcher_WatchMode,
    init_type_QDBusServiceWatcher_WatchMode,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusServiceWatcher_WatchMode,
    assign_QDBusServiceWatcher_WatchMode,
    array_QDBusServiceWatcher_WatchMode,
    copy_QDBusServiceWatcher_WatchMode,
    release_QDBusServiceWatcher_WatchMode,
    cast_QDBusServiceWatcher_WatchMode,
    convertTo_QDBusServiceWatcher_WatchMode,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusservicewatcher.sip"
#include <qdbusservicewatcher.h>
#line 3022 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3026 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3029 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 52 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 3032 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusservicewatcher.sip"
#include <qdbusservicewatcher.h>
#line 3035 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3038 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3041 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 368 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3044 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 351 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3047 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 269 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3050 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3053 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3056 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3059 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 115 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3062 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 3065 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3068 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3071 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


class sipQDBusServiceWatcher : public QDBusServiceWatcher
{
public:
    sipQDBusServiceWatcher(QObject*);
    sipQDBusServiceWatcher(const QString&,const QDBusConnection&,QDBusServiceWatcher::WatchMode,QObject*);
    virtual ~sipQDBusServiceWatcher();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const char*);
    void sipProtectVirt_disconnectNotify(bool,const char*);
    int sipProtect_senderSignalIndex() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

sipQDBusServiceWatcher::sipQDBusServiceWatcher(QObject*a0): QDBusServiceWatcher(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQDBusServiceWatcher::sipQDBusServiceWatcher(const QString& a0,const QDBusConnection& a1,QDBusServiceWatcher::WatchMode a2,QObject*a3): QDBusServiceWatcher(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipQDBusServiceWatcher::metaObject() const
{
    return sip_QtDBus_qt_metaobject(sipPySelf,sipType_QDBusServiceWatcher);
}

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

    if (_id >= 0)
        _id = sip_QtDBus_qt_metacall(sipPySelf,sipType_QDBusServiceWatcher,_c,_id,_a);

    return _id;
}

void *sipQDBusServiceWatcher::qt_metacast(const char *_clname)
{
    return (sip_QtDBus_qt_metacast(sipPySelf, sipType_QDBusServiceWatcher, _clname)) ? this : QDBusServiceWatcher::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


PyDoc_STRVAR(doc_QDBusServiceWatcher_sender, "QDBusServiceWatcher.sender() -> QObject");

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

    {
        const sipQDBusServiceWatcher *sipCpp;

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

#line 638 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (helper)
            sipRes = helper(sipRes);
#line 3354 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

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

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

    return NULL;
}


PyDoc_STRVAR(doc_QDBusServiceWatcher_receivers, "QDBusServiceWatcher.receivers(SIGNAL()) -> int");

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

    {
        char* a0;
        const sipQDBusServiceWatcher *sipCpp;

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

#line 664 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        // PyQt5: Get rid of the const casts.
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(const_cast<QObject *>(sipCpp), a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 3399 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


PyDoc_STRVAR(doc_QDBusServiceWatcher_timerEvent, "QDBusServiceWatcher.timerEvent(QTimerEvent)");

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

    {
        QTimerEvent* a0;
        sipQDBusServiceWatcher *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDBusServiceWatcher, &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_QDBusServiceWatcher, sipName_timerEvent, doc_QDBusServiceWatcher_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusServiceWatcher_childEvent, "QDBusServiceWatcher.childEvent(QChildEvent)");

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

    {
        QChildEvent* a0;
        sipQDBusServiceWatcher *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDBusServiceWatcher, &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_QDBusServiceWatcher, sipName_childEvent, doc_QDBusServiceWatcher_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusServiceWatcher_customEvent, "QDBusServiceWatcher.customEvent(QEvent)");

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

    {
        QEvent* a0;
        sipQDBusServiceWatcher *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDBusServiceWatcher, &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_QDBusServiceWatcher, sipName_customEvent, doc_QDBusServiceWatcher_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusServiceWatcher_connectNotify, "QDBusServiceWatcher.connectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQDBusServiceWatcher *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QDBusServiceWatcher, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusServiceWatcher, sipName_connectNotify, doc_QDBusServiceWatcher_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusServiceWatcher_disconnectNotify, "QDBusServiceWatcher.disconnectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQDBusServiceWatcher *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QDBusServiceWatcher, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusServiceWatcher, sipName_disconnectNotify, doc_QDBusServiceWatcher_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusServiceWatcher_senderSignalIndex, "QDBusServiceWatcher.senderSignalIndex() -> int");

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

    {
        const sipQDBusServiceWatcher *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QDBusServiceWatcher, &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_QDBusServiceWatcher, sipName_senderSignalIndex, doc_QDBusServiceWatcher_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusServiceWatcher_watchedServices, "QDBusServiceWatcher.watchedServices() -> list-of-str");

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

    {
        const QDBusServiceWatcher *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->watchedServices());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusServiceWatcher, sipName_watchedServices, doc_QDBusServiceWatcher_watchedServices);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusServiceWatcher_setWatchedServices, "QDBusServiceWatcher.setWatchedServices(list-of-str)");

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

    {
        const QStringList* a0;
        int a0State = 0;
        QDBusServiceWatcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusServiceWatcher, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setWatchedServices(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusServiceWatcher, sipName_setWatchedServices, doc_QDBusServiceWatcher_setWatchedServices);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusServiceWatcher_addWatchedService, "QDBusServiceWatcher.addWatchedService(str)");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusServiceWatcher, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addWatchedService(*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_QDBusServiceWatcher, sipName_addWatchedService, doc_QDBusServiceWatcher_addWatchedService);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusServiceWatcher_removeWatchedService, "QDBusServiceWatcher.removeWatchedService(str) -> bool");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusServiceWatcher, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->removeWatchedService(*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_QDBusServiceWatcher, sipName_removeWatchedService, doc_QDBusServiceWatcher_removeWatchedService);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusServiceWatcher_watchMode, "QDBusServiceWatcher.watchMode() -> QDBusServiceWatcher.WatchMode");

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

    {
        const QDBusServiceWatcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDBusServiceWatcher, &sipCpp))
        {
            QDBusServiceWatcher::WatchMode*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusServiceWatcher::WatchMode(sipCpp->watchMode());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusServiceWatcher, sipName_watchMode, doc_QDBusServiceWatcher_watchMode);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusServiceWatcher_setWatchMode, "QDBusServiceWatcher.setWatchMode(QDBusServiceWatcher.WatchMode)");

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

    {
        QDBusServiceWatcher::WatchMode* a0;
        int a0State = 0;
        QDBusServiceWatcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusServiceWatcher, &sipCpp, sipType_QDBusServiceWatcher_WatchMode, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setWatchMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDBusServiceWatcher_WatchMode,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusServiceWatcher, sipName_setWatchMode, doc_QDBusServiceWatcher_setWatchMode);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusServiceWatcher_connection, "QDBusServiceWatcher.connection() -> QDBusConnection");

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

    {
        const QDBusServiceWatcher *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection(sipCpp->connection());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusServiceWatcher, sipName_connection, doc_QDBusServiceWatcher_connection);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusServiceWatcher_setConnection, "QDBusServiceWatcher.setConnection(QDBusConnection)");

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

    {
        const QDBusConnection* a0;
        QDBusServiceWatcher *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusServiceWatcher, sipName_setConnection, doc_QDBusServiceWatcher_setConnection);

    return NULL;
}


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

    if (targetType == sipType_QDBusServiceWatcher)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QDBusServiceWatcher *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QDBusServiceWatcher(void *, int);}
static void release_QDBusServiceWatcher(void *sipCppV,int)
{
    QDBusServiceWatcher *sipCpp = reinterpret_cast<QDBusServiceWatcher *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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

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


extern "C" {static void *init_type_QDBusServiceWatcher(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QDBusServiceWatcher(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQDBusServiceWatcher *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 sipQDBusServiceWatcher(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QDBusConnection* a1;
        QDBusServiceWatcher::WatchMode a2def = QDBusServiceWatcher::WatchForOwnerChange;
        QDBusServiceWatcher::WatchMode* a2 = &a2def;
        int a2State = 0;
        QObject* a3 = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1J9|J1JH", sipType_QString,&a0, &a0State, sipType_QDBusConnection, &a1, sipType_QDBusServiceWatcher_WatchMode, &a2, &a2State, sipType_QObject, &a3, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQDBusServiceWatcher(*a0,*a1,*a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QDBusServiceWatcher_WatchMode,a2State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QDBusServiceWatcher[] = {{141, 0, 1}};


static PyMethodDef methods_QDBusServiceWatcher[] = {
    {SIP_MLNAME_CAST(sipName_addWatchedService), meth_QDBusServiceWatcher_addWatchedService, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusServiceWatcher_addWatchedService)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QDBusServiceWatcher_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QDBusServiceWatcher_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connection), meth_QDBusServiceWatcher_connection, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusServiceWatcher_connection)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QDBusServiceWatcher_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QDBusServiceWatcher_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QDBusServiceWatcher_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_removeWatchedService), meth_QDBusServiceWatcher_removeWatchedService, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusServiceWatcher_removeWatchedService)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QDBusServiceWatcher_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QDBusServiceWatcher_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setConnection), meth_QDBusServiceWatcher_setConnection, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusServiceWatcher_setConnection)},
    {SIP_MLNAME_CAST(sipName_setWatchMode), meth_QDBusServiceWatcher_setWatchMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusServiceWatcher_setWatchMode)},
    {SIP_MLNAME_CAST(sipName_setWatchedServices), meth_QDBusServiceWatcher_setWatchedServices, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusServiceWatcher_setWatchedServices)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QDBusServiceWatcher_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_watchMode), meth_QDBusServiceWatcher_watchMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusServiceWatcher_watchMode)},
    {SIP_MLNAME_CAST(sipName_watchedServices), meth_QDBusServiceWatcher_watchedServices, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusServiceWatcher_watchedServices)}
};

static sipEnumMemberDef enummembers_QDBusServiceWatcher[] = {
    {sipName_WatchForOwnerChange, static_cast<int>(QDBusServiceWatcher::WatchForOwnerChange), 32},
    {sipName_WatchForRegistration, static_cast<int>(QDBusServiceWatcher::WatchForRegistration), 32},
    {sipName_WatchForUnregistration, static_cast<int>(QDBusServiceWatcher::WatchForUnregistration), 32},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_QDBusServiceWatcher[] = {
    {"serviceOwnerChanged(QString,QString,QString)", "\1QDBusServiceWatcher.serviceOwnerChanged[str, str, str]", 0, 0},
    {"serviceUnregistered(QString)", "\1QDBusServiceWatcher.serviceUnregistered[str]", 0, 0},
    {"serviceRegistered(QString)", "\1QDBusServiceWatcher.serviceRegistered[str]", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QDBusServiceWatcher, "\1QDBusServiceWatcher(QObject parent=None)\n"
    "QDBusServiceWatcher(str, QDBusConnection, QDBusServiceWatcher.WatchMode watchMode=QDBusServiceWatcher.WatchForOwnerChange, QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusServiceWatcher = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QDBusServiceWatcher,
        {0}
    },
    {
        sipNameNr_QDBusServiceWatcher,
        {0, 0, 1},
        16, methods_QDBusServiceWatcher,
        3, enummembers_QDBusServiceWatcher,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusServiceWatcher,
    -1,
    -1,
    supers_QDBusServiceWatcher,
    0,
    init_type_QDBusServiceWatcher,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusServiceWatcher,
    0,
    0,
    0,
    release_QDBusServiceWatcher,
    cast_QDBusServiceWatcher,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QDBusServiceWatcher::staticMetaObject,
    0,
    signals_QDBusServiceWatcher,
};

#line 50 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuspendingcall.sip"
#include <qdbuspendingcall.h>
#line 4034 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuspendingcall.sip"
#include <qdbuspendingcall.h>
#line 4038 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4041 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4044 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 368 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4047 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 351 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4050 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 269 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4053 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4056 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4059 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4062 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 115 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4065 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4068 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4071 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4074 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4077 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusmessage.sip"
#include <qdbusmessage.h>
#line 4080 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuserror.sip"
#include <qdbuserror.h>
#line 4083 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


class sipQDBusPendingCallWatcher : public QDBusPendingCallWatcher
{
public:
    sipQDBusPendingCallWatcher(const QDBusPendingCall&,QObject*);
    virtual ~sipQDBusPendingCallWatcher();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const char*);
    void sipProtectVirt_disconnectNotify(bool,const char*);
    int sipProtect_senderSignalIndex() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

sipQDBusPendingCallWatcher::sipQDBusPendingCallWatcher(const QDBusPendingCall& a0,QObject*a1): QDBusPendingCallWatcher(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipQDBusPendingCallWatcher::metaObject() const
{
    return sip_QtDBus_qt_metaobject(sipPySelf,sipType_QDBusPendingCallWatcher);
}

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

    if (_id >= 0)
        _id = sip_QtDBus_qt_metacall(sipPySelf,sipType_QDBusPendingCallWatcher,_c,_id,_a);

    return _id;
}

void *sipQDBusPendingCallWatcher::qt_metacast(const char *_clname)
{
    return (sip_QtDBus_qt_metacast(sipPySelf, sipType_QDBusPendingCallWatcher, _clname)) ? this : QDBusPendingCallWatcher::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


PyDoc_STRVAR(doc_QDBusPendingCallWatcher_sender, "QDBusPendingCallWatcher.sender() -> QObject");

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

    {
        const sipQDBusPendingCallWatcher *sipCpp;

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

#line 638 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (helper)
            sipRes = helper(sipRes);
#line 4360 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

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

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

    return NULL;
}


PyDoc_STRVAR(doc_QDBusPendingCallWatcher_receivers, "QDBusPendingCallWatcher.receivers(SIGNAL()) -> int");

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

    {
        char* a0;
        const sipQDBusPendingCallWatcher *sipCpp;

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

#line 664 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        // PyQt5: Get rid of the const casts.
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(const_cast<QObject *>(sipCpp), a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 4405 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


PyDoc_STRVAR(doc_QDBusPendingCallWatcher_timerEvent, "QDBusPendingCallWatcher.timerEvent(QTimerEvent)");

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

    {
        QTimerEvent* a0;
        sipQDBusPendingCallWatcher *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDBusPendingCallWatcher, &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_QDBusPendingCallWatcher, sipName_timerEvent, doc_QDBusPendingCallWatcher_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusPendingCallWatcher_childEvent, "QDBusPendingCallWatcher.childEvent(QChildEvent)");

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

    {
        QChildEvent* a0;
        sipQDBusPendingCallWatcher *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDBusPendingCallWatcher, &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_QDBusPendingCallWatcher, sipName_childEvent, doc_QDBusPendingCallWatcher_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusPendingCallWatcher_customEvent, "QDBusPendingCallWatcher.customEvent(QEvent)");

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

    {
        QEvent* a0;
        sipQDBusPendingCallWatcher *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDBusPendingCallWatcher, &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_QDBusPendingCallWatcher, sipName_customEvent, doc_QDBusPendingCallWatcher_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusPendingCallWatcher_connectNotify, "QDBusPendingCallWatcher.connectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQDBusPendingCallWatcher *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QDBusPendingCallWatcher, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusPendingCallWatcher, sipName_connectNotify, doc_QDBusPendingCallWatcher_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusPendingCallWatcher_disconnectNotify, "QDBusPendingCallWatcher.disconnectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQDBusPendingCallWatcher *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QDBusPendingCallWatcher, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusPendingCallWatcher, sipName_disconnectNotify, doc_QDBusPendingCallWatcher_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusPendingCallWatcher_senderSignalIndex, "QDBusPendingCallWatcher.senderSignalIndex() -> int");

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

    {
        const sipQDBusPendingCallWatcher *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QDBusPendingCallWatcher, &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_QDBusPendingCallWatcher, sipName_senderSignalIndex, doc_QDBusPendingCallWatcher_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusPendingCallWatcher_isFinished, "QDBusPendingCallWatcher.isFinished() -> bool");

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

    {
        const QDBusPendingCallWatcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDBusPendingCallWatcher, &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_QDBusPendingCallWatcher, sipName_isFinished, doc_QDBusPendingCallWatcher_isFinished);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusPendingCallWatcher_waitForFinished, "QDBusPendingCallWatcher.waitForFinished()");

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

    {
        QDBusPendingCallWatcher *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusPendingCallWatcher, sipName_waitForFinished, doc_QDBusPendingCallWatcher_waitForFinished);

    return NULL;
}


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

    if (targetType == sipType_QDBusPendingCallWatcher)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QDBusPendingCallWatcher *)ptr,targetType)) != NULL)
        return res;

    if ((res = ((const sipClassTypeDef *)sipType_QDBusPendingCall)->ctd_cast((QDBusPendingCall *)(QDBusPendingCallWatcher *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QDBusPendingCallWatcher(void *, int);}
static void release_QDBusPendingCallWatcher(void *sipCppV,int)
{
    QDBusPendingCallWatcher *sipCpp = reinterpret_cast<QDBusPendingCallWatcher *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const QDBusPendingCall* a0;
        QObject* a1 = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|JH", sipType_QDBusPendingCall, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQDBusPendingCallWatcher(*a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QDBusPendingCallWatcher[] = {{141, 0, 0}, {22, 255, 1}};


static PyMethodDef methods_QDBusPendingCallWatcher[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QDBusPendingCallWatcher_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QDBusPendingCallWatcher_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QDBusPendingCallWatcher_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QDBusPendingCallWatcher_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isFinished), meth_QDBusPendingCallWatcher_isFinished, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusPendingCallWatcher_isFinished)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QDBusPendingCallWatcher_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QDBusPendingCallWatcher_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QDBusPendingCallWatcher_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QDBusPendingCallWatcher_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForFinished), meth_QDBusPendingCallWatcher_waitForFinished, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusPendingCallWatcher_waitForFinished)}
};


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

PyDoc_STRVAR(doc_QDBusPendingCallWatcher, "\1QDBusPendingCallWatcher(QDBusPendingCall, QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusPendingCallWatcher = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QDBusPendingCallWatcher,
        {0}
    },
    {
        sipNameNr_QDBusPendingCallWatcher,
        {0, 0, 1},
        10, methods_QDBusPendingCallWatcher,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusPendingCallWatcher,
    -1,
    -1,
    supers_QDBusPendingCallWatcher,
    0,
    init_type_QDBusPendingCallWatcher,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusPendingCallWatcher,
    0,
    0,
    0,
    release_QDBusPendingCallWatcher,
    cast_QDBusPendingCallWatcher,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QDBusPendingCallWatcher::staticMetaObject,
    0,
    signals_QDBusPendingCallWatcher,
};

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuspendingcall.sip"
#include <qdbuspendingcall.h>
#line 4816 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusmessage.sip"
#include <qdbusmessage.h>
#line 4820 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuserror.sip"
#include <qdbuserror.h>
#line 4823 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


PyDoc_STRVAR(doc_QDBusPendingCall_fromError, "QDBusPendingCall.fromError(QDBusError) -> QDBusPendingCall");

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

    {
        const QDBusError* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QDBusError, &a0))
        {
            QDBusPendingCall*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusPendingCall(QDBusPendingCall::fromError(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusPendingCall, sipName_fromError, doc_QDBusPendingCall_fromError);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusPendingCall_fromCompletedCall, "QDBusPendingCall.fromCompletedCall(QDBusMessage) -> QDBusPendingCall");

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

    {
        const QDBusMessage* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QDBusMessage, &a0))
        {
            QDBusPendingCall*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusPendingCall(QDBusPendingCall::fromCompletedCall(*a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusPendingCall, sipName_fromCompletedCall, doc_QDBusPendingCall_fromCompletedCall);

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<QDBusPendingCall *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

    {
        const QDBusPendingCall* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QDBusPendingCall[] = {
    {SIP_MLNAME_CAST(sipName_fromCompletedCall), meth_QDBusPendingCall_fromCompletedCall, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusPendingCall_fromCompletedCall)},
    {SIP_MLNAME_CAST(sipName_fromError), meth_QDBusPendingCall_fromError, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusPendingCall_fromError)}
};

PyDoc_STRVAR(doc_QDBusPendingCall, "\1QDBusPendingCall(QDBusPendingCall)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusPendingCall = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QDBusPendingCall,
        {0}
    },
    {
        sipNameNr_QDBusPendingCall,
        {0, 0, 1},
        2, methods_QDBusPendingCall,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusPendingCall,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QDBusPendingCall,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusPendingCall,
    0,
    0,
    0,
    release_QDBusPendingCall,
    cast_QDBusPendingCall,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusmessage.sip"
#include <qdbusmessage.h>
#line 5003 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 269 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5007 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5010 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5013 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5016 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuserror.sip"
#include <qdbuserror.h>
#line 5019 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


PyDoc_STRVAR(doc_QDBusMessage_createSignal, "QDBusMessage.createSignal(str, str, str) -> QDBusMessage");

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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
            QDBusMessage*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusMessage(QDBusMessage::createSignal(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_createSignal, doc_QDBusMessage_createSignal);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_createMethodCall, "QDBusMessage.createMethodCall(str, str, str, str) -> QDBusMessage");

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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State))
        {
            QDBusMessage*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusMessage(QDBusMessage::createMethodCall(*a0,*a1,*a2,*a3));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_createMethodCall, doc_QDBusMessage_createMethodCall);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_createError, "QDBusMessage.createError(str, str) -> QDBusMessage\n"
    "QDBusMessage.createError(QDBusError) -> QDBusMessage\n"
    "QDBusMessage.createError(QDBusError.ErrorType, str) -> QDBusMessage");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            QDBusMessage*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusMessage(QDBusMessage::createError(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    {
        const QDBusError* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QDBusError, &a0))
        {
            QDBusMessage*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusMessage(QDBusMessage::createError(*a0));
            Py_END_ALLOW_THREADS

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

    {
        QDBusError::ErrorType a0;
        const QString* a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "EJ1", sipType_QDBusError_ErrorType, &a0, sipType_QString,&a1, &a1State))
        {
            QDBusMessage*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusMessage(QDBusMessage::createError(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_createError, doc_QDBusMessage_createError);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_createReply, "QDBusMessage.createReply(list-of-QVariant arguments=QList&lt;QVariant&gt;()) -> QDBusMessage\n"
    "QDBusMessage.createReply(object) -> QDBusMessage");

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

    {
        const QList<QVariant>& a0def = QList<QVariant>();
        const QList<QVariant>* a0 = &a0def;
        int a0State = 0;
        const QDBusMessage *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1", &sipSelf, sipType_QDBusMessage, &sipCpp, sipType_QList_0100QVariant,&a0, &a0State))
        {
            QDBusMessage*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusMessage(sipCpp->createReply(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QVariant> *>(a0),sipType_QList_0100QVariant,a0State);

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

    {
        const QVariant* a0;
        int a0State = 0;
        const QDBusMessage *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QDBusMessage, &sipCpp, sipType_QVariant,&a0, &a0State))
        {
            QDBusMessage*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusMessage(sipCpp->createReply(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_createReply, doc_QDBusMessage_createReply);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_createErrorReply, "QDBusMessage.createErrorReply(str, str) -> QDBusMessage\n"
    "QDBusMessage.createErrorReply(QDBusError) -> QDBusMessage\n"
    "QDBusMessage.createErrorReply(QDBusError.ErrorType, str) -> QDBusMessage");

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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QDBusMessage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QDBusMessage, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            QDBusMessage*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusMessage(sipCpp->createErrorReply(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    {
        const QDBusError* a0;
        const QDBusMessage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QDBusMessage, &sipCpp, sipType_QDBusError, &a0))
        {
            QDBusMessage*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusMessage(sipCpp->createErrorReply(*a0));
            Py_END_ALLOW_THREADS

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

    {
        QDBusError::ErrorType a0;
        const QString* a1;
        int a1State = 0;
        const QDBusMessage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_QDBusMessage, &sipCpp, sipType_QDBusError_ErrorType, &a0, sipType_QString,&a1, &a1State))
        {
            QDBusMessage*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusMessage(sipCpp->createErrorReply(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_createErrorReply, doc_QDBusMessage_createErrorReply);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_service, "QDBusMessage.service() -> str");

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

    {
        const QDBusMessage *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_service, doc_QDBusMessage_service);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_path, "QDBusMessage.path() -> str");

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

    {
        const QDBusMessage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDBusMessage, &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_QDBusMessage, sipName_path, doc_QDBusMessage_path);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_interface, "QDBusMessage.interface() -> str");

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

    {
        const QDBusMessage *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_interface, doc_QDBusMessage_interface);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_member, "QDBusMessage.member() -> str");

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

    {
        const QDBusMessage *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_member, doc_QDBusMessage_member);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_errorName, "QDBusMessage.errorName() -> str");

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

    {
        const QDBusMessage *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_errorName, doc_QDBusMessage_errorName);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_errorMessage, "QDBusMessage.errorMessage() -> str");

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

    {
        const QDBusMessage *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_errorMessage, doc_QDBusMessage_errorMessage);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_type, "QDBusMessage.type() -> QDBusMessage.MessageType");

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

    {
        const QDBusMessage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDBusMessage, &sipCpp))
        {
            QDBusMessage::MessageType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QDBusMessage_MessageType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_type, doc_QDBusMessage_type);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_signature, "QDBusMessage.signature() -> str");

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

    {
        const QDBusMessage *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_signature, doc_QDBusMessage_signature);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_isReplyRequired, "QDBusMessage.isReplyRequired() -> bool");

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

    {
        const QDBusMessage *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isReplyRequired();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_isReplyRequired, doc_QDBusMessage_isReplyRequired);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_setDelayedReply, "QDBusMessage.setDelayedReply(bool)");

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

    {
        bool a0;
        const QDBusMessage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QDBusMessage, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDelayedReply(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_setDelayedReply, doc_QDBusMessage_setDelayedReply);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_isDelayedReply, "QDBusMessage.isDelayedReply() -> bool");

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

    {
        const QDBusMessage *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDelayedReply();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_isDelayedReply, doc_QDBusMessage_isDelayedReply);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_setAutoStartService, "QDBusMessage.setAutoStartService(bool)");

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

    {
        bool a0;
        QDBusMessage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QDBusMessage, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAutoStartService(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_setAutoStartService, doc_QDBusMessage_setAutoStartService);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_autoStartService, "QDBusMessage.autoStartService() -> bool");

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

    {
        const QDBusMessage *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->autoStartService();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_autoStartService, doc_QDBusMessage_autoStartService);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_setArguments, "QDBusMessage.setArguments(list-of-QVariant)");

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

    {
        const QList<QVariant>* a0;
        int a0State = 0;
        QDBusMessage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusMessage, &sipCpp, sipType_QList_0100QVariant,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setArguments(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QVariant> *>(a0),sipType_QList_0100QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_setArguments, doc_QDBusMessage_setArguments);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusMessage_arguments, "QDBusMessage.arguments() -> list-of-QVariant");

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

    {
        const QDBusMessage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDBusMessage, &sipCpp))
        {
            QList<QVariant>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QVariant>(sipCpp->arguments());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusMessage, sipName_arguments, doc_QDBusMessage_arguments);

    return NULL;
}


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

    {
        QDBusMessage* a0;
        const QVariant* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J1", sipType_QDBusMessage, &a0, sipType_QVariant,&a1, &a1State))
        {
            QDBusMessage*sipRes;

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

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,lshift_slot,NULL,sipArg0,sipArg1);
}


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

    return NULL;
}


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

    delete reinterpret_cast<QDBusMessage *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const QDBusMessage* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QDBusMessage[] = {
    {(void *)slot_QDBusMessage___lshift__, lshift_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QDBusMessage[] = {
    {SIP_MLNAME_CAST(sipName_arguments), meth_QDBusMessage_arguments, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_arguments)},
    {SIP_MLNAME_CAST(sipName_autoStartService), meth_QDBusMessage_autoStartService, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_autoStartService)},
    {SIP_MLNAME_CAST(sipName_createError), meth_QDBusMessage_createError, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_createError)},
    {SIP_MLNAME_CAST(sipName_createErrorReply), meth_QDBusMessage_createErrorReply, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_createErrorReply)},
    {SIP_MLNAME_CAST(sipName_createMethodCall), meth_QDBusMessage_createMethodCall, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_createMethodCall)},
    {SIP_MLNAME_CAST(sipName_createReply), (PyCFunction)meth_QDBusMessage_createReply, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDBusMessage_createReply)},
    {SIP_MLNAME_CAST(sipName_createSignal), meth_QDBusMessage_createSignal, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_createSignal)},
    {SIP_MLNAME_CAST(sipName_errorMessage), meth_QDBusMessage_errorMessage, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_errorMessage)},
    {SIP_MLNAME_CAST(sipName_errorName), meth_QDBusMessage_errorName, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_errorName)},
    {SIP_MLNAME_CAST(sipName_interface), meth_QDBusMessage_interface, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_interface)},
    {SIP_MLNAME_CAST(sipName_isDelayedReply), meth_QDBusMessage_isDelayedReply, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_isDelayedReply)},
    {SIP_MLNAME_CAST(sipName_isReplyRequired), meth_QDBusMessage_isReplyRequired, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_isReplyRequired)},
    {SIP_MLNAME_CAST(sipName_member), meth_QDBusMessage_member, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_member)},
    {SIP_MLNAME_CAST(sipName_path), meth_QDBusMessage_path, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_path)},
    {SIP_MLNAME_CAST(sipName_service), meth_QDBusMessage_service, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_service)},
    {SIP_MLNAME_CAST(sipName_setArguments), meth_QDBusMessage_setArguments, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_setArguments)},
    {SIP_MLNAME_CAST(sipName_setAutoStartService), meth_QDBusMessage_setAutoStartService, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_setAutoStartService)},
    {SIP_MLNAME_CAST(sipName_setDelayedReply), meth_QDBusMessage_setDelayedReply, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_setDelayedReply)},
    {SIP_MLNAME_CAST(sipName_signature), meth_QDBusMessage_signature, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_signature)},
    {SIP_MLNAME_CAST(sipName_type), meth_QDBusMessage_type, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusMessage_type)}
};

static sipEnumMemberDef enummembers_QDBusMessage[] = {
    {sipName_ErrorMessage, static_cast<int>(QDBusMessage::ErrorMessage), 20},
    {sipName_InvalidMessage, static_cast<int>(QDBusMessage::InvalidMessage), 20},
    {sipName_MethodCallMessage, static_cast<int>(QDBusMessage::MethodCallMessage), 20},
    {sipName_ReplyMessage, static_cast<int>(QDBusMessage::ReplyMessage), 20},
    {sipName_SignalMessage, static_cast<int>(QDBusMessage::SignalMessage), 20},
};

PyDoc_STRVAR(doc_QDBusMessage, "\1QDBusMessage()\n"
    "QDBusMessage(QDBusMessage)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusMessage = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QDBusMessage,
        {0}
    },
    {
        sipNameNr_QDBusMessage,
        {0, 0, 1},
        20, methods_QDBusMessage,
        5, enummembers_QDBusMessage,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusMessage,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QDBusMessage,
    init_type_QDBusMessage,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusMessage,
    assign_QDBusMessage,
    array_QDBusMessage,
    copy_QDBusMessage,
    release_QDBusMessage,
    cast_QDBusMessage,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusinterface.sip"
#include <qdbusinterface.h>
#line 5950 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5954 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 52 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 5957 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5960 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuspendingcall.sip"
#include <qdbuspendingcall.h>
#line 5963 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5966 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5969 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 269 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5972 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusmessage.sip"
#include <qdbusmessage.h>
#line 5975 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 5978 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuserror.sip"
#include <qdbuserror.h>
#line 5981 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5984 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 368 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5987 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 351 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5990 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5993 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5996 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5999 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 115 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6002 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 6005 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6008 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6011 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


class sipQDBusInterface : public QDBusInterface
{
public:
    sipQDBusInterface(const QString&,const QString&,const QString&,const QDBusConnection&,QObject*);
    virtual ~sipQDBusInterface();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    int sipProtect_senderSignalIndex() const;
    void sipProtectVirt_connectNotify(bool,const char*);
    void sipProtectVirt_disconnectNotify(bool,const char*);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void disconnectNotify(const char*);
    void connectNotify(const char*);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

sipQDBusInterface::sipQDBusInterface(const QString& a0,const QString& a1,const QString& a2,const QDBusConnection& a3,QObject*a4): QDBusInterface(a0,a1,a2,a3,a4), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipQDBusInterface::metaObject() const
{
    return sip_QtDBus_qt_metaobject(sipPySelf,sipType_QDBusInterface);
}

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

    if (_id >= 0)
        _id = sip_QtDBus_qt_metacall(sipPySelf,sipType_QDBusInterface,_c,_id,_a);

    return _id;
}

void *sipQDBusInterface::qt_metacast(const char *_clname)
{
    return (sip_QtDBus_qt_metacast(sipPySelf, sipType_QDBusInterface, _clname)) ? this : QDBusInterface::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


PyDoc_STRVAR(doc_QDBusInterface_sender, "QDBusInterface.sender() -> QObject");

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

    {
        const sipQDBusInterface *sipCpp;

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

#line 638 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (helper)
            sipRes = helper(sipRes);
#line 6288 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

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

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

    return NULL;
}


PyDoc_STRVAR(doc_QDBusInterface_receivers, "QDBusInterface.receivers(SIGNAL()) -> int");

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

    {
        char* a0;
        const sipQDBusInterface *sipCpp;

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

#line 664 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        // PyQt5: Get rid of the const casts.
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(const_cast<QObject *>(sipCpp), a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 6333 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


PyDoc_STRVAR(doc_QDBusInterface_timerEvent, "QDBusInterface.timerEvent(QTimerEvent)");

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

    {
        QTimerEvent* a0;
        sipQDBusInterface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDBusInterface, &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_QDBusInterface, sipName_timerEvent, doc_QDBusInterface_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusInterface_childEvent, "QDBusInterface.childEvent(QChildEvent)");

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

    {
        QChildEvent* a0;
        sipQDBusInterface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDBusInterface, &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_QDBusInterface, sipName_childEvent, doc_QDBusInterface_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusInterface_customEvent, "QDBusInterface.customEvent(QEvent)");

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

    {
        QEvent* a0;
        sipQDBusInterface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDBusInterface, &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_QDBusInterface, sipName_customEvent, doc_QDBusInterface_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusInterface_senderSignalIndex, "QDBusInterface.senderSignalIndex() -> int");

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

    {
        const sipQDBusInterface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QDBusInterface, &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_QDBusInterface, sipName_senderSignalIndex, doc_QDBusInterface_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusInterface_connectNotify, "QDBusInterface.connectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQDBusInterface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QDBusInterface, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusInterface, sipName_connectNotify, doc_QDBusInterface_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusInterface_disconnectNotify, "QDBusInterface.disconnectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQDBusInterface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QDBusInterface, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusInterface, sipName_disconnectNotify, doc_QDBusInterface_disconnectNotify);

    return NULL;
}


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

    if (targetType == sipType_QDBusInterface)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QDBusAbstractInterface)->ctd_cast((QDBusAbstractInterface *)(QDBusInterface *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QDBusInterface(void *, int);}
static void release_QDBusInterface(void *sipCppV,int)
{
    QDBusInterface *sipCpp = reinterpret_cast<QDBusInterface *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString& a2def = QString();
        const QString* a2 = &a2def;
        int a2State = 0;
        const QDBusConnection& a3def = QDBusConnection::sessionBus();
        const QDBusConnection* a3 = &a3def;
        QObject* a4 = 0;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_interface,
            sipName_connection,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1J1|J1J9J8", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QDBusConnection, &a3, sipType_QObject, &a4))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQDBusInterface(*a0,*a1,*a2,*a3,a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QDBusInterface[] = {{3, 255, 1}};


static PyMethodDef methods_QDBusInterface[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QDBusInterface_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QDBusInterface_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QDBusInterface_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QDBusInterface_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QDBusInterface_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QDBusInterface_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QDBusInterface_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QDBusInterface_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

PyDoc_STRVAR(doc_QDBusInterface, "\1QDBusInterface(str, str, str interface=QString(), QDBusConnection connection=QDBusConnection.sessionBus(), QObject parent=None)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QDBusInterface,
        {0}
    },
    {
        sipNameNr_QDBusInterface,
        {0, 0, 1},
        8, methods_QDBusInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusInterface,
    -1,
    -1,
    supers_QDBusInterface,
    0,
    init_type_QDBusInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusInterface,
    0,
    0,
    0,
    release_QDBusInterface,
    cast_QDBusInterface,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QDBusInterface::staticMetaObject,
    0,
    0
};

#line 156 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusextratypes.sip"
#include <qdbusextratypes.h>
#line 6689 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 269 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6693 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


PyDoc_STRVAR(doc_QDBusVariant_variant, "QDBusVariant.variant() -> object");

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

    {
        const QDBusVariant *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusVariant, sipName_variant, doc_QDBusVariant_variant);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusVariant_setVariant, "QDBusVariant.setVariant(object)");

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

    {
        const QVariant* a0;
        int a0State = 0;
        QDBusVariant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusVariant, &sipCpp, sipType_QVariant,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setVariant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusVariant, sipName_setVariant, doc_QDBusVariant_setVariant);

    return NULL;
}


extern "C" {static PyObject *slot_QDBusVariant___ne__(PyObject *,PyObject *);}
static PyObject *slot_QDBusVariant___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusVariant *sipCpp = reinterpret_cast<QDBusVariant *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusVariant));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusVariant* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = !operator==((*sipCpp), *a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,ne_slot,sipType_QDBusVariant,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QDBusVariant___eq__(PyObject *,PyObject *);}
static PyObject *slot_QDBusVariant___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusVariant *sipCpp = reinterpret_cast<QDBusVariant *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusVariant));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusVariant* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = operator==((*sipCpp), *a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,eq_slot,sipType_QDBusVariant,sipSelf,sipArg);
}


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

    return NULL;
}


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

    delete reinterpret_cast<QDBusVariant *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QDBusVariant* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_QDBusVariant[] = {
    {SIP_MLNAME_CAST(sipName_setVariant), meth_QDBusVariant_setVariant, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusVariant_setVariant)},
    {SIP_MLNAME_CAST(sipName_variant), meth_QDBusVariant_variant, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusVariant_variant)}
};

PyDoc_STRVAR(doc_QDBusVariant, "\1QDBusVariant()\n"
    "QDBusVariant(object)\n"
    "QDBusVariant(QDBusVariant)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusVariant = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QDBusVariant,
        {0}
    },
    {
        sipNameNr_QDBusVariant,
        {0, 0, 1},
        2, methods_QDBusVariant,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusVariant,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QDBusVariant,
    init_type_QDBusVariant,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusVariant,
    assign_QDBusVariant,
    array_QDBusVariant,
    copy_QDBusVariant,
    release_QDBusVariant,
    cast_QDBusVariant,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 107 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusextratypes.sip"
#include <qdbusextratypes.h>
#line 7000 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7004 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 111 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusextratypes.sip"
#include <QHash>
#line 7007 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


PyDoc_STRVAR(doc_QDBusSignature_signature, "QDBusSignature.signature() -> str");

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

    {
        const QDBusSignature *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusSignature, sipName_signature, doc_QDBusSignature_signature);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusSignature_setSignature, "QDBusSignature.setSignature(str)");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusSignature, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSignature(*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_QDBusSignature, sipName_setSignature, doc_QDBusSignature_setSignature);

    return NULL;
}


extern "C" {static PyObject *slot_QDBusSignature___ge__(PyObject *,PyObject *);}
static PyObject *slot_QDBusSignature___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusSignature *sipCpp = reinterpret_cast<QDBusSignature *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusSignature));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusSignature* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = !operator<((*sipCpp), *a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,ge_slot,sipType_QDBusSignature,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QDBusSignature___eq__(PyObject *,PyObject *);}
static PyObject *slot_QDBusSignature___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusSignature *sipCpp = reinterpret_cast<QDBusSignature *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusSignature));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusSignature* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = operator==((*sipCpp), *a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,eq_slot,sipType_QDBusSignature,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QDBusSignature___ne__(PyObject *,PyObject *);}
static PyObject *slot_QDBusSignature___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusSignature *sipCpp = reinterpret_cast<QDBusSignature *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusSignature));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusSignature* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = operator!=((*sipCpp), *a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,ne_slot,sipType_QDBusSignature,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QDBusSignature___lt__(PyObject *,PyObject *);}
static PyObject *slot_QDBusSignature___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusSignature *sipCpp = reinterpret_cast<QDBusSignature *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusSignature));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusSignature* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = operator<((*sipCpp), *a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,lt_slot,sipType_QDBusSignature,sipSelf,sipArg);
}


extern "C" {static long slot_QDBusSignature___hash__(PyObject *);}
static long slot_QDBusSignature___hash__(PyObject *sipSelf)
{
    QDBusSignature *sipCpp = reinterpret_cast<QDBusSignature *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusSignature));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 121 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusextratypes.sip"
        sipRes = qHash(*sipCpp);
#line 7221 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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

    return NULL;
}


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

    delete reinterpret_cast<QDBusSignature *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QDBusSignature();
            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 QDBusSignature(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const QDBusSignature* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QDBusSignature[] = {
    {(void *)slot_QDBusSignature___ge__, ge_slot},
    {(void *)slot_QDBusSignature___eq__, eq_slot},
    {(void *)slot_QDBusSignature___ne__, ne_slot},
    {(void *)slot_QDBusSignature___lt__, lt_slot},
    {(void *)slot_QDBusSignature___hash__, hash_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QDBusSignature[] = {
    {SIP_MLNAME_CAST(sipName_setSignature), meth_QDBusSignature_setSignature, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusSignature_setSignature)},
    {SIP_MLNAME_CAST(sipName_signature), meth_QDBusSignature_signature, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusSignature_signature)}
};

PyDoc_STRVAR(doc_QDBusSignature, "\1QDBusSignature()\n"
    "QDBusSignature(str)\n"
    "QDBusSignature(QDBusSignature)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusSignature = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QDBusSignature,
        {0}
    },
    {
        sipNameNr_QDBusSignature,
        {0, 0, 1},
        2, methods_QDBusSignature,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusSignature,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QDBusSignature,
    init_type_QDBusSignature,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusSignature,
    assign_QDBusSignature,
    array_QDBusSignature,
    copy_QDBusSignature,
    release_QDBusSignature,
    cast_QDBusSignature,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 54 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusextratypes.sip"
#include <qdbusextratypes.h>
#line 7410 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7414 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 58 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusextratypes.sip"
#include <QHash>
#line 7417 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


PyDoc_STRVAR(doc_QDBusObjectPath_path, "QDBusObjectPath.path() -> str");

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

    {
        const QDBusObjectPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDBusObjectPath, &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_QDBusObjectPath, sipName_path, doc_QDBusObjectPath_path);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusObjectPath_setPath, "QDBusObjectPath.setPath(str)");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusObjectPath, &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_QDBusObjectPath, sipName_setPath, doc_QDBusObjectPath_setPath);

    return NULL;
}


extern "C" {static PyObject *slot_QDBusObjectPath___ge__(PyObject *,PyObject *);}
static PyObject *slot_QDBusObjectPath___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusObjectPath *sipCpp = reinterpret_cast<QDBusObjectPath *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusObjectPath));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusObjectPath* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = !operator<((*sipCpp), *a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,ge_slot,sipType_QDBusObjectPath,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QDBusObjectPath___eq__(PyObject *,PyObject *);}
static PyObject *slot_QDBusObjectPath___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusObjectPath *sipCpp = reinterpret_cast<QDBusObjectPath *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusObjectPath));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusObjectPath* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = operator==((*sipCpp), *a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,eq_slot,sipType_QDBusObjectPath,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QDBusObjectPath___ne__(PyObject *,PyObject *);}
static PyObject *slot_QDBusObjectPath___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusObjectPath *sipCpp = reinterpret_cast<QDBusObjectPath *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusObjectPath));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusObjectPath* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = operator!=((*sipCpp), *a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,ne_slot,sipType_QDBusObjectPath,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QDBusObjectPath___lt__(PyObject *,PyObject *);}
static PyObject *slot_QDBusObjectPath___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusObjectPath *sipCpp = reinterpret_cast<QDBusObjectPath *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusObjectPath));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusObjectPath* a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = operator<((*sipCpp), *a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,lt_slot,sipType_QDBusObjectPath,sipSelf,sipArg);
}


extern "C" {static long slot_QDBusObjectPath___hash__(PyObject *);}
static long slot_QDBusObjectPath___hash__(PyObject *sipSelf)
{
    QDBusObjectPath *sipCpp = reinterpret_cast<QDBusObjectPath *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusObjectPath));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 68 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusextratypes.sip"
        sipRes = qHash(*sipCpp);
#line 7631 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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

    return NULL;
}


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

    delete reinterpret_cast<QDBusObjectPath *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new QDBusObjectPath();
            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 QDBusObjectPath(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const QDBusObjectPath* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QDBusObjectPath[] = {
    {(void *)slot_QDBusObjectPath___ge__, ge_slot},
    {(void *)slot_QDBusObjectPath___eq__, eq_slot},
    {(void *)slot_QDBusObjectPath___ne__, ne_slot},
    {(void *)slot_QDBusObjectPath___lt__, lt_slot},
    {(void *)slot_QDBusObjectPath___hash__, hash_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QDBusObjectPath[] = {
    {SIP_MLNAME_CAST(sipName_path), meth_QDBusObjectPath_path, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusObjectPath_path)},
    {SIP_MLNAME_CAST(sipName_setPath), meth_QDBusObjectPath_setPath, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusObjectPath_setPath)}
};

PyDoc_STRVAR(doc_QDBusObjectPath, "\1QDBusObjectPath()\n"
    "QDBusObjectPath(str)\n"
    "QDBusObjectPath(QDBusObjectPath)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusObjectPath = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QDBusObjectPath,
        {0}
    },
    {
        sipNameNr_QDBusObjectPath,
        {0, 0, 1},
        2, methods_QDBusObjectPath,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusObjectPath,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QDBusObjectPath,
    init_type_QDBusObjectPath,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusObjectPath,
    assign_QDBusObjectPath,
    array_QDBusObjectPath,
    copy_QDBusObjectPath,
    release_QDBusObjectPath,
    cast_QDBusObjectPath,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuserror.sip"
#include <qdbuserror.h>
#line 7820 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7824 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


PyDoc_STRVAR(doc_QDBusError_type, "QDBusError.type() -> QDBusError.ErrorType");

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

    {
        const QDBusError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDBusError, &sipCpp))
        {
            QDBusError::ErrorType sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QDBusError_ErrorType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusError, sipName_type, doc_QDBusError_type);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusError_name, "QDBusError.name() -> str");

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

    {
        const QDBusError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDBusError, &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_QDBusError, sipName_name, doc_QDBusError_name);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusError_message, "QDBusError.message() -> str");

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

    {
        const QDBusError *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusError, sipName_message, doc_QDBusError_message);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusError_isValid, "QDBusError.isValid() -> bool");

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

    {
        const QDBusError *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDBusError, &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_QDBusError, sipName_isValid, doc_QDBusError_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusError_errorString, "QDBusError.errorString(QDBusError.ErrorType) -> str");

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

    {
        QDBusError::ErrorType a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QDBusError_ErrorType, &a0))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(QDBusError::errorString(a0));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusError, sipName_errorString, doc_QDBusError_errorString);

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<QDBusError *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

    {
        const QDBusError* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QDBusError[] = {
    {SIP_MLNAME_CAST(sipName_errorString), meth_QDBusError_errorString, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusError_errorString)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QDBusError_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusError_isValid)},
    {SIP_MLNAME_CAST(sipName_message), meth_QDBusError_message, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusError_message)},
    {SIP_MLNAME_CAST(sipName_name), meth_QDBusError_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusError_name)},
    {SIP_MLNAME_CAST(sipName_type), meth_QDBusError_type, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusError_type)}
};

static sipEnumMemberDef enummembers_QDBusError[] = {
    {sipName_AccessDenied, static_cast<int>(QDBusError::AccessDenied), 17},
    {sipName_AddressInUse, static_cast<int>(QDBusError::AddressInUse), 17},
    {sipName_BadAddress, static_cast<int>(QDBusError::BadAddress), 17},
    {sipName_Disconnected, static_cast<int>(QDBusError::Disconnected), 17},
    {sipName_Failed, static_cast<int>(QDBusError::Failed), 17},
    {sipName_InternalError, static_cast<int>(QDBusError::InternalError), 17},
    {sipName_InvalidArgs, static_cast<int>(QDBusError::InvalidArgs), 17},
    {sipName_InvalidInterface, static_cast<int>(QDBusError::InvalidInterface), 17},
    {sipName_InvalidMember, static_cast<int>(QDBusError::InvalidMember), 17},
    {sipName_InvalidObjectPath, static_cast<int>(QDBusError::InvalidObjectPath), 17},
    {sipName_InvalidService, static_cast<int>(QDBusError::InvalidService), 17},
    {sipName_InvalidSignature, static_cast<int>(QDBusError::InvalidSignature), 17},
    {sipName_LimitsExceeded, static_cast<int>(QDBusError::LimitsExceeded), 17},
    {sipName_NoError, static_cast<int>(QDBusError::NoError), 17},
    {sipName_NoMemory, static_cast<int>(QDBusError::NoMemory), 17},
    {sipName_NoNetwork, static_cast<int>(QDBusError::NoNetwork), 17},
    {sipName_NoReply, static_cast<int>(QDBusError::NoReply), 17},
    {sipName_NoServer, static_cast<int>(QDBusError::NoServer), 17},
    {sipName_NotSupported, static_cast<int>(QDBusError::NotSupported), 17},
    {sipName_Other, static_cast<int>(QDBusError::Other), 17},
    {sipName_ServiceUnknown, static_cast<int>(QDBusError::ServiceUnknown), 17},
    {sipName_TimedOut, static_cast<int>(QDBusError::TimedOut), 17},
    {sipName_Timeout, static_cast<int>(QDBusError::Timeout), 17},
    {sipName_UnknownInterface, static_cast<int>(QDBusError::UnknownInterface), 17},
    {sipName_UnknownMethod, static_cast<int>(QDBusError::UnknownMethod), 17},
    {sipName_UnknownObject, static_cast<int>(QDBusError::UnknownObject), 17},
};

PyDoc_STRVAR(doc_QDBusError, "\1QDBusError(QDBusError)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusError = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QDBusError,
        {0}
    },
    {
        sipNameNr_QDBusError,
        {0, 0, 1},
        5, methods_QDBusError,
        26, enummembers_QDBusError,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusError,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QDBusError,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusError,
    0,
    0,
    0,
    release_QDBusError,
    cast_QDBusError,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnectioninterface.sip"
#include <qdbusconnectioninterface.h>
#line 8123 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 52 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 8127 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 8130 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuserror.sip"
#include <qdbuserror.h>
#line 8133 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusmessage.sip"
#include <qdbusmessage.h>
#line 8136 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8139 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 93 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
#include <qdbusreply.h>
#include <qpydbusreply.h>
#line 8143 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 164 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
#include <qdbusreply.h>
#include <qpydbusreply.h>
#line 8147 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 205 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
#include <qdbusreply.h>
#include <qpydbusreply.h>
#line 8151 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 123 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
#include <qdbusreply.h>
#include <qpydbusreply.h>
#line 8155 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 46 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
#include <qdbusreply.h>
#include <qpydbusreply.h>
#line 8159 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 72 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8162 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 46 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qpydbusreply.sip"
#include <qdbusreply.h>
#include <qpydbusreply.h>
#line 8166 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 51 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8169 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8172 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuspendingcall.sip"
#include <qdbuspendingcall.h>
#line 8175 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8178 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8181 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 269 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 8184 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 8187 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8190 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 368 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8193 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 351 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 8196 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8199 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 8202 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 8205 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 115 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8208 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 8211 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 8214 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 8217 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


PyDoc_STRVAR(doc_QDBusConnectionInterface_registeredServiceNames, "QDBusConnectionInterface.registeredServiceNames() -> QDBusReply");

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

    {
        const QDBusConnectionInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDBusConnectionInterface, &sipCpp))
        {
            QDBusReply<QStringList>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusReply<QStringList>(sipCpp->registeredServiceNames());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnectionInterface, sipName_registeredServiceNames, doc_QDBusConnectionInterface_registeredServiceNames);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnectionInterface_isServiceRegistered, "QDBusConnectionInterface.isServiceRegistered(str) -> QDBusReply");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusConnectionInterface, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QDBusReply<bool>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusReply<bool>(sipCpp->isServiceRegistered(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnectionInterface, sipName_isServiceRegistered, doc_QDBusConnectionInterface_isServiceRegistered);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnectionInterface_serviceOwner, "QDBusConnectionInterface.serviceOwner(str) -> QDBusReply");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusConnectionInterface, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QDBusReply<QString>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusReply<QString>(sipCpp->serviceOwner(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnectionInterface, sipName_serviceOwner, doc_QDBusConnectionInterface_serviceOwner);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnectionInterface_unregisterService, "QDBusConnectionInterface.unregisterService(str) -> QDBusReply");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusConnectionInterface, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QDBusReply<bool>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusReply<bool>(sipCpp->unregisterService(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnectionInterface, sipName_unregisterService, doc_QDBusConnectionInterface_unregisterService);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnectionInterface_registerService, "QDBusConnectionInterface.registerService(str, QDBusConnectionInterface.ServiceQueueOptions qoption=QDBusConnectionInterface.DontQueueService, QDBusConnectionInterface.ServiceReplacementOptions roption=QDBusConnectionInterface.DontAllowReplacement) -> QDBusReply");

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

    {
        const QString* a0;
        int a0State = 0;
        QDBusConnectionInterface::ServiceQueueOptions a1 = QDBusConnectionInterface::DontQueueService;
        QDBusConnectionInterface::ServiceReplacementOptions a2 = QDBusConnectionInterface::DontAllowReplacement;
        QDBusConnectionInterface *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|EE", &sipSelf, sipType_QDBusConnectionInterface, &sipCpp, sipType_QString,&a0, &a0State, sipType_QDBusConnectionInterface_ServiceQueueOptions, &a1, sipType_QDBusConnectionInterface_ServiceReplacementOptions, &a2))
        {
            QDBusReply<QDBusConnectionInterface::RegisterServiceReply>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusReply<QDBusConnectionInterface::RegisterServiceReply>(sipCpp->registerService(*a0,a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnectionInterface, sipName_registerService, doc_QDBusConnectionInterface_registerService);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnectionInterface_servicePid, "QDBusConnectionInterface.servicePid(str) -> QDBusReply");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusConnectionInterface, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QDBusReply<uint>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusReply<uint>(sipCpp->servicePid(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnectionInterface, sipName_servicePid, doc_QDBusConnectionInterface_servicePid);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnectionInterface_serviceUid, "QDBusConnectionInterface.serviceUid(str) -> QDBusReply");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusConnectionInterface, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QDBusReply<uint>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusReply<uint>(sipCpp->serviceUid(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnectionInterface, sipName_serviceUid, doc_QDBusConnectionInterface_serviceUid);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnectionInterface_startService, "QDBusConnectionInterface.startService(str) -> QDBusReply");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusConnectionInterface, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QDBusReply<void>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusReply<void>(sipCpp->startService(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnectionInterface, sipName_startService, doc_QDBusConnectionInterface_startService);

    return NULL;
}


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

    if (targetType == sipType_QDBusConnectionInterface)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QDBusAbstractInterface)->ctd_cast((QDBusAbstractInterface *)(QDBusConnectionInterface *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QDBusConnectionInterface[] = {{3, 255, 1}};


static PyMethodDef methods_QDBusConnectionInterface[] = {
    {SIP_MLNAME_CAST(sipName_isServiceRegistered), meth_QDBusConnectionInterface_isServiceRegistered, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnectionInterface_isServiceRegistered)},
    {SIP_MLNAME_CAST(sipName_registerService), (PyCFunction)meth_QDBusConnectionInterface_registerService, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDBusConnectionInterface_registerService)},
    {SIP_MLNAME_CAST(sipName_registeredServiceNames), meth_QDBusConnectionInterface_registeredServiceNames, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnectionInterface_registeredServiceNames)},
    {SIP_MLNAME_CAST(sipName_serviceOwner), meth_QDBusConnectionInterface_serviceOwner, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnectionInterface_serviceOwner)},
    {SIP_MLNAME_CAST(sipName_servicePid), meth_QDBusConnectionInterface_servicePid, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnectionInterface_servicePid)},
    {SIP_MLNAME_CAST(sipName_serviceUid), meth_QDBusConnectionInterface_serviceUid, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnectionInterface_serviceUid)},
    {SIP_MLNAME_CAST(sipName_startService), meth_QDBusConnectionInterface_startService, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnectionInterface_startService)},
    {SIP_MLNAME_CAST(sipName_unregisterService), meth_QDBusConnectionInterface_unregisterService, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnectionInterface_unregisterService)}
};

static sipEnumMemberDef enummembers_QDBusConnectionInterface[] = {
    {sipName_AllowReplacement, static_cast<int>(QDBusConnectionInterface::AllowReplacement), 15},
    {sipName_DontAllowReplacement, static_cast<int>(QDBusConnectionInterface::DontAllowReplacement), 15},
    {sipName_DontQueueService, static_cast<int>(QDBusConnectionInterface::DontQueueService), 14},
    {sipName_QueueService, static_cast<int>(QDBusConnectionInterface::QueueService), 14},
    {sipName_ReplaceExistingService, static_cast<int>(QDBusConnectionInterface::ReplaceExistingService), 14},
    {sipName_ServiceNotRegistered, static_cast<int>(QDBusConnectionInterface::ServiceNotRegistered), 13},
    {sipName_ServiceQueued, static_cast<int>(QDBusConnectionInterface::ServiceQueued), 13},
    {sipName_ServiceRegistered, static_cast<int>(QDBusConnectionInterface::ServiceRegistered), 13},
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_QDBusConnectionInterface[] = {
    {"callWithCallbackFailed(QDBusError,QDBusMessage)", "\1QDBusConnectionInterface.callWithCallbackFailed[QDBusError, QDBusMessage]", 0, 0},
    {"serviceOwnerChanged(QString,QString,QString)", "\1QDBusConnectionInterface.serviceOwnerChanged[str, str, str]", 0, 0},
    {"serviceUnregistered(QString)", "\1QDBusConnectionInterface.serviceUnregistered[str]", 0, 0},
    {"serviceRegistered(QString)", "\1QDBusConnectionInterface.serviceRegistered[str]", 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusConnectionInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QDBusConnectionInterface,
        {0}
    },
    {
        sipNameNr_QDBusConnectionInterface,
        {0, 0, 1},
        8, methods_QDBusConnectionInterface,
        8, enummembers_QDBusConnectionInterface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_QDBusConnectionInterface,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_QDBusConnectionInterface,
    cast_QDBusConnectionInterface,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QDBusConnectionInterface::staticMetaObject,
    0,
    signals_QDBusConnectionInterface,
};

#line 52 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 8596 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 52 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 8600 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


extern "C" {static int slot_QDBusConnection_ConnectionCapabilities___bool__(PyObject *);}
static int slot_QDBusConnection_ConnectionCapabilities___bool__(PyObject *sipSelf)
{
    QDBusConnection::ConnectionCapabilities *sipCpp = reinterpret_cast<QDBusConnection::ConnectionCapabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_ConnectionCapabilities));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 389 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QDBusConnection::ConnectionCapabilities::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 8622 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QDBusConnection_ConnectionCapabilities___ne__(PyObject *,PyObject *);}
static PyObject *slot_QDBusConnection_ConnectionCapabilities___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusConnection::ConnectionCapabilities *sipCpp = reinterpret_cast<QDBusConnection::ConnectionCapabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_ConnectionCapabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusConnection::ConnectionCapabilities* a0;
        int a0State = 0;

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

#line 380 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QDBusConnection::ConnectionCapabilities::Int() != a0->operator QDBusConnection::ConnectionCapabilities::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 8656 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(const_cast<QDBusConnection::ConnectionCapabilities *>(a0),sipType_QDBusConnection_ConnectionCapabilities,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,ne_slot,sipType_QDBusConnection_ConnectionCapabilities,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QDBusConnection_ConnectionCapabilities___eq__(PyObject *,PyObject *);}
static PyObject *slot_QDBusConnection_ConnectionCapabilities___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusConnection::ConnectionCapabilities *sipCpp = reinterpret_cast<QDBusConnection::ConnectionCapabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_ConnectionCapabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusConnection::ConnectionCapabilities* a0;
        int a0State = 0;

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

#line 371 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QDBusConnection::ConnectionCapabilities::Int() == a0->operator QDBusConnection::ConnectionCapabilities::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 8696 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(const_cast<QDBusConnection::ConnectionCapabilities *>(a0),sipType_QDBusConnection_ConnectionCapabilities,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,eq_slot,sipType_QDBusConnection_ConnectionCapabilities,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QDBusConnection_ConnectionCapabilities___invert__(PyObject *);}
static PyObject *slot_QDBusConnection_ConnectionCapabilities___invert__(PyObject *sipSelf)
{
    QDBusConnection::ConnectionCapabilities *sipCpp = reinterpret_cast<QDBusConnection::ConnectionCapabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_ConnectionCapabilities));

    if (!sipCpp)
        return 0;


    {
        {
            QDBusConnection::ConnectionCapabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection::ConnectionCapabilities(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        QDBusConnection::ConnectionCapabilities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QDBusConnection_ConnectionCapabilities, &a0, &a0State, &a1))
        {
            QDBusConnection::ConnectionCapabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection::ConnectionCapabilities((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDBusConnection_ConnectionCapabilities,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        QDBusConnection::ConnectionCapabilities* a0;
        int a0State = 0;
        QDBusConnection::ConnectionCapabilities* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QDBusConnection_ConnectionCapabilities, &a0, &a0State, sipType_QDBusConnection_ConnectionCapabilities, &a1, &a1State))
        {
            QDBusConnection::ConnectionCapabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection::ConnectionCapabilities((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDBusConnection_ConnectionCapabilities,a0State);
            sipReleaseType(a1,sipType_QDBusConnection_ConnectionCapabilities,a1State);

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

    {
        QDBusConnection::ConnectionCapabilities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QDBusConnection_ConnectionCapabilities, &a0, &a0State, &a1))
        {
            QDBusConnection::ConnectionCapabilities*sipRes = 0;

#line 365 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QDBusConnection::ConnectionCapabilities(*a0 ^ a1);
#line 8805 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(a0,sipType_QDBusConnection_ConnectionCapabilities,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        QDBusConnection::ConnectionCapabilities* a0;
        int a0State = 0;
        QDBusConnection::ConnectionCapabilities* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QDBusConnection_ConnectionCapabilities, &a0, &a0State, sipType_QDBusConnection_ConnectionCapabilities, &a1, &a1State))
        {
            QDBusConnection::ConnectionCapabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection::ConnectionCapabilities((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDBusConnection_ConnectionCapabilities,a0State);
            sipReleaseType(a1,sipType_QDBusConnection_ConnectionCapabilities,a1State);

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

    {
        QDBusConnection::ConnectionCapabilities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QDBusConnection_ConnectionCapabilities, &a0, &a0State, &a1))
        {
            QDBusConnection::ConnectionCapabilities*sipRes = 0;

#line 360 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QDBusConnection::ConnectionCapabilities(*a0 | a1);
#line 8857 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(a0,sipType_QDBusConnection_ConnectionCapabilities,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_QDBusConnection_ConnectionCapabilities___int__(PyObject *);}
static PyObject *slot_QDBusConnection_ConnectionCapabilities___int__(PyObject *sipSelf)
{
    QDBusConnection::ConnectionCapabilities *sipCpp = reinterpret_cast<QDBusConnection::ConnectionCapabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_ConnectionCapabilities));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    QDBusConnection::ConnectionCapabilities *sipCpp = reinterpret_cast<QDBusConnection::ConnectionCapabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_ConnectionCapabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QDBusConnection::ConnectionCapabilities* a0;
        int a0State = 0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    QDBusConnection::ConnectionCapabilities *sipCpp = reinterpret_cast<QDBusConnection::ConnectionCapabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_ConnectionCapabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QDBusConnection::ConnectionCapabilities* a0;
        int a0State = 0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    QDBusConnection::ConnectionCapabilities *sipCpp = reinterpret_cast<QDBusConnection::ConnectionCapabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_ConnectionCapabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<QDBusConnection::ConnectionCapabilities *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_QDBusConnection_ConnectionCapabilities(SIP_SSIZE_T);}
static void *array_QDBusConnection_ConnectionCapabilities(SIP_SSIZE_T sipNrElem)
{
    return new QDBusConnection::ConnectionCapabilities[sipNrElem];
}


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


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


extern "C" {static void *init_type_QDBusConnection_ConnectionCapabilities(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QDBusConnection_ConnectionCapabilities(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QDBusConnection::ConnectionCapabilities *sipCpp = 0;

    {
        const QDBusConnection::ConnectionCapabilities* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QDBusConnection_ConnectionCapability)) ||
            sipCanConvertToType(sipPy, sipType_QDBusConnection_ConnectionCapabilities, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QDBusConnection_ConnectionCapability)))
{
    *sipCppPtr = new QDBusConnection::ConnectionCapabilities(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QDBusConnection::ConnectionCapabilities *>(sipConvertToType(sipPy, sipType_QDBusConnection_ConnectionCapabilities, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 9152 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QDBusConnection_ConnectionCapabilities[] = {
    {(void *)slot_QDBusConnection_ConnectionCapabilities___bool__, bool_slot},
    {(void *)slot_QDBusConnection_ConnectionCapabilities___ne__, ne_slot},
    {(void *)slot_QDBusConnection_ConnectionCapabilities___eq__, eq_slot},
    {(void *)slot_QDBusConnection_ConnectionCapabilities___invert__, invert_slot},
    {(void *)slot_QDBusConnection_ConnectionCapabilities___and__, and_slot},
    {(void *)slot_QDBusConnection_ConnectionCapabilities___xor__, xor_slot},
    {(void *)slot_QDBusConnection_ConnectionCapabilities___or__, or_slot},
    {(void *)slot_QDBusConnection_ConnectionCapabilities___int__, int_slot},
    {(void *)slot_QDBusConnection_ConnectionCapabilities___ixor__, ixor_slot},
    {(void *)slot_QDBusConnection_ConnectionCapabilities___ior__, ior_slot},
    {(void *)slot_QDBusConnection_ConnectionCapabilities___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QDBusConnection_ConnectionCapabilities, "\1QDBusConnection.ConnectionCapabilities(QDBusConnection.ConnectionCapabilities)\n"
    "QDBusConnection.ConnectionCapabilities(int)\n"
    "QDBusConnection.ConnectionCapabilities()");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusConnection_ConnectionCapabilities = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QDBusConnection__ConnectionCapabilities,
        {0}
    },
    {
        sipNameNr_ConnectionCapabilities,
        {5, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusConnection_ConnectionCapabilities,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QDBusConnection_ConnectionCapabilities,
    init_type_QDBusConnection_ConnectionCapabilities,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusConnection_ConnectionCapabilities,
    assign_QDBusConnection_ConnectionCapabilities,
    array_QDBusConnection_ConnectionCapabilities,
    copy_QDBusConnection_ConnectionCapabilities,
    release_QDBusConnection_ConnectionCapabilities,
    cast_QDBusConnection_ConnectionCapabilities,
    convertTo_QDBusConnection_ConnectionCapabilities,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 52 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 9233 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 52 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 9237 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


extern "C" {static int slot_QDBusConnection_RegisterOptions___bool__(PyObject *);}
static int slot_QDBusConnection_RegisterOptions___bool__(PyObject *sipSelf)
{
    QDBusConnection::RegisterOptions *sipCpp = reinterpret_cast<QDBusConnection::RegisterOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_RegisterOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 389 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QDBusConnection::RegisterOptions::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 9259 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QDBusConnection_RegisterOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_QDBusConnection_RegisterOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusConnection::RegisterOptions *sipCpp = reinterpret_cast<QDBusConnection::RegisterOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_RegisterOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusConnection::RegisterOptions* a0;
        int a0State = 0;

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

#line 380 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QDBusConnection::RegisterOptions::Int() != a0->operator QDBusConnection::RegisterOptions::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 9293 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(const_cast<QDBusConnection::RegisterOptions *>(a0),sipType_QDBusConnection_RegisterOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,ne_slot,sipType_QDBusConnection_RegisterOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QDBusConnection_RegisterOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_QDBusConnection_RegisterOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QDBusConnection::RegisterOptions *sipCpp = reinterpret_cast<QDBusConnection::RegisterOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_RegisterOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDBusConnection::RegisterOptions* a0;
        int a0State = 0;

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

#line 371 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QDBusConnection::RegisterOptions::Int() == a0->operator QDBusConnection::RegisterOptions::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 9333 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(const_cast<QDBusConnection::RegisterOptions *>(a0),sipType_QDBusConnection_RegisterOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDBus,eq_slot,sipType_QDBusConnection_RegisterOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QDBusConnection_RegisterOptions___invert__(PyObject *);}
static PyObject *slot_QDBusConnection_RegisterOptions___invert__(PyObject *sipSelf)
{
    QDBusConnection::RegisterOptions *sipCpp = reinterpret_cast<QDBusConnection::RegisterOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_RegisterOptions));

    if (!sipCpp)
        return 0;


    {
        {
            QDBusConnection::RegisterOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection::RegisterOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        QDBusConnection::RegisterOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QDBusConnection_RegisterOptions, &a0, &a0State, &a1))
        {
            QDBusConnection::RegisterOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection::RegisterOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDBusConnection_RegisterOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        QDBusConnection::RegisterOptions* a0;
        int a0State = 0;
        QDBusConnection::RegisterOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QDBusConnection_RegisterOptions, &a0, &a0State, sipType_QDBusConnection_RegisterOptions, &a1, &a1State))
        {
            QDBusConnection::RegisterOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection::RegisterOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDBusConnection_RegisterOptions,a0State);
            sipReleaseType(a1,sipType_QDBusConnection_RegisterOptions,a1State);

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

    {
        QDBusConnection::RegisterOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QDBusConnection_RegisterOptions, &a0, &a0State, &a1))
        {
            QDBusConnection::RegisterOptions*sipRes = 0;

#line 365 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QDBusConnection::RegisterOptions(*a0 ^ a1);
#line 9442 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(a0,sipType_QDBusConnection_RegisterOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        QDBusConnection::RegisterOptions* a0;
        int a0State = 0;
        QDBusConnection::RegisterOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QDBusConnection_RegisterOptions, &a0, &a0State, sipType_QDBusConnection_RegisterOptions, &a1, &a1State))
        {
            QDBusConnection::RegisterOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection::RegisterOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDBusConnection_RegisterOptions,a0State);
            sipReleaseType(a1,sipType_QDBusConnection_RegisterOptions,a1State);

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

    {
        QDBusConnection::RegisterOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QDBusConnection_RegisterOptions, &a0, &a0State, &a1))
        {
            QDBusConnection::RegisterOptions*sipRes = 0;

#line 360 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qglobal.sip"
        sipRes = new QDBusConnection::RegisterOptions(*a0 | a1);
#line 9494 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(a0,sipType_QDBusConnection_RegisterOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_QDBusConnection_RegisterOptions___int__(PyObject *);}
static PyObject *slot_QDBusConnection_RegisterOptions___int__(PyObject *sipSelf)
{
    QDBusConnection::RegisterOptions *sipCpp = reinterpret_cast<QDBusConnection::RegisterOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_RegisterOptions));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    QDBusConnection::RegisterOptions *sipCpp = reinterpret_cast<QDBusConnection::RegisterOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_RegisterOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QDBusConnection::RegisterOptions* a0;
        int a0State = 0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    QDBusConnection::RegisterOptions *sipCpp = reinterpret_cast<QDBusConnection::RegisterOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_RegisterOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QDBusConnection::RegisterOptions* a0;
        int a0State = 0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    QDBusConnection::RegisterOptions *sipCpp = reinterpret_cast<QDBusConnection::RegisterOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDBusConnection_RegisterOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<QDBusConnection::RegisterOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_QDBusConnection_RegisterOptions(SIP_SSIZE_T);}
static void *array_QDBusConnection_RegisterOptions(SIP_SSIZE_T sipNrElem)
{
    return new QDBusConnection::RegisterOptions[sipNrElem];
}


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


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


extern "C" {static void *init_type_QDBusConnection_RegisterOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QDBusConnection_RegisterOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QDBusConnection::RegisterOptions *sipCpp = 0;

    {
        const QDBusConnection::RegisterOptions* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QDBusConnection_RegisterOption)) ||
            sipCanConvertToType(sipPy, sipType_QDBusConnection_RegisterOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QDBusConnection_RegisterOption)))
{
    *sipCppPtr = new QDBusConnection::RegisterOptions(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QDBusConnection::RegisterOptions *>(sipConvertToType(sipPy, sipType_QDBusConnection_RegisterOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 9789 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QDBusConnection_RegisterOptions[] = {
    {(void *)slot_QDBusConnection_RegisterOptions___bool__, bool_slot},
    {(void *)slot_QDBusConnection_RegisterOptions___ne__, ne_slot},
    {(void *)slot_QDBusConnection_RegisterOptions___eq__, eq_slot},
    {(void *)slot_QDBusConnection_RegisterOptions___invert__, invert_slot},
    {(void *)slot_QDBusConnection_RegisterOptions___and__, and_slot},
    {(void *)slot_QDBusConnection_RegisterOptions___xor__, xor_slot},
    {(void *)slot_QDBusConnection_RegisterOptions___or__, or_slot},
    {(void *)slot_QDBusConnection_RegisterOptions___int__, int_slot},
    {(void *)slot_QDBusConnection_RegisterOptions___ixor__, ixor_slot},
    {(void *)slot_QDBusConnection_RegisterOptions___ior__, ior_slot},
    {(void *)slot_QDBusConnection_RegisterOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QDBusConnection_RegisterOptions, "\1QDBusConnection.RegisterOptions(QDBusConnection.RegisterOptions)\n"
    "QDBusConnection.RegisterOptions(int)\n"
    "QDBusConnection.RegisterOptions()");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusConnection_RegisterOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QDBusConnection__RegisterOptions,
        {0}
    },
    {
        sipNameNr_RegisterOptions,
        {5, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusConnection_RegisterOptions,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QDBusConnection_RegisterOptions,
    init_type_QDBusConnection_RegisterOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusConnection_RegisterOptions,
    assign_QDBusConnection_RegisterOptions,
    array_QDBusConnection_RegisterOptions,
    copy_QDBusConnection_RegisterOptions,
    release_QDBusConnection_RegisterOptions,
    cast_QDBusConnection_RegisterOptions,
    convertTo_QDBusConnection_RegisterOptions,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0
};

#line 52 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 9870 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9874 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 9877 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnectioninterface.sip"
#include <qdbusconnectioninterface.h>
#line 9880 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 9883 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 52 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 9886 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 9889 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuspendingcall.sip"
#include <qdbuspendingcall.h>
#line 9892 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusmessage.sip"
#include <qdbusmessage.h>
#line 9895 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 9898 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 52 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 9901 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuserror.sip"
#include <qdbuserror.h>
#line 9904 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


PyDoc_STRVAR(doc_QDBusConnection_isConnected, "QDBusConnection.isConnected() -> bool");

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

    {
        const QDBusConnection *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isConnected();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_isConnected, doc_QDBusConnection_isConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_baseService, "QDBusConnection.baseService() -> str");

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

    {
        const QDBusConnection *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_baseService, doc_QDBusConnection_baseService);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_lastError, "QDBusConnection.lastError() -> QDBusError");

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

    {
        const QDBusConnection *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusError(sipCpp->lastError());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_lastError, doc_QDBusConnection_lastError);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_name, "QDBusConnection.name() -> str");

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

    {
        const QDBusConnection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDBusConnection, &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_QDBusConnection, sipName_name, doc_QDBusConnection_name);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_connectionCapabilities, "QDBusConnection.connectionCapabilities() -> QDBusConnection.ConnectionCapabilities");

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

    {
        const QDBusConnection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDBusConnection, &sipCpp))
        {
            QDBusConnection::ConnectionCapabilities*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection::ConnectionCapabilities(sipCpp->connectionCapabilities());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_connectionCapabilities, doc_QDBusConnection_connectionCapabilities);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_send, "QDBusConnection.send(QDBusMessage) -> bool");

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

    {
        const QDBusMessage* a0;
        const QDBusConnection *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_send, doc_QDBusConnection_send);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_callWithCallback, "QDBusConnection.callWithCallback(QDBusMessage, QObject, SLOT(), SLOT(), int timeout=-1) -> bool\n"
    "QDBusConnection.callWithCallback(QDBusMessage, callable, callable, int timeout=-1) -> object\n"
    "QDBusConnection.callWithCallback(QDBusMessage, QObject, SLOT(), int timeout=-1) -> bool\n"
    "QDBusConnection.callWithCallback(QDBusMessage, callable, int timeout=-1) -> object");

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

    {
        const QDBusMessage* a0;
        QObject* a1;
        char* a2;
        char* a3;
        int a4 = -1;
        const QDBusConnection *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9J8SS|i", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QDBusMessage, &a0, sipType_QObject, &a1, &a2, &a3, &a4))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->callWithCallback(*a0,a1,a2,a3,a4);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QDBusMessage* a0;
        PyObject * a1;
        PyObject * a2;
        int a3 = -1;
        QDBusConnection *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9FF|i", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QDBusMessage, &a0, &a1, &a2, &a3))
        {
            PyObject * sipRes = 0;

#line 122 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
        QObject *qrx;
        QByteArray return_slot = qpycore_pyqtslot_get_parts(a1, &qrx);
        
        if (!return_slot.isNull())
        {
            QObject *error_qrx;
            QByteArray error_slot = qpycore_pyqtslot_get_parts(a2, &error_qrx);
        
            if (!error_slot.isNull())
            {
                if (qrx == error_qrx)
                {
                    bool ok;
            
                    Py_BEGIN_ALLOW_THREADS
                    ok = sipCpp->callWithCallback(*a0, qrx, return_slot.constData(), error_slot.constData(), a3);
                    Py_END_ALLOW_THREADS
        
                    sipRes = PyBool_FromLong(ok);
                }
                else
                {
                    PyErr_SetString(PyExc_ValueError,
                            "the return and error methods must be bound to the same QObject instance");
                }
            }
        }
#line 10166 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

            return sipRes;
        }
    }

    {
        const QDBusMessage* a0;
        QObject* a1;
        char* a2;
        int a3 = -1;
        const QDBusConnection *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9J8S|i", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QDBusMessage, &a0, sipType_QObject, &a1, &a2, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->callWithCallback(*a0,a1,a2,a3);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QDBusMessage* a0;
        PyObject * a1;
        int a2 = -1;
        QDBusConnection *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9F|i", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QDBusMessage, &a0, &a1, &a2))
        {
            PyObject * sipRes = 0;

#line 154 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
        QObject *qrx;
        QByteArray slot = qpycore_pyqtslot_get_parts(a1, &qrx);
        
        if (!slot.isNull())
        {
            bool ok;
            
            Py_BEGIN_ALLOW_THREADS
            ok = sipCpp->callWithCallback(*a0, qrx, slot.constData(), a2);
            Py_END_ALLOW_THREADS
        
            sipRes = PyBool_FromLong(ok);
        }
#line 10228 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_callWithCallback, doc_QDBusConnection_callWithCallback);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_call, "QDBusConnection.call(QDBusMessage, QDBus.CallMode mode=QDBus.Block, int timeout=-1) -> QDBusMessage");

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

    {
        const QDBusMessage* a0;
        QDBus::CallMode a1 = QDBus::Block;
        int a2 = -1;
        const QDBusConnection *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|Ei", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QDBusMessage, &a0, sipType_QDBus_CallMode, &a1, &a2))
        {
            QDBusMessage*sipRes;

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

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

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

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_asyncCall, "QDBusConnection.asyncCall(QDBusMessage, int timeout=-1) -> QDBusPendingCall");

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

    {
        const QDBusMessage* a0;
        int a1 = -1;
        const QDBusConnection *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|i", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QDBusMessage, &a0, &a1))
        {
            QDBusPendingCall*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusPendingCall(sipCpp->asyncCall(*a0,a1));
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_asyncCall, doc_QDBusConnection_asyncCall);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_connect, "QDBusConnection.connect(str, str, str, str, QObject, SLOT()) -> bool\n"
    "QDBusConnection.connect(str, str, str, str, callable) -> object\n"
    "QDBusConnection.connect(str, str, str, str, str, QObject, SLOT()) -> bool\n"
    "QDBusConnection.connect(str, str, str, str, str, callable) -> object\n"
    "QDBusConnection.connect(str, str, str, str, list-of-str, str, QObject, SLOT()) -> bool\n"
    "QDBusConnection.connect(str, str, str, str, list-of-str, str, callable) -> object");

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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        QObject* a4;
        char* a5;
        QDBusConnection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1J8S", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_QObject, &a4, &a5))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->connect(*a0,*a1,*a2,*a3,a4,a5);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        PyObject * a4;
        QDBusConnection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1F", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, &a4))
        {
            PyObject * sipRes = 0;

#line 174 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
        QObject *qrx;
        QByteArray slot = qpycore_pyqtslot_get_parts(a4, &qrx);
        
        if (!slot.isNull())
        {
            bool ok;
        
            Py_BEGIN_ALLOW_THREADS
            ok = sipCpp->connect(*a0, *a1, *a2, *a3, qrx, slot.constData());
            Py_END_ALLOW_THREADS
        
            sipRes = PyBool_FromLong(ok);
        }
#line 10386 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return sipRes;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        const QString* a4;
        int a4State = 0;
        QObject* a5;
        char* a6;
        QDBusConnection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1J1J8S", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_QString,&a4, &a4State, sipType_QObject, &a5, &a6))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->connect(*a0,*a1,*a2,*a3,*a4,a5,a6);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        const QString* a4;
        int a4State = 0;
        PyObject * a5;
        QDBusConnection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1J1F", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_QString,&a4, &a4State, &a5))
        {
            PyObject * sipRes = 0;

#line 192 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
        QObject *qrx;
        QByteArray slot = qpycore_pyqtslot_get_parts(a5, &qrx);
        
        if (!slot.isNull())
        {
            bool ok;
        
            Py_BEGIN_ALLOW_THREADS
            ok = sipCpp->connect(*a0, *a1, *a2, *a3, *a4, qrx, slot.constData());
            Py_END_ALLOW_THREADS
        
            sipRes = PyBool_FromLong(ok);
        }
#line 10460 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);

            return sipRes;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        const QStringList* a4;
        int a4State = 0;
        const QString* a5;
        int a5State = 0;
        QObject* a6;
        char* a7;
        QDBusConnection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1J1J1J8S", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_QStringList,&a4, &a4State, sipType_QString,&a5, &a5State, sipType_QObject, &a6, &a7))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->connect(*a0,*a1,*a2,*a3,*a4,*a5,a6,a7);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(const_cast<QStringList *>(a4),sipType_QStringList,a4State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        const QStringList* a4;
        int a4State = 0;
        const QString* a5;
        int a5State = 0;
        PyObject * a6;
        QDBusConnection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1J1J1F", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_QStringList,&a4, &a4State, sipType_QString,&a5, &a5State, &a6))
        {
            PyObject * sipRes = 0;

#line 210 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
        QObject *qrx;
        QByteArray slot = qpycore_pyqtslot_get_parts(a6, &qrx);
        
        if (!slot.isNull())
        {
            bool ok;
            
            Py_BEGIN_ALLOW_THREADS
            ok = sipCpp->connect(*a0, *a1, *a2, *a3, *a4, *a5, qrx, slot.constData());
            Py_END_ALLOW_THREADS
        
            sipRes = PyBool_FromLong(ok);
        }
#line 10540 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(const_cast<QStringList *>(a4),sipType_QStringList,a4State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_connect, doc_QDBusConnection_connect);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_disconnect, "QDBusConnection.disconnect(str, str, str, str, QObject, SLOT()) -> bool\n"
    "QDBusConnection.disconnect(str, str, str, str, callable) -> object\n"
    "QDBusConnection.disconnect(str, str, str, str, str, QObject, SLOT()) -> bool\n"
    "QDBusConnection.disconnect(str, str, str, str, str, callable) -> object\n"
    "QDBusConnection.disconnect(str, str, str, str, list-of-str, str, QObject, SLOT()) -> bool\n"
    "QDBusConnection.disconnect(str, str, str, str, list-of-str, str, callable) -> object");

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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        QObject* a4;
        char* a5;
        QDBusConnection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1J8S", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_QObject, &a4, &a5))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->disconnect(*a0,*a1,*a2,*a3,a4,a5);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        PyObject * a4;
        QDBusConnection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1F", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, &a4))
        {
            PyObject * sipRes = 0;

#line 228 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
        QObject *qrx;
        QByteArray slot = qpycore_pyqtslot_get_parts(a4, &qrx);
        
        if (!slot.isNull())
        {
            bool ok;
            
            Py_BEGIN_ALLOW_THREADS
            ok = sipCpp->disconnect(*a0, *a1, *a2, *a3, qrx, slot.constData());
            Py_END_ALLOW_THREADS
        
            sipRes = PyBool_FromLong(ok);
        }
#line 10630 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return sipRes;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        const QString* a4;
        int a4State = 0;
        QObject* a5;
        char* a6;
        QDBusConnection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1J1J8S", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_QString,&a4, &a4State, sipType_QObject, &a5, &a6))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->disconnect(*a0,*a1,*a2,*a3,*a4,a5,a6);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        const QString* a4;
        int a4State = 0;
        PyObject * a5;
        QDBusConnection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1J1F", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_QString,&a4, &a4State, &a5))
        {
            PyObject * sipRes = 0;

#line 246 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
        QObject *qrx;
        QByteArray slot = qpycore_pyqtslot_get_parts(a5, &qrx);
        
        if (!slot.isNull())
        {
            bool ok;
            
            Py_BEGIN_ALLOW_THREADS
            ok = sipCpp->disconnect(*a0, *a1, *a2, *a3, *a4, qrx, slot.constData());
            Py_END_ALLOW_THREADS
        
            sipRes = PyBool_FromLong(ok);
        }
#line 10704 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);

            return sipRes;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        const QStringList* a4;
        int a4State = 0;
        const QString* a5;
        int a5State = 0;
        QObject* a6;
        char* a7;
        QDBusConnection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1J1J1J8S", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_QStringList,&a4, &a4State, sipType_QString,&a5, &a5State, sipType_QObject, &a6, &a7))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->disconnect(*a0,*a1,*a2,*a3,*a4,*a5,a6,a7);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(const_cast<QStringList *>(a4),sipType_QStringList,a4State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QString* a2;
        int a2State = 0;
        const QString* a3;
        int a3State = 0;
        const QStringList* a4;
        int a4State = 0;
        const QString* a5;
        int a5State = 0;
        PyObject * a6;
        QDBusConnection *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1J1J1J1F", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_QStringList,&a4, &a4State, sipType_QString,&a5, &a5State, &a6))
        {
            PyObject * sipRes = 0;

#line 264 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
        QObject *qrx;
        QByteArray slot = qpycore_pyqtslot_get_parts(a6, &qrx);
        
        if (!slot.isNull())
        {
            bool ok;
            
            Py_BEGIN_ALLOW_THREADS
            ok = sipCpp->disconnect(*a0, *a1, *a2, *a3, *a4, *a5, qrx, slot.constData());
            Py_END_ALLOW_THREADS
        
            sipRes = PyBool_FromLong(ok);
        }
#line 10784 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
            sipReleaseType(const_cast<QStringList *>(a4),sipType_QStringList,a4State);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_disconnect, doc_QDBusConnection_disconnect);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_registerObject, "QDBusConnection.registerObject(str, QObject, QDBusConnection.RegisterOptions options=QDBusConnection.ExportAdaptors) -> bool");

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

    {
        const QString* a0;
        int a0State = 0;
        QObject* a1;
        QDBusConnection::RegisterOptions a2def = QDBusConnection::ExportAdaptors;
        QDBusConnection::RegisterOptions* a2 = &a2def;
        int a2State = 0;
        QDBusConnection *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1J8|J1", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State, sipType_QObject, &a1, sipType_QDBusConnection_RegisterOptions, &a2, &a2State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->registerObject(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QDBusConnection_RegisterOptions,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_registerObject, doc_QDBusConnection_registerObject);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_unregisterObject, "QDBusConnection.unregisterObject(str, QDBusConnection.UnregisterMode mode=QDBusConnection.UnregisterNode)");

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

    {
        const QString* a0;
        int a0State = 0;
        QDBusConnection::UnregisterMode a1 = QDBusConnection::UnregisterNode;
        QDBusConnection *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|E", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State, sipType_QDBusConnection_UnregisterMode, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->unregisterObject(*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_QDBusConnection, sipName_unregisterObject, doc_QDBusConnection_unregisterObject);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_objectRegisteredAt, "QDBusConnection.objectRegisteredAt(str) -> QObject");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QObject*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->objectRegisteredAt(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_objectRegisteredAt, doc_QDBusConnection_objectRegisteredAt);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_registerService, "QDBusConnection.registerService(str) -> bool");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->registerService(*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_QDBusConnection, sipName_registerService, doc_QDBusConnection_registerService);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_unregisterService, "QDBusConnection.unregisterService(str) -> bool");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDBusConnection, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->unregisterService(*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_QDBusConnection, sipName_unregisterService, doc_QDBusConnection_unregisterService);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_interface, "QDBusConnection.interface() -> QDBusConnectionInterface");

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

    {
        const QDBusConnection *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->interface();
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_interface, doc_QDBusConnection_interface);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_connectToBus, "QDBusConnection.connectToBus(QDBusConnection.BusType, str) -> QDBusConnection\n"
    "QDBusConnection.connectToBus(str, str) -> QDBusConnection");

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

    {
        QDBusConnection::BusType a0;
        const QString* a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "EJ1", sipType_QDBusConnection_BusType, &a0, sipType_QString,&a1, &a1State))
        {
            QDBusConnection*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection(QDBusConnection::connectToBus(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            QDBusConnection*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection(QDBusConnection::connectToBus(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_connectToBus, doc_QDBusConnection_connectToBus);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_connectToPeer, "QDBusConnection.connectToPeer(str, str) -> QDBusConnection");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            QDBusConnection*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection(QDBusConnection::connectToPeer(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_connectToPeer, doc_QDBusConnection_connectToPeer);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_disconnectFromBus, "QDBusConnection.disconnectFromBus(str)");

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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            QDBusConnection::disconnectFromBus(*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_QDBusConnection, sipName_disconnectFromBus, doc_QDBusConnection_disconnectFromBus);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_disconnectFromPeer, "QDBusConnection.disconnectFromPeer(str)");

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

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            QDBusConnection::disconnectFromPeer(*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_QDBusConnection, sipName_disconnectFromPeer, doc_QDBusConnection_disconnectFromPeer);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_localMachineId, "QDBusConnection.localMachineId() -> QByteArray");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QByteArray*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(QDBusConnection::localMachineId());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_localMachineId, doc_QDBusConnection_localMachineId);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_sessionBus, "QDBusConnection.sessionBus() -> QDBusConnection");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QDBusConnection*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection(QDBusConnection::sessionBus());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_sessionBus, doc_QDBusConnection_sessionBus);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_systemBus, "QDBusConnection.systemBus() -> QDBusConnection");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QDBusConnection*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection(QDBusConnection::systemBus());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusConnection, sipName_systemBus, doc_QDBusConnection_systemBus);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusConnection_sender, "QDBusConnection.sender() -> QDBusConnection");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QDBusConnection*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection(QDBusConnection::sender());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<QDBusConnection *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

    {
        const QString* a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QDBusConnection* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QDBusConnection[] = {
    {SIP_MLNAME_CAST(sipName_asyncCall), (PyCFunction)meth_QDBusConnection_asyncCall, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDBusConnection_asyncCall)},
    {SIP_MLNAME_CAST(sipName_baseService), meth_QDBusConnection_baseService, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_baseService)},
    {SIP_MLNAME_CAST(sipName_call), (PyCFunction)meth_QDBusConnection_call, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDBusConnection_call)},
    {SIP_MLNAME_CAST(sipName_callWithCallback), (PyCFunction)meth_QDBusConnection_callWithCallback, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDBusConnection_callWithCallback)},
    {SIP_MLNAME_CAST(sipName_connect), meth_QDBusConnection_connect, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_connect)},
    {SIP_MLNAME_CAST(sipName_connectToBus), meth_QDBusConnection_connectToBus, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_connectToBus)},
    {SIP_MLNAME_CAST(sipName_connectToPeer), meth_QDBusConnection_connectToPeer, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_connectToPeer)},
    {SIP_MLNAME_CAST(sipName_connectionCapabilities), meth_QDBusConnection_connectionCapabilities, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_connectionCapabilities)},
    {SIP_MLNAME_CAST(sipName_disconnect), meth_QDBusConnection_disconnect, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_disconnect)},
    {SIP_MLNAME_CAST(sipName_disconnectFromBus), meth_QDBusConnection_disconnectFromBus, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_disconnectFromBus)},
    {SIP_MLNAME_CAST(sipName_disconnectFromPeer), meth_QDBusConnection_disconnectFromPeer, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_disconnectFromPeer)},
    {SIP_MLNAME_CAST(sipName_interface), meth_QDBusConnection_interface, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_interface)},
    {SIP_MLNAME_CAST(sipName_isConnected), meth_QDBusConnection_isConnected, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_isConnected)},
    {SIP_MLNAME_CAST(sipName_lastError), meth_QDBusConnection_lastError, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_lastError)},
    {SIP_MLNAME_CAST(sipName_localMachineId), meth_QDBusConnection_localMachineId, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_localMachineId)},
    {SIP_MLNAME_CAST(sipName_name), meth_QDBusConnection_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_name)},
    {SIP_MLNAME_CAST(sipName_objectRegisteredAt), meth_QDBusConnection_objectRegisteredAt, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_objectRegisteredAt)},
    {SIP_MLNAME_CAST(sipName_registerObject), (PyCFunction)meth_QDBusConnection_registerObject, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDBusConnection_registerObject)},
    {SIP_MLNAME_CAST(sipName_registerService), meth_QDBusConnection_registerService, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_registerService)},
    {SIP_MLNAME_CAST(sipName_send), meth_QDBusConnection_send, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_send)},
    {SIP_MLNAME_CAST(sipName_sender), meth_QDBusConnection_sender, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_sender)},
    {SIP_MLNAME_CAST(sipName_sessionBus), meth_QDBusConnection_sessionBus, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_sessionBus)},
    {SIP_MLNAME_CAST(sipName_systemBus), meth_QDBusConnection_systemBus, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_systemBus)},
    {SIP_MLNAME_CAST(sipName_unregisterObject), (PyCFunction)meth_QDBusConnection_unregisterObject, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDBusConnection_unregisterObject)},
    {SIP_MLNAME_CAST(sipName_unregisterService), meth_QDBusConnection_unregisterService, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusConnection_unregisterService)}
};

static sipEnumMemberDef enummembers_QDBusConnection[] = {
    {sipName_ActivationBus, static_cast<int>(QDBusConnection::ActivationBus), 6},
    {sipName_ExportAdaptors, static_cast<int>(QDBusConnection::ExportAdaptors), 9},
    {sipName_ExportAllContents, static_cast<int>(QDBusConnection::ExportAllContents), 9},
    {sipName_ExportAllInvokables, static_cast<int>(QDBusConnection::ExportAllInvokables), 9},
    {sipName_ExportAllProperties, static_cast<int>(QDBusConnection::ExportAllProperties), 9},
    {sipName_ExportAllSignal, static_cast<int>(QDBusConnection::ExportAllSignal), 9},
    {sipName_ExportAllSignals, static_cast<int>(QDBusConnection::ExportAllSignals), 9},
    {sipName_ExportAllSlots, static_cast<int>(QDBusConnection::ExportAllSlots), 9},
    {sipName_ExportChildObjects, static_cast<int>(QDBusConnection::ExportChildObjects), 9},
    {sipName_ExportNonScriptableContents, static_cast<int>(QDBusConnection::ExportNonScriptableContents), 9},
    {sipName_ExportNonScriptableInvokables, static_cast<int>(QDBusConnection::ExportNonScriptableInvokables), 9},
    {sipName_ExportNonScriptableProperties, static_cast<int>(QDBusConnection::ExportNonScriptableProperties), 9},
    {sipName_ExportNonScriptableSignals, static_cast<int>(QDBusConnection::ExportNonScriptableSignals), 9},
    {sipName_ExportNonScriptableSlots, static_cast<int>(QDBusConnection::ExportNonScriptableSlots), 9},
    {sipName_ExportScriptableContents, static_cast<int>(QDBusConnection::ExportScriptableContents), 9},
    {sipName_ExportScriptableInvokables, static_cast<int>(QDBusConnection::ExportScriptableInvokables), 9},
    {sipName_ExportScriptableProperties, static_cast<int>(QDBusConnection::ExportScriptableProperties), 9},
    {sipName_ExportScriptableSignals, static_cast<int>(QDBusConnection::ExportScriptableSignals), 9},
    {sipName_ExportScriptableSlots, static_cast<int>(QDBusConnection::ExportScriptableSlots), 9},
    {sipName_SessionBus, static_cast<int>(QDBusConnection::SessionBus), 6},
    {sipName_SystemBus, static_cast<int>(QDBusConnection::SystemBus), 6},
    {sipName_UnixFileDescriptorPassing, static_cast<int>(QDBusConnection::UnixFileDescriptorPassing), 8},
    {sipName_UnregisterNode, static_cast<int>(QDBusConnection::UnregisterNode), 11},
    {sipName_UnregisterTree, static_cast<int>(QDBusConnection::UnregisterTree), 11},
};

PyDoc_STRVAR(doc_QDBusConnection, "\1QDBusConnection(str)\n"
    "QDBusConnection(QDBusConnection)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusConnection = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QDBusConnection,
        {0}
    },
    {
        sipNameNr_QDBusConnection,
        {0, 0, 1},
        25, methods_QDBusConnection,
        24, enummembers_QDBusConnection,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusConnection,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QDBusConnection,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusConnection,
    0,
    0,
    0,
    release_QDBusConnection,
    cast_QDBusConnection,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 11448 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


static sipEnumMemberDef enummembers_QDBus[] = {
    {sipName_AutoDetect, static_cast<int>(QDBus::AutoDetect), 1},
    {sipName_Block, static_cast<int>(QDBus::Block), 1},
    {sipName_BlockWithGui, static_cast<int>(QDBus::BlockWithGui), 1},
    {sipName_NoBlock, static_cast<int>(QDBus::NoBlock), 1},
};


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBus = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_QDBus,
        {0}
    },
    {
        sipNameNr_QDBus,
        {0, 0, 1},
        0, 0,
        4, enummembers_QDBus,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusargument.sip"
#include <qdbusargument.h>
#line 11514 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 32 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusargument.sip"
#include <QStringList>


static PyObject *qdbusargument_add(QDBusArgument *arg, PyObject *obj, int mtype)
{
    int iserr = 0;

    if (PyLong_CheckExact(obj)
#if PY_MAJOR_VERSION < 3
            || PyInt_CheckExact(obj)
#endif
            )
    {
        if (mtype == QMetaType::UChar || mtype == QMetaType::UShort || mtype == QMetaType::UInt || mtype == QMetaType::ULongLong)
        {
            // Handle the unsigned values.
#if defined(HAVE_LONG_LONG)
            unsigned PY_LONG_LONG v = PyLong_AsUnsignedLongLongMask(obj);
#else
            unsigned long v = PyLong_AsUnsignedLongMask(obj);
#endif

            switch (mtype)
            {
            case QMetaType::UChar:
                *arg << (uchar)v;
                break;

            case QMetaType::UShort:
                *arg << (ushort)v;
                break;

            case QMetaType::UInt:
                *arg << (uint)v;
                break;

            case QMetaType::ULongLong:
                *arg << (qulonglong)v;
                break;
            }
        }
        else if (mtype == QMetaType::Short || mtype == QMetaType::Int || mtype == QMetaType::LongLong)
        {
            // Handle the signed values.
#if defined(HAVE_LONG_LONG)
            PY_LONG_LONG v = PyLong_AsLongLong(obj);
#else
            long v = PyLong_AsLong(obj);
#endif

            switch (mtype)
            {
            case QMetaType::Short:
                *arg << (short)v;
                break;

            case QMetaType::Int:
                *arg << (int)v;
                break;

            case QMetaType::LongLong:
                *arg << (qlonglong)v;
                break;
            }
        }
        else
        {
            PyErr_Format(PyExc_ValueError,
                    "%d is an invalid QMetaType::Type for an interger object",
                    mtype);
            iserr = 1;
        }
    }
    else if (mtype == QMetaType::QStringList)
    {
        // A QStringList has to be handled explicitly to prevent it being seen
        // as a vialiant list.

        int value_state;

        QStringList *qsl = reinterpret_cast<QStringList *>(
                sipForceConvertToType(obj, sipType_QStringList, 0,
                        SIP_NOT_NONE, &value_state, &iserr));

        if (!iserr)
        {
            arg->beginArray(QMetaType::QString);

            for (int i = 0; i < qsl->count(); ++i)
                *arg << qsl->at(i);

            arg->endArray();

            sipReleaseType(qsl, sipType_QStringList, value_state);
        }
    }
    else
    {
        int value_state;

        QVariant *qv = reinterpret_cast<QVariant *>(
                sipForceConvertToType(obj, sipType_QVariant, 0, SIP_NOT_NONE,
                        &value_state, &iserr));

        if (!iserr)
        {
            // This is an internal method. If it proves to be a problem then we
            // will have to handle each type explicitly.
            arg->appendVariant(*qv);
            sipReleaseType(qv, sipType_QVariant, value_state);
        }
    }

    if (iserr)
        return 0;

    Py_INCREF(Py_None);
    return Py_None;
}
#line 11636 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


PyDoc_STRVAR(doc_QDBusArgument_add, "QDBusArgument.add(object, int id=QMetaType.Int)");

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

    {
        PyObject * a0;
        int a1 = QMetaType::Int;
        QDBusArgument *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BP0|i", &sipSelf, sipType_QDBusArgument, &sipCpp, &a0, &a1))
        {
            PyObject * sipRes = 0;

#line 175 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusargument.sip"
        sipRes = qdbusargument_add(sipCpp, a0, a1);
#line 11662 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusArgument, sipName_add, doc_QDBusArgument_add);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusArgument_beginStructure, "QDBusArgument.beginStructure()");

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

    {
        QDBusArgument *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusArgument, sipName_beginStructure, doc_QDBusArgument_beginStructure);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusArgument_endStructure, "QDBusArgument.endStructure()");

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

    {
        QDBusArgument *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusArgument, sipName_endStructure, doc_QDBusArgument_endStructure);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusArgument_beginArray, "QDBusArgument.beginArray(int)");

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

    {
        int a0;
        QDBusArgument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QDBusArgument, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->beginArray(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusArgument, sipName_beginArray, doc_QDBusArgument_beginArray);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusArgument_endArray, "QDBusArgument.endArray()");

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

    {
        QDBusArgument *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusArgument, sipName_endArray, doc_QDBusArgument_endArray);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusArgument_beginMap, "QDBusArgument.beginMap(int, int)");

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

    {
        int a0;
        int a1;
        QDBusArgument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QDBusArgument, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->beginMap(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_QDBusArgument, sipName_beginMap, doc_QDBusArgument_beginMap);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusArgument_endMap, "QDBusArgument.endMap()");

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

    {
        QDBusArgument *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusArgument, sipName_endMap, doc_QDBusArgument_endMap);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusArgument_beginMapEntry, "QDBusArgument.beginMapEntry()");

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

    {
        QDBusArgument *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusArgument, sipName_beginMapEntry, doc_QDBusArgument_beginMapEntry);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusArgument_endMapEntry, "QDBusArgument.endMapEntry()");

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

    {
        QDBusArgument *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusArgument, sipName_endMapEntry, doc_QDBusArgument_endMapEntry);

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<QDBusArgument *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const QDBusArgument* a0;

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

            return sipCpp;
        }
    }

    {
        PyObject * a0;
        int a1 = QMetaType::Int;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "P0|i", &a0, &a1))
        {
#line 158 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusargument.sip"
        sipCpp = new QDBusArgument();
        PyObject *res = qdbusargument_add(sipCpp, a0, a1);
        
        if (res)
        {
            Py_DECREF(res);
        }
        else
        {
            delete sipCpp;
            sipCpp = 0;
        }
#line 12009 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QDBusArgument[] = {
    {SIP_MLNAME_CAST(sipName_add), (PyCFunction)meth_QDBusArgument_add, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDBusArgument_add)},
    {SIP_MLNAME_CAST(sipName_beginArray), meth_QDBusArgument_beginArray, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusArgument_beginArray)},
    {SIP_MLNAME_CAST(sipName_beginMap), meth_QDBusArgument_beginMap, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusArgument_beginMap)},
    {SIP_MLNAME_CAST(sipName_beginMapEntry), meth_QDBusArgument_beginMapEntry, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusArgument_beginMapEntry)},
    {SIP_MLNAME_CAST(sipName_beginStructure), meth_QDBusArgument_beginStructure, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusArgument_beginStructure)},
    {SIP_MLNAME_CAST(sipName_endArray), meth_QDBusArgument_endArray, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusArgument_endArray)},
    {SIP_MLNAME_CAST(sipName_endMap), meth_QDBusArgument_endMap, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusArgument_endMap)},
    {SIP_MLNAME_CAST(sipName_endMapEntry), meth_QDBusArgument_endMapEntry, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusArgument_endMapEntry)},
    {SIP_MLNAME_CAST(sipName_endStructure), meth_QDBusArgument_endStructure, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusArgument_endStructure)}
};

PyDoc_STRVAR(doc_QDBusArgument, "\1QDBusArgument()\n"
    "QDBusArgument(QDBusArgument)\n"
    "QDBusArgument(object, int id=QMetaType.Int)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusArgument = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_QDBusArgument,
        {0}
    },
    {
        sipNameNr_QDBusArgument,
        {0, 0, 1},
        9, methods_QDBusArgument,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusArgument,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QDBusArgument,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusArgument,
    assign_QDBusArgument,
    array_QDBusArgument,
    copy_QDBusArgument,
    release_QDBusArgument,
    cast_QDBusArgument,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusabstractinterface.sip"
#include <qdbusabstractinterface.h>
#line 12092 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 12096 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 52 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 12099 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 12102 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuspendingcall.sip"
#include <qdbuspendingcall.h>
#line 12105 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 12108 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12111 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 269 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12114 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusmessage.sip"
#include <qdbusmessage.h>
#line 12117 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusconnection.sip"
#include <qdbusconnection.h>
#line 12120 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbuserror.sip"
#include <qdbuserror.h>
#line 12123 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12126 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 368 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12129 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 351 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12132 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 12135 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12138 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12141 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 115 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 12144 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 12147 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 12150 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 12153 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


class sipQDBusAbstractInterface : public QDBusAbstractInterface
{
public:
    sipQDBusAbstractInterface(const QString&,const QString&,const char*,const QDBusConnection&,QObject*);
    virtual ~sipQDBusAbstractInterface();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    int sipProtect_senderSignalIndex() const;
    void sipProtectVirt_connectNotify(bool,const char*);
    void sipProtectVirt_disconnectNotify(bool,const char*);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void disconnectNotify(const char*);
    void connectNotify(const char*);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

sipQDBusAbstractInterface::sipQDBusAbstractInterface(const QString& a0,const QString& a1,const char*a2,const QDBusConnection& a3,QObject*a4): QDBusAbstractInterface(a0,a1,a2,a3,a4), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipQDBusAbstractInterface::metaObject() const
{
    return sip_QtDBus_qt_metaobject(sipPySelf,sipType_QDBusAbstractInterface);
}

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

    if (_id >= 0)
        _id = sip_QtDBus_qt_metacall(sipPySelf,sipType_QDBusAbstractInterface,_c,_id,_a);

    return _id;
}

void *sipQDBusAbstractInterface::qt_metacast(const char *_clname)
{
    return (sip_QtDBus_qt_metacast(sipPySelf, sipType_QDBusAbstractInterface, _clname)) ? this : QDBusAbstractInterface::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


PyDoc_STRVAR(doc_QDBusAbstractInterface_sender, "QDBusAbstractInterface.sender() -> QObject");

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

    {
        const sipQDBusAbstractInterface *sipCpp;

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

#line 638 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (helper)
            sipRes = helper(sipRes);
#line 12430 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

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

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

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_receivers, "QDBusAbstractInterface.receivers(SIGNAL()) -> int");

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

    {
        char* a0;
        const sipQDBusAbstractInterface *sipCpp;

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

#line 664 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        // PyQt5: Get rid of the const casts.
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(const_cast<QObject *>(sipCpp), a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 12475 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_timerEvent, "QDBusAbstractInterface.timerEvent(QTimerEvent)");

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

    {
        QTimerEvent* a0;
        sipQDBusAbstractInterface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDBusAbstractInterface, &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_QDBusAbstractInterface, sipName_timerEvent, doc_QDBusAbstractInterface_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_childEvent, "QDBusAbstractInterface.childEvent(QChildEvent)");

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

    {
        QChildEvent* a0;
        sipQDBusAbstractInterface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDBusAbstractInterface, &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_QDBusAbstractInterface, sipName_childEvent, doc_QDBusAbstractInterface_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_customEvent, "QDBusAbstractInterface.customEvent(QEvent)");

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

    {
        QEvent* a0;
        sipQDBusAbstractInterface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDBusAbstractInterface, &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_QDBusAbstractInterface, sipName_customEvent, doc_QDBusAbstractInterface_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_senderSignalIndex, "QDBusAbstractInterface.senderSignalIndex() -> int");

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

    {
        const sipQDBusAbstractInterface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QDBusAbstractInterface, &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_QDBusAbstractInterface, sipName_senderSignalIndex, doc_QDBusAbstractInterface_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_isValid, "QDBusAbstractInterface.isValid() -> bool");

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

    {
        const QDBusAbstractInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDBusAbstractInterface, &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_QDBusAbstractInterface, sipName_isValid, doc_QDBusAbstractInterface_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_connection, "QDBusAbstractInterface.connection() -> QDBusConnection");

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

    {
        const QDBusAbstractInterface *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusConnection(sipCpp->connection());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractInterface, sipName_connection, doc_QDBusAbstractInterface_connection);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_service, "QDBusAbstractInterface.service() -> str");

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

    {
        const QDBusAbstractInterface *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractInterface, sipName_service, doc_QDBusAbstractInterface_service);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_path, "QDBusAbstractInterface.path() -> str");

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

    {
        const QDBusAbstractInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDBusAbstractInterface, &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_QDBusAbstractInterface, sipName_path, doc_QDBusAbstractInterface_path);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_interface, "QDBusAbstractInterface.interface() -> str");

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

    {
        const QDBusAbstractInterface *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractInterface, sipName_interface, doc_QDBusAbstractInterface_interface);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_lastError, "QDBusAbstractInterface.lastError() -> QDBusError");

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

    {
        const QDBusAbstractInterface *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusError(sipCpp->lastError());
            Py_END_ALLOW_THREADS

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractInterface, sipName_lastError, doc_QDBusAbstractInterface_lastError);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_setTimeout, "QDBusAbstractInterface.setTimeout(int)");

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

    {
        int a0;
        QDBusAbstractInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QDBusAbstractInterface, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTimeout(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractInterface, sipName_setTimeout, doc_QDBusAbstractInterface_setTimeout);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_timeout, "QDBusAbstractInterface.timeout() -> int");

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

    {
        const QDBusAbstractInterface *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->timeout();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractInterface, sipName_timeout, doc_QDBusAbstractInterface_timeout);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_call, "QDBusAbstractInterface.call(str, object arg1=QVariant(), object arg2=QVariant(), object arg3=QVariant(), object arg4=QVariant(), object arg5=QVariant(), object arg6=QVariant(), object arg7=QVariant(), object arg8=QVariant()) -> QDBusMessage\n"
    "QDBusAbstractInterface.call(QDBus.CallMode, str, object arg1=QVariant(), object arg2=QVariant(), object arg3=QVariant(), object arg4=QVariant(), object arg5=QVariant(), object arg6=QVariant(), object arg7=QVariant(), object arg8=QVariant()) -> QDBusMessage");

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

    {
        const QString* a0;
        int a0State = 0;
        const QVariant& a1def = QVariant();
        const QVariant* a1 = &a1def;
        int a1State = 0;
        const QVariant& a2def = QVariant();
        const QVariant* a2 = &a2def;
        int a2State = 0;
        const QVariant& a3def = QVariant();
        const QVariant* a3 = &a3def;
        int a3State = 0;
        const QVariant& a4def = QVariant();
        const QVariant* a4 = &a4def;
        int a4State = 0;
        const QVariant& a5def = QVariant();
        const QVariant* a5 = &a5def;
        int a5State = 0;
        const QVariant& a6def = QVariant();
        const QVariant* a6 = &a6def;
        int a6State = 0;
        const QVariant& a7def = QVariant();
        const QVariant* a7 = &a7def;
        int a7State = 0;
        const QVariant& a8def = QVariant();
        const QVariant* a8 = &a8def;
        int a8State = 0;
        QDBusAbstractInterface *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_arg1,
            sipName_arg2,
            sipName_arg3,
            sipName_arg4,
            sipName_arg5,
            sipName_arg6,
            sipName_arg7,
            sipName_arg8,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J1J1J1J1J1J1J1J1", &sipSelf, sipType_QDBusAbstractInterface, &sipCpp, sipType_QString,&a0, &a0State, sipType_QVariant,&a1, &a1State, sipType_QVariant,&a2, &a2State, sipType_QVariant,&a3, &a3State, sipType_QVariant,&a4, &a4State, sipType_QVariant,&a5, &a5State, sipType_QVariant,&a6, &a6State, sipType_QVariant,&a7, &a7State, sipType_QVariant,&a8, &a8State))
        {
            QDBusMessage*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusMessage(sipCpp->call(*a0,*a1,*a2,*a3,*a4,*a5,*a6,*a7,*a8));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);
            sipReleaseType(const_cast<QVariant *>(a2),sipType_QVariant,a2State);
            sipReleaseType(const_cast<QVariant *>(a3),sipType_QVariant,a3State);
            sipReleaseType(const_cast<QVariant *>(a4),sipType_QVariant,a4State);
            sipReleaseType(const_cast<QVariant *>(a5),sipType_QVariant,a5State);
            sipReleaseType(const_cast<QVariant *>(a6),sipType_QVariant,a6State);
            sipReleaseType(const_cast<QVariant *>(a7),sipType_QVariant,a7State);
            sipReleaseType(const_cast<QVariant *>(a8),sipType_QVariant,a8State);

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

    {
        QDBus::CallMode a0;
        const QString* a1;
        int a1State = 0;
        const QVariant& a2def = QVariant();
        const QVariant* a2 = &a2def;
        int a2State = 0;
        const QVariant& a3def = QVariant();
        const QVariant* a3 = &a3def;
        int a3State = 0;
        const QVariant& a4def = QVariant();
        const QVariant* a4 = &a4def;
        int a4State = 0;
        const QVariant& a5def = QVariant();
        const QVariant* a5 = &a5def;
        int a5State = 0;
        const QVariant& a6def = QVariant();
        const QVariant* a6 = &a6def;
        int a6State = 0;
        const QVariant& a7def = QVariant();
        const QVariant* a7 = &a7def;
        int a7State = 0;
        const QVariant& a8def = QVariant();
        const QVariant* a8 = &a8def;
        int a8State = 0;
        const QVariant& a9def = QVariant();
        const QVariant* a9 = &a9def;
        int a9State = 0;
        QDBusAbstractInterface *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_arg1,
            sipName_arg2,
            sipName_arg3,
            sipName_arg4,
            sipName_arg5,
            sipName_arg6,
            sipName_arg7,
            sipName_arg8,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BEJ1|J1J1J1J1J1J1J1J1", &sipSelf, sipType_QDBusAbstractInterface, &sipCpp, sipType_QDBus_CallMode, &a0, sipType_QString,&a1, &a1State, sipType_QVariant,&a2, &a2State, sipType_QVariant,&a3, &a3State, sipType_QVariant,&a4, &a4State, sipType_QVariant,&a5, &a5State, sipType_QVariant,&a6, &a6State, sipType_QVariant,&a7, &a7State, sipType_QVariant,&a8, &a8State, sipType_QVariant,&a9, &a9State))
        {
            QDBusMessage*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusMessage(sipCpp->call(a0,*a1,*a2,*a3,*a4,*a5,*a6,*a7,*a8,*a9));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QVariant *>(a2),sipType_QVariant,a2State);
            sipReleaseType(const_cast<QVariant *>(a3),sipType_QVariant,a3State);
            sipReleaseType(const_cast<QVariant *>(a4),sipType_QVariant,a4State);
            sipReleaseType(const_cast<QVariant *>(a5),sipType_QVariant,a5State);
            sipReleaseType(const_cast<QVariant *>(a6),sipType_QVariant,a6State);
            sipReleaseType(const_cast<QVariant *>(a7),sipType_QVariant,a7State);
            sipReleaseType(const_cast<QVariant *>(a8),sipType_QVariant,a8State);
            sipReleaseType(const_cast<QVariant *>(a9),sipType_QVariant,a9State);

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

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

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_callWithArgumentList, "QDBusAbstractInterface.callWithArgumentList(QDBus.CallMode, str, list-of-QVariant) -> QDBusMessage");

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

    {
        QDBus::CallMode a0;
        const QString* a1;
        int a1State = 0;
        const QList<QVariant>* a2;
        int a2State = 0;
        QDBusAbstractInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1J1", &sipSelf, sipType_QDBusAbstractInterface, &sipCpp, sipType_QDBus_CallMode, &a0, sipType_QString,&a1, &a1State, sipType_QList_0100QVariant,&a2, &a2State))
        {
            QDBusMessage*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusMessage(sipCpp->callWithArgumentList(a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QList<QVariant> *>(a2),sipType_QList_0100QVariant,a2State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractInterface, sipName_callWithArgumentList, doc_QDBusAbstractInterface_callWithArgumentList);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_callWithCallback, "QDBusAbstractInterface.callWithCallback(str, list-of-QVariant, QObject, SLOT(), SLOT()) -> bool\n"
    "QDBusAbstractInterface.callWithCallback(str, list-of-QVariant, callable, callable) -> object\n"
    "QDBusAbstractInterface.callWithCallback(str, list-of-QVariant, QObject, SLOT()) -> bool\n"
    "QDBusAbstractInterface.callWithCallback(str, list-of-QVariant, callable) -> object");

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

    {
        const QString* a0;
        int a0State = 0;
        const QList<QVariant>* a1;
        int a1State = 0;
        QObject* a2;
        char* a3;
        char* a4;
        QDBusAbstractInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J8SS", &sipSelf, sipType_QDBusAbstractInterface, &sipCpp, sipType_QString,&a0, &a0State, sipType_QList_0100QVariant,&a1, &a1State, sipType_QObject, &a2, &a3, &a4))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->callWithCallback(*a0,*a1,a2,a3,a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QList<QVariant> *>(a1),sipType_QList_0100QVariant,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QList<QVariant>* a1;
        int a1State = 0;
        PyObject * a2;
        PyObject * a3;
        QDBusAbstractInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1FF", &sipSelf, sipType_QDBusAbstractInterface, &sipCpp, sipType_QString,&a0, &a0State, sipType_QList_0100QVariant,&a1, &a1State, &a2, &a3))
        {
            PyObject * sipRes = 0;

#line 84 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusabstractinterface.sip"
        QObject *qrx;
        QByteArray return_slot = qpycore_pyqtslot_get_parts(a2, &qrx);
        
        if (!return_slot.isNull())
        {
            QObject *error_qrx;
            QByteArray error_slot = qpycore_pyqtslot_get_parts(a3, &error_qrx);
        
            if (!error_slot.isNull())
            {
                if (qrx == error_qrx)
                {
                    bool ok;
            
                    Py_BEGIN_ALLOW_THREADS
                    ok = sipCpp->callWithCallback(*a0, *a1, qrx, return_slot.constData(), error_slot.constData());
                    Py_END_ALLOW_THREADS
        
                    sipRes = PyBool_FromLong(ok);
                }
                else
                {
                    PyErr_SetString(PyExc_ValueError,
                            "the return and error methods must be bound to the same QObject instance");
                }
            }
        }
#line 13091 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QList<QVariant> *>(a1),sipType_QList_0100QVariant,a1State);

            return sipRes;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QList<QVariant>* a1;
        int a1State = 0;
        QObject* a2;
        char* a3;
        QDBusAbstractInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J8S", &sipSelf, sipType_QDBusAbstractInterface, &sipCpp, sipType_QString,&a0, &a0State, sipType_QList_0100QVariant,&a1, &a1State, sipType_QObject, &a2, &a3))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->callWithCallback(*a0,*a1,a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QList<QVariant> *>(a1),sipType_QList_0100QVariant,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QList<QVariant>* a1;
        int a1State = 0;
        PyObject * a2;
        QDBusAbstractInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1F", &sipSelf, sipType_QDBusAbstractInterface, &sipCpp, sipType_QString,&a0, &a0State, sipType_QList_0100QVariant,&a1, &a1State, &a2))
        {
            PyObject * sipRes = 0;

#line 116 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusabstractinterface.sip"
        QObject *qrx;
        QByteArray slot = qpycore_pyqtslot_get_parts(a2, &qrx);
        
        if (!slot.isNull())
        {
            bool ok;
            
            Py_BEGIN_ALLOW_THREADS
            ok = sipCpp->callWithCallback(*a0, *a1, qrx, slot.constData());
            Py_END_ALLOW_THREADS
        
            sipRes = PyBool_FromLong(ok);
        }
#line 13148 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QList<QVariant> *>(a1),sipType_QList_0100QVariant,a1State);

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractInterface, sipName_callWithCallback, doc_QDBusAbstractInterface_callWithCallback);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_asyncCall, "QDBusAbstractInterface.asyncCall(str, object arg1=QVariant(), object arg2=QVariant(), object arg3=QVariant(), object arg4=QVariant(), object arg5=QVariant(), object arg6=QVariant(), object arg7=QVariant(), object arg8=QVariant()) -> QDBusPendingCall");

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

    {
        const QString* a0;
        int a0State = 0;
        const QVariant& a1def = QVariant();
        const QVariant* a1 = &a1def;
        int a1State = 0;
        const QVariant& a2def = QVariant();
        const QVariant* a2 = &a2def;
        int a2State = 0;
        const QVariant& a3def = QVariant();
        const QVariant* a3 = &a3def;
        int a3State = 0;
        const QVariant& a4def = QVariant();
        const QVariant* a4 = &a4def;
        int a4State = 0;
        const QVariant& a5def = QVariant();
        const QVariant* a5 = &a5def;
        int a5State = 0;
        const QVariant& a6def = QVariant();
        const QVariant* a6 = &a6def;
        int a6State = 0;
        const QVariant& a7def = QVariant();
        const QVariant* a7 = &a7def;
        int a7State = 0;
        const QVariant& a8def = QVariant();
        const QVariant* a8 = &a8def;
        int a8State = 0;
        QDBusAbstractInterface *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_arg1,
            sipName_arg2,
            sipName_arg3,
            sipName_arg4,
            sipName_arg5,
            sipName_arg6,
            sipName_arg7,
            sipName_arg8,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J1J1J1J1J1J1J1J1", &sipSelf, sipType_QDBusAbstractInterface, &sipCpp, sipType_QString,&a0, &a0State, sipType_QVariant,&a1, &a1State, sipType_QVariant,&a2, &a2State, sipType_QVariant,&a3, &a3State, sipType_QVariant,&a4, &a4State, sipType_QVariant,&a5, &a5State, sipType_QVariant,&a6, &a6State, sipType_QVariant,&a7, &a7State, sipType_QVariant,&a8, &a8State))
        {
            QDBusPendingCall*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusPendingCall(sipCpp->asyncCall(*a0,*a1,*a2,*a3,*a4,*a5,*a6,*a7,*a8));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);
            sipReleaseType(const_cast<QVariant *>(a2),sipType_QVariant,a2State);
            sipReleaseType(const_cast<QVariant *>(a3),sipType_QVariant,a3State);
            sipReleaseType(const_cast<QVariant *>(a4),sipType_QVariant,a4State);
            sipReleaseType(const_cast<QVariant *>(a5),sipType_QVariant,a5State);
            sipReleaseType(const_cast<QVariant *>(a6),sipType_QVariant,a6State);
            sipReleaseType(const_cast<QVariant *>(a7),sipType_QVariant,a7State);
            sipReleaseType(const_cast<QVariant *>(a8),sipType_QVariant,a8State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractInterface, sipName_asyncCall, doc_QDBusAbstractInterface_asyncCall);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_asyncCallWithArgumentList, "QDBusAbstractInterface.asyncCallWithArgumentList(str, list-of-QVariant) -> QDBusPendingCall");

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

    {
        const QString* a0;
        int a0State = 0;
        const QList<QVariant>* a1;
        int a1State = 0;
        QDBusAbstractInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QDBusAbstractInterface, &sipCpp, sipType_QString,&a0, &a0State, sipType_QList_0100QVariant,&a1, &a1State))
        {
            QDBusPendingCall*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDBusPendingCall(sipCpp->asyncCallWithArgumentList(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QList<QVariant> *>(a1),sipType_QList_0100QVariant,a1State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractInterface, sipName_asyncCallWithArgumentList, doc_QDBusAbstractInterface_asyncCallWithArgumentList);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_connectNotify, "QDBusAbstractInterface.connectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQDBusAbstractInterface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QDBusAbstractInterface, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractInterface, sipName_connectNotify, doc_QDBusAbstractInterface_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractInterface_disconnectNotify, "QDBusAbstractInterface.disconnectNotify(SIGNAL())");

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

    {
        char* a0;
        sipQDBusAbstractInterface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QDBusAbstractInterface, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractInterface, sipName_disconnectNotify, doc_QDBusAbstractInterface_disconnectNotify);

    return NULL;
}


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

    if (targetType == sipType_QDBusAbstractInterface)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QDBusAbstractInterface *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QDBusAbstractInterface(void *, int);}
static void release_QDBusAbstractInterface(void *sipCppV,int)
{
    QDBusAbstractInterface *sipCpp = reinterpret_cast<QDBusAbstractInterface *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const char* a2;
        PyObject *a2Keep;
        const QDBusConnection* a3;
        QObject* a4;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1AAJ9JH", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, &a2Keep, &a2, sipType_QDBusConnection, &a3, sipType_QObject, &a4, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQDBusAbstractInterface(*a0,*a1,a2,*a3,a4);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            Py_DECREF(a2Keep);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QDBusAbstractInterface[] = {{141, 0, 1}};


static PyMethodDef methods_QDBusAbstractInterface[] = {
    {SIP_MLNAME_CAST(sipName_asyncCall), (PyCFunction)meth_QDBusAbstractInterface_asyncCall, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDBusAbstractInterface_asyncCall)},
    {SIP_MLNAME_CAST(sipName_asyncCallWithArgumentList), meth_QDBusAbstractInterface_asyncCallWithArgumentList, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusAbstractInterface_asyncCallWithArgumentList)},
    {SIP_MLNAME_CAST(sipName_call), (PyCFunction)meth_QDBusAbstractInterface_call, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDBusAbstractInterface_call)},
    {SIP_MLNAME_CAST(sipName_callWithArgumentList), meth_QDBusAbstractInterface_callWithArgumentList, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusAbstractInterface_callWithArgumentList)},
    {SIP_MLNAME_CAST(sipName_callWithCallback), meth_QDBusAbstractInterface_callWithCallback, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusAbstractInterface_callWithCallback)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QDBusAbstractInterface_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QDBusAbstractInterface_connectNotify, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDBusAbstractInterface_connectNotify)},
    {SIP_MLNAME_CAST(sipName_connection), meth_QDBusAbstractInterface_connection, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusAbstractInterface_connection)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QDBusAbstractInterface_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QDBusAbstractInterface_disconnectNotify, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDBusAbstractInterface_disconnectNotify)},
    {SIP_MLNAME_CAST(sipName_interface), meth_QDBusAbstractInterface_interface, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusAbstractInterface_interface)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QDBusAbstractInterface_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusAbstractInterface_isValid)},
    {SIP_MLNAME_CAST(sipName_lastError), meth_QDBusAbstractInterface_lastError, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusAbstractInterface_lastError)},
    {SIP_MLNAME_CAST(sipName_path), meth_QDBusAbstractInterface_path, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusAbstractInterface_path)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QDBusAbstractInterface_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QDBusAbstractInterface_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QDBusAbstractInterface_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_service), meth_QDBusAbstractInterface_service, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusAbstractInterface_service)},
    {SIP_MLNAME_CAST(sipName_setTimeout), meth_QDBusAbstractInterface_setTimeout, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusAbstractInterface_setTimeout)},
    {SIP_MLNAME_CAST(sipName_timeout), meth_QDBusAbstractInterface_timeout, METH_VARARGS, SIP_MLDOC_CAST(doc_QDBusAbstractInterface_timeout)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QDBusAbstractInterface_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

PyDoc_STRVAR(doc_QDBusAbstractInterface, "\1QDBusAbstractInterface(str, str, str, QDBusConnection, QObject)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusAbstractInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QDBusAbstractInterface,
        {0}
    },
    {
        sipNameNr_QDBusAbstractInterface,
        {0, 0, 1},
        21, methods_QDBusAbstractInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusAbstractInterface,
    -1,
    -1,
    supers_QDBusAbstractInterface,
    0,
    init_type_QDBusAbstractInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusAbstractInterface,
    0,
    0,
    0,
    release_QDBusAbstractInterface,
    cast_QDBusAbstractInterface,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QDBusAbstractInterface::staticMetaObject,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtDBus/qdbusabstractadaptor.sip"
#include <qdbusabstractadaptor.h>
#line 13501 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

#line 29 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 13505 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13508 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 368 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13511 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 351 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 13514 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 269 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 13517 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 13520 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 13523 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 13526 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 115 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qlist.sip"
#include <qlist.h>
#line 13529 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 13532 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 31 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 13535 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 13538 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 13541 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"


class sipQDBusAbstractAdaptor : public QDBusAbstractAdaptor
{
public:
    sipQDBusAbstractAdaptor(QObject*);
    virtual ~sipQDBusAbstractAdaptor();

    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_setAutoRelaySignals(bool);
    bool sipProtect_autoRelaySignals() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

sipQDBusAbstractAdaptor::sipQDBusAbstractAdaptor(QObject*a0): QDBusAbstractAdaptor(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipQDBusAbstractAdaptor::metaObject() const
{
    return sip_QtDBus_qt_metaobject(sipPySelf,sipType_QDBusAbstractAdaptor);
}

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

    if (_id >= 0)
        _id = sip_QtDBus_qt_metacall(sipPySelf,sipType_QDBusAbstractAdaptor,_c,_id,_a);

    return _id;
}

void *sipQDBusAbstractAdaptor::qt_metacast(const char *_clname)
{
    return (sip_QtDBus_qt_metacast(sipPySelf, sipType_QDBusAbstractAdaptor, _clname)) ? this : QDBusAbstractAdaptor::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void sipQDBusAbstractAdaptor::sipProtect_setAutoRelaySignals(bool a0)
{
    QDBusAbstractAdaptor::setAutoRelaySignals(a0);
}

bool sipQDBusAbstractAdaptor::sipProtect_autoRelaySignals() const
{
    return QDBusAbstractAdaptor::autoRelaySignals();
}


PyDoc_STRVAR(doc_QDBusAbstractAdaptor_sender, "QDBusAbstractAdaptor.sender() -> QObject");

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

    {
        const sipQDBusAbstractAdaptor *sipCpp;

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

#line 638 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (helper)
            sipRes = helper(sipRes);
#line 13830 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

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

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

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractAdaptor_receivers, "QDBusAbstractAdaptor.receivers(SIGNAL()) -> int");

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

    {
        char* a0;
        const sipQDBusAbstractAdaptor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QDBusAbstractAdaptor, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 664 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        // PyQt5: Get rid of the const casts.
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(const_cast<QObject *>(sipCpp), a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(const_cast<QObject *>(static_cast<const QObject *>(sipCpp)), a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 13875 "/usr/src/ports/python3-pyqt4/python3-pyqt4-4.11.4-1.x86_64/build/QtDBus/sipQtDBuspart0.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractAdaptor, sipName_receivers, doc_QDBusAbstractAdaptor_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractAdaptor_timerEvent, "QDBusAbstractAdaptor.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QDBusAbstractAdaptor_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDBusAbstractAdaptor_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQDBusAbstractAdaptor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDBusAbstractAdaptor, &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_QDBusAbstractAdaptor, sipName_timerEvent, doc_QDBusAbstractAdaptor_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractAdaptor_childEvent, "QDBusAbstractAdaptor.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QDBusAbstractAdaptor_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDBusAbstractAdaptor_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQDBusAbstractAdaptor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDBusAbstractAdaptor, &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_QDBusAbstractAdaptor, sipName_childEvent, doc_QDBusAbstractAdaptor_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractAdaptor_customEvent, "QDBusAbstractAdaptor.customEvent(QEvent)");

extern "C" {static PyObject *meth_QDBusAbstractAdaptor_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDBusAbstractAdaptor_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQDBusAbstractAdaptor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDBusAbstractAdaptor, &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_QDBusAbstractAdaptor, sipName_customEvent, doc_QDBusAbstractAdaptor_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractAdaptor_connectNotify, "QDBusAbstractAdaptor.connectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QDBusAbstractAdaptor_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDBusAbstractAdaptor_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQDBusAbstractAdaptor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QDBusAbstractAdaptor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractAdaptor, sipName_connectNotify, doc_QDBusAbstractAdaptor_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractAdaptor_disconnectNotify, "QDBusAbstractAdaptor.disconnectNotify(SIGNAL())");

extern "C" {static PyObject *meth_QDBusAbstractAdaptor_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDBusAbstractAdaptor_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char* a0;
        sipQDBusAbstractAdaptor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BG", &sipSelf, sipType_QDBusAbstractAdaptor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractAdaptor, sipName_disconnectNotify, doc_QDBusAbstractAdaptor_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractAdaptor_senderSignalIndex, "QDBusAbstractAdaptor.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QDBusAbstractAdaptor_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDBusAbstractAdaptor_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQDBusAbstractAdaptor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QDBusAbstractAdaptor, &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_QDBusAbstractAdaptor, sipName_senderSignalIndex, doc_QDBusAbstractAdaptor_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractAdaptor_setAutoRelaySignals, "QDBusAbstractAdaptor.setAutoRelaySignals(bool)");

extern "C" {static PyObject *meth_QDBusAbstractAdaptor_setAutoRelaySignals(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDBusAbstractAdaptor_setAutoRelaySignals(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        sipQDBusAbstractAdaptor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bb", &sipSelf, sipType_QDBusAbstractAdaptor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setAutoRelaySignals(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractAdaptor, sipName_setAutoRelaySignals, doc_QDBusAbstractAdaptor_setAutoRelaySignals);

    return NULL;
}


PyDoc_STRVAR(doc_QDBusAbstractAdaptor_autoRelaySignals, "QDBusAbstractAdaptor.autoRelaySignals() -> bool");

extern "C" {static PyObject *meth_QDBusAbstractAdaptor_autoRelaySignals(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDBusAbstractAdaptor_autoRelaySignals(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQDBusAbstractAdaptor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QDBusAbstractAdaptor, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_autoRelaySignals();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDBusAbstractAdaptor, sipName_autoRelaySignals, doc_QDBusAbstractAdaptor_autoRelaySignals);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QDBusAbstractAdaptor(void *, const sipTypeDef *);}
static void *cast_QDBusAbstractAdaptor(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QDBusAbstractAdaptor)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QDBusAbstractAdaptor *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QDBusAbstractAdaptor(void *, int);}
static void release_QDBusAbstractAdaptor(void *sipCppV,int)
{
    QDBusAbstractAdaptor *sipCpp = reinterpret_cast<QDBusAbstractAdaptor *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QDBusAbstractAdaptor(sipSimpleWrapper *);}
static void dealloc_QDBusAbstractAdaptor(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQDBusAbstractAdaptor *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QDBusAbstractAdaptor(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QDBusAbstractAdaptor(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QDBusAbstractAdaptor(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQDBusAbstractAdaptor *sipCpp = 0;

    {
        QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQDBusAbstractAdaptor(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QDBusAbstractAdaptor[] = {{141, 0, 1}};


static PyMethodDef methods_QDBusAbstractAdaptor[] = {
    {SIP_MLNAME_CAST(sipName_autoRelaySignals), (PyCFunction)meth_QDBusAbstractAdaptor_autoRelaySignals, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDBusAbstractAdaptor_autoRelaySignals)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QDBusAbstractAdaptor_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QDBusAbstractAdaptor_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QDBusAbstractAdaptor_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QDBusAbstractAdaptor_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QDBusAbstractAdaptor_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QDBusAbstractAdaptor_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QDBusAbstractAdaptor_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setAutoRelaySignals), (PyCFunction)meth_QDBusAbstractAdaptor_setAutoRelaySignals, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDBusAbstractAdaptor_setAutoRelaySignals)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QDBusAbstractAdaptor_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

PyDoc_STRVAR(doc_QDBusAbstractAdaptor, "\1QDBusAbstractAdaptor(QObject)");


pyqt4ClassTypeDef sipTypeDef_QtDBus_QDBusAbstractAdaptor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_QDBusAbstractAdaptor,
        {0}
    },
    {
        sipNameNr_QDBusAbstractAdaptor,
        {0, 0, 1},
        10, methods_QDBusAbstractAdaptor,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDBusAbstractAdaptor,
    -1,
    -1,
    supers_QDBusAbstractAdaptor,
    0,
    init_type_QDBusAbstractAdaptor,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDBusAbstractAdaptor,
    0,
    0,
    0,
    release_QDBusAbstractAdaptor,
    cast_QDBusAbstractAdaptor,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QDBusAbstractAdaptor::staticMetaObject,
    0,
    0
};
