/****************************************************************************
** Meta object code from reading C++ file 'TcpSession.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 "../../NetApi/include/TcpSession.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'TcpSession.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_NetAPI__TcpSession_t {
QByteArrayData data[14];
char stringdata0[199];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_NetAPI__TcpSession_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_NetAPI__TcpSession_t qt_meta_stringdata_NetAPI__TcpSession = {
{
QT_MOC_LITERAL(0, 0, 18), // "NetAPI::TcpSession"
QT_MOC_LITERAL(1, 19, 10), // "SignalRead"
QT_MOC_LITERAL(2, 30, 0), // ""
QT_MOC_LITERAL(3, 31, 18), // "SignalDisConnected"
QT_MOC_LITERAL(4, 50, 13), // "SignalDoWrite"
QT_MOC_LITERAL(5, 64, 18), // "SignalDoDisConnect"
QT_MOC_LITERAL(6, 83, 23), // "SignalDoConnectToServer"
QT_MOC_LITERAL(7, 107, 21), // "SlotDoConnectToServer"
QT_MOC_LITERAL(8, 129, 4), // "host"
QT_MOC_LITERAL(9, 134, 4), // "port"
QT_MOC_LITERAL(10, 139, 13), // "SlotStartRead"
QT_MOC_LITERAL(11, 153, 16), // "SlotDisConnected"
QT_MOC_LITERAL(12, 170, 11), // "SlotDoWrite"
QT_MOC_LITERAL(13, 182, 16) // "SlotDoDisconnect"
},
"NetAPI::TcpSession\0SignalRead\0\0"
"SignalDisConnected\0SignalDoWrite\0"
"SignalDoDisConnect\0SignalDoConnectToServer\0"
"SlotDoConnectToServer\0host\0port\0"
"SlotStartRead\0SlotDisConnected\0"
"SlotDoWrite\0SlotDoDisconnect"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_NetAPI__TcpSession[] = {
// content:
7, // revision
0, // classname
0, 0, // classinfo
10, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
5, // signalCount
// signals: name, argc, parameters, tag, flags
1, 2, 64, 2, 0x06 /* Public */,
3, 1, 69, 2, 0x06 /* Public */,
4, 0, 72, 2, 0x06 /* Public */,
5, 0, 73, 2, 0x06 /* Public */,
6, 2, 74, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
7, 2, 79, 2, 0x08 /* Private */,
10, 0, 84, 2, 0x08 /* Private */,
11, 0, 85, 2, 0x08 /* Private */,
12, 0, 86, 2, 0x08 /* Private */,
13, 0, 87, 2, 0x08 /* Private */,
// signals: parameters
QMetaType::Void, QMetaType::QByteArray, QMetaType::Int, 2, 2,
QMetaType::Void, QMetaType::VoidStar, 2,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, QMetaType::UShort, 2, 2,
// slots: parameters
QMetaType::Void, QMetaType::QString, QMetaType::UShort, 8, 9,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
0 // eod
};
void NetAPI::TcpSession::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
TcpSession *_t = static_cast<TcpSession *>(_o);
Q_UNUSED(_t)
switch (_id) {
case 0: _t->SignalRead((*reinterpret_cast< const QByteArray(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
case 1: _t->SignalDisConnected((*reinterpret_cast< void*(*)>(_a[1]))); break;
case 2: _t->SignalDoWrite(); break;
case 3: _t->SignalDoDisConnect(); break;
case 4: _t->SignalDoConnectToServer((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< quint16(*)>(_a[2]))); break;
case 5: _t->SlotDoConnectToServer((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< quint16(*)>(_a[2]))); break;
case 6: _t->SlotStartRead(); break;
case 7: _t->SlotDisConnected(); break;
case 8: _t->SlotDoWrite(); break;
case 9: _t->SlotDoDisconnect(); break;
default: ;
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
void **func = reinterpret_cast<void **>(_a[1]);
{
typedef void (TcpSession::*_t)(const QByteArray & , int );
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TcpSession::SignalRead)) {
*result = 0;
return;
}
}
{
typedef void (TcpSession::*_t)(void * );
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TcpSession::SignalDisConnected)) {
*result = 1;
return;
}
}
{
typedef void (TcpSession::*_t)();
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TcpSession::SignalDoWrite)) {
*result = 2;
return;
}
}
{
typedef void (TcpSession::*_t)();
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TcpSession::SignalDoDisConnect)) {
*result = 3;
return;
}
}
{
typedef void (TcpSession::*_t)(const QString & , quint16 );
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TcpSession::SignalDoConnectToServer)) {
*result = 4;
return;
}
}
}
}
const QMetaObject NetAPI::TcpSession::staticMetaObject = {
{ &QTcpSocket::staticMetaObject, qt_meta_stringdata_NetAPI__TcpSession.data,
qt_meta_data_NetAPI__TcpSession, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};
const QMetaObject *NetAPI::TcpSession::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *NetAPI::TcpSession::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!strcmp(_clname, qt_meta_stringdata_NetAPI__TcpSession.stringdata0))
return static_cast<void*>(const_cast< TcpSession*>(this));
return QTcpSocket::qt_metacast(_clname);
}
int NetAPI::TcpSession::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QTcpSocket::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 10)
qt_static_metacall(this, _c, _id, _a);
_id -= 10;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 10)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 10;
}
return _id;
}
// SIGNAL 0
void NetAPI::TcpSession::SignalRead(const QByteArray & _t1, int _t2)
{
void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
// SIGNAL 1
void NetAPI::TcpSession::SignalDisConnected(void * _t1)
{
void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
// SIGNAL 2
void NetAPI::TcpSession::SignalDoWrite()
{
QMetaObject::activate(this, &staticM
没有合适的资源?快使用搜索试试~ 我知道了~
基于QtcpServer的网络库
共125个文件
obj:39个
cpp:31个
h:19个
5星 · 超过95%的资源 需积分: 50 170 下载量 171 浏览量
2017-08-26
22:58:50
上传
评论 8
收藏 7.03MB ZIP 举报
温馨提示
Qt5.8+win7+vs2015 请务必先查看博客: http://blog.csdn.net/zy19940906/article/details/77592575
资源推荐
资源详情
资源评论
收起资源包目录
基于QtcpServer的网络库 (125个子文件)
moc_TcpSession.cpp 8KB
moc_TcpSession.cpp 8KB
moc_TcpSession.cpp 7KB
moc_SessionInfo.cpp 7KB
moc_SessionInfo.cpp 7KB
moc_MainWindow.cpp 5KB
moc_MainWindow.cpp 5KB
moc_TcpSession.cpp 4KB
moc_SessionThreads.cpp 4KB
moc_SessionThreads.cpp 4KB
moc_SessionThreads.cpp 4KB
SessionThreads.cpp 3KB
moc_TcpServer.cpp 3KB
moc_TcpServer.cpp 3KB
moc_TcpThread.cpp 3KB
moc_TcpThread.cpp 3KB
moc_TcpServer.cpp 3KB
moc_TcpThread.cpp 3KB
TcpSession.cpp 2KB
MainWindow.cpp 2KB
SessionInfo.cpp 2KB
SessionInfo.cpp 2KB
MainWindow.cpp 2KB
SessionInfoList.cpp 2KB
SessionInfoList.cpp 2KB
TcpServer.cpp 1KB
ClientManager.cpp 1KB
TcpThread.cpp 298B
NetApiFactory.cpp 254B
main.cpp 186B
main.cpp 183B
Makefile.Debug 64KB
Makefile.Debug 63KB
Makefile.Debug 61KB
Makefile.Debug 61KB
Server.exe 249KB
Client.exe 240KB
ui_MainWindow.h 5KB
ui_MainWindow.h 4KB
TcpSession.h 1KB
TcpServer.h 1KB
SessionThreads.h 1KB
SessionInfo.h 875B
SessionInfo.h 875B
MainWindow.h 821B
MainWindow.h 797B
ClientManager.h 699B
SessionInfoList.h 529B
SessionInfoList.h 529B
TcpThread.h 424B
NetApiFactory.h 285B
moc_predefs.h 234B
moc_predefs.h 234B
moc_predefs.h 234B
moc_predefs.h 234B
NetApiNameSpace.h 228B
Client.ilk 1.82MB
Server.ilk 1.81MB
NetApi.lib 2MB
NetApi.lib 1.98MB
Makefile 27KB
Makefile 27KB
Makefile 27KB
Makefile 27KB
SessionThreads.obj 838KB
SessionThreads.obj 837KB
MainWindow.obj 481KB
SessionInfoList.obj 363KB
SessionInfoList.obj 363KB
MainWindow.obj 322KB
TcpSession.obj 176KB
TcpSession.obj 160KB
TcpSession.obj 151KB
SessionInfo.obj 148KB
SessionInfo.obj 148KB
TcpServer.obj 131KB
TcpServer.obj 131KB
moc_MainWindow.obj 125KB
moc_MainWindow.obj 124KB
moc_SessionInfo.obj 116KB
moc_SessionInfo.obj 116KB
ClientManager.obj 115KB
ClientManager.obj 114KB
NetApiFactory.obj 102KB
NetApiFactory.obj 101KB
main.obj 99KB
main.obj 99KB
moc_TcpServer.obj 90KB
moc_SessionThreads.obj 90KB
moc_TcpServer.obj 90KB
moc_SessionThreads.obj 89KB
moc_TcpServer.obj 89KB
moc_SessionThreads.obj 89KB
moc_TcpSession.obj 81KB
moc_TcpSession.obj 79KB
moc_TcpSession.obj 79KB
moc_TcpSession.obj 73KB
TcpThread.obj 71KB
TcpThread.obj 71KB
moc_TcpThread.obj 59KB
共 125 条
- 1
- 2
破晓前的彷徨
- 粉丝: 232
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页