/*
 * Interface wrapper code.
 *
 * Generated by SIP 4.19.6
 */

#include "sipAPIKWidgetsAddons.h"

#include <ktimecombobox.h>

#include <ktimecombobox.h>


extern "C" {static long slot_KTimeComboBox_Options___hash__(PyObject *);}
static long slot_KTimeComboBox_Options___hash__(PyObject *sipSelf)
{
     ::KTimeComboBox::Options *sipCpp = reinterpret_cast< ::KTimeComboBox::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeComboBox_Options));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

        sipRes = sipCpp->operator KTimeComboBox::Options::Int();

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static int slot_KTimeComboBox_Options___bool__(PyObject *);}
static int slot_KTimeComboBox_Options___bool__(PyObject *sipSelf)
{
     ::KTimeComboBox::Options *sipCpp = reinterpret_cast< ::KTimeComboBox::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeComboBox_Options));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

        sipRes = (sipCpp->operator KTimeComboBox::Options::Int() != 0);

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_KTimeComboBox_Options___ne__(PyObject *,PyObject *);}
static PyObject *slot_KTimeComboBox_Options___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::KTimeComboBox::Options *sipCpp = reinterpret_cast< ::KTimeComboBox::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeComboBox_Options));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeComboBox::Options* a0;
        int a0State = 0;

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

        sipRes = (sipCpp->operator KTimeComboBox::Options::Int() != a0->operator KTimeComboBox::Options::Int());
            sipReleaseType(const_cast< ::KTimeComboBox::Options *>(a0),sipType_KTimeComboBox_Options,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_KWidgetsAddons, ne_slot, sipType_KTimeComboBox_Options, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_KTimeComboBox_Options___eq__(PyObject *,PyObject *);}
static PyObject *slot_KTimeComboBox_Options___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::KTimeComboBox::Options *sipCpp = reinterpret_cast< ::KTimeComboBox::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeComboBox_Options));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::KTimeComboBox::Options* a0;
        int a0State = 0;

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

        sipRes = (sipCpp->operator KTimeComboBox::Options::Int() == a0->operator KTimeComboBox::Options::Int());
            sipReleaseType(const_cast< ::KTimeComboBox::Options *>(a0),sipType_KTimeComboBox_Options,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_KWidgetsAddons, eq_slot, sipType_KTimeComboBox_Options, sipSelf, sipArg);
}


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

     ::KTimeComboBox::Options *sipCpp = reinterpret_cast< ::KTimeComboBox::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeComboBox_Options));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
        *sipCpp = KTimeComboBox::Options(*sipCpp ^ a0);

            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_KTimeComboBox_Options___xor__(PyObject *,PyObject *);}
static PyObject *slot_KTimeComboBox_Options___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

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

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

            sipRes = new  ::KTimeComboBox::Options((*a0 ^ a1));
            sipReleaseType(a0,sipType_KTimeComboBox_Options,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

     ::KTimeComboBox::Options *sipCpp = reinterpret_cast< ::KTimeComboBox::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeComboBox_Options));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
        *sipCpp = KTimeComboBox::Options(*sipCpp | a0);

            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_KTimeComboBox_Options___or__(PyObject *,PyObject *);}
static PyObject *slot_KTimeComboBox_Options___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

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

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

            sipRes = new  ::KTimeComboBox::Options((*a0 | a1));
            sipReleaseType(a0,sipType_KTimeComboBox_Options,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

     ::KTimeComboBox::Options *sipCpp = reinterpret_cast< ::KTimeComboBox::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeComboBox_Options));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp-> ::KTimeComboBox::Options::operator&=(a0);

            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_KTimeComboBox_Options___and__(PyObject *,PyObject *);}
static PyObject *slot_KTimeComboBox_Options___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

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

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

            sipRes = new  ::KTimeComboBox::Options((*a0 & a1));
            sipReleaseType(a0,sipType_KTimeComboBox_Options,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_KTimeComboBox_Options___invert__(PyObject *);}
static PyObject *slot_KTimeComboBox_Options___invert__(PyObject *sipSelf)
{
     ::KTimeComboBox::Options *sipCpp = reinterpret_cast< ::KTimeComboBox::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeComboBox_Options));

    if (!sipCpp)
        return 0;


    {
        {
             ::KTimeComboBox::Options*sipRes;

            sipRes = new  ::KTimeComboBox::Options(~(*sipCpp));

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

    return 0;
}


extern "C" {static PyObject *slot_KTimeComboBox_Options___int__(PyObject *);}
static PyObject *slot_KTimeComboBox_Options___int__(PyObject *sipSelf)
{
     ::KTimeComboBox::Options *sipCpp = reinterpret_cast< ::KTimeComboBox::Options *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTimeComboBox_Options));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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


extern "C" {static void assign_KTimeComboBox_Options(void *, SIP_SSIZE_T, void *);}
static void assign_KTimeComboBox_Options(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::KTimeComboBox::Options *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::KTimeComboBox::Options *>(sipSrc);
}


extern "C" {static void *array_KTimeComboBox_Options(SIP_SSIZE_T);}
static void *array_KTimeComboBox_Options(SIP_SSIZE_T sipNrElem)
{
    return new  ::KTimeComboBox::Options[sipNrElem];
}


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


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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::KTimeComboBox::Options();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::KTimeComboBox::Options(a0);

            return sipCpp;
        }
    }

    {
        const  ::KTimeComboBox::Options* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_KTimeComboBox_Options, &a0, &a0State))
        {
            sipCpp = new  ::KTimeComboBox::Options(*a0);
            sipReleaseType(const_cast< ::KTimeComboBox::Options *>(a0),sipType_KTimeComboBox_Options,a0State);

            return sipCpp;
        }
    }

    return NULL;
}


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

// Allow an instance of the base enum whenever a KTimeComboBox::Options is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTimeComboBox_Option)) ||
            sipCanConvertToType(sipPy, sipType_KTimeComboBox_Options, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_KTimeComboBox_Option)))
{
    *sipCppPtr = new KTimeComboBox::Options(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<KTimeComboBox::Options *>(sipConvertToType(sipPy, sipType_KTimeComboBox_Options, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_KTimeComboBox_Options[] = {
    {(void *)slot_KTimeComboBox_Options___hash__, hash_slot},
    {(void *)slot_KTimeComboBox_Options___bool__, bool_slot},
    {(void *)slot_KTimeComboBox_Options___ne__, ne_slot},
    {(void *)slot_KTimeComboBox_Options___eq__, eq_slot},
    {(void *)slot_KTimeComboBox_Options___ixor__, ixor_slot},
    {(void *)slot_KTimeComboBox_Options___xor__, xor_slot},
    {(void *)slot_KTimeComboBox_Options___ior__, ior_slot},
    {(void *)slot_KTimeComboBox_Options___or__, or_slot},
    {(void *)slot_KTimeComboBox_Options___iand__, iand_slot},
    {(void *)slot_KTimeComboBox_Options___and__, and_slot},
    {(void *)slot_KTimeComboBox_Options___invert__, invert_slot},
    {(void *)slot_KTimeComboBox_Options___int__, int_slot},
    {0, (sipPySlotType)0}
};


static pyqt5ClassPluginDef plugin_KTimeComboBox_Options = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_KWidgetsAddons_KTimeComboBox_Options = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_KTimeComboBox__Options,
        {0},
        &plugin_KTimeComboBox_Options
    },
    {
        sipNameNr_Options,
        {89, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    slots_KTimeComboBox_Options,
    init_type_KTimeComboBox_Options,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTimeComboBox_Options,
    assign_KTimeComboBox_Options,
    array_KTimeComboBox_Options,
    copy_KTimeComboBox_Options,
    release_KTimeComboBox_Options,
    0,
    convertTo_KTimeComboBox_Options,
    0,
    0,
    0,
    0,
    0
};
