
/*

  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 gsiDeclQCompleter.cc 
*
*  DO NOT EDIT THIS FILE. 
*  This file has been created automatically
*/

#include "gsiQtGui.h"
#include "gsiDeclQtTypeTraits.h"
#include "gsiDeclQCompleter_EventAdaptor.h"
#include "gsiDeclQCompleter_Enums.h"
#include <memory>

// -----------------------------------------------------------------------
// class QCompleter

//  get static meta object

static void _init_smo (qt_gsi::GenericStaticMethod *decl)
{
  decl->set_return<const QMetaObject &> ();
}

static void _call_smo (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<const QMetaObject &> (QCompleter::staticMetaObject);
}

static qt_gsi::GenericStaticMethod *_create_smo ()
{
  return new qt_gsi::GenericStaticMethod ("staticMetaObject", "@brief Obtains the static MetaObject for this class.", &_init_smo, &_call_smo);
}

// Qt::CaseSensitivity QCompleter::caseSensitivity()


static void _init_f_caseSensitivity_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<qt_gsi::Converter<Qt::CaseSensitivity>::target_type > ();
}

static void _call_f_caseSensitivity_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<qt_gsi::Converter<Qt::CaseSensitivity>::target_type > ((qt_gsi::Converter<Qt::CaseSensitivity>::target_type)qt_gsi::CppToQtAdaptor<Qt::CaseSensitivity>(((QCompleter *)cls)->caseSensitivity ()));
}

static qt_gsi::GenericMethod *_create_f_caseSensitivity_c0 ()
{
  return new qt_gsi::GenericMethod (":caseSensitivity", "@brief Method Qt::CaseSensitivity QCompleter::caseSensitivity()\n", true, &_init_f_caseSensitivity_c0, &_call_f_caseSensitivity_c0);
}

// void QCompleter::complete(const QRect &rect)


static void _init_f_complete_1792 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("rect", true, "QRect()");
  decl->add_arg<const QRect & > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_complete_1792 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QRect &arg1 = args ? args.read<const QRect & > () : (const QRect &)(QRect());
  ((QCompleter *)cls)->complete (arg1);
}

static qt_gsi::GenericMethod *_create_f_complete_1792 ()
{
  return new qt_gsi::GenericMethod ("complete", "@brief Method void QCompleter::complete(const QRect &rect)\n", false, &_init_f_complete_1792, &_call_f_complete_1792);
}

// int QCompleter::completionColumn()


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

static void _call_f_completionColumn_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QCompleter *)cls)->completionColumn ());
}

static qt_gsi::GenericMethod *_create_f_completionColumn_c0 ()
{
  return new qt_gsi::GenericMethod (":completionColumn", "@brief Method int QCompleter::completionColumn()\n", true, &_init_f_completionColumn_c0, &_call_f_completionColumn_c0);
}

// int QCompleter::completionCount()


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

static void _call_f_completionCount_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QCompleter *)cls)->completionCount ());
}

static qt_gsi::GenericMethod *_create_f_completionCount_c0 ()
{
  return new qt_gsi::GenericMethod ("completionCount", "@brief Method int QCompleter::completionCount()\n", true, &_init_f_completionCount_c0, &_call_f_completionCount_c0);
}

// QCompleter::CompletionMode QCompleter::completionMode()


static void _init_f_completionMode_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<qt_gsi::Converter<QCompleter::CompletionMode>::target_type > ();
}

static void _call_f_completionMode_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<qt_gsi::Converter<QCompleter::CompletionMode>::target_type > ((qt_gsi::Converter<QCompleter::CompletionMode>::target_type)qt_gsi::CppToQtAdaptor<QCompleter::CompletionMode>(((QCompleter *)cls)->completionMode ()));
}

static qt_gsi::GenericMethod *_create_f_completionMode_c0 ()
{
  return new qt_gsi::GenericMethod (":completionMode", "@brief Method QCompleter::CompletionMode QCompleter::completionMode()\n", true, &_init_f_completionMode_c0, &_call_f_completionMode_c0);
}

// QAbstractItemModel *QCompleter::completionModel()


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

static void _call_f_completionModel_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QAbstractItemModel * > ((QAbstractItemModel *)((QCompleter *)cls)->completionModel ());
}

static qt_gsi::GenericMethod *_create_f_completionModel_c0 ()
{
  return new qt_gsi::GenericMethod ("completionModel", "@brief Method QAbstractItemModel *QCompleter::completionModel()\n", true, &_init_f_completionModel_c0, &_call_f_completionModel_c0);
}

// QString QCompleter::completionPrefix()


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

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

static qt_gsi::GenericMethod *_create_f_completionPrefix_c0 ()
{
  return new qt_gsi::GenericMethod (":completionPrefix", "@brief Method QString QCompleter::completionPrefix()\n", true, &_init_f_completionPrefix_c0, &_call_f_completionPrefix_c0);
}

// int QCompleter::completionRole()


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

static void _call_f_completionRole_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QCompleter *)cls)->completionRole ());
}

static qt_gsi::GenericMethod *_create_f_completionRole_c0 ()
{
  return new qt_gsi::GenericMethod (":completionRole", "@brief Method int QCompleter::completionRole()\n", true, &_init_f_completionRole_c0, &_call_f_completionRole_c0);
}

// QString QCompleter::currentCompletion()


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

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

static qt_gsi::GenericMethod *_create_f_currentCompletion_c0 ()
{
  return new qt_gsi::GenericMethod ("currentCompletion", "@brief Method QString QCompleter::currentCompletion()\n", true, &_init_f_currentCompletion_c0, &_call_f_currentCompletion_c0);
}

// QModelIndex QCompleter::currentIndex()


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

static void _call_f_currentIndex_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QModelIndex > ((QModelIndex)((QCompleter *)cls)->currentIndex ());
}

static qt_gsi::GenericMethod *_create_f_currentIndex_c0 ()
{
  return new qt_gsi::GenericMethod ("currentIndex", "@brief Method QModelIndex QCompleter::currentIndex()\n", true, &_init_f_currentIndex_c0, &_call_f_currentIndex_c0);
}

// int QCompleter::currentRow()


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

static void _call_f_currentRow_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QCompleter *)cls)->currentRow ());
}

static qt_gsi::GenericMethod *_create_f_currentRow_c0 ()
{
  return new qt_gsi::GenericMethod ("currentRow", "@brief Method int QCompleter::currentRow()\n", true, &_init_f_currentRow_c0, &_call_f_currentRow_c0);
}

// int QCompleter::maxVisibleItems()


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

static void _call_f_maxVisibleItems_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<int > ((int)((QCompleter *)cls)->maxVisibleItems ());
}

static qt_gsi::GenericMethod *_create_f_maxVisibleItems_c0 ()
{
  return new qt_gsi::GenericMethod (":maxVisibleItems", "@brief Method int QCompleter::maxVisibleItems()\n", true, &_init_f_maxVisibleItems_c0, &_call_f_maxVisibleItems_c0);
}

// QAbstractItemModel *QCompleter::model()


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

static void _call_f_model_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QAbstractItemModel * > ((QAbstractItemModel *)((QCompleter *)cls)->model ());
}

static qt_gsi::GenericMethod *_create_f_model_c0 ()
{
  return new qt_gsi::GenericMethod (":model", "@brief Method QAbstractItemModel *QCompleter::model()\n", true, &_init_f_model_c0, &_call_f_model_c0);
}

// QCompleter::ModelSorting QCompleter::modelSorting()


static void _init_f_modelSorting_c0 (qt_gsi::GenericMethod *decl)
{
  decl->set_return<qt_gsi::Converter<QCompleter::ModelSorting>::target_type > ();
}

static void _call_f_modelSorting_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<qt_gsi::Converter<QCompleter::ModelSorting>::target_type > ((qt_gsi::Converter<QCompleter::ModelSorting>::target_type)qt_gsi::CppToQtAdaptor<QCompleter::ModelSorting>(((QCompleter *)cls)->modelSorting ()));
}

static qt_gsi::GenericMethod *_create_f_modelSorting_c0 ()
{
  return new qt_gsi::GenericMethod (":modelSorting", "@brief Method QCompleter::ModelSorting QCompleter::modelSorting()\n", true, &_init_f_modelSorting_c0, &_call_f_modelSorting_c0);
}

// QString QCompleter::pathFromIndex(const QModelIndex &index)


static void _init_f_pathFromIndex_c2395 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("index");
  decl->add_arg<const QModelIndex & > (argspec_0);
  decl->set_return<QString > ();
}

static void _call_f_pathFromIndex_c2395 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QModelIndex &arg1 = args.read<const QModelIndex & > ();
  ret.write<QString > ((QString)((QCompleter *)cls)->pathFromIndex (arg1));
}

static qt_gsi::GenericMethod *_create_f_pathFromIndex_c2395 ()
{
  return new qt_gsi::GenericMethod ("pathFromIndex", "@brief Method QString QCompleter::pathFromIndex(const QModelIndex &index)\n", true, &_init_f_pathFromIndex_c2395, &_call_f_pathFromIndex_c2395);
}

// QAbstractItemView *QCompleter::popup()


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

static void _call_f_popup_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QAbstractItemView * > ((QAbstractItemView *)((QCompleter *)cls)->popup ());
}

static qt_gsi::GenericMethod *_create_f_popup_c0 ()
{
  return new qt_gsi::GenericMethod (":popup", "@brief Method QAbstractItemView *QCompleter::popup()\n", true, &_init_f_popup_c0, &_call_f_popup_c0);
}

// void QCompleter::setCaseSensitivity(Qt::CaseSensitivity caseSensitivity)


static void _init_f_setCaseSensitivity_2324 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("caseSensitivity");
  decl->add_arg<const qt_gsi::Converter<Qt::CaseSensitivity>::target_type & > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setCaseSensitivity_2324 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const qt_gsi::Converter<Qt::CaseSensitivity>::target_type & arg1 = args.read<const qt_gsi::Converter<Qt::CaseSensitivity>::target_type & > ();
  ((QCompleter *)cls)->setCaseSensitivity (qt_gsi::QtToCppAdaptor<Qt::CaseSensitivity>(arg1).cref());
}

static qt_gsi::GenericMethod *_create_f_setCaseSensitivity_2324 ()
{
  return new qt_gsi::GenericMethod ("setCaseSensitivity|caseSensitivity=", "@brief Method void QCompleter::setCaseSensitivity(Qt::CaseSensitivity caseSensitivity)\n", false, &_init_f_setCaseSensitivity_2324, &_call_f_setCaseSensitivity_2324);
}

// void QCompleter::setCompletionColumn(int column)


static void _init_f_setCompletionColumn_767 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("column");
  decl->add_arg<int > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setCompletionColumn_767 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args.read<int > ();
  ((QCompleter *)cls)->setCompletionColumn (arg1);
}

static qt_gsi::GenericMethod *_create_f_setCompletionColumn_767 ()
{
  return new qt_gsi::GenericMethod ("setCompletionColumn|completionColumn=", "@brief Method void QCompleter::setCompletionColumn(int column)\n", false, &_init_f_setCompletionColumn_767, &_call_f_setCompletionColumn_767);
}

// void QCompleter::setCompletionMode(QCompleter::CompletionMode mode)


static void _init_f_setCompletionMode_3011 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("mode");
  decl->add_arg<const qt_gsi::Converter<QCompleter::CompletionMode>::target_type & > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setCompletionMode_3011 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const qt_gsi::Converter<QCompleter::CompletionMode>::target_type & arg1 = args.read<const qt_gsi::Converter<QCompleter::CompletionMode>::target_type & > ();
  ((QCompleter *)cls)->setCompletionMode (qt_gsi::QtToCppAdaptor<QCompleter::CompletionMode>(arg1).cref());
}

static qt_gsi::GenericMethod *_create_f_setCompletionMode_3011 ()
{
  return new qt_gsi::GenericMethod ("setCompletionMode|completionMode=", "@brief Method void QCompleter::setCompletionMode(QCompleter::CompletionMode mode)\n", false, &_init_f_setCompletionMode_3011, &_call_f_setCompletionMode_3011);
}

// void QCompleter::setCompletionPrefix(const QString &prefix)


static void _init_f_setCompletionPrefix_2025 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("prefix");
  decl->add_arg<const QString & > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setCompletionPrefix_2025 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QString &arg1 = args.read<const QString & > ();
  ((QCompleter *)cls)->setCompletionPrefix (arg1);
}

static qt_gsi::GenericMethod *_create_f_setCompletionPrefix_2025 ()
{
  return new qt_gsi::GenericMethod ("setCompletionPrefix|completionPrefix=", "@brief Method void QCompleter::setCompletionPrefix(const QString &prefix)\n", false, &_init_f_setCompletionPrefix_2025, &_call_f_setCompletionPrefix_2025);
}

// void QCompleter::setCompletionRole(int role)


static void _init_f_setCompletionRole_767 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("role");
  decl->add_arg<int > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setCompletionRole_767 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args.read<int > ();
  ((QCompleter *)cls)->setCompletionRole (arg1);
}

static qt_gsi::GenericMethod *_create_f_setCompletionRole_767 ()
{
  return new qt_gsi::GenericMethod ("setCompletionRole|completionRole=", "@brief Method void QCompleter::setCompletionRole(int role)\n", false, &_init_f_setCompletionRole_767, &_call_f_setCompletionRole_767);
}

// bool QCompleter::setCurrentRow(int row)


static void _init_f_setCurrentRow_767 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("row");
  decl->add_arg<int > (argspec_0);
  decl->set_return<bool > ();
}

static void _call_f_setCurrentRow_767 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args.read<int > ();
  ret.write<bool > ((bool)((QCompleter *)cls)->setCurrentRow (arg1));
}

static qt_gsi::GenericMethod *_create_f_setCurrentRow_767 ()
{
  return new qt_gsi::GenericMethod ("setCurrentRow", "@brief Method bool QCompleter::setCurrentRow(int row)\n", false, &_init_f_setCurrentRow_767, &_call_f_setCurrentRow_767);
}

// void QCompleter::setMaxVisibleItems(int maxItems)


static void _init_f_setMaxVisibleItems_767 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("maxItems");
  decl->add_arg<int > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setMaxVisibleItems_767 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  int arg1 = args.read<int > ();
  ((QCompleter *)cls)->setMaxVisibleItems (arg1);
}

static qt_gsi::GenericMethod *_create_f_setMaxVisibleItems_767 ()
{
  return new qt_gsi::GenericMethod ("setMaxVisibleItems|maxVisibleItems=", "@brief Method void QCompleter::setMaxVisibleItems(int maxItems)\n", false, &_init_f_setMaxVisibleItems_767, &_call_f_setMaxVisibleItems_767);
}

// void QCompleter::setModel(QAbstractItemModel *c)


static void _init_f_setModel_2419 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("c");
  decl->add_arg<QAbstractItemModel * > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setModel_2419 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  QAbstractItemModel *arg1 = args.read<QAbstractItemModel * > ();
  ((QCompleter *)cls)->setModel (arg1);
}

static qt_gsi::GenericMethod *_create_f_setModel_2419 ()
{
  return new qt_gsi::GenericMethod ("setModel|model=", "@brief Method void QCompleter::setModel(QAbstractItemModel *c)\n", false, &_init_f_setModel_2419, &_call_f_setModel_2419);
}

// void QCompleter::setModelSorting(QCompleter::ModelSorting sorting)


static void _init_f_setModelSorting_2811 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("sorting");
  decl->add_arg<const qt_gsi::Converter<QCompleter::ModelSorting>::target_type & > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setModelSorting_2811 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const qt_gsi::Converter<QCompleter::ModelSorting>::target_type & arg1 = args.read<const qt_gsi::Converter<QCompleter::ModelSorting>::target_type & > ();
  ((QCompleter *)cls)->setModelSorting (qt_gsi::QtToCppAdaptor<QCompleter::ModelSorting>(arg1).cref());
}

static qt_gsi::GenericMethod *_create_f_setModelSorting_2811 ()
{
  return new qt_gsi::GenericMethod ("setModelSorting|modelSorting=", "@brief Method void QCompleter::setModelSorting(QCompleter::ModelSorting sorting)\n", false, &_init_f_setModelSorting_2811, &_call_f_setModelSorting_2811);
}

// void QCompleter::setPopup(QAbstractItemView *popup)


static void _init_f_setPopup_2333 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("popup");
  decl->add_arg<QAbstractItemView * > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setPopup_2333 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  QAbstractItemView *arg1 = args.read<QAbstractItemView * > ();
  ((QCompleter *)cls)->setPopup (arg1);
}

static qt_gsi::GenericMethod *_create_f_setPopup_2333 ()
{
  return new qt_gsi::GenericMethod ("setPopup|popup=", "@brief Method void QCompleter::setPopup(QAbstractItemView *popup)\n", false, &_init_f_setPopup_2333, &_call_f_setPopup_2333);
}

// void QCompleter::setWidget(QWidget *widget)


static void _init_f_setWidget_1315 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("widget");
  decl->add_arg<QWidget * > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setWidget_1315 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  QWidget *arg1 = args.read<QWidget * > ();
  ((QCompleter *)cls)->setWidget (arg1);
}

static qt_gsi::GenericMethod *_create_f_setWidget_1315 ()
{
  return new qt_gsi::GenericMethod ("setWidget|widget=", "@brief Method void QCompleter::setWidget(QWidget *widget)\n", false, &_init_f_setWidget_1315, &_call_f_setWidget_1315);
}

// void QCompleter::setWrapAround(bool wrap)


static void _init_f_setWrapAround_864 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("wrap");
  decl->add_arg<bool > (argspec_0);
  decl->set_return<void > ();
}

static void _call_f_setWrapAround_864 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  bool arg1 = args.read<bool > ();
  ((QCompleter *)cls)->setWrapAround (arg1);
}

static qt_gsi::GenericMethod *_create_f_setWrapAround_864 ()
{
  return new qt_gsi::GenericMethod ("setWrapAround|wrapAround=", "@brief Method void QCompleter::setWrapAround(bool wrap)\n", false, &_init_f_setWrapAround_864, &_call_f_setWrapAround_864);
}

// QStringList QCompleter::splitPath(const QString &path)


static void _init_f_splitPath_c2025 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("path");
  decl->add_arg<const QString & > (argspec_0);
  decl->set_return<qt_gsi::Converter<QStringList>::target_type > ();
}

static void _call_f_splitPath_c2025 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QString &arg1 = args.read<const QString & > ();
  ret.write<qt_gsi::Converter<QStringList>::target_type > ((qt_gsi::Converter<QStringList>::target_type)qt_gsi::CppToQtAdaptor<QStringList>(((QCompleter *)cls)->splitPath (arg1)));
}

static qt_gsi::GenericMethod *_create_f_splitPath_c2025 ()
{
  return new qt_gsi::GenericMethod ("splitPath", "@brief Method QStringList QCompleter::splitPath(const QString &path)\n", true, &_init_f_splitPath_c2025, &_call_f_splitPath_c2025);
}

// QWidget *QCompleter::widget()


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

static void _call_f_widget_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QWidget * > ((QWidget *)((QCompleter *)cls)->widget ());
}

static qt_gsi::GenericMethod *_create_f_widget_c0 ()
{
  return new qt_gsi::GenericMethod (":widget", "@brief Method QWidget *QCompleter::widget()\n", true, &_init_f_widget_c0, &_call_f_widget_c0);
}

// bool QCompleter::wrapAround()


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

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

static qt_gsi::GenericMethod *_create_f_wrapAround_c0 ()
{
  return new qt_gsi::GenericMethod (":wrapAround", "@brief Method bool QCompleter::wrapAround()\n", true, &_init_f_wrapAround_c0, &_call_f_wrapAround_c0);
}

// static QString QCompleter::tr(const char *s, const char *c)


static void _init_f_tr_3354 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("s");
  decl->add_arg<const char * > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("c", true, "0");
  decl->add_arg<const char * > (argspec_1);
  decl->set_return<QString > ();
}

static void _call_f_tr_3354 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const char *arg1 = args.read<const char * > ();
  const char *arg2 = args ? args.read<const char * > () : (const char *)(0);
  ret.write<QString > ((QString)QCompleter::tr (arg1, arg2));
}

static qt_gsi::GenericStaticMethod *_create_f_tr_3354 ()
{
  return new qt_gsi::GenericStaticMethod ("tr", "@brief Static method QString QCompleter::tr(const char *s, const char *c)\nThis method is static and can be called without an instance.", &_init_f_tr_3354, &_call_f_tr_3354);
}

// static QString QCompleter::tr(const char *s, const char *c, int n)


static void _init_f_tr_4013 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("s");
  decl->add_arg<const char * > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("c");
  decl->add_arg<const char * > (argspec_1);
  static gsi::ArgSpecBase argspec_2 ("n");
  decl->add_arg<int > (argspec_2);
  decl->set_return<QString > ();
}

static void _call_f_tr_4013 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const char *arg1 = args.read<const char * > ();
  const char *arg2 = args.read<const char * > ();
  int arg3 = args.read<int > ();
  ret.write<QString > ((QString)QCompleter::tr (arg1, arg2, arg3));
}

static qt_gsi::GenericStaticMethod *_create_f_tr_4013 ()
{
  return new qt_gsi::GenericStaticMethod ("tr", "@brief Static method QString QCompleter::tr(const char *s, const char *c, int n)\nThis method is static and can be called without an instance.", &_init_f_tr_4013, &_call_f_tr_4013);
}

// static QString QCompleter::trUtf8(const char *s, const char *c)


static void _init_f_trUtf8_3354 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("s");
  decl->add_arg<const char * > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("c", true, "0");
  decl->add_arg<const char * > (argspec_1);
  decl->set_return<QString > ();
}

static void _call_f_trUtf8_3354 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const char *arg1 = args.read<const char * > ();
  const char *arg2 = args ? args.read<const char * > () : (const char *)(0);
  ret.write<QString > ((QString)QCompleter::trUtf8 (arg1, arg2));
}

static qt_gsi::GenericStaticMethod *_create_f_trUtf8_3354 ()
{
  return new qt_gsi::GenericStaticMethod ("trUtf8", "@brief Static method QString QCompleter::trUtf8(const char *s, const char *c)\nThis method is static and can be called without an instance.", &_init_f_trUtf8_3354, &_call_f_trUtf8_3354);
}

// static QString QCompleter::trUtf8(const char *s, const char *c, int n)


static void _init_f_trUtf8_4013 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("s");
  decl->add_arg<const char * > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("c");
  decl->add_arg<const char * > (argspec_1);
  static gsi::ArgSpecBase argspec_2 ("n");
  decl->add_arg<int > (argspec_2);
  decl->set_return<QString > ();
}

static void _call_f_trUtf8_4013 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const char *arg1 = args.read<const char * > ();
  const char *arg2 = args.read<const char * > ();
  int arg3 = args.read<int > ();
  ret.write<QString > ((QString)QCompleter::trUtf8 (arg1, arg2, arg3));
}

static qt_gsi::GenericStaticMethod *_create_f_trUtf8_4013 ()
{
  return new qt_gsi::GenericStaticMethod ("trUtf8", "@brief Static method QString QCompleter::trUtf8(const char *s, const char *c, int n)\nThis method is static and can be called without an instance.", &_init_f_trUtf8_4013, &_call_f_trUtf8_4013);
}

static qt_gsi::QObjectConnector<QCompleter, QCompleter_EventAdaptor> ea_QCompleter;

namespace gsi
{
extern gsi::Class<QObject> decl_QObject;

gsi::Class<QCompleter> decl_QCompleter (ea_QCompleter, decl_QObject, "QCompleter_Native",
  gsi::Methods(_create_smo ()) +
  gsi::Methods(_create_f_caseSensitivity_c0 ()) +
  gsi::Methods(_create_f_complete_1792 ()) +
  gsi::Methods(_create_f_completionColumn_c0 ()) +
  gsi::Methods(_create_f_completionCount_c0 ()) +
  gsi::Methods(_create_f_completionMode_c0 ()) +
  gsi::Methods(_create_f_completionModel_c0 ()) +
  gsi::Methods(_create_f_completionPrefix_c0 ()) +
  gsi::Methods(_create_f_completionRole_c0 ()) +
  gsi::Methods(_create_f_currentCompletion_c0 ()) +
  gsi::Methods(_create_f_currentIndex_c0 ()) +
  gsi::Methods(_create_f_currentRow_c0 ()) +
  gsi::Methods(_create_f_maxVisibleItems_c0 ()) +
  gsi::Methods(_create_f_model_c0 ()) +
  gsi::Methods(_create_f_modelSorting_c0 ()) +
  gsi::Methods(_create_f_pathFromIndex_c2395 ()) +
  gsi::Methods(_create_f_popup_c0 ()) +
  gsi::Methods(_create_f_setCaseSensitivity_2324 ()) +
  gsi::Methods(_create_f_setCompletionColumn_767 ()) +
  gsi::Methods(_create_f_setCompletionMode_3011 ()) +
  gsi::Methods(_create_f_setCompletionPrefix_2025 ()) +
  gsi::Methods(_create_f_setCompletionRole_767 ()) +
  gsi::Methods(_create_f_setCurrentRow_767 ()) +
  gsi::Methods(_create_f_setMaxVisibleItems_767 ()) +
  gsi::Methods(_create_f_setModel_2419 ()) +
  gsi::Methods(_create_f_setModelSorting_2811 ()) +
  gsi::Methods(_create_f_setPopup_2333 ()) +
  gsi::Methods(_create_f_setWidget_1315 ()) +
  gsi::Methods(_create_f_setWrapAround_864 ()) +
  gsi::Methods(_create_f_splitPath_c2025 ()) +
  gsi::Methods(_create_f_widget_c0 ()) +
  gsi::Methods(_create_f_wrapAround_c0 ()) +
  qt_gsi::qt_signal<QCompleter, QCompleter_EventAdaptor, const QString &> ("activated_qs", &QCompleter_EventAdaptor::activated_e_2025, gsi::arg("text"), "@brief Signal declaration for QCompleter::activated(const QString &text)\nYou can bind a procedure to this signal.") +
  qt_gsi::qt_signal<QCompleter, QCompleter_EventAdaptor, const QModelIndex &> ("activated", &QCompleter_EventAdaptor::activated_e_2395, gsi::arg("index"), "@brief Signal declaration for QCompleter::activated(const QModelIndex &index)\nYou can bind a procedure to this signal.") +
  qt_gsi::qt_signal<QCompleter, QCompleter_EventAdaptor, QObject *> ("destroyed", &QCompleter_EventAdaptor::destroyed_e_1302, gsi::arg("arg1"), "@brief Signal declaration for QCompleter::destroyed(QObject *)\nYou can bind a procedure to this signal.") +
  qt_gsi::qt_signal<QCompleter, QCompleter_EventAdaptor, const QString &> ("highlighted_qs", &QCompleter_EventAdaptor::highlighted_e_2025, gsi::arg("text"), "@brief Signal declaration for QCompleter::highlighted(const QString &text)\nYou can bind a procedure to this signal.") +
  qt_gsi::qt_signal<QCompleter, QCompleter_EventAdaptor, const QModelIndex &> ("highlighted", &QCompleter_EventAdaptor::highlighted_e_2395, gsi::arg("index"), "@brief Signal declaration for QCompleter::highlighted(const QModelIndex &index)\nYou can bind a procedure to this signal.") +
  gsi::Methods(_create_f_tr_3354 ()) +
  gsi::Methods(_create_f_tr_4013 ()) +
  gsi::Methods(_create_f_trUtf8_3354 ()) +
  gsi::Methods(_create_f_trUtf8_4013 ()),
  "@hide\n@alias QCompleter");
}


class QCompleter_Adaptor : public QCompleter, public qt_gsi::QtObjectBase
{
public:

  virtual ~QCompleter_Adaptor();

  //  [adaptor ctor] QCompleter::QCompleter(QObject *parent)
  QCompleter_Adaptor() : QCompleter()
  {
    qt_gsi::QtObjectBase::init (this);
  }

  //  [adaptor ctor] QCompleter::QCompleter(QObject *parent)
  QCompleter_Adaptor(QObject *parent) : QCompleter(parent)
  {
    qt_gsi::QtObjectBase::init (this);
  }

  //  [adaptor ctor] QCompleter::QCompleter(QAbstractItemModel *model, QObject *parent)
  QCompleter_Adaptor(QAbstractItemModel *model) : QCompleter(model)
  {
    qt_gsi::QtObjectBase::init (this);
  }

  //  [adaptor ctor] QCompleter::QCompleter(QAbstractItemModel *model, QObject *parent)
  QCompleter_Adaptor(QAbstractItemModel *model, QObject *parent) : QCompleter(model, parent)
  {
    qt_gsi::QtObjectBase::init (this);
  }

  //  [adaptor ctor] QCompleter::QCompleter(const QStringList &completions, QObject *parent)
  QCompleter_Adaptor(const QStringList &completions) : QCompleter(completions)
  {
    qt_gsi::QtObjectBase::init (this);
  }

  //  [adaptor ctor] QCompleter::QCompleter(const QStringList &completions, QObject *parent)
  QCompleter_Adaptor(const QStringList &completions, QObject *parent) : QCompleter(completions, parent)
  {
    qt_gsi::QtObjectBase::init (this);
  }

  //  int QCompleter::receivers(const char *signal)
  int fp_QCompleter_receivers_c1731 (const char *signal) const {
    return QCompleter::receivers(signal);
  }

  //  QObject *QCompleter::sender()
  QObject * fp_QCompleter_sender_c0 () const {
    return QCompleter::sender();
  }

  //  [adaptor impl] QString QCompleter::pathFromIndex(const QModelIndex &index)
  QString cbs_pathFromIndex_c2395_0(const QModelIndex &index) const
  {
    return QCompleter::pathFromIndex(index);
  }

  virtual QString pathFromIndex(const QModelIndex &index) const
  {
    if (cb_pathFromIndex_c2395_0.can_issue()) {
      return cb_pathFromIndex_c2395_0.issue<QCompleter_Adaptor, QString, const QModelIndex &>(&QCompleter_Adaptor::cbs_pathFromIndex_c2395_0, index);
    } else {
      return QCompleter::pathFromIndex(index);
    }
  }

  //  [adaptor impl] QStringList QCompleter::splitPath(const QString &path)
  qt_gsi::Converter<QStringList>::target_type cbs_splitPath_c2025_0(const QString &path) const
  {
    return qt_gsi::CppToQtAdaptor<QStringList>(QCompleter::splitPath(path));
  }

  virtual QStringList splitPath(const QString &path) const
  {
    if (cb_splitPath_c2025_0.can_issue()) {
      return qt_gsi::QtToCppAdaptor<QStringList>(cb_splitPath_c2025_0.issue<QCompleter_Adaptor, qt_gsi::Converter<QStringList>::target_type, const QString &>(&QCompleter_Adaptor::cbs_splitPath_c2025_0, path)).cref();
    } else {
      return QCompleter::splitPath(path);
    }
  }

  //  [adaptor impl] void QCompleter::childEvent(QChildEvent *)
  void cbs_childEvent_1701_0(QChildEvent *arg1)
  {
    QCompleter::childEvent(arg1);
  }

  virtual void childEvent(QChildEvent *arg1)
  {
    if (cb_childEvent_1701_0.can_issue()) {
      cb_childEvent_1701_0.issue<QCompleter_Adaptor, QChildEvent *>(&QCompleter_Adaptor::cbs_childEvent_1701_0, arg1);
    } else {
      QCompleter::childEvent(arg1);
    }
  }

  //  [adaptor impl] void QCompleter::customEvent(QEvent *)
  void cbs_customEvent_1217_0(QEvent *arg1)
  {
    QCompleter::customEvent(arg1);
  }

  virtual void customEvent(QEvent *arg1)
  {
    if (cb_customEvent_1217_0.can_issue()) {
      cb_customEvent_1217_0.issue<QCompleter_Adaptor, QEvent *>(&QCompleter_Adaptor::cbs_customEvent_1217_0, arg1);
    } else {
      QCompleter::customEvent(arg1);
    }
  }

  //  [adaptor impl] void QCompleter::disconnectNotify(const char *signal)
  void cbs_disconnectNotify_1731_0(const char *signal)
  {
    QCompleter::disconnectNotify(signal);
  }

  virtual void disconnectNotify(const char *signal)
  {
    if (cb_disconnectNotify_1731_0.can_issue()) {
      cb_disconnectNotify_1731_0.issue<QCompleter_Adaptor, const char *>(&QCompleter_Adaptor::cbs_disconnectNotify_1731_0, signal);
    } else {
      QCompleter::disconnectNotify(signal);
    }
  }

  //  [adaptor impl] bool QCompleter::event(QEvent *)
  bool cbs_event_1217_0(QEvent *arg1)
  {
    return QCompleter::event(arg1);
  }

  virtual bool event(QEvent *arg1)
  {
    if (cb_event_1217_0.can_issue()) {
      return cb_event_1217_0.issue<QCompleter_Adaptor, bool, QEvent *>(&QCompleter_Adaptor::cbs_event_1217_0, arg1);
    } else {
      return QCompleter::event(arg1);
    }
  }

  //  [adaptor impl] bool QCompleter::eventFilter(QObject *o, QEvent *e)
  bool cbs_eventFilter_2411_0(QObject *o, QEvent *e)
  {
    return QCompleter::eventFilter(o, e);
  }

  virtual bool eventFilter(QObject *o, QEvent *e)
  {
    if (cb_eventFilter_2411_0.can_issue()) {
      return cb_eventFilter_2411_0.issue<QCompleter_Adaptor, bool, QObject *, QEvent *>(&QCompleter_Adaptor::cbs_eventFilter_2411_0, o, e);
    } else {
      return QCompleter::eventFilter(o, e);
    }
  }

  //  [adaptor impl] void QCompleter::timerEvent(QTimerEvent *)
  void cbs_timerEvent_1730_0(QTimerEvent *arg1)
  {
    QCompleter::timerEvent(arg1);
  }

  virtual void timerEvent(QTimerEvent *arg1)
  {
    if (cb_timerEvent_1730_0.can_issue()) {
      cb_timerEvent_1730_0.issue<QCompleter_Adaptor, QTimerEvent *>(&QCompleter_Adaptor::cbs_timerEvent_1730_0, arg1);
    } else {
      QCompleter::timerEvent(arg1);
    }
  }

  gsi::Callback cb_pathFromIndex_c2395_0;
  gsi::Callback cb_splitPath_c2025_0;
  gsi::Callback cb_childEvent_1701_0;
  gsi::Callback cb_customEvent_1217_0;
  gsi::Callback cb_disconnectNotify_1731_0;
  gsi::Callback cb_event_1217_0;
  gsi::Callback cb_eventFilter_2411_0;
  gsi::Callback cb_timerEvent_1730_0;
};

QCompleter_Adaptor::~QCompleter_Adaptor() { }

//  Constructor QCompleter::QCompleter(QObject *parent) (adaptor class)

static void _init_ctor_QCompleter_Adaptor_1302 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("parent", true, "0");
  decl->add_arg<QObject * > (argspec_0);
  decl->set_return_new<QCompleter_Adaptor *> ();
}

static void _call_ctor_QCompleter_Adaptor_1302 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  QObject *arg1 = args ? args.read<QObject * > () : (QObject *)(0);
  ret.write<QCompleter_Adaptor *> (new QCompleter_Adaptor (arg1));
}

static qt_gsi::GenericStaticMethod *_create_ctor_QCompleter_Adaptor_1302 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QCompleter::QCompleter(QObject *parent)\nThis method creates an object of class QCompleter.", &_init_ctor_QCompleter_Adaptor_1302, &_call_ctor_QCompleter_Adaptor_1302);
}

//  Constructor QCompleter::QCompleter(QAbstractItemModel *model, QObject *parent) (adaptor class)

static void _init_ctor_QCompleter_Adaptor_3613 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("model");
  decl->add_arg<QAbstractItemModel * > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("parent", true, "0");
  decl->add_arg<QObject * > (argspec_1);
  decl->set_return_new<QCompleter_Adaptor *> ();
}

static void _call_ctor_QCompleter_Adaptor_3613 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  QAbstractItemModel *arg1 = args.read<QAbstractItemModel * > ();
  QObject *arg2 = args ? args.read<QObject * > () : (QObject *)(0);
  ret.write<QCompleter_Adaptor *> (new QCompleter_Adaptor (arg1, arg2));
}

static qt_gsi::GenericStaticMethod *_create_ctor_QCompleter_Adaptor_3613 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QCompleter::QCompleter(QAbstractItemModel *model, QObject *parent)\nThis method creates an object of class QCompleter.", &_init_ctor_QCompleter_Adaptor_3613, &_call_ctor_QCompleter_Adaptor_3613);
}

//  Constructor QCompleter::QCompleter(const QStringList &completions, QObject *parent) (adaptor class)

static void _init_ctor_QCompleter_Adaptor_3631 (qt_gsi::GenericStaticMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("completions");
  decl->add_arg<const qt_gsi::Converter<QStringList>::target_type & > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("parent", true, "0");
  decl->add_arg<QObject * > (argspec_1);
  decl->set_return_new<QCompleter_Adaptor *> ();
}

static void _call_ctor_QCompleter_Adaptor_3631 (const qt_gsi::GenericStaticMethod *decl, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const qt_gsi::Converter<QStringList>::target_type & arg1 = args.read<const qt_gsi::Converter<QStringList>::target_type & > ();
  QObject *arg2 = args ? args.read<QObject * > () : (QObject *)(0);
  ret.write<QCompleter_Adaptor *> (new QCompleter_Adaptor (qt_gsi::QtToCppAdaptor<QStringList>(arg1).cref(), arg2));
}

static qt_gsi::GenericStaticMethod *_create_ctor_QCompleter_Adaptor_3631 ()
{
  return new qt_gsi::GenericStaticMethod ("new", "@brief Constructor QCompleter::QCompleter(const QStringList &completions, QObject *parent)\nThis method creates an object of class QCompleter.", &_init_ctor_QCompleter_Adaptor_3631, &_call_ctor_QCompleter_Adaptor_3631);
}

// int QCompleter::receivers(const char *signal)

static void _init_fp_receivers_c1731 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("signal");
  decl->add_arg<const char * > (argspec_0);
  decl->set_return<int > ();
}

static void _call_fp_receivers_c1731 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const char *arg1 = args.read<const char * > ();
  ret.write<int > ((int)((QCompleter_Adaptor *)cls)->fp_QCompleter_receivers_c1731 (arg1));
}

static qt_gsi::GenericMethod*_create_fp_receivers_c1731 ()
{
  return new qt_gsi::GenericMethod("*receivers", "@brief Method int QCompleter::receivers(const char *signal)\nThis method is protected and can only be called from inside a derived class.", true, &_init_fp_receivers_c1731, &_call_fp_receivers_c1731);
}


// QObject *QCompleter::sender()

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

static void _call_fp_sender_c0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  ret.write<QObject * > ((QObject *)((QCompleter_Adaptor *)cls)->fp_QCompleter_sender_c0 ());
}

static qt_gsi::GenericMethod*_create_fp_sender_c0 ()
{
  return new qt_gsi::GenericMethod("*sender", "@brief Method QObject *QCompleter::sender()\nThis method is protected and can only be called from inside a derived class.", true, &_init_fp_sender_c0, &_call_fp_sender_c0);
}


// QString QCompleter::pathFromIndex(const QModelIndex &index)

static void _init_cbs_pathFromIndex_c2395_0 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("index");
  decl->add_arg<const QModelIndex & > (argspec_0);
  decl->set_return<QString > ();
}

static void _call_cbs_pathFromIndex_c2395_0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QModelIndex &arg1 = args.read<const QModelIndex & > ();
  ret.write<QString > ((QString)((QCompleter_Adaptor *)cls)->cbs_pathFromIndex_c2395_0 (arg1));
}

static void _set_callback_cbs_pathFromIndex_c2395_0 (void *cls, const gsi::Callback &cb)
{
  ((QCompleter_Adaptor *)cls)->cb_pathFromIndex_c2395_0 = cb;
}

static qt_gsi::GenericMethod *_create_cbs_pathFromIndex_c2395_0 ()
{
  return new qt_gsi::GenericMethod ("pathFromIndex", "@hide", true, &_init_cbs_pathFromIndex_c2395_0, &_call_cbs_pathFromIndex_c2395_0);
}

static qt_gsi::GenericMethod *_create_callback_cbs_pathFromIndex_c2395_0 ()
{
  return new qt_gsi::GenericMethod ("pathFromIndex", "@brief Virtual method QString QCompleter::pathFromIndex(const QModelIndex &index)\nThis method can be reimplemented in a derived class.", true, &_init_cbs_pathFromIndex_c2395_0, &_call_cbs_pathFromIndex_c2395_0, &_set_callback_cbs_pathFromIndex_c2395_0);
}


// QStringList QCompleter::splitPath(const QString &path)

static void _init_cbs_splitPath_c2025_0 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("path");
  decl->add_arg<const QString & > (argspec_0);
  decl->set_return<qt_gsi::Converter<QStringList>::target_type > ();
}

static void _call_cbs_splitPath_c2025_0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const QString &arg1 = args.read<const QString & > ();
  ret.write<qt_gsi::Converter<QStringList>::target_type > ((qt_gsi::Converter<QStringList>::target_type)((QCompleter_Adaptor *)cls)->cbs_splitPath_c2025_0 (arg1));
}

static void _set_callback_cbs_splitPath_c2025_0 (void *cls, const gsi::Callback &cb)
{
  ((QCompleter_Adaptor *)cls)->cb_splitPath_c2025_0 = cb;
}

static qt_gsi::GenericMethod *_create_cbs_splitPath_c2025_0 ()
{
  return new qt_gsi::GenericMethod ("splitPath", "@hide", true, &_init_cbs_splitPath_c2025_0, &_call_cbs_splitPath_c2025_0);
}

static qt_gsi::GenericMethod *_create_callback_cbs_splitPath_c2025_0 ()
{
  return new qt_gsi::GenericMethod ("splitPath", "@brief Virtual method QStringList QCompleter::splitPath(const QString &path)\nThis method can be reimplemented in a derived class.", true, &_init_cbs_splitPath_c2025_0, &_call_cbs_splitPath_c2025_0, &_set_callback_cbs_splitPath_c2025_0);
}


// void QCompleter::childEvent(QChildEvent *)

static void _init_cbs_childEvent_1701_0 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<QChildEvent * > (argspec_0);
  decl->set_return<void > ();
}

static void _call_cbs_childEvent_1701_0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  QChildEvent *arg1 = args.read<QChildEvent * > ();
  ((QCompleter_Adaptor *)cls)->cbs_childEvent_1701_0 (arg1);
}

static void _set_callback_cbs_childEvent_1701_0 (void *cls, const gsi::Callback &cb)
{
  ((QCompleter_Adaptor *)cls)->cb_childEvent_1701_0 = cb;
}

static qt_gsi::GenericMethod *_create_cbs_childEvent_1701_0 ()
{
  return new qt_gsi::GenericMethod ("*childEvent", "@hide", false, &_init_cbs_childEvent_1701_0, &_call_cbs_childEvent_1701_0);
}

static qt_gsi::GenericMethod *_create_callback_cbs_childEvent_1701_0 ()
{
  return new qt_gsi::GenericMethod ("*childEvent", "@brief Virtual method void QCompleter::childEvent(QChildEvent *)\nThis method can be reimplemented in a derived class.", false, &_init_cbs_childEvent_1701_0, &_call_cbs_childEvent_1701_0, &_set_callback_cbs_childEvent_1701_0);
}


// void QCompleter::customEvent(QEvent *)

static void _init_cbs_customEvent_1217_0 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<QEvent * > (argspec_0);
  decl->set_return<void > ();
}

static void _call_cbs_customEvent_1217_0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  QEvent *arg1 = args.read<QEvent * > ();
  ((QCompleter_Adaptor *)cls)->cbs_customEvent_1217_0 (arg1);
}

static void _set_callback_cbs_customEvent_1217_0 (void *cls, const gsi::Callback &cb)
{
  ((QCompleter_Adaptor *)cls)->cb_customEvent_1217_0 = cb;
}

static qt_gsi::GenericMethod *_create_cbs_customEvent_1217_0 ()
{
  return new qt_gsi::GenericMethod ("*customEvent", "@hide", false, &_init_cbs_customEvent_1217_0, &_call_cbs_customEvent_1217_0);
}

static qt_gsi::GenericMethod *_create_callback_cbs_customEvent_1217_0 ()
{
  return new qt_gsi::GenericMethod ("*customEvent", "@brief Virtual method void QCompleter::customEvent(QEvent *)\nThis method can be reimplemented in a derived class.", false, &_init_cbs_customEvent_1217_0, &_call_cbs_customEvent_1217_0, &_set_callback_cbs_customEvent_1217_0);
}


// void QCompleter::disconnectNotify(const char *signal)

static void _init_cbs_disconnectNotify_1731_0 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("signal");
  decl->add_arg<const char * > (argspec_0);
  decl->set_return<void > ();
}

static void _call_cbs_disconnectNotify_1731_0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  const char *arg1 = args.read<const char * > ();
  ((QCompleter_Adaptor *)cls)->cbs_disconnectNotify_1731_0 (arg1);
}

static void _set_callback_cbs_disconnectNotify_1731_0 (void *cls, const gsi::Callback &cb)
{
  ((QCompleter_Adaptor *)cls)->cb_disconnectNotify_1731_0 = cb;
}

static qt_gsi::GenericMethod *_create_cbs_disconnectNotify_1731_0 ()
{
  return new qt_gsi::GenericMethod ("*disconnectNotify", "@hide", false, &_init_cbs_disconnectNotify_1731_0, &_call_cbs_disconnectNotify_1731_0);
}

static qt_gsi::GenericMethod *_create_callback_cbs_disconnectNotify_1731_0 ()
{
  return new qt_gsi::GenericMethod ("*disconnectNotify", "@brief Virtual method void QCompleter::disconnectNotify(const char *signal)\nThis method can be reimplemented in a derived class.", false, &_init_cbs_disconnectNotify_1731_0, &_call_cbs_disconnectNotify_1731_0, &_set_callback_cbs_disconnectNotify_1731_0);
}


// bool QCompleter::event(QEvent *)

static void _init_cbs_event_1217_0 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<QEvent * > (argspec_0);
  decl->set_return<bool > ();
}

static void _call_cbs_event_1217_0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  QEvent *arg1 = args.read<QEvent * > ();
  ret.write<bool > ((bool)((QCompleter_Adaptor *)cls)->cbs_event_1217_0 (arg1));
}

static void _set_callback_cbs_event_1217_0 (void *cls, const gsi::Callback &cb)
{
  ((QCompleter_Adaptor *)cls)->cb_event_1217_0 = cb;
}

static qt_gsi::GenericMethod *_create_cbs_event_1217_0 ()
{
  return new qt_gsi::GenericMethod ("*event", "@hide", false, &_init_cbs_event_1217_0, &_call_cbs_event_1217_0);
}

static qt_gsi::GenericMethod *_create_callback_cbs_event_1217_0 ()
{
  return new qt_gsi::GenericMethod ("*event", "@brief Virtual method bool QCompleter::event(QEvent *)\nThis method can be reimplemented in a derived class.", false, &_init_cbs_event_1217_0, &_call_cbs_event_1217_0, &_set_callback_cbs_event_1217_0);
}


// bool QCompleter::eventFilter(QObject *o, QEvent *e)

static void _init_cbs_eventFilter_2411_0 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("o");
  decl->add_arg<QObject * > (argspec_0);
  static gsi::ArgSpecBase argspec_1 ("e");
  decl->add_arg<QEvent * > (argspec_1);
  decl->set_return<bool > ();
}

static void _call_cbs_eventFilter_2411_0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  QObject *arg1 = args.read<QObject * > ();
  QEvent *arg2 = args.read<QEvent * > ();
  ret.write<bool > ((bool)((QCompleter_Adaptor *)cls)->cbs_eventFilter_2411_0 (arg1, arg2));
}

static void _set_callback_cbs_eventFilter_2411_0 (void *cls, const gsi::Callback &cb)
{
  ((QCompleter_Adaptor *)cls)->cb_eventFilter_2411_0 = cb;
}

static qt_gsi::GenericMethod *_create_cbs_eventFilter_2411_0 ()
{
  return new qt_gsi::GenericMethod ("*eventFilter", "@hide", false, &_init_cbs_eventFilter_2411_0, &_call_cbs_eventFilter_2411_0);
}

static qt_gsi::GenericMethod *_create_callback_cbs_eventFilter_2411_0 ()
{
  return new qt_gsi::GenericMethod ("*eventFilter", "@brief Virtual method bool QCompleter::eventFilter(QObject *o, QEvent *e)\nThis method can be reimplemented in a derived class.", false, &_init_cbs_eventFilter_2411_0, &_call_cbs_eventFilter_2411_0, &_set_callback_cbs_eventFilter_2411_0);
}


// void QCompleter::timerEvent(QTimerEvent *)

static void _init_cbs_timerEvent_1730_0 (qt_gsi::GenericMethod *decl)
{
  static gsi::ArgSpecBase argspec_0 ("arg1");
  decl->add_arg<QTimerEvent * > (argspec_0);
  decl->set_return<void > ();
}

static void _call_cbs_timerEvent_1730_0 (const qt_gsi::GenericMethod *decl, void *cls, gsi::SerialArgs &args, gsi::SerialArgs &ret) 
{
  QTimerEvent *arg1 = args.read<QTimerEvent * > ();
  ((QCompleter_Adaptor *)cls)->cbs_timerEvent_1730_0 (arg1);
}

static void _set_callback_cbs_timerEvent_1730_0 (void *cls, const gsi::Callback &cb)
{
  ((QCompleter_Adaptor *)cls)->cb_timerEvent_1730_0 = cb;
}

static qt_gsi::GenericMethod *_create_cbs_timerEvent_1730_0 ()
{
  return new qt_gsi::GenericMethod ("*timerEvent", "@hide", false, &_init_cbs_timerEvent_1730_0, &_call_cbs_timerEvent_1730_0);
}

static qt_gsi::GenericMethod *_create_callback_cbs_timerEvent_1730_0 ()
{
  return new qt_gsi::GenericMethod ("*timerEvent", "@brief Virtual method void QCompleter::timerEvent(QTimerEvent *)\nThis method can be reimplemented in a derived class.", false, &_init_cbs_timerEvent_1730_0, &_call_cbs_timerEvent_1730_0, &_set_callback_cbs_timerEvent_1730_0);
}


namespace gsi
{

extern gsi::Class<QCompleter> decl_QCompleter;

gsi::Class<QCompleter_Adaptor> decl_QCompleter_Adaptor (decl_QCompleter, "QCompleter",
  gsi::Methods(_create_fp_receivers_c1731 ()) +
  gsi::Methods(_create_fp_sender_c0 ()) +
  gsi::Methods(_create_cbs_pathFromIndex_c2395_0 ()) +
  gsi::Methods(_create_callback_cbs_pathFromIndex_c2395_0 ()) +
  gsi::Methods(_create_cbs_splitPath_c2025_0 ()) +
  gsi::Methods(_create_callback_cbs_splitPath_c2025_0 ()) +
  gsi::Methods(_create_cbs_childEvent_1701_0 ()) +
  gsi::Methods(_create_callback_cbs_childEvent_1701_0 ()) +
  gsi::Methods(_create_cbs_customEvent_1217_0 ()) +
  gsi::Methods(_create_callback_cbs_customEvent_1217_0 ()) +
  gsi::Methods(_create_cbs_disconnectNotify_1731_0 ()) +
  gsi::Methods(_create_callback_cbs_disconnectNotify_1731_0 ()) +
  gsi::Methods(_create_cbs_event_1217_0 ()) +
  gsi::Methods(_create_callback_cbs_event_1217_0 ()) +
  gsi::Methods(_create_cbs_eventFilter_2411_0 ()) +
  gsi::Methods(_create_callback_cbs_eventFilter_2411_0 ()) +
  gsi::Methods(_create_cbs_timerEvent_1730_0 ()) +
  gsi::Methods(_create_callback_cbs_timerEvent_1730_0 ()) +
  gsi::Methods(_create_ctor_QCompleter_Adaptor_1302 ()) +
  gsi::Methods(_create_ctor_QCompleter_Adaptor_3613 ()) +
  gsi::Methods(_create_ctor_QCompleter_Adaptor_3631 ()),
  "@qt\n@brief Binding of QCompleter");

}


//  Implementation of the enum wrapper class for QCompleter::CompletionMode
namespace qt_gsi
{

static QCompleter_CompletionMode_Enum *c_1_QCompleter_CompletionMode_Enum () { return new QCompleter_CompletionMode_Enum (QCompleter::PopupCompletion); }
static QCompleter_CompletionMode_Enum *c_2_QCompleter_CompletionMode_Enum () { return new QCompleter_CompletionMode_Enum (QCompleter::UnfilteredPopupCompletion); }
static QCompleter_CompletionMode_Enum *c_3_QCompleter_CompletionMode_Enum () { return new QCompleter_CompletionMode_Enum (QCompleter::InlineCompletion); }

static gsi::Methods mkdefs_QCompleter_CompletionMode () {
  return
    gsi::constant ("PopupCompletion", &qt_gsi::c_1_QCompleter_CompletionMode_Enum, "@brief Enum constant QCompleter::PopupCompletion") +
    gsi::constant ("UnfilteredPopupCompletion", &qt_gsi::c_2_QCompleter_CompletionMode_Enum, "@brief Enum constant QCompleter::UnfilteredPopupCompletion") +
    gsi::constant ("InlineCompletion", &qt_gsi::c_3_QCompleter_CompletionMode_Enum, "@brief Enum constant QCompleter::InlineCompletion");
}

static std::string to_s_QCompleter_CompletionMode_Enum (const QCompleter_CompletionMode_Enum *e)
{
  if (e->value () == QCompleter::PopupCompletion) { return tl::sprintf ("PopupCompletion (%u)", (unsigned int) e->value ()); }
  if (e->value () == QCompleter::UnfilteredPopupCompletion) { return tl::sprintf ("UnfilteredPopupCompletion (%u)", (unsigned int) e->value ()); }
  if (e->value () == QCompleter::InlineCompletion) { return tl::sprintf ("InlineCompletion (%u)", (unsigned int) e->value ()); }
  return std::string ("(not a valid enum evalue)");
}

static unsigned int to_i_QCompleter_CompletionMode_Enum (const QCompleter_CompletionMode_Enum *e)
{
  return (unsigned int) e->value ();
}

static QCompleter_CompletionMode_Enum *from_i_QCompleter_CompletionMode_Enum (unsigned int i)
{
  return new QCompleter_CompletionMode_Enum ((QCompleter::CompletionMode) i);
}

static bool equalQCompleter_CompletionMode_Enum (const QCompleter_CompletionMode_Enum *e, QCompleter_CompletionMode_Enum d)
{
  return e->value () == d.value ();
}

static bool equal2QCompleter_CompletionMode_Enum (const QCompleter_CompletionMode_Enum *e, unsigned int i)
{
  return (unsigned int) e->value () == i;
}

static QCompleter_CompletionMode_Enums oropQCompleter_CompletionMode_Enums (const QCompleter_CompletionMode_Enums *e, const QCompleter_CompletionMode_Enums &d)
{
  return e->flags () | d.flags ();
}

static QCompleter_CompletionMode_Enums andopQCompleter_CompletionMode_Enums (const QCompleter_CompletionMode_Enums *e, const QCompleter_CompletionMode_Enums &d)
{
  return e->flags () & d.flags ();
}

static QCompleter_CompletionMode_Enums xoropQCompleter_CompletionMode_Enums (const QCompleter_CompletionMode_Enums *e, const QCompleter_CompletionMode_Enums &d)
{
  return e->flags () ^ d.flags ();
}

static std::string to_s_QCompleter_CompletionMode_Enums (const QCompleter_CompletionMode_Enums *e)
{
  std::string l;
  if (e->testFlag (QCompleter::PopupCompletion)) { if (!l.empty ()) l += "|"; l += "PopupCompletion"; }
  if (e->testFlag (QCompleter::UnfilteredPopupCompletion)) { if (!l.empty ()) l += "|"; l += "UnfilteredPopupCompletion"; }
  if (e->testFlag (QCompleter::InlineCompletion)) { if (!l.empty ()) l += "|"; l += "InlineCompletion"; }
  return tl::sprintf ("%u (%s)", (unsigned int) (e->flags ()), l);
}

static int to_i_QCompleter_CompletionMode_Enums (const QCompleter_CompletionMode_Enums *e)
{
  return int (e->flags ());
}

static bool testFlag_QCompleter_CompletionMode_Enums (const QCompleter_CompletionMode_Enums *e, const QCompleter_CompletionMode_Enum &d)
{
  return e->flags ().testFlag (d.value ());
}

}

namespace gsi
{

//  Declarations for QFlags<enum> wrapper class
gsi::Class<qt_gsi::QCompleter_CompletionMode_Enums> decl_QCompleter_CompletionMode_Enums ("QCompleter_QFlags_CompletionMode",
  gsi::method_ext ("|", &qt_gsi::oropQCompleter_CompletionMode_Enums, gsi::arg ("other"), "@brief 'or' operator between two flag sets") +
  gsi::method_ext ("&", &qt_gsi::andopQCompleter_CompletionMode_Enums, gsi::arg ("other"), "@brief 'and' operator between two flag sets") +
  gsi::method_ext ("^", &qt_gsi::xoropQCompleter_CompletionMode_Enums, gsi::arg ("other"), "@brief 'xor' operator between two flag sets") +
  gsi::method_ext ("to_s|inspect", &qt_gsi::to_s_QCompleter_CompletionMode_Enums, "@brief Converts the flag set to a string") +
  gsi::method_ext ("to_i", &qt_gsi::to_i_QCompleter_CompletionMode_Enums, "@brief Returns the integer value encoding the flag set") +
  gsi::method_ext ("testFlag", &qt_gsi::testFlag_QCompleter_CompletionMode_Enums, gsi::arg ("flag"), "@brief Tests whether the flag is contained in the flag set"),
  "@qt\n@brief This class represents the QFlags<QCompleter::CompletionMode> flag set");

//  Declarations for enum wrapper class
gsi::Class<qt_gsi::QCompleter_CompletionMode_Enum> decl_QCompleter_CompletionMode_Enum (decl_QCompleter_CompletionMode_Enums, "QCompleter_CompletionMode",
  qt_gsi::mkdefs_QCompleter_CompletionMode () +
  gsi::method_ext ("to_s|inspect", &qt_gsi::to_s_QCompleter_CompletionMode_Enum, "@brief Converts the enum class to a string") +
  gsi::method_ext ("to_i", &qt_gsi::to_i_QCompleter_CompletionMode_Enum, "@brief Converts the enum class to an integer") +
  gsi::method_ext ("==", &qt_gsi::equalQCompleter_CompletionMode_Enum, gsi::arg ("other"), "@brief Compares the enum class against an enum of it's own type") +
  gsi::method_ext ("==", &qt_gsi::equal2QCompleter_CompletionMode_Enum, gsi::arg ("other"), "@brief Compares the enum class against an integer") +
  gsi::constructor ("new", &qt_gsi::from_i_QCompleter_CompletionMode_Enum, gsi::arg ("value"), "@brief Creates the enum object from an integer"),
  "@qt\n@brief This class represents the QCompleter::CompletionMode enum");

//  Inject the declarations into the parent
static gsi::ClassExt<QCompleter> inject_QCompleter_CompletionMode_Enum_in_parent (qt_gsi::mkdefs_QCompleter_CompletionMode ());
static gsi::ClassExt<QCompleter> decl_QCompleter_CompletionMode_Enum_as_child (decl_QCompleter_CompletionMode_Enum, "CompletionMode");

}


//  Implementation of the enum wrapper class for QCompleter::ModelSorting
namespace qt_gsi
{

static QCompleter_ModelSorting_Enum *c_1_QCompleter_ModelSorting_Enum () { return new QCompleter_ModelSorting_Enum (QCompleter::UnsortedModel); }
static QCompleter_ModelSorting_Enum *c_2_QCompleter_ModelSorting_Enum () { return new QCompleter_ModelSorting_Enum (QCompleter::CaseSensitivelySortedModel); }
static QCompleter_ModelSorting_Enum *c_3_QCompleter_ModelSorting_Enum () { return new QCompleter_ModelSorting_Enum (QCompleter::CaseInsensitivelySortedModel); }

static gsi::Methods mkdefs_QCompleter_ModelSorting () {
  return
    gsi::constant ("UnsortedModel", &qt_gsi::c_1_QCompleter_ModelSorting_Enum, "@brief Enum constant QCompleter::UnsortedModel") +
    gsi::constant ("CaseSensitivelySortedModel", &qt_gsi::c_2_QCompleter_ModelSorting_Enum, "@brief Enum constant QCompleter::CaseSensitivelySortedModel") +
    gsi::constant ("CaseInsensitivelySortedModel", &qt_gsi::c_3_QCompleter_ModelSorting_Enum, "@brief Enum constant QCompleter::CaseInsensitivelySortedModel");
}

static std::string to_s_QCompleter_ModelSorting_Enum (const QCompleter_ModelSorting_Enum *e)
{
  if (e->value () == QCompleter::UnsortedModel) { return tl::sprintf ("UnsortedModel (%u)", (unsigned int) e->value ()); }
  if (e->value () == QCompleter::CaseSensitivelySortedModel) { return tl::sprintf ("CaseSensitivelySortedModel (%u)", (unsigned int) e->value ()); }
  if (e->value () == QCompleter::CaseInsensitivelySortedModel) { return tl::sprintf ("CaseInsensitivelySortedModel (%u)", (unsigned int) e->value ()); }
  return std::string ("(not a valid enum evalue)");
}

static unsigned int to_i_QCompleter_ModelSorting_Enum (const QCompleter_ModelSorting_Enum *e)
{
  return (unsigned int) e->value ();
}

static QCompleter_ModelSorting_Enum *from_i_QCompleter_ModelSorting_Enum (unsigned int i)
{
  return new QCompleter_ModelSorting_Enum ((QCompleter::ModelSorting) i);
}

static bool equalQCompleter_ModelSorting_Enum (const QCompleter_ModelSorting_Enum *e, QCompleter_ModelSorting_Enum d)
{
  return e->value () == d.value ();
}

static bool equal2QCompleter_ModelSorting_Enum (const QCompleter_ModelSorting_Enum *e, unsigned int i)
{
  return (unsigned int) e->value () == i;
}

static QCompleter_ModelSorting_Enums oropQCompleter_ModelSorting_Enums (const QCompleter_ModelSorting_Enums *e, const QCompleter_ModelSorting_Enums &d)
{
  return e->flags () | d.flags ();
}

static QCompleter_ModelSorting_Enums andopQCompleter_ModelSorting_Enums (const QCompleter_ModelSorting_Enums *e, const QCompleter_ModelSorting_Enums &d)
{
  return e->flags () & d.flags ();
}

static QCompleter_ModelSorting_Enums xoropQCompleter_ModelSorting_Enums (const QCompleter_ModelSorting_Enums *e, const QCompleter_ModelSorting_Enums &d)
{
  return e->flags () ^ d.flags ();
}

static std::string to_s_QCompleter_ModelSorting_Enums (const QCompleter_ModelSorting_Enums *e)
{
  std::string l;
  if (e->testFlag (QCompleter::UnsortedModel)) { if (!l.empty ()) l += "|"; l += "UnsortedModel"; }
  if (e->testFlag (QCompleter::CaseSensitivelySortedModel)) { if (!l.empty ()) l += "|"; l += "CaseSensitivelySortedModel"; }
  if (e->testFlag (QCompleter::CaseInsensitivelySortedModel)) { if (!l.empty ()) l += "|"; l += "CaseInsensitivelySortedModel"; }
  return tl::sprintf ("%u (%s)", (unsigned int) (e->flags ()), l);
}

static int to_i_QCompleter_ModelSorting_Enums (const QCompleter_ModelSorting_Enums *e)
{
  return int (e->flags ());
}

static bool testFlag_QCompleter_ModelSorting_Enums (const QCompleter_ModelSorting_Enums *e, const QCompleter_ModelSorting_Enum &d)
{
  return e->flags ().testFlag (d.value ());
}

}

namespace gsi
{

//  Declarations for QFlags<enum> wrapper class
gsi::Class<qt_gsi::QCompleter_ModelSorting_Enums> decl_QCompleter_ModelSorting_Enums ("QCompleter_QFlags_ModelSorting",
  gsi::method_ext ("|", &qt_gsi::oropQCompleter_ModelSorting_Enums, gsi::arg ("other"), "@brief 'or' operator between two flag sets") +
  gsi::method_ext ("&", &qt_gsi::andopQCompleter_ModelSorting_Enums, gsi::arg ("other"), "@brief 'and' operator between two flag sets") +
  gsi::method_ext ("^", &qt_gsi::xoropQCompleter_ModelSorting_Enums, gsi::arg ("other"), "@brief 'xor' operator between two flag sets") +
  gsi::method_ext ("to_s|inspect", &qt_gsi::to_s_QCompleter_ModelSorting_Enums, "@brief Converts the flag set to a string") +
  gsi::method_ext ("to_i", &qt_gsi::to_i_QCompleter_ModelSorting_Enums, "@brief Returns the integer value encoding the flag set") +
  gsi::method_ext ("testFlag", &qt_gsi::testFlag_QCompleter_ModelSorting_Enums, gsi::arg ("flag"), "@brief Tests whether the flag is contained in the flag set"),
  "@qt\n@brief This class represents the QFlags<QCompleter::ModelSorting> flag set");

//  Declarations for enum wrapper class
gsi::Class<qt_gsi::QCompleter_ModelSorting_Enum> decl_QCompleter_ModelSorting_Enum (decl_QCompleter_ModelSorting_Enums, "QCompleter_ModelSorting",
  qt_gsi::mkdefs_QCompleter_ModelSorting () +
  gsi::method_ext ("to_s|inspect", &qt_gsi::to_s_QCompleter_ModelSorting_Enum, "@brief Converts the enum class to a string") +
  gsi::method_ext ("to_i", &qt_gsi::to_i_QCompleter_ModelSorting_Enum, "@brief Converts the enum class to an integer") +
  gsi::method_ext ("==", &qt_gsi::equalQCompleter_ModelSorting_Enum, gsi::arg ("other"), "@brief Compares the enum class against an enum of it's own type") +
  gsi::method_ext ("==", &qt_gsi::equal2QCompleter_ModelSorting_Enum, gsi::arg ("other"), "@brief Compares the enum class against an integer") +
  gsi::constructor ("new", &qt_gsi::from_i_QCompleter_ModelSorting_Enum, gsi::arg ("value"), "@brief Creates the enum object from an integer"),
  "@qt\n@brief This class represents the QCompleter::ModelSorting enum");

//  Inject the declarations into the parent
static gsi::ClassExt<QCompleter> inject_QCompleter_ModelSorting_Enum_in_parent (qt_gsi::mkdefs_QCompleter_ModelSorting ());
static gsi::ClassExt<QCompleter> decl_QCompleter_ModelSorting_Enum_as_child (decl_QCompleter_ModelSorting_Enum, "ModelSorting");

}

