moc_httplistener.cpp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'httplistener.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.3.2)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include "../../httpserver/httplistener.h"
  9. #include <QtCore/qbytearray.h>
  10. #include <QtCore/qmetatype.h>
  11. #if !defined(Q_MOC_OUTPUT_REVISION)
  12. #error "The header file 'httplistener.h' doesn't include <QObject>."
  13. #elif Q_MOC_OUTPUT_REVISION != 67
  14. #error "This file was generated using the moc from 5.3.2. It"
  15. #error "cannot be used with the include files from this version of Qt."
  16. #error "(The moc has changed too much.)"
  17. #endif
  18. QT_BEGIN_MOC_NAMESPACE
  19. struct qt_meta_stringdata_stefanfrings__HttpListener_t {
  20. QByteArrayData data[5];
  21. char stringdata[80];
  22. };
  23. #define QT_MOC_LITERAL(idx, ofs, len) \
  24. Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
  25. qptrdiff(offsetof(qt_meta_stringdata_stefanfrings__HttpListener_t, stringdata) + ofs \
  26. - idx * sizeof(QByteArrayData)) \
  27. )
  28. static const qt_meta_stringdata_stefanfrings__HttpListener_t qt_meta_stringdata_stefanfrings__HttpListener = {
  29. {
  30. QT_MOC_LITERAL(0, 0, 26),
  31. QT_MOC_LITERAL(1, 27, 16),
  32. QT_MOC_LITERAL(2, 44, 0),
  33. QT_MOC_LITERAL(3, 45, 17),
  34. QT_MOC_LITERAL(4, 63, 16)
  35. },
  36. "stefanfrings::HttpListener\0handleConnection\0"
  37. "\0tSocketDescriptor\0socketDescriptor"
  38. };
  39. #undef QT_MOC_LITERAL
  40. static const uint qt_meta_data_stefanfrings__HttpListener[] = {
  41. // content:
  42. 7, // revision
  43. 0, // classname
  44. 0, 0, // classinfo
  45. 1, 14, // methods
  46. 0, 0, // properties
  47. 0, 0, // enums/sets
  48. 0, 0, // constructors
  49. 0, // flags
  50. 1, // signalCount
  51. // signals: name, argc, parameters, tag, flags
  52. 1, 1, 19, 2, 0x06 /* Public */,
  53. // signals: parameters
  54. QMetaType::Void, 0x80000000 | 3, 4,
  55. 0 // eod
  56. };
  57. void stefanfrings::HttpListener::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  58. {
  59. if (_c == QMetaObject::InvokeMetaMethod) {
  60. HttpListener *_t = static_cast<HttpListener *>(_o);
  61. switch (_id) {
  62. case 0: _t->handleConnection((*reinterpret_cast< tSocketDescriptor(*)>(_a[1]))); break;
  63. default: ;
  64. }
  65. } else if (_c == QMetaObject::IndexOfMethod) {
  66. int *result = reinterpret_cast<int *>(_a[0]);
  67. void **func = reinterpret_cast<void **>(_a[1]);
  68. {
  69. typedef void (HttpListener::*_t)(tSocketDescriptor );
  70. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&HttpListener::handleConnection)) {
  71. *result = 0;
  72. }
  73. }
  74. }
  75. }
  76. const QMetaObject stefanfrings::HttpListener::staticMetaObject = {
  77. { &QTcpServer::staticMetaObject, qt_meta_stringdata_stefanfrings__HttpListener.data,
  78. qt_meta_data_stefanfrings__HttpListener, qt_static_metacall, 0, 0}
  79. };
  80. const QMetaObject *stefanfrings::HttpListener::metaObject() const
  81. {
  82. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  83. }
  84. void *stefanfrings::HttpListener::qt_metacast(const char *_clname)
  85. {
  86. if (!_clname) return 0;
  87. if (!strcmp(_clname, qt_meta_stringdata_stefanfrings__HttpListener.stringdata))
  88. return static_cast<void*>(const_cast< HttpListener*>(this));
  89. return QTcpServer::qt_metacast(_clname);
  90. }
  91. int stefanfrings::HttpListener::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  92. {
  93. _id = QTcpServer::qt_metacall(_c, _id, _a);
  94. if (_id < 0)
  95. return _id;
  96. if (_c == QMetaObject::InvokeMetaMethod) {
  97. if (_id < 1)
  98. qt_static_metacall(this, _c, _id, _a);
  99. _id -= 1;
  100. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  101. if (_id < 1)
  102. *reinterpret_cast<int*>(_a[0]) = -1;
  103. _id -= 1;
  104. }
  105. return _id;
  106. }
  107. // SIGNAL 0
  108. void stefanfrings::HttpListener::handleConnection(tSocketDescriptor _t1)
  109. {
  110. void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
  111. QMetaObject::activate(this, &staticMetaObject, 0, _a);
  112. }
  113. QT_END_MOC_NAMESPACE