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

#include "../../src/ktorrent-5.1.0/ktorrent/view/view.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'view.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. 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_kt__View_t {
    QByteArrayData data[57];
    char stringdata0[735];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_kt__View_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_kt__View_t qt_meta_stringdata_kt__View = {
    {
QT_MOC_LITERAL(0, 0, 8), // "kt::View"
QT_MOC_LITERAL(1, 9, 21), // "currentTorrentChanged"
QT_MOC_LITERAL(2, 31, 0), // ""
QT_MOC_LITERAL(3, 32, 21), // "bt::TorrentInterface*"
QT_MOC_LITERAL(4, 54, 2), // "tc"
QT_MOC_LITERAL(5, 57, 23), // "torrentSelectionChanged"
QT_MOC_LITERAL(6, 81, 11), // "editingItem"
QT_MOC_LITERAL(7, 93, 2), // "on"
QT_MOC_LITERAL(8, 96, 15), // "setFilterString"
QT_MOC_LITERAL(9, 112, 6), // "filter"
QT_MOC_LITERAL(10, 119, 6), // "update"
QT_MOC_LITERAL(11, 126, 13), // "startTorrents"
QT_MOC_LITERAL(12, 140, 18), // "forceStartTorrents"
QT_MOC_LITERAL(13, 159, 12), // "stopTorrents"
QT_MOC_LITERAL(14, 172, 13), // "pauseTorrents"
QT_MOC_LITERAL(15, 186, 14), // "removeTorrents"
QT_MOC_LITERAL(16, 201, 21), // "removeTorrentsAndData"
QT_MOC_LITERAL(17, 223, 16), // "startAllTorrents"
QT_MOC_LITERAL(18, 240, 15), // "stopAllTorrents"
QT_MOC_LITERAL(19, 256, 9), // "checkData"
QT_MOC_LITERAL(20, 266, 8), // "addPeers"
QT_MOC_LITERAL(21, 275, 14), // "manualAnnounce"
QT_MOC_LITERAL(22, 290, 15), // "previewTorrents"
QT_MOC_LITERAL(23, 306, 11), // "openDataDir"
QT_MOC_LITERAL(24, 318, 10), // "openTorDir"
QT_MOC_LITERAL(25, 329, 15), // "removeFromGroup"
QT_MOC_LITERAL(26, 345, 6), // "scrape"
QT_MOC_LITERAL(27, 352, 8), // "moveData"
QT_MOC_LITERAL(28, 361, 14), // "showProperties"
QT_MOC_LITERAL(29, 376, 13), // "renameTorrent"
QT_MOC_LITERAL(30, 390, 8), // "showMenu"
QT_MOC_LITERAL(31, 399, 3), // "pos"
QT_MOC_LITERAL(32, 403, 14), // "showHeaderMenu"
QT_MOC_LITERAL(33, 418, 25), // "onHeaderMenuItemTriggered"
QT_MOC_LITERAL(34, 444, 8), // "QAction*"
QT_MOC_LITERAL(35, 453, 3), // "act"
QT_MOC_LITERAL(36, 457, 20), // "onCurrentItemChanged"
QT_MOC_LITERAL(37, 478, 7), // "current"
QT_MOC_LITERAL(38, 486, 8), // "previous"
QT_MOC_LITERAL(39, 495, 18), // "onSelectionChanged"
QT_MOC_LITERAL(40, 514, 14), // "QItemSelection"
QT_MOC_LITERAL(41, 529, 8), // "selected"
QT_MOC_LITERAL(42, 538, 10), // "deselected"
QT_MOC_LITERAL(43, 549, 15), // "onDoubleClicked"
QT_MOC_LITERAL(44, 565, 5), // "index"
QT_MOC_LITERAL(45, 571, 21), // "onCurrentGroupChanged"
QT_MOC_LITERAL(46, 593, 10), // "kt::Group*"
QT_MOC_LITERAL(47, 604, 1), // "g"
QT_MOC_LITERAL(48, 606, 14), // "onGroupRenamed"
QT_MOC_LITERAL(49, 621, 6), // "Group*"
QT_MOC_LITERAL(50, 628, 14), // "onGroupRemoved"
QT_MOC_LITERAL(51, 643, 12), // "onGroupAdded"
QT_MOC_LITERAL(52, 656, 23), // "addToGroupItemTriggered"
QT_MOC_LITERAL(53, 680, 14), // "copyTorrentURL"
QT_MOC_LITERAL(54, 695, 11), // "speedLimits"
QT_MOC_LITERAL(55, 707, 13), // "exportTorrent"
QT_MOC_LITERAL(56, 721, 13) // "addToNewGroup"

    },
    "kt::View\0currentTorrentChanged\0\0"
    "bt::TorrentInterface*\0tc\0"
    "torrentSelectionChanged\0editingItem\0"
    "on\0setFilterString\0filter\0update\0"
    "startTorrents\0forceStartTorrents\0"
    "stopTorrents\0pauseTorrents\0removeTorrents\0"
    "removeTorrentsAndData\0startAllTorrents\0"
    "stopAllTorrents\0checkData\0addPeers\0"
    "manualAnnounce\0previewTorrents\0"
    "openDataDir\0openTorDir\0removeFromGroup\0"
    "scrape\0moveData\0showProperties\0"
    "renameTorrent\0showMenu\0pos\0showHeaderMenu\0"
    "onHeaderMenuItemTriggered\0QAction*\0"
    "act\0onCurrentItemChanged\0current\0"
    "previous\0onSelectionChanged\0QItemSelection\0"
    "selected\0deselected\0onDoubleClicked\0"
    "index\0onCurrentGroupChanged\0kt::Group*\0"
    "g\0onGroupRenamed\0Group*\0onGroupRemoved\0"
    "onGroupAdded\0addToGroupItemTriggered\0"
    "copyTorrentURL\0speedLimits\0exportTorrent\0"
    "addToNewGroup"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_kt__View[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,  209,    2, 0x06 /* Public */,
       5,    0,  212,    2, 0x06 /* Public */,
       6,    1,  213,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    1,  216,    2, 0x0a /* Public */,
      10,    0,  219,    2, 0x0a /* Public */,
      11,    0,  220,    2, 0x0a /* Public */,
      12,    0,  221,    2, 0x0a /* Public */,
      13,    0,  222,    2, 0x0a /* Public */,
      14,    0,  223,    2, 0x0a /* Public */,
      15,    0,  224,    2, 0x0a /* Public */,
      16,    0,  225,    2, 0x0a /* Public */,
      17,    0,  226,    2, 0x0a /* Public */,
      18,    0,  227,    2, 0x0a /* Public */,
      19,    0,  228,    2, 0x0a /* Public */,
      20,    0,  229,    2, 0x0a /* Public */,
      21,    0,  230,    2, 0x0a /* Public */,
      22,    0,  231,    2, 0x0a /* Public */,
      23,    0,  232,    2, 0x0a /* Public */,
      24,    0,  233,    2, 0x0a /* Public */,
      25,    0,  234,    2, 0x0a /* Public */,
      26,    0,  235,    2, 0x0a /* Public */,
      27,    0,  236,    2, 0x0a /* Public */,
      28,    0,  237,    2, 0x0a /* Public */,
      29,    0,  238,    2, 0x0a /* Public */,
      30,    1,  239,    2, 0x0a /* Public */,
      32,    1,  242,    2, 0x0a /* Public */,
      33,    1,  245,    2, 0x0a /* Public */,
      36,    2,  248,    2, 0x0a /* Public */,
      39,    2,  253,    2, 0x0a /* Public */,
      43,    1,  258,    2, 0x0a /* Public */,
      45,    1,  261,    2, 0x0a /* Public */,
      48,    1,  264,    2, 0x0a /* Public */,
      50,    1,  267,    2, 0x0a /* Public */,
      51,    1,  270,    2, 0x0a /* Public */,
      52,    0,  273,    2, 0x0a /* Public */,
      53,    0,  274,    2, 0x0a /* Public */,
      54,    0,  275,    2, 0x0a /* Public */,
      55,    0,  276,    2, 0x0a /* Public */,
      56,    0,  277,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    7,

 // slots: parameters
    QMetaType::Void, QMetaType::QString,    9,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QPoint,   31,
    QMetaType::Void, QMetaType::QPoint,   31,
    QMetaType::Void, 0x80000000 | 34,   35,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::QModelIndex,   37,   38,
    QMetaType::Void, 0x80000000 | 40, 0x80000000 | 40,   41,   42,
    QMetaType::Void, QMetaType::QModelIndex,   44,
    QMetaType::Void, 0x80000000 | 46,   47,
    QMetaType::Void, 0x80000000 | 49,   47,
    QMetaType::Void, 0x80000000 | 49,   47,
    QMetaType::Void, 0x80000000 | 49,   47,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void kt::View::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        View *_t = static_cast<View *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->currentTorrentChanged((*reinterpret_cast< bt::TorrentInterface*(*)>(_a[1]))); break;
        case 1: _t->torrentSelectionChanged(); break;
        case 2: _t->editingItem((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: _t->setFilterString((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: _t->update(); break;
        case 5: _t->startTorrents(); break;
        case 6: _t->forceStartTorrents(); break;
        case 7: _t->stopTorrents(); break;
        case 8: _t->pauseTorrents(); break;
        case 9: _t->removeTorrents(); break;
        case 10: _t->removeTorrentsAndData(); break;
        case 11: _t->startAllTorrents(); break;
        case 12: _t->stopAllTorrents(); break;
        case 13: _t->checkData(); break;
        case 14: _t->addPeers(); break;
        case 15: _t->manualAnnounce(); break;
        case 16: _t->previewTorrents(); break;
        case 17: _t->openDataDir(); break;
        case 18: _t->openTorDir(); break;
        case 19: _t->removeFromGroup(); break;
        case 20: _t->scrape(); break;
        case 21: _t->moveData(); break;
        case 22: _t->showProperties(); break;
        case 23: _t->renameTorrent(); break;
        case 24: _t->showMenu((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
        case 25: _t->showHeaderMenu((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
        case 26: _t->onHeaderMenuItemTriggered((*reinterpret_cast< QAction*(*)>(_a[1]))); break;
        case 27: _t->onCurrentItemChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
        case 28: _t->onSelectionChanged((*reinterpret_cast< const QItemSelection(*)>(_a[1])),(*reinterpret_cast< const QItemSelection(*)>(_a[2]))); break;
        case 29: _t->onDoubleClicked((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 30: _t->onCurrentGroupChanged((*reinterpret_cast< kt::Group*(*)>(_a[1]))); break;
        case 31: _t->onGroupRenamed((*reinterpret_cast< Group*(*)>(_a[1]))); break;
        case 32: _t->onGroupRemoved((*reinterpret_cast< Group*(*)>(_a[1]))); break;
        case 33: _t->onGroupAdded((*reinterpret_cast< Group*(*)>(_a[1]))); break;
        case 34: _t->addToGroupItemTriggered(); break;
        case 35: _t->copyTorrentURL(); break;
        case 36: _t->speedLimits(); break;
        case 37: _t->exportTorrent(); break;
        case 38: _t->addToNewGroup(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 28:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QItemSelection >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (View::*_t)(bt::TorrentInterface * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&View::currentTorrentChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (View::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&View::torrentSelectionChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (View::*_t)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&View::editingItem)) {
                *result = 2;
                return;
            }
        }
    }
}

const QMetaObject kt::View::staticMetaObject = {
    { &QTreeView::staticMetaObject, qt_meta_stringdata_kt__View.data,
      qt_meta_data_kt__View,  qt_static_metacall, nullptr, nullptr}
};


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

void *kt::View::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_kt__View.stringdata0))
        return static_cast<void*>(this);
    return QTreeView::qt_metacast(_clname);
}

int kt::View::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QTreeView::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 39)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 39;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 39)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 39;
    }
    return _id;
}

// SIGNAL 0
void kt::View::currentTorrentChanged(bt::TorrentInterface * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void kt::View::torrentSelectionChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void kt::View::editingItem(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
