
/*

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

#ifndef _HDR_gsiDeclQSslConfiguration_Enums
#define _HDR_gsiDeclQSslConfiguration_Enums

#include <QtCore/QFlags>

namespace qt_gsi
{

//  Wrapper class for QFlags<enum QSsl::SslProtocol>
class QSsl_SslProtocol_Enums : public QFlags<enum QSsl::SslProtocol> {
public:
  QSsl_SslProtocol_Enums () : m_flags () { }
  QSsl_SslProtocol_Enums (enum QSsl::SslProtocol v) : m_flags (v) { }
  QSsl_SslProtocol_Enums (const QFlags<enum QSsl::SslProtocol> &v) : m_flags (v) { }
  QFlags<enum QSsl::SslProtocol> flags () const { return m_flags; }
private:
  QFlags<QSsl::SslProtocol> m_flags;
};

//  Wrapper class for enum QSsl::SslProtocol
class QSsl_SslProtocol_Enum : public QSsl_SslProtocol_Enums {
public:
  QSsl_SslProtocol_Enum () { }
  QSsl_SslProtocol_Enum (enum QSsl::SslProtocol v) : QSsl_SslProtocol_Enums (v) { }
  enum QSsl::SslProtocol value () const { return (enum QSsl::SslProtocol) flags ().operator int (); }
};

//  Converter for QFlags<enum QSsl::SslProtocol>
template <>
struct Converter<QFlags<enum QSsl::SslProtocol> >
{
public:
  typedef QFlags<enum QSsl::SslProtocol> source_type;
  typedef QSsl_SslProtocol_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 QSsl::SslProtocol
template <>
struct Converter<enum QSsl::SslProtocol>
{
public:
  typedef enum QSsl::SslProtocol source_type;
  typedef QSsl_SslProtocol_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 QSslSocket::PeerVerifyMode>
class QSslSocket_PeerVerifyMode_Enums : public QFlags<enum QSslSocket::PeerVerifyMode> {
public:
  QSslSocket_PeerVerifyMode_Enums () : m_flags () { }
  QSslSocket_PeerVerifyMode_Enums (enum QSslSocket::PeerVerifyMode v) : m_flags (v) { }
  QSslSocket_PeerVerifyMode_Enums (const QFlags<enum QSslSocket::PeerVerifyMode> &v) : m_flags (v) { }
  QFlags<enum QSslSocket::PeerVerifyMode> flags () const { return m_flags; }
private:
  QFlags<QSslSocket::PeerVerifyMode> m_flags;
};

//  Wrapper class for enum QSslSocket::PeerVerifyMode
class QSslSocket_PeerVerifyMode_Enum : public QSslSocket_PeerVerifyMode_Enums {
public:
  QSslSocket_PeerVerifyMode_Enum () { }
  QSslSocket_PeerVerifyMode_Enum (enum QSslSocket::PeerVerifyMode v) : QSslSocket_PeerVerifyMode_Enums (v) { }
  enum QSslSocket::PeerVerifyMode value () const { return (enum QSslSocket::PeerVerifyMode) flags ().operator int (); }
};

//  Converter for QFlags<enum QSslSocket::PeerVerifyMode>
template <>
struct Converter<QFlags<enum QSslSocket::PeerVerifyMode> >
{
public:
  typedef QFlags<enum QSslSocket::PeerVerifyMode> source_type;
  typedef QSslSocket_PeerVerifyMode_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 QSslSocket::PeerVerifyMode
template <>
struct Converter<enum QSslSocket::PeerVerifyMode>
{
public:
  typedef enum QSslSocket::PeerVerifyMode source_type;
  typedef QSslSocket_PeerVerifyMode_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
