feat: add versionListData

*draft versionWindow
*repair version
This commit is contained in:
semenov
2024-12-19 10:16:14 +03:00
parent f7ca02444c
commit 6da0d90d06
28 changed files with 233 additions and 111 deletions

View File

@@ -10,6 +10,7 @@
#include "../Core/recognizesystem.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'recognizesystem.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
@@ -22,8 +23,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_RecognizeSystem_t {
QByteArrayData data[18];
char stringdata0[250];
QByteArrayData data[21];
char stringdata0[310];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -49,7 +50,10 @@ QT_MOC_LITERAL(13, 167, 20), // "ServerAuthorization*"
QT_MOC_LITERAL(14, 188, 10), // "serverAuth"
QT_MOC_LITERAL(15, 199, 25), // "sigSocketWaitForReadyRead"
QT_MOC_LITERAL(16, 225, 8), // "waitTime"
QT_MOC_LITERAL(17, 234, 15) // "sigStartCompare"
QT_MOC_LITERAL(17, 234, 15), // "sigStartCompare"
QT_MOC_LITERAL(18, 250, 17), // "sigShowServerList"
QT_MOC_LITERAL(19, 268, 29), // "QList<StreamingVersionData*>*"
QT_MOC_LITERAL(20, 298, 11) // "serverDatas"
},
"RecognizeSystem\0sigUpdateBytesAvailable\0"
@@ -58,7 +62,8 @@ QT_MOC_LITERAL(17, 234, 15) // "sigStartCompare"
"sigSocketDisabled\0sigServerBlocked\0"
"sigSaveLoginData\0ServerAuthorization*\0"
"serverAuth\0sigSocketWaitForReadyRead\0"
"waitTime\0sigStartCompare"
"waitTime\0sigStartCompare\0sigShowServerList\0"
"QList<StreamingVersionData*>*\0serverDatas"
};
#undef QT_MOC_LITERAL
@@ -68,23 +73,24 @@ static const uint qt_meta_data_RecognizeSystem[] = {
8, // revision
0, // classname
0, 0, // classinfo
9, 14, // methods
10, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
9, // signalCount
10, // signalCount
// signals: name, argc, parameters, tag, flags
1, 0, 59, 2, 0x06 /* Public */,
3, 0, 60, 2, 0x06 /* Public */,
4, 3, 61, 2, 0x06 /* Public */,
8, 1, 68, 2, 0x06 /* Public */,
10, 0, 71, 2, 0x06 /* Public */,
11, 0, 72, 2, 0x06 /* Public */,
12, 1, 73, 2, 0x06 /* Public */,
15, 1, 76, 2, 0x06 /* Public */,
17, 0, 79, 2, 0x06 /* Public */,
1, 0, 64, 2, 0x06 /* Public */,
3, 0, 65, 2, 0x06 /* Public */,
4, 3, 66, 2, 0x06 /* Public */,
8, 1, 73, 2, 0x06 /* Public */,
10, 0, 76, 2, 0x06 /* Public */,
11, 0, 77, 2, 0x06 /* Public */,
12, 1, 78, 2, 0x06 /* Public */,
15, 1, 81, 2, 0x06 /* Public */,
17, 0, 84, 2, 0x06 /* Public */,
18, 1, 85, 2, 0x06 /* Public */,
// signals: parameters
QMetaType::Void,
@@ -96,6 +102,7 @@ static const uint qt_meta_data_RecognizeSystem[] = {
QMetaType::Void, 0x80000000 | 13, 14,
QMetaType::Void, QMetaType::Int, 16,
QMetaType::Void,
QMetaType::Void, 0x80000000 | 19, 20,
0 // eod
};
@@ -115,6 +122,7 @@ void RecognizeSystem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
case 6: _t->sigSaveLoginData((*reinterpret_cast< ServerAuthorization*(*)>(_a[1]))); break;
case 7: _t->sigSocketWaitForReadyRead((*reinterpret_cast< int(*)>(_a[1]))); break;
case 8: _t->sigStartCompare(); break;
case 9: _t->sigShowServerList((*reinterpret_cast< QList<StreamingVersionData*>*(*)>(_a[1]))); break;
default: ;
}
} else if (_c == QMetaObject::IndexOfMethod) {
@@ -182,6 +190,13 @@ void RecognizeSystem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
return;
}
}
{
using _t = void (RecognizeSystem::*)(QList<StreamingVersionData*> * );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RecognizeSystem::sigShowServerList)) {
*result = 9;
return;
}
}
}
}
@@ -214,13 +229,13 @@ int RecognizeSystem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 9)
if (_id < 10)
qt_static_metacall(this, _c, _id, _a);
_id -= 9;
_id -= 10;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 9)
if (_id < 10)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 9;
_id -= 10;
}
return _id;
}
@@ -282,5 +297,12 @@ void RecognizeSystem::sigStartCompare()
{
QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}
// SIGNAL 9
void RecognizeSystem::sigShowServerList(QList<StreamingVersionData*> * _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 9, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE