feat: add disconnect behaviour

This commit is contained in:
semenov
2024-09-10 17:47:52 +03:00
parent c779e3c210
commit a831e29ddc
17 changed files with 110 additions and 61 deletions

View File

@@ -22,8 +22,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_MainWindow_t {
QByteArrayData data[25];
char stringdata0[439];
QByteArrayData data[26];
char stringdata0[460];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -56,7 +56,8 @@ QT_MOC_LITERAL(20, 361, 29), // "on_languageComboBox_activated"
QT_MOC_LITERAL(21, 391, 4), // "arg1"
QT_MOC_LITERAL(22, 396, 17), // "slotDisableNotify"
QT_MOC_LITERAL(23, 414, 19), // "slotConnectionState"
QT_MOC_LITERAL(24, 434, 4) // "flag"
QT_MOC_LITERAL(24, 434, 4), // "flag"
QT_MOC_LITERAL(25, 439, 20) // "slotServerDisconnect"
},
"MainWindow\0sigInitializeClient\0\0"
@@ -72,7 +73,7 @@ QT_MOC_LITERAL(24, 434, 4) // "flag"
"on_connectButton_clicked\0"
"on_languageComboBox_activated\0arg1\0"
"slotDisableNotify\0slotConnectionState\0"
"flag"
"flag\0slotServerDisconnect"
};
#undef QT_MOC_LITERAL
@@ -82,7 +83,7 @@ static const uint qt_meta_data_MainWindow[] = {
8, // revision
0, // classname
0, 0, // classinfo
14, 14, // methods
15, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
@@ -90,22 +91,23 @@ static const uint qt_meta_data_MainWindow[] = {
5, // signalCount
// signals: name, argc, parameters, tag, flags
1, 2, 84, 2, 0x06 /* Public */,
7, 1, 89, 2, 0x06 /* Public */,
10, 0, 92, 2, 0x06 /* Public */,
11, 0, 93, 2, 0x06 /* Public */,
12, 1, 94, 2, 0x06 /* Public */,
1, 2, 89, 2, 0x06 /* Public */,
7, 1, 94, 2, 0x06 /* Public */,
10, 0, 97, 2, 0x06 /* Public */,
11, 0, 98, 2, 0x06 /* Public */,
12, 1, 99, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
14, 0, 97, 2, 0x08 /* Private */,
15, 0, 98, 2, 0x08 /* Private */,
16, 0, 99, 2, 0x08 /* Private */,
17, 0, 100, 2, 0x08 /* Private */,
18, 0, 101, 2, 0x08 /* Private */,
19, 0, 102, 2, 0x08 /* Private */,
20, 1, 103, 2, 0x08 /* Private */,
22, 0, 106, 2, 0x08 /* Private */,
23, 1, 107, 2, 0x08 /* Private */,
14, 0, 102, 2, 0x08 /* Private */,
15, 0, 103, 2, 0x08 /* Private */,
16, 0, 104, 2, 0x08 /* Private */,
17, 0, 105, 2, 0x08 /* Private */,
18, 0, 106, 2, 0x08 /* Private */,
19, 0, 107, 2, 0x08 /* Private */,
20, 1, 108, 2, 0x08 /* Private */,
22, 0, 111, 2, 0x08 /* Private */,
23, 1, 112, 2, 0x08 /* Private */,
25, 0, 115, 2, 0x08 /* Private */,
// signals: parameters
QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, 4, 6,
@@ -124,6 +126,7 @@ static const uint qt_meta_data_MainWindow[] = {
QMetaType::Void, QMetaType::QString, 21,
QMetaType::Void,
QMetaType::Void, QMetaType::Bool, 24,
QMetaType::Void,
0 // eod
};
@@ -148,6 +151,7 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
case 11: _t->on_languageComboBox_activated((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 12: _t->slotDisableNotify(); break;
case 13: _t->slotConnectionState((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 14: _t->slotServerDisconnect(); break;
default: ;
}
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
@@ -232,13 +236,13 @@ int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 14)
if (_id < 15)
qt_static_metacall(this, _c, _id, _a);
_id -= 14;
_id -= 15;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 14)
if (_id < 15)
qt_static_metacall(this, _c, _id, _a);
_id -= 14;
_id -= 15;
}
return _id;
}