
/*

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

#ifndef _HDR_gsiDeclQMutex_Enums
#define _HDR_gsiDeclQMutex_Enums

#include <QtCore/QFlags>

namespace qt_gsi
{

//  Wrapper class for QFlags<enum QMutex::RecursionMode>
class QMutex_RecursionMode_Enums : public QFlags<enum QMutex::RecursionMode> {
public:
  QMutex_RecursionMode_Enums () : m_flags () { }
  QMutex_RecursionMode_Enums (enum QMutex::RecursionMode v) : m_flags (v) { }
  QMutex_RecursionMode_Enums (const QFlags<enum QMutex::RecursionMode> &v) : m_flags (v) { }
  QFlags<enum QMutex::RecursionMode> flags () const { return m_flags; }
private:
  QFlags<QMutex::RecursionMode> m_flags;
};

//  Wrapper class for enum QMutex::RecursionMode
class QMutex_RecursionMode_Enum : public QMutex_RecursionMode_Enums {
public:
  QMutex_RecursionMode_Enum () { }
  QMutex_RecursionMode_Enum (enum QMutex::RecursionMode v) : QMutex_RecursionMode_Enums (v) { }
  enum QMutex::RecursionMode value () const { return (enum QMutex::RecursionMode) flags ().operator int (); }
};

//  Converter for QFlags<enum QMutex::RecursionMode>
template <>
struct Converter<QFlags<enum QMutex::RecursionMode> >
{
public:
  typedef QFlags<enum QMutex::RecursionMode> source_type;
  typedef QMutex_RecursionMode_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 QMutex::RecursionMode
template <>
struct Converter<enum QMutex::RecursionMode>
{
public:
  typedef enum QMutex::RecursionMode source_type;
  typedef QMutex_RecursionMode_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
