/****************************************************************************
** Meta object code from reading C++ file 'opticaldisc.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.1)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../../src/solid/devices/frontend/opticaldisc.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'opticaldisc.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.1. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_Solid__OpticalDisc_t {
    QByteArrayData data[35];
    char stringdata0[444];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Solid__OpticalDisc_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Solid__OpticalDisc_t qt_meta_stringdata_Solid__OpticalDisc = {
    {
QT_MOC_LITERAL(0, 0, 18), // "Solid::OpticalDisc"
QT_MOC_LITERAL(1, 19, 16), // "availableContent"
QT_MOC_LITERAL(2, 36, 12), // "ContentTypes"
QT_MOC_LITERAL(3, 49, 8), // "discType"
QT_MOC_LITERAL(4, 58, 8), // "DiscType"
QT_MOC_LITERAL(5, 67, 10), // "appendable"
QT_MOC_LITERAL(6, 78, 5), // "blank"
QT_MOC_LITERAL(7, 84, 10), // "rewritable"
QT_MOC_LITERAL(8, 95, 8), // "capacity"
QT_MOC_LITERAL(9, 104, 11), // "ContentType"
QT_MOC_LITERAL(10, 116, 9), // "NoContent"
QT_MOC_LITERAL(11, 126, 5), // "Audio"
QT_MOC_LITERAL(12, 132, 4), // "Data"
QT_MOC_LITERAL(13, 137, 7), // "VideoCd"
QT_MOC_LITERAL(14, 145, 12), // "SuperVideoCd"
QT_MOC_LITERAL(15, 158, 8), // "VideoDvd"
QT_MOC_LITERAL(16, 167, 11), // "VideoBluRay"
QT_MOC_LITERAL(17, 179, 15), // "UnknownDiscType"
QT_MOC_LITERAL(18, 195, 5), // "CdRom"
QT_MOC_LITERAL(19, 201, 12), // "CdRecordable"
QT_MOC_LITERAL(20, 214, 12), // "CdRewritable"
QT_MOC_LITERAL(21, 227, 6), // "DvdRom"
QT_MOC_LITERAL(22, 234, 6), // "DvdRam"
QT_MOC_LITERAL(23, 241, 13), // "DvdRecordable"
QT_MOC_LITERAL(24, 255, 13), // "DvdRewritable"
QT_MOC_LITERAL(25, 269, 17), // "DvdPlusRecordable"
QT_MOC_LITERAL(26, 287, 17), // "DvdPlusRewritable"
QT_MOC_LITERAL(27, 305, 26), // "DvdPlusRecordableDuallayer"
QT_MOC_LITERAL(28, 332, 26), // "DvdPlusRewritableDuallayer"
QT_MOC_LITERAL(29, 359, 9), // "BluRayRom"
QT_MOC_LITERAL(30, 369, 16), // "BluRayRecordable"
QT_MOC_LITERAL(31, 386, 16), // "BluRayRewritable"
QT_MOC_LITERAL(32, 403, 8), // "HdDvdRom"
QT_MOC_LITERAL(33, 412, 15), // "HdDvdRecordable"
QT_MOC_LITERAL(34, 428, 15) // "HdDvdRewritable"

    },
    "Solid::OpticalDisc\0availableContent\0"
    "ContentTypes\0discType\0DiscType\0"
    "appendable\0blank\0rewritable\0capacity\0"
    "ContentType\0NoContent\0Audio\0Data\0"
    "VideoCd\0SuperVideoCd\0VideoDvd\0VideoBluRay\0"
    "UnknownDiscType\0CdRom\0CdRecordable\0"
    "CdRewritable\0DvdRom\0DvdRam\0DvdRecordable\0"
    "DvdRewritable\0DvdPlusRecordable\0"
    "DvdPlusRewritable\0DvdPlusRecordableDuallayer\0"
    "DvdPlusRewritableDuallayer\0BluRayRom\0"
    "BluRayRecordable\0BluRayRewritable\0"
    "HdDvdRom\0HdDvdRecordable\0HdDvdRewritable"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Solid__OpticalDisc[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       0,    0, // methods
       6,   14, // properties
       3,   32, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // properties: name, type, flags
       1, 0x80000000 | 2, 0x00095009,
       3, 0x80000000 | 4, 0x00095009,
       5, QMetaType::Bool, 0x00095001,
       6, QMetaType::Bool, 0x00095001,
       7, QMetaType::Bool, 0x00095001,
       8, QMetaType::ULongLong, 0x00095001,

 // enums: name, flags, count, data
       9, 0x0,    7,   44,
       2, 0x1,    7,   58,
       4, 0x0,   18,   72,

 // enum data: key, value
      10, uint(Solid::OpticalDisc::NoContent),
      11, uint(Solid::OpticalDisc::Audio),
      12, uint(Solid::OpticalDisc::Data),
      13, uint(Solid::OpticalDisc::VideoCd),
      14, uint(Solid::OpticalDisc::SuperVideoCd),
      15, uint(Solid::OpticalDisc::VideoDvd),
      16, uint(Solid::OpticalDisc::VideoBluRay),
      10, uint(Solid::OpticalDisc::NoContent),
      11, uint(Solid::OpticalDisc::Audio),
      12, uint(Solid::OpticalDisc::Data),
      13, uint(Solid::OpticalDisc::VideoCd),
      14, uint(Solid::OpticalDisc::SuperVideoCd),
      15, uint(Solid::OpticalDisc::VideoDvd),
      16, uint(Solid::OpticalDisc::VideoBluRay),
      17, uint(Solid::OpticalDisc::UnknownDiscType),
      18, uint(Solid::OpticalDisc::CdRom),
      19, uint(Solid::OpticalDisc::CdRecordable),
      20, uint(Solid::OpticalDisc::CdRewritable),
      21, uint(Solid::OpticalDisc::DvdRom),
      22, uint(Solid::OpticalDisc::DvdRam),
      23, uint(Solid::OpticalDisc::DvdRecordable),
      24, uint(Solid::OpticalDisc::DvdRewritable),
      25, uint(Solid::OpticalDisc::DvdPlusRecordable),
      26, uint(Solid::OpticalDisc::DvdPlusRewritable),
      27, uint(Solid::OpticalDisc::DvdPlusRecordableDuallayer),
      28, uint(Solid::OpticalDisc::DvdPlusRewritableDuallayer),
      29, uint(Solid::OpticalDisc::BluRayRom),
      30, uint(Solid::OpticalDisc::BluRayRecordable),
      31, uint(Solid::OpticalDisc::BluRayRewritable),
      32, uint(Solid::OpticalDisc::HdDvdRom),
      33, uint(Solid::OpticalDisc::HdDvdRecordable),
      34, uint(Solid::OpticalDisc::HdDvdRewritable),

       0        // eod
};

void Solid::OpticalDisc::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{

#ifndef QT_NO_PROPERTIES
    if (_c == QMetaObject::ReadProperty) {
        OpticalDisc *_t = static_cast<OpticalDisc *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<int*>(_v) = QFlag(_t->availableContent()); break;
        case 1: *reinterpret_cast< DiscType*>(_v) = _t->discType(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->isAppendable(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->isBlank(); break;
        case 4: *reinterpret_cast< bool*>(_v) = _t->isRewritable(); break;
        case 5: *reinterpret_cast< qulonglong*>(_v) = _t->capacity(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
    Q_UNUSED(_o);
    Q_UNUSED(_id);
    Q_UNUSED(_c);
    Q_UNUSED(_a);
}

const QMetaObject Solid::OpticalDisc::staticMetaObject = {
    { &StorageVolume::staticMetaObject, qt_meta_stringdata_Solid__OpticalDisc.data,
      qt_meta_data_Solid__OpticalDisc,  qt_static_metacall, nullptr, nullptr}
};


const QMetaObject *Solid::OpticalDisc::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *Solid::OpticalDisc::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Solid__OpticalDisc.stringdata0))
        return static_cast<void*>(const_cast< OpticalDisc*>(this));
    return StorageVolume::qt_metacast(_clname);
}

int Solid::OpticalDisc::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = StorageVolume::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    
#ifndef QT_NO_PROPERTIES
   if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 6;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
