资源简介
Qt实现TCP文件传输例子
代码片段和文件信息
/****************************************************************************
** meta object code from reading C++ file ‘receviefile.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 “../../receive_file/receviefile.h“
#include
#include tatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error “The header file ‘receviefile.h‘ doesn‘t include ject>.“
#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_RecevieFile_t {
QByteArrayData data[7];
char stringdata0[102];
};
#define QT_MOC_LITERAL(idx ofs len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len \
qptrdiff(offsetof(qt_meta_stringdata_RecevieFile_t stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_RecevieFile_t qt_meta_stringdata_RecevieFile = {
{
QT_MOC_LITERAL(0 0 11) // “RecevieFile“
QT_MOC_LITERAL(1 12 14) // “accept_connect“
QT_MOC_LITERAL(2 27 0) // ““
QT_MOC_LITERAL(3 28 12) // “recevie_file“
QT_MOC_LITERAL(4 41 10) // “show_error“
QT_MOC_LITERAL(5 52 28) // “QAbstractSocket::SocketError“
QT_MOC_LITERAL(6 81 20) // “on_listenBtn_clicked“
}
“RecevieFile\0accept_connect\0\0recevie_file\0“
“show_error\0QAbstractSocket::SocketError\0“
“on_listenBtn_clicked“
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_RecevieFile[] = {
// content:
7 // revision
0 // classname
0 0 // classinfo
4 14 // methods
0 0 // properties
0 0 // enums/sets
0 0 // constructors
0 // flags
0 // signalCount
// slots: name argc parameters tag flags
1 0 34 2 0x08 /* Private */
3 0 35 2 0x08 /* Private */
4 1 36 2 0x08 /* Private */
6 0 39 2 0x08 /* Private */
// slots: parameters
QmetaType::Void
QmetaType::Void
QmetaType::Void 0x80000000 | 5 2
QmetaType::Void
0 // eod
};
void RecevieFile::qt_static_metacall(Qobject *_o Qmetaobject::Call _c int _id void **_a)
{
if (_c == Qmetaobject::InvokemetaMethod) {
RecevieFile *_t = static_cast(_o);
Q_UNUSED(_t)
switch (_id) {
case 0: _t->accept_connect(); break;
case 1: _t->recevie_file(); break;
case 2: _t->show_error((*reinterpret_cast< QAbstractSocket::SocketError(*)>(_a[1]))); break;
case 3: _t->o
评论
共有 条评论