- 产品名/展示串、SDK 与运行时导出 API、.NET 命名空间全部换为 DogProtect
- 文件与目录改名: dogprotect.sln / DogProtect/ / DogProtectCon/ / sdk/DogProtect.SDK /
sdk/DogProtectSDK.{h,pas,bas,inc} / runtime/DogProtect.Runtime/ / core/dogprotect.rc /
app/dogprotect_gui.app
- 项目文件扩展名 .vmp → .dog(含 GUI 过滤器、默认输出名、示例工程、单测)
- VM 代码节名默认 .dog(上游为随机 ".xyz"),产物节为 .dog0/.dog1/...
- 授权数据与配置: DogProtect.dat / DogProtectLicense.ini / Global\\DogProtect.dat
- 域名占位 dogprotect.example,bundle id com.dogprotect.dogprotect
- 保留 VMP_* 内部宏与 third-party/
- BUILD-LINUX.md 增补改名说明与 SDK 兼容性提示
346 lines
12 KiB
C++
346 lines
12 KiB
C++
/****************************************************************************
|
|
** Meta object code from reading C++ file 'progress_dialog.h'
|
|
**
|
|
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.2)
|
|
**
|
|
** WARNING! All changes made in this file will be lost!
|
|
*****************************************************************************/
|
|
|
|
#include <memory>
|
|
#include "../progress_dialog.h"
|
|
#include <QtCore/qbytearray.h>
|
|
#include <QtCore/qmetatype.h>
|
|
#if !defined(Q_MOC_OUTPUT_REVISION)
|
|
#error "The header file 'progress_dialog.h' doesn't include <QObject>."
|
|
#elif Q_MOC_OUTPUT_REVISION != 67
|
|
#error "This file was generated using the moc from 5.15.2. 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_ProgressDialog_t {
|
|
QByteArrayData data[15];
|
|
char stringdata0[130];
|
|
};
|
|
#define QT_MOC_LITERAL(idx, ofs, len) \
|
|
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
|
qptrdiff(offsetof(qt_meta_stringdata_ProgressDialog_t, stringdata0) + ofs \
|
|
- idx * sizeof(QByteArrayData)) \
|
|
)
|
|
static const qt_meta_stringdata_ProgressDialog_t qt_meta_stringdata_ProgressDialog = {
|
|
{
|
|
QT_MOC_LITERAL(0, 0, 14), // "ProgressDialog"
|
|
QT_MOC_LITERAL(1, 15, 6), // "cancel"
|
|
QT_MOC_LITERAL(2, 22, 0), // ""
|
|
QT_MOC_LITERAL(3, 23, 13), // "startProgress"
|
|
QT_MOC_LITERAL(4, 37, 7), // "caption"
|
|
QT_MOC_LITERAL(5, 45, 3), // "max"
|
|
QT_MOC_LITERAL(6, 49, 12), // "stepProgress"
|
|
QT_MOC_LITERAL(7, 62, 5), // "value"
|
|
QT_MOC_LITERAL(8, 68, 6), // "notify"
|
|
QT_MOC_LITERAL(9, 75, 11), // "MessageType"
|
|
QT_MOC_LITERAL(10, 87, 4), // "type"
|
|
QT_MOC_LITERAL(11, 92, 8), // "IObject*"
|
|
QT_MOC_LITERAL(12, 101, 6), // "sender"
|
|
QT_MOC_LITERAL(13, 108, 7), // "message"
|
|
QT_MOC_LITERAL(14, 116, 13) // "cancelClicked"
|
|
|
|
},
|
|
"ProgressDialog\0cancel\0\0startProgress\0"
|
|
"caption\0max\0stepProgress\0value\0notify\0"
|
|
"MessageType\0type\0IObject*\0sender\0"
|
|
"message\0cancelClicked"
|
|
};
|
|
#undef QT_MOC_LITERAL
|
|
|
|
static const uint qt_meta_data_ProgressDialog[] = {
|
|
|
|
// content:
|
|
8, // revision
|
|
0, // classname
|
|
0, 0, // classinfo
|
|
5, 14, // methods
|
|
0, 0, // properties
|
|
0, 0, // enums/sets
|
|
0, 0, // constructors
|
|
0, // flags
|
|
1, // signalCount
|
|
|
|
// signals: name, argc, parameters, tag, flags
|
|
1, 0, 39, 2, 0x06 /* Public */,
|
|
|
|
// slots: name, argc, parameters, tag, flags
|
|
3, 2, 40, 2, 0x0a /* Public */,
|
|
6, 1, 45, 2, 0x0a /* Public */,
|
|
8, 3, 48, 2, 0x0a /* Public */,
|
|
14, 0, 55, 2, 0x0a /* Public */,
|
|
|
|
// signals: parameters
|
|
QMetaType::Void,
|
|
|
|
// slots: parameters
|
|
QMetaType::Void, QMetaType::QString, QMetaType::ULongLong, 4, 5,
|
|
QMetaType::Void, QMetaType::ULongLong, 7,
|
|
QMetaType::Void, 0x80000000 | 9, 0x80000000 | 11, QMetaType::QString, 10, 12, 13,
|
|
QMetaType::Void,
|
|
|
|
0 // eod
|
|
};
|
|
|
|
void ProgressDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
|
{
|
|
if (_c == QMetaObject::InvokeMetaMethod) {
|
|
auto *_t = static_cast<ProgressDialog *>(_o);
|
|
Q_UNUSED(_t)
|
|
switch (_id) {
|
|
case 0: _t->cancel(); break;
|
|
case 1: _t->startProgress((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< unsigned long long(*)>(_a[2]))); break;
|
|
case 2: _t->stepProgress((*reinterpret_cast< unsigned long long(*)>(_a[1]))); break;
|
|
case 3: _t->notify((*reinterpret_cast< MessageType(*)>(_a[1])),(*reinterpret_cast< IObject*(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
|
|
case 4: _t->cancelClicked(); break;
|
|
default: ;
|
|
}
|
|
} else if (_c == QMetaObject::IndexOfMethod) {
|
|
int *result = reinterpret_cast<int *>(_a[0]);
|
|
{
|
|
using _t = void (ProgressDialog::*)();
|
|
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ProgressDialog::cancel)) {
|
|
*result = 0;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
QT_INIT_METAOBJECT const QMetaObject ProgressDialog::staticMetaObject = { {
|
|
QMetaObject::SuperData::link<QDialog::staticMetaObject>(),
|
|
qt_meta_stringdata_ProgressDialog.data,
|
|
qt_meta_data_ProgressDialog,
|
|
qt_static_metacall,
|
|
nullptr,
|
|
nullptr
|
|
} };
|
|
|
|
|
|
const QMetaObject *ProgressDialog::metaObject() const
|
|
{
|
|
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
|
}
|
|
|
|
void *ProgressDialog::qt_metacast(const char *_clname)
|
|
{
|
|
if (!_clname) return nullptr;
|
|
if (!strcmp(_clname, qt_meta_stringdata_ProgressDialog.stringdata0))
|
|
return static_cast<void*>(this);
|
|
return QDialog::qt_metacast(_clname);
|
|
}
|
|
|
|
int ProgressDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
|
{
|
|
_id = QDialog::qt_metacall(_c, _id, _a);
|
|
if (_id < 0)
|
|
return _id;
|
|
if (_c == QMetaObject::InvokeMetaMethod) {
|
|
if (_id < 5)
|
|
qt_static_metacall(this, _c, _id, _a);
|
|
_id -= 5;
|
|
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
|
if (_id < 5)
|
|
*reinterpret_cast<int*>(_a[0]) = -1;
|
|
_id -= 5;
|
|
}
|
|
return _id;
|
|
}
|
|
|
|
// SIGNAL 0
|
|
void ProgressDialog::cancel()
|
|
{
|
|
QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
|
|
}
|
|
struct qt_meta_stringdata_GUILog_t {
|
|
QByteArrayData data[12];
|
|
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_GUILog_t, stringdata0) + ofs \
|
|
- idx * sizeof(QByteArrayData)) \
|
|
)
|
|
static const qt_meta_stringdata_GUILog_t qt_meta_stringdata_GUILog = {
|
|
{
|
|
QT_MOC_LITERAL(0, 0, 6), // "GUILog"
|
|
QT_MOC_LITERAL(1, 7, 6), // "notify"
|
|
QT_MOC_LITERAL(2, 14, 0), // ""
|
|
QT_MOC_LITERAL(3, 15, 11), // "MessageType"
|
|
QT_MOC_LITERAL(4, 27, 4), // "type"
|
|
QT_MOC_LITERAL(5, 32, 8), // "IObject*"
|
|
QT_MOC_LITERAL(6, 41, 6), // "sender"
|
|
QT_MOC_LITERAL(7, 48, 7), // "message"
|
|
QT_MOC_LITERAL(8, 56, 13), // "startProgress"
|
|
QT_MOC_LITERAL(9, 70, 12), // "stepProgress"
|
|
QT_MOC_LITERAL(10, 83, 11), // "endProgress"
|
|
QT_MOC_LITERAL(11, 95, 6) // "cancel"
|
|
|
|
},
|
|
"GUILog\0notify\0\0MessageType\0type\0"
|
|
"IObject*\0sender\0message\0startProgress\0"
|
|
"stepProgress\0endProgress\0cancel"
|
|
};
|
|
#undef QT_MOC_LITERAL
|
|
|
|
static const uint qt_meta_data_GUILog[] = {
|
|
|
|
// content:
|
|
8, // revision
|
|
0, // classname
|
|
0, 0, // classinfo
|
|
5, 14, // methods
|
|
0, 0, // properties
|
|
0, 0, // enums/sets
|
|
0, 0, // constructors
|
|
0, // flags
|
|
4, // signalCount
|
|
|
|
// signals: name, argc, parameters, tag, flags
|
|
1, 3, 39, 2, 0x06 /* Public */,
|
|
8, 2, 46, 2, 0x06 /* Public */,
|
|
9, 1, 51, 2, 0x06 /* Public */,
|
|
10, 0, 54, 2, 0x06 /* Public */,
|
|
|
|
// slots: name, argc, parameters, tag, flags
|
|
11, 0, 55, 2, 0x0a /* Public */,
|
|
|
|
// signals: parameters
|
|
QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, QMetaType::QString, 4, 6, 7,
|
|
QMetaType::Void, QMetaType::QString, QMetaType::ULongLong, 2, 2,
|
|
QMetaType::Void, QMetaType::ULongLong, 2,
|
|
QMetaType::Void,
|
|
|
|
// slots: parameters
|
|
QMetaType::Void,
|
|
|
|
0 // eod
|
|
};
|
|
|
|
void GUILog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
|
{
|
|
if (_c == QMetaObject::InvokeMetaMethod) {
|
|
auto *_t = static_cast<GUILog *>(_o);
|
|
Q_UNUSED(_t)
|
|
switch (_id) {
|
|
case 0: _t->notify((*reinterpret_cast< MessageType(*)>(_a[1])),(*reinterpret_cast< IObject*(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
|
|
case 1: _t->startProgress((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< unsigned long long(*)>(_a[2]))); break;
|
|
case 2: _t->stepProgress((*reinterpret_cast< unsigned long long(*)>(_a[1]))); break;
|
|
case 3: _t->endProgress(); break;
|
|
case 4: _t->cancel(); break;
|
|
default: ;
|
|
}
|
|
} else if (_c == QMetaObject::IndexOfMethod) {
|
|
int *result = reinterpret_cast<int *>(_a[0]);
|
|
{
|
|
using _t = void (GUILog::*)(MessageType , IObject * , const QString & );
|
|
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GUILog::notify)) {
|
|
*result = 0;
|
|
return;
|
|
}
|
|
}
|
|
{
|
|
using _t = void (GUILog::*)(const QString & , unsigned long long );
|
|
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GUILog::startProgress)) {
|
|
*result = 1;
|
|
return;
|
|
}
|
|
}
|
|
{
|
|
using _t = void (GUILog::*)(unsigned long long );
|
|
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GUILog::stepProgress)) {
|
|
*result = 2;
|
|
return;
|
|
}
|
|
}
|
|
{
|
|
using _t = void (GUILog::*)();
|
|
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GUILog::endProgress)) {
|
|
*result = 3;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
QT_INIT_METAOBJECT const QMetaObject GUILog::staticMetaObject = { {
|
|
QMetaObject::SuperData::link<QObject::staticMetaObject>(),
|
|
qt_meta_stringdata_GUILog.data,
|
|
qt_meta_data_GUILog,
|
|
qt_static_metacall,
|
|
nullptr,
|
|
nullptr
|
|
} };
|
|
|
|
|
|
const QMetaObject *GUILog::metaObject() const
|
|
{
|
|
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
|
}
|
|
|
|
void *GUILog::qt_metacast(const char *_clname)
|
|
{
|
|
if (!_clname) return nullptr;
|
|
if (!strcmp(_clname, qt_meta_stringdata_GUILog.stringdata0))
|
|
return static_cast<void*>(this);
|
|
if (!strcmp(_clname, "ILog"))
|
|
return static_cast< ILog*>(this);
|
|
if (!strcmp(_clname, "ILog"))
|
|
return static_cast< ILog*>(this);
|
|
return QObject::qt_metacast(_clname);
|
|
}
|
|
|
|
int GUILog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
|
{
|
|
_id = QObject::qt_metacall(_c, _id, _a);
|
|
if (_id < 0)
|
|
return _id;
|
|
if (_c == QMetaObject::InvokeMetaMethod) {
|
|
if (_id < 5)
|
|
qt_static_metacall(this, _c, _id, _a);
|
|
_id -= 5;
|
|
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
|
if (_id < 5)
|
|
*reinterpret_cast<int*>(_a[0]) = -1;
|
|
_id -= 5;
|
|
}
|
|
return _id;
|
|
}
|
|
|
|
// SIGNAL 0
|
|
void GUILog::notify(MessageType _t1, IObject * _t2, const QString & _t3)
|
|
{
|
|
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
|
|
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
|
}
|
|
|
|
// SIGNAL 1
|
|
void GUILog::startProgress(const QString & _t1, unsigned long long _t2)
|
|
{
|
|
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
|
|
QMetaObject::activate(this, &staticMetaObject, 1, _a);
|
|
}
|
|
|
|
// SIGNAL 2
|
|
void GUILog::stepProgress(unsigned long long _t1)
|
|
{
|
|
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
|
|
QMetaObject::activate(this, &staticMetaObject, 2, _a);
|
|
}
|
|
|
|
// SIGNAL 3
|
|
void GUILog::endProgress()
|
|
{
|
|
QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
|
|
}
|
|
QT_WARNING_POP
|
|
QT_END_MOC_NAMESPACE
|