
/*

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

#ifndef _HDR_gsiDeclQColor_Enums
#define _HDR_gsiDeclQColor_Enums

#include <QtCore/QFlags>

namespace qt_gsi
{

//  Wrapper class for QFlags<enum QColor::Spec>
class QColor_Spec_Enums : public QFlags<enum QColor::Spec> {
public:
  QColor_Spec_Enums () : m_flags () { }
  QColor_Spec_Enums (enum QColor::Spec v) : m_flags (v) { }
  QColor_Spec_Enums (const QFlags<enum QColor::Spec> &v) : m_flags (v) { }
  QFlags<enum QColor::Spec> flags () const { return m_flags; }
private:
  QFlags<QColor::Spec> m_flags;
};

//  Wrapper class for enum QColor::Spec
class QColor_Spec_Enum : public QColor_Spec_Enums {
public:
  QColor_Spec_Enum () { }
  QColor_Spec_Enum (enum QColor::Spec v) : QColor_Spec_Enums (v) { }
  enum QColor::Spec value () const { return (enum QColor::Spec) flags ().operator int (); }
};

//  Converter for QFlags<enum QColor::Spec>
template <>
struct Converter<QFlags<enum QColor::Spec> >
{
public:
  typedef QFlags<enum QColor::Spec> source_type;
  typedef QColor_Spec_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 QColor::Spec
template <>
struct Converter<enum QColor::Spec>
{
public:
  typedef enum QColor::Spec source_type;
  typedef QColor_Spec_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::GlobalColor>
class Qt_GlobalColor_Enums : public QFlags<enum Qt::GlobalColor> {
public:
  Qt_GlobalColor_Enums () : m_flags () { }
  Qt_GlobalColor_Enums (enum Qt::GlobalColor v) : m_flags (v) { }
  Qt_GlobalColor_Enums (const QFlags<enum Qt::GlobalColor> &v) : m_flags (v) { }
  QFlags<enum Qt::GlobalColor> flags () const { return m_flags; }
private:
  QFlags<Qt::GlobalColor> m_flags;
};

//  Wrapper class for enum Qt::GlobalColor
class Qt_GlobalColor_Enum : public Qt_GlobalColor_Enums {
public:
  Qt_GlobalColor_Enum () { }
  Qt_GlobalColor_Enum (enum Qt::GlobalColor v) : Qt_GlobalColor_Enums (v) { }
  enum Qt::GlobalColor value () const { return (enum Qt::GlobalColor) flags ().operator int (); }
};

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