// qmetatype.sip generated by MetaSIP on Sun Jun 16 16:06:25 2013
//
// This file is part of the QtCore Python extension module.
//
// Copyright (c) 2013 Riverbank Computing Limited <info@riverbankcomputing.com>
// 
// This file is part of PyQt.
// 
// This file may be used under the terms of the GNU General Public
// License versions 2.0 or 3.0 as published by the Free Software
// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
// included in the packaging of this file.  Alternatively you may (at
// your option) use any later version of the GNU General Public
// License if such license has been publicly approved by Riverbank
// Computing Limited (or its successors, if any) and the KDE Free Qt
// Foundation. In addition, as a special exception, Riverbank gives you
// certain additional rights. These rights are described in the Riverbank
// GPL Exception version 1.1, which can be found in the file
// GPL_EXCEPTION.txt in this package.
// 
// If you are unsure which license is appropriate for your use, please
// contact the sales department at sales@riverbankcomputing.com.
// 
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.


%ModuleCode
#include <qmetatype.h>
%End

class QMetaType
{
%TypeHeaderCode
#include <qmetatype.h>
%End

public:
    enum Type
    {
%If (Qt_5_0_0 -)
        UnknownType,
%End
        Void,
        Bool,
        Int,
        UInt,
        LongLong,
        ULongLong,
        Double,
        QChar,
        QVariantMap,
        QVariantList,
%If (Qt_4_5_0 -)
        QVariantHash,
%End
        QString,
        QStringList,
        QByteArray,
        QBitArray,
        QDate,
        QTime,
        QDateTime,
        QUrl,
        QLocale,
        QRect,
        QRectF,
        QSize,
        QSizeF,
        QLine,
        QLineF,
        QPoint,
        QPointF,
        QRegExp,
        LastCoreType,
        FirstGuiType,
        QFont,
        QPixmap,
        QBrush,
        QColor,
        QPalette,
        QIcon,
        QImage,
        QPolygon,
        QRegion,
        QBitmap,
        QCursor,
        QSizePolicy,
        QKeySequence,
        QPen,
        QTextLength,
        QTextFormat,
        QMatrix,
%If (Qt_4_3_0 -)
        QTransform,
%End
        VoidStar,
        Long,
        Short,
        Char,
        ULong,
        UShort,
        UChar,
        Float,
        QObjectStar,
%If (- Qt_5_0_0)
        QWidgetStar,
%End
%If (Qt_4_6_0 -)
        QMatrix4x4,
%End
%If (Qt_4_6_0 -)
        QVector2D,
%End
%If (Qt_4_6_0 -)
        QVector3D,
%End
%If (Qt_4_6_0 -)
        QVector4D,
%End
%If (Qt_4_6_0 -)
        QQuaternion,
%End
%If (Qt_4_7_0 -)
        QEasingCurve,
%End
%If (Qt_4_7_0 -)
        QVariant,
%End
%If (Qt_5_0_0 -)
        QUuid,
%End
%If (Qt_5_0_0 -)
        QModelIndex,
%End
%If (Qt_5_0_0 -)
        QPolygonF,
%End
%If (Qt_5_0_0 -)
        SChar,
%End
%If (Qt_5_0_0 -)
        QRegularExpression,
%End
%If (Qt_5_0_0 -)
        QJsonValue,
%End
%If (Qt_5_0_0 -)
        QJsonObject,
%End
%If (Qt_5_0_0 -)
        QJsonArray,
%End
%If (Qt_5_0_0 -)
        QJsonDocument,
%End
        User,
    };

    static int type(const char *typeName);
    static const char *typeName(int type);
    static bool isRegistered(int type);
%If (Qt_5_0_0 -)
    explicit QMetaType(const int type);
%End
%If (Qt_5_0_0 -)
    ~QMetaType();
%End
%If (Qt_5_0_0 -)

    enum TypeFlag
    {
        NeedsConstruction,
        NeedsDestruction,
        MovableType,
    };

%End
%If (Qt_5_0_0 -)
    typedef QFlags<QMetaType::TypeFlag> TypeFlags;
%End
%If (Qt_5_0_0 -)
    static QFlags<QMetaType::TypeFlag> typeFlags(int type);
%End
%If (Qt_5_0_0 -)
    bool isValid() const;
%End
%If (Qt_5_0_0 -)
    bool isRegistered() const;
%End
%If (Qt_5_0_0 -)
    QFlags<QMetaType::TypeFlag> flags() const;
%End
%If (Qt_5_0_0 -)
    static const QMetaObject *metaObjectForType(int type);
%End

private:
%If (Qt_5_0_0 -)
    QMetaType(const QMetaType &other);
%End
};

%If (Qt_5_0_0 -)
QFlags<QMetaType::TypeFlag> operator|(QMetaType::TypeFlag f1, QFlags<QMetaType::TypeFlag> f2);
%End
