
/*

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

#ifndef _HDR_gsiDeclQSqlQuery_Enums
#define _HDR_gsiDeclQSqlQuery_Enums

#include <QtCore/QFlags>

namespace qt_gsi
{

//  Wrapper class for QFlags<enum QSql::NumericalPrecisionPolicy>
class QSql_NumericalPrecisionPolicy_Enums : public QFlags<enum QSql::NumericalPrecisionPolicy> {
public:
  QSql_NumericalPrecisionPolicy_Enums () : m_flags () { }
  QSql_NumericalPrecisionPolicy_Enums (enum QSql::NumericalPrecisionPolicy v) : m_flags (v) { }
  QSql_NumericalPrecisionPolicy_Enums (const QFlags<enum QSql::NumericalPrecisionPolicy> &v) : m_flags (v) { }
  QFlags<enum QSql::NumericalPrecisionPolicy> flags () const { return m_flags; }
private:
  QFlags<QSql::NumericalPrecisionPolicy> m_flags;
};

//  Wrapper class for enum QSql::NumericalPrecisionPolicy
class QSql_NumericalPrecisionPolicy_Enum : public QSql_NumericalPrecisionPolicy_Enums {
public:
  QSql_NumericalPrecisionPolicy_Enum () { }
  QSql_NumericalPrecisionPolicy_Enum (enum QSql::NumericalPrecisionPolicy v) : QSql_NumericalPrecisionPolicy_Enums (v) { }
  enum QSql::NumericalPrecisionPolicy value () const { return (enum QSql::NumericalPrecisionPolicy) flags ().operator int (); }
};

//  Converter for QFlags<enum QSql::NumericalPrecisionPolicy>
template <>
struct Converter<QFlags<enum QSql::NumericalPrecisionPolicy> >
{
public:
  typedef QFlags<enum QSql::NumericalPrecisionPolicy> source_type;
  typedef QSql_NumericalPrecisionPolicy_Enums target_type;
  static source_type toq (const target_type &c) { return c.flags (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Converter for enum QSql::NumericalPrecisionPolicy
template <>
struct Converter<enum QSql::NumericalPrecisionPolicy>
{
public:
  typedef enum QSql::NumericalPrecisionPolicy source_type;
  typedef QSql_NumericalPrecisionPolicy_Enum target_type;
  static source_type toq (const target_type &c) { return c.value (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Wrapper class for QFlags<enum QSql::ParamTypeFlag>
class QSql_ParamTypeFlag_Enums : public QFlags<enum QSql::ParamTypeFlag> {
public:
  QSql_ParamTypeFlag_Enums () : m_flags () { }
  QSql_ParamTypeFlag_Enums (enum QSql::ParamTypeFlag v) : m_flags (v) { }
  QSql_ParamTypeFlag_Enums (const QFlags<enum QSql::ParamTypeFlag> &v) : m_flags (v) { }
  QFlags<enum QSql::ParamTypeFlag> flags () const { return m_flags; }
private:
  QFlags<QSql::ParamTypeFlag> m_flags;
};

//  Wrapper class for enum QSql::ParamTypeFlag
class QSql_ParamTypeFlag_Enum : public QSql_ParamTypeFlag_Enums {
public:
  QSql_ParamTypeFlag_Enum () { }
  QSql_ParamTypeFlag_Enum (enum QSql::ParamTypeFlag v) : QSql_ParamTypeFlag_Enums (v) { }
  enum QSql::ParamTypeFlag value () const { return (enum QSql::ParamTypeFlag) flags ().operator int (); }
};

//  Converter for QFlags<enum QSql::ParamTypeFlag>
template <>
struct Converter<QFlags<enum QSql::ParamTypeFlag> >
{
public:
  typedef QFlags<enum QSql::ParamTypeFlag> source_type;
  typedef QSql_ParamTypeFlag_Enums target_type;
  static source_type toq (const target_type &c) { return c.flags (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Converter for enum QSql::ParamTypeFlag
template <>
struct Converter<enum QSql::ParamTypeFlag>
{
public:
  typedef enum QSql::ParamTypeFlag source_type;
  typedef QSql_ParamTypeFlag_Enum target_type;
  static source_type toq (const target_type &c) { return c.value (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Wrapper class for QFlags<enum QSqlQuery::BatchExecutionMode>
class QSqlQuery_BatchExecutionMode_Enums : public QFlags<enum QSqlQuery::BatchExecutionMode> {
public:
  QSqlQuery_BatchExecutionMode_Enums () : m_flags () { }
  QSqlQuery_BatchExecutionMode_Enums (enum QSqlQuery::BatchExecutionMode v) : m_flags (v) { }
  QSqlQuery_BatchExecutionMode_Enums (const QFlags<enum QSqlQuery::BatchExecutionMode> &v) : m_flags (v) { }
  QFlags<enum QSqlQuery::BatchExecutionMode> flags () const { return m_flags; }
private:
  QFlags<QSqlQuery::BatchExecutionMode> m_flags;
};

//  Wrapper class for enum QSqlQuery::BatchExecutionMode
class QSqlQuery_BatchExecutionMode_Enum : public QSqlQuery_BatchExecutionMode_Enums {
public:
  QSqlQuery_BatchExecutionMode_Enum () { }
  QSqlQuery_BatchExecutionMode_Enum (enum QSqlQuery::BatchExecutionMode v) : QSqlQuery_BatchExecutionMode_Enums (v) { }
  enum QSqlQuery::BatchExecutionMode value () const { return (enum QSqlQuery::BatchExecutionMode) flags ().operator int (); }
};

//  Converter for QFlags<enum QSqlQuery::BatchExecutionMode>
template <>
struct Converter<QFlags<enum QSqlQuery::BatchExecutionMode> >
{
public:
  typedef QFlags<enum QSqlQuery::BatchExecutionMode> source_type;
  typedef QSqlQuery_BatchExecutionMode_Enums target_type;
  static source_type toq (const target_type &c) { return c.flags (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

//  Converter for enum QSqlQuery::BatchExecutionMode
template <>
struct Converter<enum QSqlQuery::BatchExecutionMode>
{
public:
  typedef enum QSqlQuery::BatchExecutionMode source_type;
  typedef QSqlQuery_BatchExecutionMode_Enum target_type;
  static source_type toq (const target_type &c) { return c.value (); }
  static target_type toc (const source_type &qc) { return target_type (qc); }
};

}

#endif
