Typica is a free program for professional coffee roasters. https://typica.us
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

moc_qextserialport.cpp 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'qextserialport.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.6)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include "3rdparty/qextserialport/src/qextserialport.h"
  9. #if !defined(Q_MOC_OUTPUT_REVISION)
  10. #error "The header file 'qextserialport.h' doesn't include <QObject>."
  11. #elif Q_MOC_OUTPUT_REVISION != 63
  12. #error "This file was generated using the moc from 4.8.6. It"
  13. #error "cannot be used with the include files from this version of Qt."
  14. #error "(The moc has changed too much.)"
  15. #endif
  16. QT_BEGIN_MOC_NAMESPACE
  17. static const uint qt_meta_data_QextSerialPort[] = {
  18. // content:
  19. 6, // revision
  20. 0, // classname
  21. 0, 0, // classinfo
  22. 14, 14, // methods
  23. 2, 84, // properties
  24. 1, 90, // enums/sets
  25. 0, 0, // constructors
  26. 0, // flags
  27. 1, // signalCount
  28. // signals: signature, parameters, type, tag, flags
  29. 23, 16, 15, 15, 0x05,
  30. // slots: signature, parameters, type, tag, flags
  31. 45, 40, 15, 15, 0x0a,
  32. 71, 66, 15, 15, 0x0a,
  33. 95, 15, 15, 15, 0x0a,
  34. 121, 15, 15, 15, 0x0a,
  35. 147, 15, 15, 15, 0x0a,
  36. 169, 15, 15, 15, 0x0a,
  37. 195, 15, 15, 15, 0x0a,
  38. 220, 15, 15, 15, 0x0a,
  39. 241, 237, 15, 15, 0x0a,
  40. 254, 15, 15, 15, 0x2a,
  41. 263, 237, 15, 15, 0x0a,
  42. 276, 15, 15, 15, 0x2a,
  43. 285, 15, 15, 15, 0x08,
  44. // properties: name, type, flags
  45. 306, 298, 0x0a095103,
  46. 325, 315, 0x0009510b,
  47. // enums: name, flags, count, data
  48. 315, 0x0, 2, 94,
  49. // enum data: key, value
  50. 335, uint(QextSerialPort::Polling),
  51. 343, uint(QextSerialPort::EventDriven),
  52. 0 // eod
  53. };
  54. static const char qt_meta_stringdata_QextSerialPort[] = {
  55. "QextSerialPort\0\0status\0dsrChanged(bool)\0"
  56. "name\0setPortName(QString)\0mode\0"
  57. "setQueryMode(QueryMode)\0"
  58. "setBaudRate(BaudRateType)\0"
  59. "setDataBits(DataBitsType)\0"
  60. "setParity(ParityType)\0setStopBits(StopBitsType)\0"
  61. "setFlowControl(FlowType)\0setTimeout(long)\0"
  62. "set\0setDtr(bool)\0setDtr()\0setRts(bool)\0"
  63. "setRts()\0_q_canRead()\0QString\0portName\0"
  64. "QueryMode\0queryMode\0Polling\0EventDriven\0"
  65. };
  66. void QextSerialPort::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  67. {
  68. if (_c == QMetaObject::InvokeMetaMethod) {
  69. Q_ASSERT(staticMetaObject.cast(_o));
  70. QextSerialPort *_t = static_cast<QextSerialPort *>(_o);
  71. switch (_id) {
  72. case 0: _t->dsrChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
  73. case 1: _t->setPortName((*reinterpret_cast< const QString(*)>(_a[1]))); break;
  74. case 2: _t->setQueryMode((*reinterpret_cast< QueryMode(*)>(_a[1]))); break;
  75. case 3: _t->setBaudRate((*reinterpret_cast< BaudRateType(*)>(_a[1]))); break;
  76. case 4: _t->setDataBits((*reinterpret_cast< DataBitsType(*)>(_a[1]))); break;
  77. case 5: _t->setParity((*reinterpret_cast< ParityType(*)>(_a[1]))); break;
  78. case 6: _t->setStopBits((*reinterpret_cast< StopBitsType(*)>(_a[1]))); break;
  79. case 7: _t->setFlowControl((*reinterpret_cast< FlowType(*)>(_a[1]))); break;
  80. case 8: _t->setTimeout((*reinterpret_cast< long(*)>(_a[1]))); break;
  81. case 9: _t->setDtr((*reinterpret_cast< bool(*)>(_a[1]))); break;
  82. case 10: _t->setDtr(); break;
  83. case 11: _t->setRts((*reinterpret_cast< bool(*)>(_a[1]))); break;
  84. case 12: _t->setRts(); break;
  85. case 13: _t->d_func()->_q_canRead(); break;
  86. default: ;
  87. }
  88. }
  89. }
  90. const QMetaObjectExtraData QextSerialPort::staticMetaObjectExtraData = {
  91. 0, qt_static_metacall
  92. };
  93. const QMetaObject QextSerialPort::staticMetaObject = {
  94. { &QIODevice::staticMetaObject, qt_meta_stringdata_QextSerialPort,
  95. qt_meta_data_QextSerialPort, &staticMetaObjectExtraData }
  96. };
  97. #ifdef Q_NO_DATA_RELOCATION
  98. const QMetaObject &QextSerialPort::getStaticMetaObject() { return staticMetaObject; }
  99. #endif //Q_NO_DATA_RELOCATION
  100. const QMetaObject *QextSerialPort::metaObject() const
  101. {
  102. return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
  103. }
  104. void *QextSerialPort::qt_metacast(const char *_clname)
  105. {
  106. if (!_clname) return 0;
  107. if (!strcmp(_clname, qt_meta_stringdata_QextSerialPort))
  108. return static_cast<void*>(const_cast< QextSerialPort*>(this));
  109. return QIODevice::qt_metacast(_clname);
  110. }
  111. int QextSerialPort::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  112. {
  113. _id = QIODevice::qt_metacall(_c, _id, _a);
  114. if (_id < 0)
  115. return _id;
  116. if (_c == QMetaObject::InvokeMetaMethod) {
  117. if (_id < 14)
  118. qt_static_metacall(this, _c, _id, _a);
  119. _id -= 14;
  120. }
  121. #ifndef QT_NO_PROPERTIES
  122. else if (_c == QMetaObject::ReadProperty) {
  123. void *_v = _a[0];
  124. switch (_id) {
  125. case 0: *reinterpret_cast< QString*>(_v) = portName(); break;
  126. case 1: *reinterpret_cast< QueryMode*>(_v) = queryMode(); break;
  127. }
  128. _id -= 2;
  129. } else if (_c == QMetaObject::WriteProperty) {
  130. void *_v = _a[0];
  131. switch (_id) {
  132. case 0: setPortName(*reinterpret_cast< QString*>(_v)); break;
  133. case 1: setQueryMode(*reinterpret_cast< QueryMode*>(_v)); break;
  134. }
  135. _id -= 2;
  136. } else if (_c == QMetaObject::ResetProperty) {
  137. _id -= 2;
  138. } else if (_c == QMetaObject::QueryPropertyDesignable) {
  139. _id -= 2;
  140. } else if (_c == QMetaObject::QueryPropertyScriptable) {
  141. _id -= 2;
  142. } else if (_c == QMetaObject::QueryPropertyStored) {
  143. _id -= 2;
  144. } else if (_c == QMetaObject::QueryPropertyEditable) {
  145. _id -= 2;
  146. } else if (_c == QMetaObject::QueryPropertyUser) {
  147. _id -= 2;
  148. }
  149. #endif // QT_NO_PROPERTIES
  150. return _id;
  151. }
  152. // SIGNAL 0
  153. void QextSerialPort::dsrChanged(bool _t1)
  154. {
  155. void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
  156. QMetaObject::activate(this, &staticMetaObject, 0, _a);
  157. }
  158. QT_END_MOC_NAMESPACE