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

#include "sipAPIKCodecs.h"

#include <kemailaddress.h>

#include <qstringlist.h>
#include <qstring.h>
#include <qbytearray.h>
#include <qurl.h>


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

    {
        const  ::QUrl* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QUrl, &a0))
        {
             ::QString*sipRes;

            sipRes = new  ::QString( ::KEmailAddress::decodeMailtoUrl(*a0));

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
             ::QUrl*sipRes;

            sipRes = new  ::QUrl( ::KEmailAddress::encodeMailtoUrl(*a0));
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
             ::QString*sipRes;

            sipRes = new  ::QString( ::KEmailAddress::quoteNameIfNecessary(*a0));
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
             ::QString*sipRes;

            sipRes = new  ::QString( ::KEmailAddress::normalizeAddressesAndEncodeIdn(*a0));
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
             ::QString*sipRes;

            sipRes = new  ::QString( ::KEmailAddress::normalizeAddressesAndDecodeIdn(*a0));
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
             ::QString*sipRes;

            sipRes = new  ::QString( ::KEmailAddress::toIdn(*a0));
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
             ::QString*sipRes;

            sipRes = new  ::QString( ::KEmailAddress::fromIdn(*a0));
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const  ::QString* a0;
        int a0State = 0;
        const  ::QString* a1;
        int a1State = 0;
        const  ::QString& a2def = QString();
        const  ::QString* a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State))
        {
             ::QString*sipRes;

            sipRes = new  ::QString( ::KEmailAddress::normalizedAddress(*a0,*a1,*a2));
            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_QString,NULL);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1b", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, &a2))
        {
            bool sipRes;

            sipRes =  ::KEmailAddress::compareEmail(*a0,*a1,a2);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            sipRes =  ::KEmailAddress::extractEmailAddressAndName(*a0,*a1,*a2);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_QString,a1State);
            sipReleaseType(a2,sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QByteArray, &a0, &a0State))
        {
             ::QByteArray*sipRes;

            sipRes = new  ::QByteArray( ::KEmailAddress::firstEmailAddress(*a0));
            sipReleaseType(const_cast< ::QByteArray *>(a0),sipType_QByteArray,a0State);

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

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

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

            sipRes = new  ::QByteArray( ::KEmailAddress::firstEmailAddress(*a0,*a1));
            sipReleaseType(const_cast< ::QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(a1,sipType_QString,a1State);

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
             ::QString*sipRes;

            sipRes = new  ::QString( ::KEmailAddress::firstEmailAddress(*a0));
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

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

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

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

            sipRes = new  ::QString( ::KEmailAddress::firstEmailAddress(*a0,*a1));
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_QString,a1State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QByteArray, &a0, &a0State))
        {
             ::QByteArray*sipRes;

            sipRes = new  ::QByteArray( ::KEmailAddress::extractEmailAddress(*a0));
            sipReleaseType(const_cast< ::QByteArray *>(a0),sipType_QByteArray,a0State);

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

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

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

            sipRes = new  ::QByteArray( ::KEmailAddress::extractEmailAddress(*a0,*a1));
            sipReleaseType(const_cast< ::QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(a1,sipType_QString,a1State);

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
             ::QString*sipRes;

            sipRes = new  ::QString( ::KEmailAddress::extractEmailAddress(*a0));
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

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

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

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

            sipRes = new  ::QString( ::KEmailAddress::extractEmailAddress(*a0,*a1));
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_QString,a1State);

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

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

    return NULL;
}


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

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

            sipRes = new  ::QString( ::KEmailAddress::simpleEmailAddressErrorMsg());

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            sipRes =  ::KEmailAddress::isValidSimpleAddress(*a0);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
         ::KEmailAddress::EmailParseResult a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_KEmailAddress_EmailParseResult, &a0))
        {
             ::QString*sipRes;

            sipRes = new  ::QString( ::KEmailAddress::emailParseResultToString(a0));

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
             ::KEmailAddress::EmailParseResult sipRes;

            sipRes =  ::KEmailAddress::isValidAddressList(*a0,*a1);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_QString,a1State);

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_KEmailAddress_EmailParseResult);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
             ::KEmailAddress::EmailParseResult sipRes;

            sipRes =  ::KEmailAddress::isValidAddress(*a0);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_KEmailAddress_EmailParseResult);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1J1J1", sipType_QByteArray, &a0, &a0State, sipType_QByteArray, &a1, &a1State, sipType_QByteArray, &a2, &a2State, sipType_QByteArray, &a3, &a3State))
        {
             ::KEmailAddress::EmailParseResult sipRes;

            sipRes =  ::KEmailAddress::splitAddress(*a0,*a1,*a2,*a3);
            sipReleaseType(const_cast< ::QByteArray *>(a0),sipType_QByteArray,a0State);
            sipReleaseType(a1,sipType_QByteArray,a1State);
            sipReleaseType(a2,sipType_QByteArray,a2State);
            sipReleaseType(a3,sipType_QByteArray,a3State);

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_KEmailAddress_EmailParseResult);
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QString* a1;
        int a1State = 0;
         ::QString* a2;
        int a2State = 0;
         ::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))
        {
             ::KEmailAddress::EmailParseResult sipRes;

            sipRes =  ::KEmailAddress::splitAddress(*a0,*a1,*a2,*a3);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_QString,a1State);
            sipReleaseType(a2,sipType_QString,a2State);
            sipReleaseType(a3,sipType_QString,a3State);

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_KEmailAddress_EmailParseResult);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
             ::QStringList*sipRes;

            sipRes = new  ::QStringList( ::KEmailAddress::splitAddressList(*a0));
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


static PyMethodDef methods_KEmailAddress[] = {
    {SIP_MLNAME_CAST(sipName_compareEmail), meth_KEmailAddress_compareEmail, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_decodeMailtoUrl), meth_KEmailAddress_decodeMailtoUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emailParseResultToString), meth_KEmailAddress_emailParseResultToString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encodeMailtoUrl), meth_KEmailAddress_encodeMailtoUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_extractEmailAddress), meth_KEmailAddress_extractEmailAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_extractEmailAddressAndName), meth_KEmailAddress_extractEmailAddressAndName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_firstEmailAddress), meth_KEmailAddress_firstEmailAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromIdn), meth_KEmailAddress_fromIdn, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValidAddress), meth_KEmailAddress_isValidAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValidAddressList), meth_KEmailAddress_isValidAddressList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValidSimpleAddress), meth_KEmailAddress_isValidSimpleAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_normalizeAddressesAndDecodeIdn), meth_KEmailAddress_normalizeAddressesAndDecodeIdn, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_normalizeAddressesAndEncodeIdn), meth_KEmailAddress_normalizeAddressesAndEncodeIdn, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_normalizedAddress), meth_KEmailAddress_normalizedAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_quoteNameIfNecessary), meth_KEmailAddress_quoteNameIfNecessary, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_simpleEmailAddressErrorMsg), meth_KEmailAddress_simpleEmailAddressErrorMsg, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_splitAddress), meth_KEmailAddress_splitAddress, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_splitAddressList), meth_KEmailAddress_splitAddressList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toIdn), meth_KEmailAddress_toIdn, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KEmailAddress[] = {
    {sipName_AddressEmpty, static_cast<int>( ::KEmailAddress::AddressEmpty), 8},
    {sipName_AddressOk, static_cast<int>( ::KEmailAddress::AddressOk), 8},
    {sipName_DisallowedChar, static_cast<int>( ::KEmailAddress::DisallowedChar), 8},
    {sipName_InvalidDisplayName, static_cast<int>( ::KEmailAddress::InvalidDisplayName), 8},
    {sipName_MissingDomainPart, static_cast<int>( ::KEmailAddress::MissingDomainPart), 8},
    {sipName_MissingLocalPart, static_cast<int>( ::KEmailAddress::MissingLocalPart), 8},
    {sipName_NoAddressSpec, static_cast<int>( ::KEmailAddress::NoAddressSpec), 8},
    {sipName_TooFewAts, static_cast<int>( ::KEmailAddress::TooFewAts), 8},
    {sipName_TooFewDots, static_cast<int>( ::KEmailAddress::TooFewDots), 8},
    {sipName_TooManyAts, static_cast<int>( ::KEmailAddress::TooManyAts), 8},
    {sipName_UnbalancedParens, static_cast<int>( ::KEmailAddress::UnbalancedParens), 8},
    {sipName_UnbalancedQuote, static_cast<int>( ::KEmailAddress::UnbalancedQuote), 8},
    {sipName_UnclosedAngleAddr, static_cast<int>( ::KEmailAddress::UnclosedAngleAddr), 8},
    {sipName_UnexpectedComma, static_cast<int>( ::KEmailAddress::UnexpectedComma), 8},
    {sipName_UnexpectedEnd, static_cast<int>( ::KEmailAddress::UnexpectedEnd), 8},
    {sipName_UnopenedAngleAddr, static_cast<int>( ::KEmailAddress::UnopenedAngleAddr), 8},
};


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


sipClassTypeDef sipTypeDef_KCodecs_KEmailAddress = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_NAMESPACE,
        sipNameNr_KEmailAddress,
        {0},
        &plugin_KEmailAddress
    },
    {
        sipNameNr_KEmailAddress,
        {0, 0, 1},
        19, methods_KEmailAddress,
        16, enummembers_KEmailAddress,
        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
};
