/****************************************************************************
** Meta object code from reading C++ file 'mainwindow.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.8.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../mainwindow.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mainwindow.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.8.0. 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_MainWindow_t {
QByteArrayData data[20];
char stringdata0[368];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = {
{
QT_MOC_LITERAL(0, 0, 10), // "MainWindow"
QT_MOC_LITERAL(1, 11, 16), // "signal_send_data"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 4), // "data"
QT_MOC_LITERAL(4, 34, 18), // "signal_open_serial"
QT_MOC_LITERAL(5, 53, 19), // "signal_close_serial"
QT_MOC_LITERAL(6, 73, 15), // "signal_err_data"
QT_MOC_LITERAL(7, 89, 37), // "on_action_clear_recive_data_t..."
QT_MOC_LITERAL(8, 127, 29), // "on_action_send_data_triggered"
QT_MOC_LITERAL(9, 157, 27), // "on_action_connect_triggered"
QT_MOC_LITERAL(10, 185, 26), // "on_action_ComSet_triggered"
QT_MOC_LITERAL(11, 212, 26), // "on_pushButton_Send_clicked"
QT_MOC_LITERAL(12, 239, 16), // "slot_recive_data"
QT_MOC_LITERAL(13, 256, 13), // "slot_err_data"
QT_MOC_LITERAL(14, 270, 17), // "slot_serial_break"
QT_MOC_LITERAL(15, 288, 28), // "QSerialPort::SerialPortError"
QT_MOC_LITERAL(16, 317, 5), // "error"
QT_MOC_LITERAL(17, 323, 19), // "slot_connect_status"
QT_MOC_LITERAL(18, 343, 6), // "status"
QT_MOC_LITERAL(19, 350, 17) // "slot_auto_connect"
},
"MainWindow\0signal_send_data\0\0data\0"
"signal_open_serial\0signal_close_serial\0"
"signal_err_data\0on_action_clear_recive_data_triggered\0"
"on_action_send_data_triggered\0"
"on_action_connect_triggered\0"
"on_action_ComSet_triggered\0"
"on_pushButton_Send_clicked\0slot_recive_data\0"
"slot_err_data\0slot_serial_break\0"
"QSerialPort::SerialPortError\0error\0"
"slot_connect_status\0status\0slot_auto_connect"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_MainWindow[] = {
// content:
7, // revision
0, // classname
0, 0, // classinfo
14, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
4, // signalCount
// signals: name, argc, parameters, tag, flags
1, 1, 84, 2, 0x06 /* Public */,
4, 0, 87, 2, 0x06 /* Public */,
5, 0, 88, 2, 0x06 /* Public */,
6, 0, 89, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
7, 0, 90, 2, 0x08 /* Private */,
8, 0, 91, 2, 0x08 /* Private */,
9, 0, 92, 2, 0x08 /* Private */,
10, 0, 93, 2, 0x08 /* Private */,
11, 0, 94, 2, 0x08 /* Private */,
12, 1, 95, 2, 0x08 /* Private */,
13, 0, 98, 2, 0x08 /* Private */,
14, 1, 99, 2, 0x08 /* Private */,
17, 1, 102, 2, 0x08 /* Private */,
19, 0, 105, 2, 0x08 /* Private */,
// signals: parameters
QMetaType::Void, QMetaType::QByteArray, 3,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
// slots: parameters
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::QByteArray, 3,
QMetaType::Void,
QMetaType::Void, 0x80000000 | 15, 16,
QMetaType::Void, QMetaType::Bool, 18,
QMetaType::Void,
0 // eod
};
void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
MainWindow *_t = static_cast<MainWindow *>(_o);
Q_UNUSED(_t)
switch (_id) {
case 0: _t->signal_send_data((*reinterpret_cast< QByteArray(*)>(_a[1]))); break;
case 1: _t->signal_open_serial(); break;
case 2: _t->signal_close_serial(); break;
case 3: _t->signal_err_data(); break;
case 4: _t->on_action_clear_recive_data_triggered(); break;
case 5: _t->on_action_send_data_triggered(); break;
case 6: _t->on_action_connect_triggered(); break;
case 7: _t->on_action_ComSet_triggered(); break;
case 8: _t->on_pushButton_Send_clicked(); break;
case 9: _t->slot_recive_data((*reinterpret_cast< QByteArray(*)>(_a[1]))); break;
case 10: _t->slot_err_data(); break;
case 11: _t->slot_serial_break((*reinterpret_cast< QSerialPort::SerialPortError(*)>(_a[1]))); break;
case 12: _t->slot_connect_status((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 13: _t->slot_auto_connect(); break;
default: ;
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
void **func = reinterpret_cast<void **>(_a[1]);
{
typedef void (MainWindow::*_t)(QByteArray );
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MainWindow::signal_send_data)) {
*result = 0;
return;
}
}
{
typedef void (MainWindow::*_t)();
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MainWindow::signal_open_serial)) {
*result = 1;
return;
}
}
{
typedef void (MainWindow::*_t)();
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MainWindow::signal_close_serial)) {
*result = 2;
return;
}
}
{
typedef void (MainWindow::*_t)();
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MainWindow::signal_err_data)) {
*result = 3;
return;
}
}
}
}
const QMetaObject MainWindow::staticMetaObject = {
{ &QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow.data,
qt_meta_data_MainWindow, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};
const QMetaObject *MainWindow::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *MainWindow::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0))
return static_cast<void*>(const_cast< MainWindow*>(this));
return QMainWindow::qt_metacast(_clname);
}
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QMainWindow::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 14)
qt_static_metacall(this, _c, _id, _a);
_id -= 14;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 14)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 14;
}
return _id;
}
// SIGNAL 0
void MainWindow::signal_send_data(QByteArray _t1)
{
void *_a
没有合适的资源?快使用搜索试试~ 我知道了~
串口通信+多线程+数据错乱自动恢复+串口断开自动连接
共56个文件
sample:10个
o:7个
cpp:7个
需积分: 49 181 下载量 178 浏览量
2017-11-09
10:54:38
上传
评论 8
收藏 2.11MB ZIP 举报
温馨提示
Qt串口通信+多线程+数据错乱自动恢复+串口断开自动连接
资源推荐
资源详情
资源评论
收起资源包目录
SerialMode.zip (56个子文件)
SerialMode
mode_seriaport.h 773B
mainwindow.ui 3KB
dialog_comset.h 607B
ui_dialog_comset.h 11KB
mode_seriaport.cpp 2KB
SerialMode.pro 1KB
dialog_comset.ui 9KB
mainwindow.cpp 5KB
release
debug
moc_dialog_comset.o 448KB
mode_seriaport.o 400KB
moc_mainwindow.cpp 8KB
main.o 628KB
mainwindow.o 936KB
moc_dialog_comset.cpp 5KB
moc_predefs.h 10KB
dialog_comset.o 617KB
moc_mainwindow.o 548KB
moc_mode_seriaport.cpp 8KB
moc_mode_seriaport.o 442KB
SerialMode.exe 3.46MB
main.cpp 256B
SerialMode.pro.user 23KB
.qmake.stash 726B
myhelper.h 19KB
Makefile 26KB
.git
info
exclude 240B
index 912B
objects
pack
info
82
7cc9a0898ec0ad9ad49c3d5f49d2a2893fbba1 1KB
60
50363fa71ed2da04105077f9fef06150d05ee2 304B
f4
27e4351d5b236d6bcaa8cabbf283bb4b11ff45 299B
b1
45e53526d36e558bc1c2867e35f02ff4415c10 734B
10
3838fdaea2347436966d0f2cc53c0be69a0e22 557B
6b
f18e1e3884e52557e0ecce14f0c9ca461cc53d 745B
a3
948a91785f23b0d16b2459b21c04ee7f0a845e 194B
ef
ca0e6487555c13e2065c272816db6367227570 311B
b4
8f94ec827033ef073fb3c7f060837e90b935ec 141B
49
4f79301178fa92c5124f55ea342d208e447918 6KB
d64fce7cedf4ed8c5e0124cfe43e90c23c6ab6 142B
HEAD 23B
config 112B
refs
heads
tags
hooks
pre-applypatch.sample 424B
pre-push.sample 1KB
commit-msg.sample 896B
pre-commit.sample 2KB
applypatch-msg.sample 478B
prepare-commit-msg.sample 1KB
update.sample 4KB
post-update.sample 189B
pre-rebase.sample 5KB
pre-receive.sample 544B
description 73B
mainwindow.h 1KB
ui_mainwindow.h 6KB
Makefile.Debug 77KB
Makefile.Release 77KB
dialog_comset.cpp 3KB
共 56 条
- 1
资源评论
Daniel_LF
- 粉丝: 10
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功