chore: update the file

This commit is contained in:
x-tools-author 2025-06-07 18:14:38 +08:00
parent c5005f6fb6
commit 54ec544af2

View File

@ -25,10 +25,13 @@
#include "common/crc.h" #include "common/crc.h"
#include "common/xtools.h" #include "common/xtools.h"
#include "device/utilities/blescanner.h"
#include "device/utilities/ipscanner.h" #include "device/utilities/ipscanner.h"
#include "device/utilities/serialportscanner.h" #include "device/utilities/serialportscanner.h"
#ifdef X_ENABLE_BLUETOOTH
#include "device/utilities/blescanner.h"
#endif
#include "settings.h" #include "settings.h"
#include "xdebug.h" #include "xdebug.h"
@ -53,8 +56,10 @@ int main(int argc, char *argv[])
qmlRegisterType<TcpClient>("xTools.xDebug", 1, 0, "TcpClient"); qmlRegisterType<TcpClient>("xTools.xDebug", 1, 0, "TcpClient");
qmlRegisterType<TcpServer>("xTools.xDebug", 1, 0, "TcpServer"); qmlRegisterType<TcpServer>("xTools.xDebug", 1, 0, "TcpServer");
qmlRegisterType<IpScanner>("xTools.xDebug", 1, 0, "IpScanner"); qmlRegisterType<IpScanner>("xTools.xDebug", 1, 0, "IpScanner");
#ifdef X_ENABLE_BLUETOOTH
qmlRegisterType<BleScanner>("xTools.xDebug", 1, 0, "BleScanner"); qmlRegisterType<BleScanner>("xTools.xDebug", 1, 0, "BleScanner");
qmlRegisterType<BleCentral>("xTools.xDebug", 1, 0, "BleCentral"); qmlRegisterType<BleCentral>("xTools.xDebug", 1, 0, "BleCentral");
#endif
qmlRegisterType<SerialPort>("xTools.xDebug", 1, 0, "Serialport"); qmlRegisterType<SerialPort>("xTools.xDebug", 1, 0, "Serialport");
qmlRegisterType<WebSocketServer>("xTools.xDebug", 1, 0, "WebSocketServer"); qmlRegisterType<WebSocketServer>("xTools.xDebug", 1, 0, "WebSocketServer");
qmlRegisterType<WebSocketClient>("xTools.xDebug", 1, 0, "WebSocketClient"); qmlRegisterType<WebSocketClient>("xTools.xDebug", 1, 0, "WebSocketClient");