Yayin Story Studio logo Yayin Story Studio 项目文档
回到主页 用户手册

YSSCore::Editor::DebugServerManager Class

class YSSCore::Editor::DebugServerManager

此类为Visindigo提供调试服务器管理器. 详情...

头文件: #include <DebugServerManager>
自以下版本: YSS 0.13.0

公开成员函数

(自 YSS 0.13.0 引入) ~DebugServerManager()
(自 YSS 0.13.0 引入) void addDebugServer(YSSCore::Editor::DebugServer *server)
(自 YSS 0.13.0 引入) YSSCore::Editor::DebugServer *getDebugServer(const QString &serverID)
(自 YSS 0.13.0 引入) QStringList getDebugServerIDs()

信号

(自 YSS 0.15.0 引入) void projectDebugServerChanged(const QString &serverID)

静态公开成员

(自 YSS 0.13.0 引入) YSSCore::Editor::DebugServerManager *getInstance()

详细说明

DebugServerManager负责管理调试服务器。

成员函数文档

[noexcept, since YSS 0.13.0] DebugServerManager::~DebugServerManager()

析构函数

这个function 从 YSS 0.13.0 开始支持。

[since YSS 0.13.0] void DebugServerManager::addDebugServer(YSSCore::Editor::DebugServer *server)

server 调试服务器实例 添加一个新的调试服务器实例。

这个function 从 YSS 0.13.0 开始支持。

[since YSS 0.13.0] YSSCore::Editor::DebugServer *DebugServerManager::getDebugServer(const QString &serverID)

serverID 调试服务器ID 根据ID获取调试服务器实例。

这个function 从 YSS 0.13.0 开始支持。

[since YSS 0.13.0] QStringList DebugServerManager::getDebugServerIDs()

获取所有已注册的调试服务器ID列表。

这个function 从 YSS 0.13.0 开始支持。

[static, since YSS 0.13.0] YSSCore::Editor::DebugServerManager *DebugServerManager::getInstance()

获取DebugServerManager实例的指针。

这个function 从 YSS 0.13.0 开始支持。

[signal, since YSS 0.15.0] void DebugServerManager::projectDebugServerChanged(const QString &serverID)

从0.15.0开始,当通过YSSCore::General::YSSProject::setProjectDebugServerID 函数更改了当前项目的调试服务器时,DebugServerManager会发出这个信号。 serverID 新设置的新调试服务器ID。

由于YSSProject不想被设置为QObject子类,因此这个信号在这里提供。

这个信号不保证serverID能够对应一个有效的DebugServer实例,因此在接收到这个信号时, 应该调用getDebugServer函数来获取当前项目的调试服务器实例,并检查返回值是否为nullptr。

此外,由于YSSProject的特性,这个信号不会在加载项目时发出,因此在加载项目后, 应该主动调用getDebugServer函数来获取当前项目的调试服务器实例,只将该信号 用于监听中途变更调试服务器的情况。

这个function 从 YSS 0.15.0 开始支持。