
/*

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

#ifndef _HDR_gsiDeclQRegExp_Enums
#define _HDR_gsiDeclQRegExp_Enums

#include <QtCore/QFlags>

namespace qt_gsi
{

//  Wrapper class for QFlags<enum QRegExp::CaretMode>
class QRegExp_CaretMode_Enums : public QFlags<enum QRegExp::CaretMode> {
public:
  QRegExp_CaretMode_Enums () : m_flags () { }
  QRegExp_CaretMode_Enums (enum QRegExp::CaretMode v) : m_flags (v) { }
  QRegExp_CaretMode_Enums (const QFlags<enum QRegExp::CaretMode> &v) : m_flags (v) { }
  QFlags<enum QRegExp::CaretMode> flags () const { return m_flags; }
private:
  QFlags<QRegExp::CaretMode> m_flags;
};

//  Wrapper class for enum QRegExp::CaretMode
class QRegExp_CaretMode_Enum : public QRegExp_CaretMode_Enums {
public:
  QRegExp_CaretMode_Enum () { }
  QRegExp_CaretMode_Enum (enum QRegExp::CaretMode v) : QRegExp_CaretMode_Enums (v) { }
  enum QRegExp::CaretMode value () const { return (enum QRegExp::CaretMode) flags ().operator int (); }
};

//  Converter for QFlags<enum QRegExp::CaretMode>
template <>
struct Converter<QFlags<enum QRegExp::CaretMode> >
{
public:
  typedef QFlags<enum QRegExp::CaretMode> source_type;
  typedef QRegExp_CaretMode_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 QRegExp::CaretMode
template <>
struct Converter<enum QRegExp::CaretMode>
{
public:
  typedef enum QRegExp::CaretMode source_type;
  typedef QRegExp_CaretMode_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 QRegExp::PatternSyntax>
class QRegExp_PatternSyntax_Enums : public QFlags<enum QRegExp::PatternSyntax> {
public:
  QRegExp_PatternSyntax_Enums () : m_flags () { }
  QRegExp_PatternSyntax_Enums (enum QRegExp::PatternSyntax v) : m_flags (v) { }
  QRegExp_PatternSyntax_Enums (const QFlags<enum QRegExp::PatternSyntax> &v) : m_flags (v) { }
  QFlags<enum QRegExp::PatternSyntax> flags () const { return m_flags; }
private:
  QFlags<QRegExp::PatternSyntax> m_flags;
};

//  Wrapper class for enum QRegExp::PatternSyntax
class QRegExp_PatternSyntax_Enum : public QRegExp_PatternSyntax_Enums {
public:
  QRegExp_PatternSyntax_Enum () { }
  QRegExp_PatternSyntax_Enum (enum QRegExp::PatternSyntax v) : QRegExp_PatternSyntax_Enums (v) { }
  enum QRegExp::PatternSyntax value () const { return (enum QRegExp::PatternSyntax) flags ().operator int (); }
};

//  Converter for QFlags<enum QRegExp::PatternSyntax>
template <>
struct Converter<QFlags<enum QRegExp::PatternSyntax> >
{
public:
  typedef QFlags<enum QRegExp::PatternSyntax> source_type;
  typedef QRegExp_PatternSyntax_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 QRegExp::PatternSyntax
template <>
struct Converter<enum QRegExp::PatternSyntax>
{
public:
  typedef enum QRegExp::PatternSyntax source_type;
  typedef QRegExp_PatternSyntax_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 Qt::CaseSensitivity>
class Qt_CaseSensitivity_Enums : public QFlags<enum Qt::CaseSensitivity> {
public:
  Qt_CaseSensitivity_Enums () : m_flags () { }
  Qt_CaseSensitivity_Enums (enum Qt::CaseSensitivity v) : m_flags (v) { }
  Qt_CaseSensitivity_Enums (const QFlags<enum Qt::CaseSensitivity> &v) : m_flags (v) { }
  QFlags<enum Qt::CaseSensitivity> flags () const { return m_flags; }
private:
  QFlags<Qt::CaseSensitivity> m_flags;
};

//  Wrapper class for enum Qt::CaseSensitivity
class Qt_CaseSensitivity_Enum : public Qt_CaseSensitivity_Enums {
public:
  Qt_CaseSensitivity_Enum () { }
  Qt_CaseSensitivity_Enum (enum Qt::CaseSensitivity v) : Qt_CaseSensitivity_Enums (v) { }
  enum Qt::CaseSensitivity value () const { return (enum Qt::CaseSensitivity) flags ().operator int (); }
};

//  Converter for QFlags<enum Qt::CaseSensitivity>
template <>
struct Converter<QFlags<enum Qt::CaseSensitivity> >
{
public:
  typedef QFlags<enum Qt::CaseSensitivity> source_type;
  typedef Qt_CaseSensitivity_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 Qt::CaseSensitivity
template <>
struct Converter<enum Qt::CaseSensitivity>
{
public:
  typedef enum Qt::CaseSensitivity source_type;
  typedef Qt_CaseSensitivity_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
