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

#include "sipAPIKConfigGui.h"

#include <kconfigskeleton.h>
#include <kconfigskeleton.h>

#include <qstring.h>
#include <qfont.h>
#include <qvariant.h>
#include <kconfig.h>
#include <kconfiggroup.h>


class sipKConfigSkeleton_ItemFont : public  ::KConfigSkeleton::ItemFont
{
public:
    sipKConfigSkeleton_ItemFont(const  ::QString&,const  ::QString&, ::QFont&,const  ::QFont&);
    virtual ~sipKConfigSkeleton_ItemFont();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_readImmutability(const  ::KConfigGroup&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void readConfig( ::KConfig*);
    void writeConfig( ::KConfig*);
    void readDefault( ::KConfig*);
    void setProperty(const  ::QVariant&);
    bool isEqual(const  ::QVariant&) const;
     ::QVariant property() const;
     ::QVariant minValue() const;
     ::QVariant maxValue() const;
    void setDefault();
    void swapDefault();

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[10];
};

sipKConfigSkeleton_ItemFont::sipKConfigSkeleton_ItemFont(const  ::QString& a0,const  ::QString& a1, ::QFont& a2,const  ::QFont& a3):  ::KConfigSkeleton::ItemFont(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKConfigSkeleton_ItemFont::~sipKConfigSkeleton_ItemFont()
{
    sipInstanceDestroyed(sipPySelf);
}

void sipKConfigSkeleton_ItemFont::readConfig( ::KConfig*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KConfigSkeleton::ItemFont::readConfig(a0);
        return;
    }

    extern void sipVH_KConfigGui_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KConfig*);

    sipVH_KConfigGui_12(sipGILState, sipImportedVirtErrorHandlers_KConfigGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKConfigSkeleton_ItemFont::writeConfig( ::KConfig*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_ItemFont,sipName_writeConfig);

    if (!sipMeth)
        return;

    extern void sipVH_KConfigGui_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KConfig*);

    sipVH_KConfigGui_12(sipGILState, sipImportedVirtErrorHandlers_KConfigGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKConfigSkeleton_ItemFont::readDefault( ::KConfig*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_ItemFont,sipName_readDefault);

    if (!sipMeth)
        return;

    extern void sipVH_KConfigGui_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KConfig*);

    sipVH_KConfigGui_12(sipGILState, sipImportedVirtErrorHandlers_KConfigGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKConfigSkeleton_ItemFont::setProperty(const  ::QVariant& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KConfigSkeleton::ItemFont::setProperty(a0);
        return;
    }

    extern void sipVH_KConfigGui_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QVariant&);

    sipVH_KConfigGui_11(sipGILState, sipImportedVirtErrorHandlers_KConfigGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipKConfigSkeleton_ItemFont::isEqual(const  ::QVariant& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KConfigSkeleton::ItemFont::isEqual(a0);

    extern bool sipVH_KConfigGui_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QVariant&);

    return sipVH_KConfigGui_10(sipGILState, sipImportedVirtErrorHandlers_KConfigGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QVariant sipKConfigSkeleton_ItemFont::property() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KConfigSkeleton::ItemFont::property();

    extern  ::QVariant sipVH_KConfigGui_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_KConfigGui_9(sipGILState, sipImportedVirtErrorHandlers_KConfigGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QVariant sipKConfigSkeleton_ItemFont::minValue() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KConfigSkeleton::ItemFont::minValue();

    extern  ::QVariant sipVH_KConfigGui_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_KConfigGui_9(sipGILState, sipImportedVirtErrorHandlers_KConfigGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QVariant sipKConfigSkeleton_ItemFont::maxValue() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KConfigSkeleton::ItemFont::maxValue();

    extern  ::QVariant sipVH_KConfigGui_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_KConfigGui_9(sipGILState, sipImportedVirtErrorHandlers_KConfigGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipKConfigSkeleton_ItemFont::setDefault()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,sipName_ItemFont,sipName_setDefault);

    if (!sipMeth)
        return;

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

    sipVH_KConfigGui_1(sipGILState, sipImportedVirtErrorHandlers_KConfigGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipKConfigSkeleton_ItemFont::swapDefault()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,sipName_ItemFont,sipName_swapDefault);

    if (!sipMeth)
        return;

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

    sipVH_KConfigGui_1(sipGILState, sipImportedVirtErrorHandlers_KConfigGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipKConfigSkeleton_ItemFont::sipProtect_readImmutability(const  ::KConfigGroup& a0)
{
     ::KConfigSkeletonItem::readImmutability(a0);
}


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

    {
        const  ::KConfigGroup* a0;
        sipKConfigSkeleton_ItemFont *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KConfigSkeleton_ItemFont, &sipCpp, sipType_KConfigGroup, &a0))
        {
            sipCpp->sipProtect_readImmutability(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemFont, sipName_readImmutability, NULL);

    return NULL;
}


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

    {
         ::KConfig* a0;
         ::KConfigSkeleton::ItemFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KConfigSkeleton_ItemFont, &sipCpp, sipType_KConfig, &a0))
        {
            (sipSelfWasArg ? sipCpp-> ::KConfigSkeleton::ItemFont::readConfig(a0) : sipCpp->readConfig(a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemFont, sipName_readConfig, NULL);

    return NULL;
}


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

    {
        const  ::QVariant* a0;
        int a0State = 0;
         ::KConfigSkeleton::ItemFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KConfigSkeleton_ItemFont, &sipCpp, sipType_QVariant, &a0, &a0State))
        {
            (sipSelfWasArg ? sipCpp-> ::KConfigSkeleton::ItemFont::setProperty(*a0) : sipCpp->setProperty(*a0));
            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_ItemFont, sipName_setProperty, NULL);

    return NULL;
}


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

    {
        const  ::QVariant* a0;
        int a0State = 0;
        const  ::KConfigSkeleton::ItemFont *sipCpp;

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

            sipRes = (sipSelfWasArg ? sipCpp-> ::KConfigSkeleton::ItemFont::isEqual(*a0) : sipCpp->isEqual(*a0));
            sipReleaseType(const_cast< ::QVariant *>(a0),sipType_QVariant,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemFont, sipName_isEqual, NULL);

    return NULL;
}


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

    {
        const  ::KConfigSkeleton::ItemFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KConfigSkeleton_ItemFont, &sipCpp))
        {
             ::QVariant*sipRes;

            sipRes = new  ::QVariant((sipSelfWasArg ? sipCpp-> ::KConfigSkeleton::ItemFont::property() : sipCpp->property()));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ItemFont, sipName_property, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KConfigSkeleton_ItemFont(void *, const sipTypeDef *);}
static void *cast_KConfigSkeleton_ItemFont(void *sipCppV, const sipTypeDef *targetType)
{
     ::KConfigSkeleton::ItemFont *sipCpp = reinterpret_cast< ::KConfigSkeleton::ItemFont *>(sipCppV);

    if (targetType == sipType_KConfigSkeletonItem)
        return static_cast< ::KConfigSkeletonItem *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_KConfigSkeleton_ItemFont(void *, int);}
static void release_KConfigSkeleton_ItemFont(void *sipCppV, int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKConfigSkeleton_ItemFont *>(sipCppV);
    else
        delete reinterpret_cast< ::KConfigSkeleton::ItemFont *>(sipCppV);
}


extern "C" {static void dealloc_KConfigSkeleton_ItemFont(sipSimpleWrapper *);}
static void dealloc_KConfigSkeleton_ItemFont(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKConfigSkeleton_ItemFont *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

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


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

    {
        const  ::QString* a0;
        int a0State = 0;
        const  ::QString* a1;
        int a1State = 0;
         ::QFont* a2;
        const  ::QFont& a3def = QFont();
        const  ::QFont* a3 = &a3def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J9|J9", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QFont, &a2, sipType_QFont, &a3))
        {
            sipCpp = new sipKConfigSkeleton_ItemFont(*a0,*a1,*a2,*a3);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KConfigSkeleton_ItemFont[] = {
    {SIP_MLNAME_CAST(sipName_isEqual), meth_KConfigSkeleton_ItemFont_isEqual, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_KConfigSkeleton_ItemFont_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readConfig), meth_KConfigSkeleton_ItemFont_readConfig, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readImmutability), (PyCFunction)meth_KConfigSkeleton_ItemFont_readImmutability, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setProperty), meth_KConfigSkeleton_ItemFont_setProperty, METH_VARARGS, NULL}
};


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


sipClassTypeDef sipTypeDef_KConfigGui_KConfigSkeleton_ItemFont = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_KConfigSkeleton__ItemFont,
        {0},
        &plugin_KConfigSkeleton_ItemFont
    },
    {
        sipNameNr_ItemFont,
        {2, 255, 0},
        5, methods_KConfigSkeleton_ItemFont,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KConfigSkeleton_ItemFont,
    0,
    init_type_KConfigSkeleton_ItemFont,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KConfigSkeleton_ItemFont,
    0,
    0,
    0,
    release_KConfigSkeleton_ItemFont,
    cast_KConfigSkeleton_ItemFont,
    0,
    0,
    0,
    0,
    0,
    0
};
