/*
 * Module code.
 *
 * Generated by SIP 4.19.3
 *
 * Copyright (c) 2017 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt5.
 * 
 * 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 "sipAPIQtX11Extras.h"


/* Define the strings used by this module. */
const char sipStrings_QtX11Extras[] = {
    's', 'i', 'p', '.', 's', 'i', 'm', 'p', 'l', 'e', 'w', 'r', 'a', 'p', 'p', 'e', 'r', 0,
    'P', 'y', 'Q', 't', '5', '.', 'Q', 't', 'X', '1', '1', 'E', 'x', 't', 'r', 'a', 's', 0,
    's', 'e', 't', 'N', 'e', 'x', 't', 'S', 't', 'a', 'r', 't', 'u', 'p', 'I', 'd', 0,
    'x', 'c', 'b', '_', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', '_', 't', 0,
    's', 'e', 't', 'A', 'p', 'p', 'U', 's', 'e', 'r', 'T', 'i', 'm', 'e', 0,
    'n', 'e', 'x', 't', 'S', 't', 'a', 'r', 't', 'u', 'p', 'I', 'd', 0,
    'a', 'p', 'p', 'R', 'o', 'o', 't', 'W', 'i', 'n', 'd', 'o', 'w', 0,
    'i', 's', 'P', 'l', 'a', 't', 'f', 'o', 'r', 'm', 'X', '1', '1', 0,
    'g', 'e', 't', 'T', 'i', 'm', 'e', 's', 't', 'a', 'm', 'p', 0,
    'a', 'p', 'p', 'U', 's', 'e', 'r', 'T', 'i', 'm', 'e', 0,
    'c', 'o', 'n', 'n', 'e', 'c', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'A', 'p', 'p', 'T', 'i', 'm', 'e', 0,
    'a', 'p', 'p', 'S', 'c', 'r', 'e', 'e', 'n', 0,
    'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', 0,
    'p', 'r', 'e', 'c', 'i', 's', 'i', 'o', 'n', 0,
    'Q', 'X', '1', '1', 'I', 'n', 'f', 'o', 0,
    'n', 'a', 'm', 'e', 'T', 'y', 'p', 'e', 0,
    'd', 'i', 's', 'p', 'l', 'a', 'y', 0,
    'a', 'p', 'p', 'T', 'i', 'm', 'e', 0,
    'a', 'p', 'p', 'D', 'p', 'i', 'Y', 0,
    'a', 'p', 'p', 'D', 'p', 'i', 'X', 0,
    'D', 'i', 's', 'p', 'l', 'a', 'y', 0,
    'f', 'i', 'l', 't', 'e', 'r', 's', 0,
    'e', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'o', 'p', 't', 'i', 'o', 'n', 's', 0,
    's', 'c', 'r', 'e', 'e', 'n', 0,
    'p', 'r', 'o', 'p', 'e', 'r', 0,
    'v', 'a', 'l', 'u', 'e', '9', 0,
    'v', 'a', 'l', 'u', 'e', '8', 0,
    'v', 'a', 'l', 'u', 'e', '7', 0,
    'v', 'a', 'l', 'u', 'e', '6', 0,
    'v', 'a', 'l', 'u', 'e', '5', 0,
    'v', 'a', 'l', 'u', 'e', '4', 0,
    'v', 'a', 'l', 'u', 'e', '3', 0,
    'v', 'a', 'l', 'u', 'e', '2', 0,
    'v', 'a', 'l', 'u', 'e', '1', 0,
    'v', 'a', 'l', 'u', 'e', '0', 0,
    's', 'y', 'm', 'b', 'o', 'l', 0,
    's', 'u', 'f', 'f', 'i', 'x', 0,
    'p', 'r', 'e', 'f', 'i', 'x', 0,
    'l', 'o', 'c', 'a', 'l', 'e', 0,
    'f', 'o', 'r', 'm', 'a', 't', 0,
    'o', 'b', 'j', 'e', 'c', 't', 0,
    'm', 's', 'e', 'c', 's', 0,
    'm', 'o', 'd', 'e', 0,
    'n', 'a', 'm', 'e', 0,
    'b', 'a', 's', 'e', 0,
    'f', 'r', 'o', 'm', 0,
    's', 'o', 'r', 't', 0,
};


/*
 * This defines each type in this module.
 */
sipTypeDef *sipExportedTypes_QtX11Extras[] = {
    &sipTypeDef_QtX11Extras_Display.ctd_base,
    &sipTypeDef_QtX11Extras_QX11Info.ctd_base,
    &sipTypeDef_QtX11Extras_xcb_connection_t.ctd_base,
};


/* This defines the types that this module needs to import from QtCore. */
sipImportedTypeDef sipImportedTypes_QtX11Extras_QtCore[] = {
    {"QByteArray"},
    {NULL}
};


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


/* This defines this module. */
sipExportedModuleDef sipModuleAPI_QtX11Extras = {
    0,
    SIP_API_MINOR_NR,
    sipNameNr_PyQt5_QtX11Extras,
    0,
    sipStrings_QtX11Extras,
    importsTable,
    NULL,
    3,
    sipExportedTypes_QtX11Extras,
    NULL,
    0,
    NULL,
    0,
    NULL,
    NULL,
    NULL,
    {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_QtX11Extras;

sip_qt_metaobject_func sip_QtX11Extras_qt_metaobject;
sip_qt_metacall_func sip_QtX11Extras_qt_metacall;
sip_qt_metacast_func sip_QtX11Extras_qt_metacast;


/* The Python module initialisation function. */
#if PY_MAJOR_VERSION >= 3
#define SIP_MODULE_ENTRY        PyInit_QtX11Extras
#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        initQtX11Extras
#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,
        "PyQt5.QtX11Extras",
        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_PyQt5_QtX11Extras, sip_methods);
#else
    sipModule = Py_InitModule(const_cast<char *>(sipName_PyQt5_QtX11Extras), 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_QtX11Extras = reinterpret_cast<const sipAPIDef *>(PyCapsule_GetPointer(sip_capiobj, SIP_MODULE_NAME "._C_API"));
#else
    sipAPI_QtX11Extras = reinterpret_cast<const sipAPIDef *>(PyCObject_AsVoidPtr(sip_capiobj));
#endif

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

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

    sip_QtX11Extras_qt_metaobject = (sip_qt_metaobject_func)sipImportSymbol("qtcore_qt_metaobject");
    sip_QtX11Extras_qt_metacall = (sip_qt_metacall_func)sipImportSymbol("qtcore_qt_metacall");
    sip_QtX11Extras_qt_metacast = (sip_qt_metacast_func)sipImportSymbol("qtcore_qt_metacast");

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

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

    SIP_MODULE_RETURN(sipModule);
}

#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-2.i686/build/py3/sip/QtX11Extras/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 264 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-2.i686/build/py3/QtX11Extras/sipQtX11Extraspart0.cpp"

#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 268 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-2.i686/build/py3/QtX11Extras/sipQtX11Extraspart0.cpp"


PyDoc_STRVAR(doc_QX11Info_isPlatformX11, "isPlatformX11() -> bool");

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

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

            sipRes =  ::QX11Info::isPlatformX11();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QX11Info, sipName_isPlatformX11, doc_QX11Info_isPlatformX11);

    return NULL;
}


PyDoc_STRVAR(doc_QX11Info_appDpiX, "appDpiX(screen: int = -1) -> int");

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

    {
        int a0 = -1;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "|i", &a0))
        {
            int sipRes;

            sipRes =  ::QX11Info::appDpiX(a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QX11Info, sipName_appDpiX, doc_QX11Info_appDpiX);

    return NULL;
}


PyDoc_STRVAR(doc_QX11Info_appDpiY, "appDpiY(screen: int = -1) -> int");

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

    {
        int a0 = -1;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "|i", &a0))
        {
            int sipRes;

            sipRes =  ::QX11Info::appDpiY(a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QX11Info, sipName_appDpiY, doc_QX11Info_appDpiY);

    return NULL;
}


PyDoc_STRVAR(doc_QX11Info_appRootWindow, "appRootWindow(screen: int = -1) -> int");

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

    {
        int a0 = -1;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "|i", &a0))
        {
            unsigned long sipRes;

            sipRes =  ::QX11Info::appRootWindow(a0);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QX11Info, sipName_appRootWindow, doc_QX11Info_appRootWindow);

    return NULL;
}


PyDoc_STRVAR(doc_QX11Info_appScreen, "appScreen() -> int");

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

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

            sipRes =  ::QX11Info::appScreen();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QX11Info, sipName_appScreen, doc_QX11Info_appScreen);

    return NULL;
}


PyDoc_STRVAR(doc_QX11Info_appTime, "appTime() -> int");

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

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

            sipRes =  ::QX11Info::appTime();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QX11Info, sipName_appTime, doc_QX11Info_appTime);

    return NULL;
}


PyDoc_STRVAR(doc_QX11Info_appUserTime, "appUserTime() -> int");

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

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

            sipRes =  ::QX11Info::appUserTime();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QX11Info, sipName_appUserTime, doc_QX11Info_appUserTime);

    return NULL;
}


PyDoc_STRVAR(doc_QX11Info_setAppTime, "setAppTime(int)");

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

    {
        unsigned long a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "m", &a0))
        {
             ::QX11Info::setAppTime(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QX11Info, sipName_setAppTime, doc_QX11Info_setAppTime);

    return NULL;
}


PyDoc_STRVAR(doc_QX11Info_setAppUserTime, "setAppUserTime(int)");

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

    {
        unsigned long a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "m", &a0))
        {
             ::QX11Info::setAppUserTime(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QX11Info, sipName_setAppUserTime, doc_QX11Info_setAppUserTime);

    return NULL;
}


PyDoc_STRVAR(doc_QX11Info_getTimestamp, "getTimestamp() -> int");

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

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

            sipRes =  ::QX11Info::getTimestamp();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QX11Info, sipName_getTimestamp, doc_QX11Info_getTimestamp);

    return NULL;
}


PyDoc_STRVAR(doc_QX11Info_nextStartupId, "nextStartupId() -> QByteArray");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
             ::QByteArray*sipRes;

            sipRes = new  ::QByteArray( ::QX11Info::nextStartupId());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QX11Info, sipName_nextStartupId, doc_QX11Info_nextStartupId);

    return NULL;
}


PyDoc_STRVAR(doc_QX11Info_setNextStartupId, "setNextStartupId(Union[QByteArray, bytes, bytearray])");

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

    {
        const  ::QByteArray* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QByteArray, &a0, &a0State))
        {
             ::QX11Info::setNextStartupId(*a0);
            sipReleaseType(const_cast< ::QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QX11Info, sipName_setNextStartupId, doc_QX11Info_setNextStartupId);

    return NULL;
}


PyDoc_STRVAR(doc_QX11Info_display, "display() -> Display");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
             ::Display*sipRes;

            sipRes =  ::QX11Info::display();

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QX11Info, sipName_display, doc_QX11Info_display);

    return NULL;
}


PyDoc_STRVAR(doc_QX11Info_connection, "connection() -> xcb_connection_t");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
             ::xcb_connection_t*sipRes;

            sipRes =  ::QX11Info::connection();

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

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

    return NULL;
}


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


extern "C" {static void dealloc_QX11Info(sipSimpleWrapper *);}
static void dealloc_QX11Info(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_QX11Info(sipGetAddress(sipSelf), 0);
    }
}


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

    {
        const  ::QX11Info* a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QX11Info[] = {
    {SIP_MLNAME_CAST(sipName_appDpiX), (PyCFunction)meth_QX11Info_appDpiX, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QX11Info_appDpiX)},
    {SIP_MLNAME_CAST(sipName_appDpiY), (PyCFunction)meth_QX11Info_appDpiY, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QX11Info_appDpiY)},
    {SIP_MLNAME_CAST(sipName_appRootWindow), (PyCFunction)meth_QX11Info_appRootWindow, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QX11Info_appRootWindow)},
    {SIP_MLNAME_CAST(sipName_appScreen), meth_QX11Info_appScreen, METH_VARARGS, SIP_MLDOC_CAST(doc_QX11Info_appScreen)},
    {SIP_MLNAME_CAST(sipName_appTime), meth_QX11Info_appTime, METH_VARARGS, SIP_MLDOC_CAST(doc_QX11Info_appTime)},
    {SIP_MLNAME_CAST(sipName_appUserTime), meth_QX11Info_appUserTime, METH_VARARGS, SIP_MLDOC_CAST(doc_QX11Info_appUserTime)},
    {SIP_MLNAME_CAST(sipName_connection), meth_QX11Info_connection, METH_VARARGS, SIP_MLDOC_CAST(doc_QX11Info_connection)},
    {SIP_MLNAME_CAST(sipName_display), meth_QX11Info_display, METH_VARARGS, SIP_MLDOC_CAST(doc_QX11Info_display)},
    {SIP_MLNAME_CAST(sipName_getTimestamp), meth_QX11Info_getTimestamp, METH_VARARGS, SIP_MLDOC_CAST(doc_QX11Info_getTimestamp)},
    {SIP_MLNAME_CAST(sipName_isPlatformX11), meth_QX11Info_isPlatformX11, METH_VARARGS, SIP_MLDOC_CAST(doc_QX11Info_isPlatformX11)},
    {SIP_MLNAME_CAST(sipName_nextStartupId), meth_QX11Info_nextStartupId, METH_VARARGS, SIP_MLDOC_CAST(doc_QX11Info_nextStartupId)},
    {SIP_MLNAME_CAST(sipName_setAppTime), meth_QX11Info_setAppTime, METH_VARARGS, SIP_MLDOC_CAST(doc_QX11Info_setAppTime)},
    {SIP_MLNAME_CAST(sipName_setAppUserTime), meth_QX11Info_setAppUserTime, METH_VARARGS, SIP_MLDOC_CAST(doc_QX11Info_setAppUserTime)},
    {SIP_MLNAME_CAST(sipName_setNextStartupId), meth_QX11Info_setNextStartupId, METH_VARARGS, SIP_MLDOC_CAST(doc_QX11Info_setNextStartupId)}
};

PyDoc_STRVAR(doc_QX11Info, "\1QX11Info(QX11Info)");


static pyqt5ClassPluginDef plugin_QX11Info = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtX11Extras_QX11Info = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QX11Info,
        {0},
        &plugin_QX11Info
    },
    {
        sipNameNr_QX11Info,
        {0, 0, 1},
        14, methods_QX11Info,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QX11Info,
    -1,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QX11Info,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QX11Info,
    0,
    0,
    0,
    release_QX11Info,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};




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


static pyqt5ClassPluginDef plugin_xcb_connection_t = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtX11Extras_xcb_connection_t = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_xcb_connection_t,
        {0},
        &plugin_xcb_connection_t
    },
    {
        sipNameNr_xcb_connection_t,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_xcb_connection_t,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};




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


static pyqt5ClassPluginDef plugin_Display = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtX11Extras_Display = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_Display,
        {0},
        &plugin_Display
    },
    {
        sipNameNr_Display,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_Display,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};
