################################################################
# THE FOLLOWING CODE IS AUTOMATED, ANY MODIFICATION WILL BE LOST!
#
# Copyright (C) 2007 - 2012 by Dongxu Ma <dongxu _at_ cpan _dot_ org>
#
# This library is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
# See http://dev.perl.org/licenses/artistic.html
################################################################
MODULE = Qt::Gui PACKAGE = Qt::Gui::QItemEditorFactory
PROTOTYPES: DISABLE
# classname: QItemEditorFactory
################################################################
####
#### PUBLIC MEMBER FUNCTIONS
####
################################################################
## QItemEditorFactory()
void
QItemEditorFactory::new(...)
PREINIT:
QItemEditorFactory *ret;
PPCODE:
if (1) {
ret = new QItemEditorFactory();
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QItemEditorFactory", (void *)ret);
XSRETURN(1);
}
## ~QItemEditorFactory()
void
QItemEditorFactory::DESTROY()
CODE:
if(THIS != 0 && !SvREADONLY(SvRV(ST(0))))
delete THIS;
## QWidget * createEditor(QVariant::Type type, QWidget * parent)
void
QItemEditorFactory::createEditor(...)
PREINIT:
QVariant::Type arg00;
QWidget * arg01;
PPCODE:
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QWidget") || ST(2) == &PL_sv_undef)) {
arg00 = (QVariant::Type)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QWidget")) {
arg01 = reinterpret_cast<QWidget *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg01 = 0;
}
else
Perl_croak(aTHX_ "arg01 is not of type Qt::Gui::QWidget");
QWidget * ret = THIS->createEditor(arg00, arg01);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QWidget", (void *)ret);
XSRETURN(1);
}
## static const QItemEditorFactory * defaultFactory()
void
QItemEditorFactory::defaultFactory(...)
PREINIT:
PPCODE:
if (1) {
const QItemEditorFactory * ret = THIS->defaultFactory();
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QItemEditorFactory", (void *)ret);
XSRETURN(1);
}
## void registerEditor(QVariant::Type type, QItemEditorCreatorBase * creator)
void
QItemEditorFactory::registerEditor(...)
PREINIT:
QVariant::Type arg00;
QItemEditorCreatorBase * arg01;
PPCODE:
if (SvIOK(ST(1)) && (sv_derived_from(ST(2), "Qt::Gui::QItemEditorCreatorBase") || ST(2) == &PL_sv_undef)) {
arg00 = (QVariant::Type)SvIV(ST(1));
if (sv_derived_from(ST(2), "Qt::Gui::QItemEditorCreatorBase")) {
arg01 = reinterpret_cast<QItemEditorCreatorBase *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg01 = 0;
}
else
Perl_croak(aTHX_ "arg01 is not of type Qt::Gui::QItemEditorCreatorBase");
(void)THIS->registerEditor(arg00, arg01);
XSRETURN(0);
}
## static void setDefaultFactory(QItemEditorFactory * factory)
void
QItemEditorFactory::setDefaultFactory(...)
PREINIT:
QItemEditorFactory * arg00;
PPCODE:
if ((sv_derived_from(ST(1), "Qt::Gui::QItemEditorFactory") || ST(1) == &PL_sv_undef)) {
if (sv_derived_from(ST(1), "Qt::Gui::QItemEditorFactory")) {
arg00 = reinterpret_cast<QItemEditorFactory *>(SvIV((SV*)SvRV(ST(1))));
}
else if (ST(1) == &PL_sv_undef) {
arg00 = 0;
}
else
Perl_croak(aTHX_ "arg00 is not of type Qt::Gui::QItemEditorFactory");
(void)THIS->setDefaultFactory(arg00);
XSRETURN(0);
}
## QByteArray valuePropertyName(QVariant::Type type)
void
QItemEditorFactory::valuePropertyName(...)
PREINIT:
QVariant::Type arg00;
PPCODE:
if (SvIOK(ST(1))) {
arg00 = (QVariant::Type)SvIV(ST(1));
QByteArray ret = THIS->valuePropertyName(arg00);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Core::QByteArray", (void *)new QByteArray(ret));
XSRETURN(1);
}