Typica is a free program for professional coffee roasters. https://typica.us
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

moc_scale.cpp 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'scale.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 "scale.h"
  9. #if !defined(Q_MOC_OUTPUT_REVISION)
  10. #error "The header file 'scale.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_SerialScale[] = {
  18. // content:
  19. 6, // revision
  20. 0, // classname
  21. 0, 0, // classinfo
  22. 6, 14, // methods
  23. 0, 0, // properties
  24. 0, 0, // enums/sets
  25. 0, 0, // constructors
  26. 0, // flags
  27. 1, // signalCount
  28. // signals: signature, parameters, type, tag, flags
  29. 25, 13, 12, 12, 0x05,
  30. // slots: signature, parameters, type, tag, flags
  31. 60, 12, 12, 12, 0x0a,
  32. 67, 12, 12, 12, 0x0a,
  33. 83, 75, 12, 12, 0x0a,
  34. 119, 108, 12, 12, 0x0a,
  35. 149, 12, 12, 12, 0x08,
  36. 0 // eod
  37. };
  38. static const char qt_meta_stringdata_SerialScale[] = {
  39. "SerialScale\0\0weight,unit\0"
  40. "newMeasurement(double,Units::Unit)\0"
  41. "tare()\0weigh()\0command\0setWeighCommand(QString)\0"
  42. "terminator\0setCommandTerminator(QString)\0"
  43. "dataAvailable()\0"
  44. };
  45. void SerialScale::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  46. {
  47. if (_c == QMetaObject::InvokeMetaMethod) {
  48. Q_ASSERT(staticMetaObject.cast(_o));
  49. SerialScale *_t = static_cast<SerialScale *>(_o);
  50. switch (_id) {
  51. case 0: _t->newMeasurement((*reinterpret_cast< double(*)>(_a[1])),(*reinterpret_cast< Units::Unit(*)>(_a[2]))); break;
  52. case 1: _t->tare(); break;
  53. case 2: _t->weigh(); break;
  54. case 3: _t->setWeighCommand((*reinterpret_cast< const QString(*)>(_a[1]))); break;
  55. case 4: _t->setCommandTerminator((*reinterpret_cast< const QString(*)>(_a[1]))); break;
  56. case 5: _t->dataAvailable(); break;
  57. default: ;
  58. }
  59. }
  60. }
  61. const QMetaObjectExtraData SerialScale::staticMetaObjectExtraData = {
  62. 0, qt_static_metacall
  63. };
  64. const QMetaObject SerialScale::staticMetaObject = {
  65. { &QextSerialPort::staticMetaObject, qt_meta_stringdata_SerialScale,
  66. qt_meta_data_SerialScale, &staticMetaObjectExtraData }
  67. };
  68. #ifdef Q_NO_DATA_RELOCATION
  69. const QMetaObject &SerialScale::getStaticMetaObject() { return staticMetaObject; }
  70. #endif //Q_NO_DATA_RELOCATION
  71. const QMetaObject *SerialScale::metaObject() const
  72. {
  73. return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
  74. }
  75. void *SerialScale::qt_metacast(const char *_clname)
  76. {
  77. if (!_clname) return 0;
  78. if (!strcmp(_clname, qt_meta_stringdata_SerialScale))
  79. return static_cast<void*>(const_cast< SerialScale*>(this));
  80. return QextSerialPort::qt_metacast(_clname);
  81. }
  82. int SerialScale::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  83. {
  84. _id = QextSerialPort::qt_metacall(_c, _id, _a);
  85. if (_id < 0)
  86. return _id;
  87. if (_c == QMetaObject::InvokeMetaMethod) {
  88. if (_id < 6)
  89. qt_static_metacall(this, _c, _id, _a);
  90. _id -= 6;
  91. }
  92. return _id;
  93. }
  94. // SIGNAL 0
  95. void SerialScale::newMeasurement(double _t1, Units::Unit _t2)
  96. {
  97. void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
  98. QMetaObject::activate(this, &staticMetaObject, 0, _a);
  99. }
  100. QT_END_MOC_NAMESPACE