################################################################
# 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::QPictureFormatPlugin
PROTOTYPES: DISABLE
# classname: QPictureFormatPlugin
################################################################
####
#### PUBLIC MEMBER FUNCTIONS
####
################################################################
## QPictureFormatPlugin(QObject * parent)
## QPictureFormatPlugin(QObject * parent = 0)
void
QPictureFormatPlugin::new(...)
PREINIT:
QPictureFormatPlugin *ret;
QObject * arg00;
QObject * arg10 = 0;
PPCODE:
switch(items) {
case 1:
{
if (1) {
Perl_croak(aTHX_ "Trying to create abstract class object");
}
break;
}
case 2:
{
if ((sv_derived_from(ST(1), "Qt::Core::QObject") || ST(1) == &PL_sv_undef)) {
if (sv_derived_from(ST(1), "Qt::Core::QObject")) {
arg00 = reinterpret_cast<QObject *>(SvIV((SV*)SvRV(ST(1))));
}
else if (ST(1) == &PL_sv_undef) {
arg00 = 0;
}
else
Perl_croak(aTHX_ "arg00 is not of type Qt::Core::QObject");
Perl_croak(aTHX_ "Trying to create abstract class object");
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
default:
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
## ~QPictureFormatPlugin()
void
QPictureFormatPlugin::DESTROY()
CODE:
if(THIS != 0 && !SvREADONLY(SvRV(ST(0))))
delete THIS;
## bool installIOHandler(const QString & format)
void
QPictureFormatPlugin::installIOHandler(...)
PREINIT:
QString * arg00;
PPCODE:
if (sv_isa(ST(1), "Qt::Core::QString")) {
arg00 = reinterpret_cast<QString *>(SvIV((SV*)SvRV(ST(1))));
bool ret = THIS->installIOHandler(*arg00);
ST(0) = sv_newmortal();
ST(0) = boolSV(ret);
XSRETURN(1);
}
## QStringList keys()
void
QPictureFormatPlugin::keys(...)
PREINIT:
PPCODE:
if (1) {
QStringList ret = THIS->keys();
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Core::QStringList", (void *)new QStringList(ret));
XSRETURN(1);
}
## bool loadPicture(const QString & format, const QString & filename, QPicture * pic)
void
QPictureFormatPlugin::loadPicture(...)
PREINIT:
QString * arg00;
QString * arg01;
QPicture * arg02;
PPCODE:
if (sv_isa(ST(1), "Qt::Core::QString") && sv_isa(ST(2), "Qt::Core::QString") && (sv_derived_from(ST(3), "Qt::Gui::QPicture") || ST(3) == &PL_sv_undef)) {
arg00 = reinterpret_cast<QString *>(SvIV((SV*)SvRV(ST(1))));
arg01 = reinterpret_cast<QString *>(SvIV((SV*)SvRV(ST(2))));
if (sv_derived_from(ST(3), "Qt::Gui::QPicture")) {
arg02 = reinterpret_cast<QPicture *>(SvIV((SV*)SvRV(ST(3))));
}
else if (ST(3) == &PL_sv_undef) {
arg02 = 0;
}
else
Perl_croak(aTHX_ "arg02 is not of type Qt::Gui::QPicture");
bool ret = THIS->loadPicture(*arg00, *arg01, arg02);
ST(0) = sv_newmortal();
ST(0) = boolSV(ret);
XSRETURN(1);
}
## bool savePicture(const QString & format, const QString & filename, const QPicture & pic)
void
QPictureFormatPlugin::savePicture(...)
PREINIT:
QString * arg00;
QString * arg01;
QPicture * arg02;
PPCODE:
if (sv_isa(ST(1), "Qt::Core::QString") && sv_isa(ST(2), "Qt::Core::QString") && sv_isa(ST(3), "Qt::Gui::QPicture")) {
arg00 = reinterpret_cast<QString *>(SvIV((SV*)SvRV(ST(1))));
arg01 = reinterpret_cast<QString *>(SvIV((SV*)SvRV(ST(2))));
arg02 = reinterpret_cast<QPicture *>(SvIV((SV*)SvRV(ST(3))));
bool ret = THIS->savePicture(*arg00, *arg01, *arg02);
ST(0) = sv_newmortal();
ST(0) = boolSV(ret);
XSRETURN(1);
}