当前位置: 首页>>代码示例>>C++>>正文


C++ sipParsePair函数代码示例

本文整理汇总了C++中sipParsePair函数的典型用法代码示例。如果您正苦于以下问题:C++ sipParsePair函数的具体用法?C++ sipParsePair怎么用?C++ sipParsePair使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了sipParsePair函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: sipReleaseType

static PyObject *slot_QFile_FileHandleFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QFile::FileHandleFlags* a0;
        int a0State = 0;
        QFile::FileHandleFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QFile_FileHandleFlags, &a0, &a0State, sipType_QFile_FileHandleFlags, &a1, &a1State))
        {
            QFile::FileHandleFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QFile::FileHandleFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QFile_FileHandleFlags,a0State);
            sipReleaseType(a1,sipType_QFile_FileHandleFlags,a1State);

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

    {
        QFile::FileHandleFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QFile_FileHandleFlags, &a0, &a0State, &a1))
        {
            QFile::FileHandleFlags*sipRes = 0;

#line 341 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/sip/QtCore/qglobal.sip"
            sipRes = new QFile::FileHandleFlags(*a0 | a1);
#line 295 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/QtCore/sipQtCoreQFileFileHandleFlags.cpp"
            sipReleaseType(a0,sipType_QFile_FileHandleFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtCore,or_slot,NULL,sipArg0,sipArg1);
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:49,代码来源:sipQtCoreQFileFileHandleFlags.cpp

示例2: sipReleaseType

static PyObject *slot_QSql_ParamType___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QSql::ParamType* a0;
        int a0State = 0;
        QSql::ParamType* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QSql_ParamType, &a0, &a0State, sipType_QSql_ParamType, &a1, &a1State))
        {
            QSql::ParamType*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QSql::ParamType((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QSql_ParamType,a0State);
            sipReleaseType(a1,sipType_QSql_ParamType,a1State);

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

    {
        QSql::ParamType* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QSql_ParamType, &a0, &a0State, &a1))
        {
            QSql::ParamType*sipRes = 0;

#line 346 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/sip/QtCore/qglobal.sip"
        sipRes = new QSql::ParamType(*a0 ^ a1);
#line 243 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/QtSql/sipQtSqlQSqlParamType.cpp"
            sipReleaseType(a0,sipType_QSql_ParamType,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtSql,xor_slot,NULL,sipArg0,sipArg1);
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:49,代码来源:sipQtSqlQSqlParamType.cpp

示例3: sipReleaseType

static PyObject *slot_Qt_DropActions___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::DropActions * a0;
        int a0State = 0;
        Qt::DropActions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Qt_DropActions, &a0, &a0State, sipType_Qt_DropActions, &a1, &a1State))
        {
            Qt::DropActions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Qt::DropActions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Qt_DropActions,a0State);
            sipReleaseType(a1,sipType_Qt_DropActions,a1State);

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

    {
        Qt::DropActions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Qt_DropActions, &a0, &a0State, &a1))
        {
            Qt::DropActions *sipRes = 0;

#line 315 "/home/tsheasha/GUC/Bachelors/android-python27/python-build/PyQt-x11-gpl-4.8/sip/QtCore/qglobal.sip"
        sipRes = new Qt::DropActions(*a0 | a1);
#line 284 "sipQtCoreQtDropActions.cpp"
            sipReleaseType(a0,sipType_Qt_DropActions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtCore,or_slot,NULL,sipArg0,sipArg1);
}
开发者ID:ClydeMojura,项目名称:android-python27,代码行数:49,代码来源:sipQtCoreQtDropActions.cpp

示例4: sipReleaseType

static PyObject *slot_QWebFrame_RenderLayers___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QWebFrame::RenderLayers* a0;
        int a0State = 0;
        QWebFrame::RenderLayers* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QWebFrame_RenderLayers, &a0, &a0State, sipType_QWebFrame_RenderLayers, &a1, &a1State))
        {
            QWebFrame::RenderLayers*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QWebFrame::RenderLayers((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QWebFrame_RenderLayers,a0State);
            sipReleaseType(a1,sipType_QWebFrame_RenderLayers,a1State);

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

    {
        QWebFrame::RenderLayers* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QWebFrame_RenderLayers, &a0, &a0State, &a1))
        {
            QWebFrame::RenderLayers*sipRes = 0;

#line 360 "sip/QtCore/qglobal.sip"
        sipRes = new QWebFrame::RenderLayers(*a0 | a1);
#line 290 "/home/vikky/Desktop/DVCS/stuff/scrapy/soft/PyQt-x11-gpl-4.11.4/QtWebKit/sipQtWebKitQWebFrameRenderLayers.cpp"
            sipReleaseType(a0,sipType_QWebFrame_RenderLayers,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtWebKit,or_slot,NULL,sipArg0,sipArg1);
}
开发者ID:annelida,项目名称:stuff,代码行数:49,代码来源:sipQtWebKitQWebFrameRenderLayers.cpp

示例5: sipReleaseType

static PyObject *slot_QTreeWidgetItemIterator_IteratorFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTreeWidgetItemIterator::IteratorFlags* a0;
        int a0State = 0;
        QTreeWidgetItemIterator::IteratorFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QTreeWidgetItemIterator_IteratorFlags, &a0, &a0State, sipType_QTreeWidgetItemIterator_IteratorFlags, &a1, &a1State))
        {
            QTreeWidgetItemIterator::IteratorFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QTreeWidgetItemIterator::IteratorFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QTreeWidgetItemIterator_IteratorFlags,a0State);
            sipReleaseType(a1,sipType_QTreeWidgetItemIterator_IteratorFlags,a1State);

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

    {
        QTreeWidgetItemIterator::IteratorFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTreeWidgetItemIterator_IteratorFlags, &a0, &a0State, &a1))
        {
            QTreeWidgetItemIterator::IteratorFlags*sipRes = 0;

#line 341 "sip/QtCore/qglobal.sip"
        sipRes = new QTreeWidgetItemIterator::IteratorFlags(*a0 | a1);
#line 295 "/Users/ktaylora/PLJV/tillage_likelihood_model/gui/PyQt4/QtGui/sipQtGuiQTreeWidgetItemIteratorIteratorFlags.cpp"
            sipReleaseType(a0,sipType_QTreeWidgetItemIterator_IteratorFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}
开发者ID:PLJV,项目名称:commodity_crop_dev_suitability_model,代码行数:49,代码来源:sipQtGuiQTreeWidgetItemIteratorIteratorFlags.cpp

示例6: sipReleaseType

static PyObject *slot_QGLShader_ShaderType___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QGLShader::ShaderType* a0;
        int a0State = 0;
        QGLShader::ShaderType* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QGLShader_ShaderType, &a0, &a0State, sipType_QGLShader_ShaderType, &a1, &a1State))
        {
            QGLShader::ShaderType*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QGLShader::ShaderType((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QGLShader_ShaderType,a0State);
            sipReleaseType(a1,sipType_QGLShader_ShaderType,a1State);

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

    {
        QGLShader::ShaderType* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QGLShader_ShaderType, &a0, &a0State, &a1))
        {
            QGLShader::ShaderType*sipRes = 0;

#line 341 "sip/QtCore/qglobal.sip"
        sipRes = new QGLShader::ShaderType(*a0 | a1);
#line 295 "/Users/ktaylora/PLJV/tillage_likelihood_model/gui/PyQt4/QtOpenGL/sipQtOpenGLQGLShaderShaderType.cpp"
            sipReleaseType(a0,sipType_QGLShader_ShaderType,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtOpenGL,or_slot,NULL,sipArg0,sipArg1);
}
开发者ID:PLJV,项目名称:commodity_crop_dev_suitability_model,代码行数:49,代码来源:sipQtOpenGLQGLShaderShaderType.cpp

示例7: sipReleaseType

static PyObject *slot_QDesignerFormWindowInterface_Feature___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QDesignerFormWindowInterface::Feature* a0;
        int a0State = 0;
        QDesignerFormWindowInterface::Feature* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QDesignerFormWindowInterface_Feature, &a0, &a0State, sipType_QDesignerFormWindowInterface_Feature, &a1, &a1State))
        {
            QDesignerFormWindowInterface::Feature*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDesignerFormWindowInterface::Feature((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDesignerFormWindowInterface_Feature,a0State);
            sipReleaseType(a1,sipType_QDesignerFormWindowInterface_Feature,a1State);

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

    {
        QDesignerFormWindowInterface::Feature* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QDesignerFormWindowInterface_Feature, &a0, &a0State, &a1))
        {
            QDesignerFormWindowInterface::Feature*sipRes = 0;

#line 346 "sip/QtCore/qglobal.sip"
        sipRes = new QDesignerFormWindowInterface::Feature(*a0 ^ a1);
#line 243 "/Users/ktaylora/PLJV/tillage_likelihood_model/gui/PyQt4/QtDesigner/sipQtDesignerQDesignerFormWindowInterfaceFeature.cpp"
            sipReleaseType(a0,sipType_QDesignerFormWindowInterface_Feature,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtDesigner,xor_slot,NULL,sipArg0,sipArg1);
}
开发者ID:PLJV,项目名称:commodity_crop_dev_suitability_model,代码行数:49,代码来源:sipQtDesignerQDesignerFormWindowInterfaceFeature.cpp

示例8: sipReleaseType

static PyObject *slot_QGraphicsBlurEffect_BlurHints___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QGraphicsBlurEffect::BlurHints * a0;
        int a0State = 0;
        QGraphicsBlurEffect::BlurHints * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QGraphicsBlurEffect_BlurHints, &a0, &a0State, sipType_QGraphicsBlurEffect_BlurHints, &a1, &a1State))
        {
            QGraphicsBlurEffect::BlurHints *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QGraphicsBlurEffect::BlurHints((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QGraphicsBlurEffect_BlurHints,a0State);
            sipReleaseType(a1,sipType_QGraphicsBlurEffect_BlurHints,a1State);

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

    {
        QGraphicsBlurEffect::BlurHints * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QGraphicsBlurEffect_BlurHints, &a0, &a0State, &a1))
        {
            QGraphicsBlurEffect::BlurHints *sipRes = 0;

#line 320 "/home/tsheasha/GUC/Bachelors/android-python27/python-build/PyQt-x11-gpl-4.8/sip/QtCore/qglobal.sip"
        sipRes = new QGraphicsBlurEffect::BlurHints(*a0 ^ a1);
#line 232 "sipQtGuiQGraphicsBlurEffectBlurHints.cpp"
            sipReleaseType(a0,sipType_QGraphicsBlurEffect_BlurHints,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}
开发者ID:ClydeMojura,项目名称:android-python27,代码行数:49,代码来源:sipQtGuiQGraphicsBlurEffectBlurHints.cpp

示例9: sipReleaseType

static PyObject *slot_QNetworkInterface_InterfaceFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

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

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

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

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

    {
        QNetworkInterface::InterfaceFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QNetworkInterface_InterfaceFlags, &a0, &a0State, &a1))
        {
            QNetworkInterface::InterfaceFlags*sipRes = 0;

#line 365 "sip/QtCore/qglobal.sip"
        sipRes = new QNetworkInterface::InterfaceFlags(*a0 ^ a1);
#line 238 "/home/vikky/Desktop/DVCS/stuff/scrapy/soft/PyQt-x11-gpl-4.11.4/QtNetwork/sipQtNetworkQNetworkInterfaceInterfaceFlags.cpp"
            sipReleaseType(a0,sipType_QNetworkInterface_InterfaceFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,xor_slot,NULL,sipArg0,sipArg1);
}
开发者ID:annelida,项目名称:stuff,代码行数:49,代码来源:sipQtNetworkQNetworkInterfaceInterfaceFlags.cpp

示例10: sipReleaseType

static PyObject *slot_QAbstractSocket_BindMode___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

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

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

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

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

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

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

#line 360 "sip/QtCore/qglobal.sip"
        sipRes = new QAbstractSocket::BindMode(*a0 | a1);
#line 290 "/home/vikky/Desktop/DVCS/stuff/scrapy/soft/PyQt-x11-gpl-4.11.4/QtNetwork/sipQtNetworkQAbstractSocketBindMode.cpp"
            sipReleaseType(a0,sipType_QAbstractSocket_BindMode,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,or_slot,NULL,sipArg0,sipArg1);
}
开发者ID:annelida,项目名称:stuff,代码行数:49,代码来源:sipQtNetworkQAbstractSocketBindMode.cpp

示例11: sipReleaseType

static PyObject *slot_QNetworkConfigurationManager_Capabilities___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

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

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

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

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

    {
        QNetworkConfigurationManager::Capabilities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QNetworkConfigurationManager_Capabilities, &a0, &a0State, &a1))
        {
            QNetworkConfigurationManager::Capabilities*sipRes = 0;

#line 346 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/sip/QtCore/qglobal.sip"
            sipRes = new QNetworkConfigurationManager::Capabilities(*a0 ^ a1);
#line 243 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/QtNetwork/sipQtNetworkQNetworkConfigurationManagerCapabilities.cpp"
            sipReleaseType(a0,sipType_QNetworkConfigurationManager_Capabilities,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,xor_slot,NULL,sipArg0,sipArg1);
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:49,代码来源:sipQtNetworkQNetworkConfigurationManagerCapabilities.cpp

示例12: sipReleaseType

static PyObject *slot_Qt_DropActions___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::DropActions* a0;
        int a0State = 0;
        Qt::DropActions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Qt_DropActions, &a0, &a0State, sipType_Qt_DropActions, &a1, &a1State))
        {
            Qt::DropActions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Qt::DropActions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Qt_DropActions,a0State);
            sipReleaseType(a1,sipType_Qt_DropActions,a1State);

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

    {
        Qt::DropActions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Qt_DropActions, &a0, &a0State, &a1))
        {
            Qt::DropActions*sipRes = 0;

#line 346 "/Users/ktaylora/PLJV/tillage_likelihood_model/gui/PyQt4/sip/QtCore/qglobal.sip"
        sipRes = new Qt::DropActions(*a0 ^ a1);
#line 243 "/Users/ktaylora/PLJV/tillage_likelihood_model/gui/PyQt4/QtCore/sipQtCoreQtDropActions.cpp"
            sipReleaseType(a0,sipType_Qt_DropActions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtCore,xor_slot,NULL,sipArg0,sipArg1);
}
开发者ID:PLJV,项目名称:commodity_crop_dev_suitability_model,代码行数:49,代码来源:sipQtCoreQtDropActions.cpp

示例13: sipConvertFromNewType

static PyObject *slot_QOpenGLDebugMessage_Types___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Types* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLDebugMessage_Types, &a0, &a0State, &a1))
        {
            QOpenGLDebugMessage::Types*sipRes;

            sipRes = new QOpenGLDebugMessage::Types((*a0 & a1));
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Types,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}
开发者ID:rff255,项目名称:python-qt5,代码行数:27,代码来源:sipQtGuiQOpenGLDebugMessageTypes.cpp

示例14: sipConvertFromNewType

static PyObject *slot_QNetworkSession_UsagePolicies___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QNetworkSession::UsagePolicies* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QNetworkSession_UsagePolicies, &a0, &a0State, &a1))
        {
            QNetworkSession::UsagePolicies*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkSession::UsagePolicies((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QNetworkSession_UsagePolicies,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,and_slot,NULL,sipArg0,sipArg1);
}
开发者ID:annelida,项目名称:stuff,代码行数:29,代码来源:sipQtNetworkQNetworkSessionUsagePolicies.cpp

示例15: sipConvertFromNewType

static PyObject *slot_QFileDialog_Options___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
         ::QFileDialog::Options* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QFileDialog_Options, &a0, &a0State, &a1))
        {
             ::QFileDialog::Options*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QFileDialog::Options((*a0 ^ a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QFileDialog_Options,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui, xor_slot, NULL, sipArg0, sipArg1);
}
开发者ID:thaisdb,项目名称:TCC,代码行数:29,代码来源:sipQtGuiQFileDialogOptions.cpp


注:本文中的sipParsePair函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。