
/*

  KLayout Layout Viewer
  Copyright (C) 2006-2016 Matthias Koefferlein

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

*/

/**
*  @file gsiDeclQPrinterInfo.cc 
*
*  DO NOT EDIT THIS FILE. 
*  This file has been created automatically
*/

#include "gsiQtGui.h"
#include "gsiDeclQtTypeTraits.h"
#include "gsiDeclQPrinterInfo_Enums.h"
#include <memory>

// -----------------------------------------------------------------------
// class QPrinterInfo

//  Constructor QPrinterInfo::QPrinterInfo()


static void _init_ctor_QPrinterInfo_0 (qt_gsi::GenericStaticMethod *decl)
{
  decl->set_return_new<QPrinterInfo *> ();
}

static void _call_ctor_QPrinterInfo_0 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QPrinterInfo *> (new QPrinterInfo ());
}

static qt_gsi::GenericStaticMethod *_create_ctor_QPrinterInfo_0 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QPrinterInfo::QPrinterInfo()\nThis method creates an object of class QPrinterInfo.", &_init_ctor_QPrinterInfo_0, &_call_ctor_QPrinterInfo_0);
}

//  Constructor QPrinterInfo::QPrinterInfo(const QPrinterInfo &src)


static void _init_ctor_QPrinterInfo_2530 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("src");
  decl->add_arg<const QPrinterInfo & > (argspec_0);
  decl->set_return_new<QPrinterInfo *> ();
}

static void _call_ctor_QPrinterInfo_2530 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QPrinterInfo &arg1 = args.read<const QPrinterInfo & > ();
  ret.write<QPrinterInfo *> (new QPrinterInfo (arg1));
}

static qt_gsi::GenericStaticMethod *_create_ctor_QPrinterInfo_2530 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QPrinterInfo::QPrinterInfo(const QPrinterInfo &src)\nThis method creates an object of class QPrinterInfo.", &_init_ctor_QPrinterInfo_2530, &_call_ctor_QPrinterInfo_2530);
}

//  Constructor QPrinterInfo::QPrinterInfo(const QPrinter &printer)


static void _init_ctor_QPrinterInfo_2134 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("printer");
  decl->add_arg<const QPrinter & > (argspec_0);
  decl->set_return_new<QPrinterInfo *> ();
}

static void _call_ctor_QPrinterInfo_2134 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QPrinter &arg1 = args.read<const QPrinter & > ();
  ret.write<QPrinterInfo *> (new QPrinterInfo (arg1));
}

static qt_gsi::GenericStaticMethod *_create_ctor_QPrinterInfo_2134 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QPrinterInfo::QPrinterInfo(const QPrinter &printer)\nThis method creates an object of class QPrinterInfo.", &_init_ctor_QPrinterInfo_2134, &_call_ctor_QPrinterInfo_2134);
}

// bool QPrinterInfo::isDefault()


static void _init_f_isDefault_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<bool > ();
}

static void _call_f_isDefault_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<bool > ((bool)((QPrinterInfo *)cls)->isDefault ());
}

static qt_gsi::GenericMethod *_create_f_isDefault_c0 ()
{
  return new qt_gsi::GenericMethod ("isDefault?", "@brief Method bool QPrinterInfo::isDefault()\n", true, &_init_f_isDefault_c0, &_call_f_isDefault_c0);
}

// bool QPrinterInfo::isNull()


static void _init_f_isNull_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<bool > ();
}

static void _call_f_isNull_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<bool > ((bool)((QPrinterInfo *)cls)->isNull ());
}

static qt_gsi::GenericMethod *_create_f_isNull_c0 ()
{
  return new qt_gsi::GenericMethod ("isNull?", "@brief Method bool QPrinterInfo::isNull()\n", true, &_init_f_isNull_c0, &_call_f_isNull_c0);
}

// QPrinterInfo &QPrinterInfo::operator=(const QPrinterInfo &src)


static void _init_f_operator_eq__2530 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("src");
  decl->add_arg<const QPrinterInfo & > (argspec_0);
  decl->set_return<QPrinterInfo & > ();
}

static void _call_f_operator_eq__2530 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QPrinterInfo &arg1 = args.read<const QPrinterInfo & > ();
  ret.write<QPrinterInfo & > ((QPrinterInfo &)((QPrinterInfo *)cls)->operator= (arg1));
}

static qt_gsi::GenericMethod *_create_f_operator_eq__2530 ()
{
  return new qt_gsi::GenericMethod ("assign", "@brief Method QPrinterInfo &QPrinterInfo::operator=(const QPrinterInfo &src)\n", false, &_init_f_operator_eq__2530, &_call_f_operator_eq__2530);
}

// QString QPrinterInfo::printerName()


static void _init_f_printerName_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<QString > ();
}

static void _call_f_printerName_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QString > ((QString)((QPrinterInfo *)cls)->printerName ());
}

static qt_gsi::GenericMethod *_create_f_printerName_c0 ()
{
  return new qt_gsi::GenericMethod ("printerName", "@brief Method QString QPrinterInfo::printerName()\n", true, &_init_f_printerName_c0, &_call_f_printerName_c0);
}

// QList<QPrinter::PageSize> QPrinterInfo::supportedPaperSizes()


static void _init_f_supportedPaperSizes_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<qt_gsi::Converter<QList<QPrinter::PageSize> >::target_type > ();
}

static void _call_f_supportedPaperSizes_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<qt_gsi::Converter<QList<QPrinter::PageSize> >::target_type > ((qt_gsi::Converter<QList<QPrinter::PageSize> >::target_type)qt_gsi::CppToQtAdaptor<QList<QPrinter::PageSize> >(((QPrinterInfo *)cls)->supportedPaperSizes ()));
}

static qt_gsi::GenericMethod *_create_f_supportedPaperSizes_c0 ()
{
  return new qt_gsi::GenericMethod ("supportedPaperSizes", "@brief Method QList<QPrinter::PageSize> QPrinterInfo::supportedPaperSizes()\n", true, &_init_f_supportedPaperSizes_c0, &_call_f_supportedPaperSizes_c0);
}

// static QList<QPrinterInfo> QPrinterInfo::availablePrinters()


static void _init_f_availablePrinters_0 (qt_gsi::GenericStaticMethod *decl)
{
  decl->set_return<qt_gsi::Converter<QList<QPrinterInfo> >::target_type > ();
}

static void _call_f_availablePrinters_0 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<qt_gsi::Converter<QList<QPrinterInfo> >::target_type > ((qt_gsi::Converter<QList<QPrinterInfo> >::target_type)qt_gsi::CppToQtAdaptor<QList<QPrinterInfo> >(QPrinterInfo::availablePrinters ()));
}

static qt_gsi::GenericStaticMethod *_create_f_availablePrinters_0 ()
{
  return new qt_gsi::GenericStaticMethod ("availablePrinters", "@brief Static method QList<QPrinterInfo> QPrinterInfo::availablePrinters()\nThis method is static and can be called without an instance.", &_init_f_availablePrinters_0, &_call_f_availablePrinters_0);
}

// static QPrinterInfo QPrinterInfo::defaultPrinter()


static void _init_f_defaultPrinter_0 (qt_gsi::GenericStaticMethod *decl)
{
  decl->set_return<QPrinterInfo > ();
}

static void _call_f_defaultPrinter_0 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QPrinterInfo > ((QPrinterInfo)QPrinterInfo::defaultPrinter ());
}

static qt_gsi::GenericStaticMethod *_create_f_defaultPrinter_0 ()
{
  return new qt_gsi::GenericStaticMethod ("defaultPrinter", "@brief Static method QPrinterInfo QPrinterInfo::defaultPrinter()\nThis method is static and can be called without an instance.", &_init_f_defaultPrinter_0, &_call_f_defaultPrinter_0);
}


namespace gsi
{
gsi::Class<QPrinterInfo> decl_QPrinterInfo ("QPrinterInfo",
  gsi::Methods(_create_ctor_QPrinterInfo_0 ()) +
  gsi::Methods(_create_ctor_QPrinterInfo_2530 ()) +
  gsi::Methods(_create_ctor_QPrinterInfo_2134 ()) +
  gsi::Methods(_create_f_isDefault_c0 ()) +
  gsi::Methods(_create_f_isNull_c0 ()) +
  gsi::Methods(_create_f_operator_eq__2530 ()) +
  gsi::Methods(_create_f_printerName_c0 ()) +
  gsi::Methods(_create_f_supportedPaperSizes_c0 ()) +
  gsi::Methods(_create_f_availablePrinters_0 ()) +
  gsi::Methods(_create_f_defaultPrinter_0 ()),
  "@qt\n@brief Binding of QPrinterInfo");

}

