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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. 4, 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. 75, 12, 12, 12, 0x08,
  34. 0 // eod
  35. };
  36. static const char qt_meta_stringdata_SerialScale[] = {
  37. "SerialScale\0\0weight,unit\0"
  38. "newMeasurement(double,Units::Unit)\0"
  39. "tare()\0weigh()\0dataAvailable()\0"
  40. };
  41. void SerialScale::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  42. {
  43. if (_c == QMetaObject::InvokeMetaMethod) {
  44. Q_ASSERT(staticMetaObject.cast(_o));
  45. SerialScale *_t = static_cast<SerialScale *>(_o);
  46. switch (_id) {
  47. case 0: _t->newMeasurement((*reinterpret_cast< double(*)>(_a[1])),(*reinterpret_cast< Units::Unit(*)>(_a[2]))); break;
  48. case 1: _t->tare(); break;
  49. case 2: _t->weigh(); break;
  50. case 3: _t->dataAvailable(); break;
  51. default: ;
  52. }
  53. }
  54. }
  55. const QMetaObjectExtraData SerialScale::staticMetaObjectExtraData = {
  56. 0, qt_static_metacall
  57. };
  58. const QMetaObject SerialScale::staticMetaObject = {
  59. { &QextSerialPort::staticMetaObject, qt_meta_stringdata_SerialScale,
  60. qt_meta_data_SerialScale, &staticMetaObjectExtraData }
  61. };
  62. #ifdef Q_NO_DATA_RELOCATION
  63. const QMetaObject &SerialScale::getStaticMetaObject() { return staticMetaObject; }
  64. #endif //Q_NO_DATA_RELOCATION
  65. const QMetaObject *SerialScale::metaObject() const
  66. {
  67. return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
  68. }
  69. void *SerialScale::qt_metacast(const char *_clname)
  70. {
  71. if (!_clname) return 0;
  72. if (!strcmp(_clname, qt_meta_stringdata_SerialScale))
  73. return static_cast<void*>(const_cast< SerialScale*>(this));
  74. return QextSerialPort::qt_metacast(_clname);
  75. }
  76. int SerialScale::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  77. {
  78. _id = QextSerialPort::qt_metacall(_c, _id, _a);
  79. if (_id < 0)
  80. return _id;
  81. if (_c == QMetaObject::InvokeMetaMethod) {
  82. if (_id < 4)
  83. qt_static_metacall(this, _c, _id, _a);
  84. _id -= 4;
  85. }
  86. return _id;
  87. }
  88. // SIGNAL 0
  89. void SerialScale::newMeasurement(double _t1, Units::Unit _t2)
  90. {
  91. void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
  92. QMetaObject::activate(this, &staticMetaObject, 0, _a);
  93. }
  94. QT_END_MOC_NAMESPACE