################################################################
# 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::QCommandLinkButton
PROTOTYPES: DISABLE
# classname: QCommandLinkButton
################################################################
####
#### PUBLIC MEMBER FUNCTIONS
####
################################################################
## QCommandLinkButton(QWidget * parent)
## QCommandLinkButton(QWidget * parent = 0)
## QCommandLinkButton(const QString & text, QWidget * parent)
## QCommandLinkButton(const QString & text, QWidget * parent = 0)
## QCommandLinkButton(const QString & text, const QString & description, QWidget * parent)
## QCommandLinkButton(const QString & text, const QString & description, QWidget * parent = 0)
void
QCommandLinkButton::new(...)
PREINIT:
QCommandLinkButton *ret;
QWidget * arg00;
QWidget * arg10 = 0;
QString * arg20;
QWidget * arg21;
QString * arg30;
QWidget * arg31 = 0;
QString * arg40;
QString * arg41;
QWidget * arg42;
QString * arg50;
QString * arg51;
QWidget * arg52 = 0;
PPCODE:
switch(items) {
case 1:
{
if (1) {
ret = new QCommandLinkButton(arg10);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QCommandLinkButton", (void *)ret);
XSRETURN(1);
}
break;
}
case 2:
{
if ((sv_derived_from(ST(1), "Qt::Gui::QWidget") || ST(1) == &PL_sv_undef)) {
if (sv_derived_from(ST(1), "Qt::Gui::QWidget")) {
arg00 = reinterpret_cast<QWidget *>(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::QWidget");
ret = new QCommandLinkButton(arg00);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QCommandLinkButton", (void *)ret);
XSRETURN(1);
}
else if (sv_isa(ST(1), "Qt::Core::QString")) {
arg30 = reinterpret_cast<QString *>(SvIV((SV*)SvRV(ST(1))));
ret = new QCommandLinkButton(*arg30, arg31);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QCommandLinkButton", (void *)ret);
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
case 3:
{
if (sv_isa(ST(1), "Qt::Core::QString") && (sv_derived_from(ST(2), "Qt::Gui::QWidget") || ST(2) == &PL_sv_undef)) {
arg20 = reinterpret_cast<QString *>(SvIV((SV*)SvRV(ST(1))));
if (sv_derived_from(ST(2), "Qt::Gui::QWidget")) {
arg21 = reinterpret_cast<QWidget *>(SvIV((SV*)SvRV(ST(2))));
}
else if (ST(2) == &PL_sv_undef) {
arg21 = 0;
}
else
Perl_croak(aTHX_ "arg21 is not of type Qt::Gui::QWidget");
ret = new QCommandLinkButton(*arg20, arg21);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QCommandLinkButton", (void *)ret);
XSRETURN(1);
}
else if (sv_isa(ST(1), "Qt::Core::QString") && sv_isa(ST(2), "Qt::Core::QString")) {
arg50 = reinterpret_cast<QString *>(SvIV((SV*)SvRV(ST(1))));
arg51 = reinterpret_cast<QString *>(SvIV((SV*)SvRV(ST(2))));
ret = new QCommandLinkButton(*arg50, *arg51, arg52);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QCommandLinkButton", (void *)ret);
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
case 4:
{
if (sv_isa(ST(1), "Qt::Core::QString") && sv_isa(ST(2), "Qt::Core::QString") && (sv_derived_from(ST(3), "Qt::Gui::QWidget") || ST(3) == &PL_sv_undef)) {
arg40 = reinterpret_cast<QString *>(SvIV((SV*)SvRV(ST(1))));
arg41 = reinterpret_cast<QString *>(SvIV((SV*)SvRV(ST(2))));
if (sv_derived_from(ST(3), "Qt::Gui::QWidget")) {
arg42 = reinterpret_cast<QWidget *>(SvIV((SV*)SvRV(ST(3))));
}
else if (ST(3) == &PL_sv_undef) {
arg42 = 0;
}
else
Perl_croak(aTHX_ "arg42 is not of type Qt::Gui::QWidget");
ret = new QCommandLinkButton(*arg40, *arg41, arg42);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Gui::QCommandLinkButton", (void *)ret);
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
default:
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
## QString description()
void
QCommandLinkButton::description(...)
PREINIT:
PPCODE:
if (1) {
QString ret = THIS->description();
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Core::QString", (void *)new QString(ret));
XSRETURN(1);
}
## void setDescription(const QString & description)
void
QCommandLinkButton::setDescription(...)
PREINIT:
QString * arg00;
PPCODE:
if (sv_isa(ST(1), "Qt::Core::QString")) {
arg00 = reinterpret_cast<QString *>(SvIV((SV*)SvRV(ST(1))));
(void)THIS->setDescription(*arg00);
XSRETURN(0);
}