Revision control
Copy as Markdown
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
// Qt-Security score:significant
// this file was generated by the generate.ts script
#include <QtLanguageServer/private/qlspnotifysignals_p.h>
QT_BEGIN_NAMESPACE
using namespace QLspSpecification;
void QLspNotifySignals::registerHandlers(QLanguageServerProtocol *protocol)
{
protocol->registerCancelNotificationHandler(
[this, protocol](const QByteArray &method,
const QLspSpecification::Notifications::CancelParamsType ¶ms) {
static const QMetaMethod notificationSignal =
QMetaMethod::fromSignal(&QLspNotifySignals::receivedCancelNotification);
if (isSignalConnected(notificationSignal))
emit receivedCancelNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerLogTraceNotificationHandler(
[this, protocol](const QByteArray &method,
const QLspSpecification::Notifications::LogTraceParamsType ¶ms) {
static const QMetaMethod notificationSignal =
QMetaMethod::fromSignal(&QLspNotifySignals::receivedLogTraceNotification);
if (isSignalConnected(notificationSignal))
emit receivedLogTraceNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerProgressNotificationHandler(
[this, protocol](const QByteArray &method,
const QLspSpecification::Notifications::ProgressParamsType ¶ms) {
static const QMetaMethod notificationSignal =
QMetaMethod::fromSignal(&QLspNotifySignals::receivedProgressNotification);
if (isSignalConnected(notificationSignal))
emit receivedProgressNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerSetTraceNotificationHandler(
[this, protocol](const QByteArray &method,
const QLspSpecification::Notifications::SetTraceParamsType ¶ms) {
static const QMetaMethod notificationSignal =
QMetaMethod::fromSignal(&QLspNotifySignals::receivedSetTraceNotification);
if (isSignalConnected(notificationSignal))
emit receivedSetTraceNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerExitNotificationHandler(
[this, protocol](const QByteArray &method,
const QLspSpecification::Notifications::ExitParamsType ¶ms) {
static const QMetaMethod notificationSignal =
QMetaMethod::fromSignal(&QLspNotifySignals::receivedExitNotification);
if (isSignalConnected(notificationSignal))
emit receivedExitNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerInitializedNotificationHandler(
[this,
protocol](const QByteArray &method,
const QLspSpecification::Notifications::InitializedParamsType ¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedInitializedNotification);
if (isSignalConnected(notificationSignal))
emit receivedInitializedNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerDidChangeNotebookDocumentNotificationHandler(
[this,
protocol](const QByteArray &method,
const QLspSpecification::Notifications::DidChangeNotebookDocumentParamsType
¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedDidChangeNotebookDocumentNotification);
if (isSignalConnected(notificationSignal))
emit receivedDidChangeNotebookDocumentNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerDidCloseNotebookDocumentNotificationHandler(
[this,
protocol](const QByteArray &method,
const QLspSpecification::Notifications::DidCloseNotebookDocumentParamsType
¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedDidCloseNotebookDocumentNotification);
if (isSignalConnected(notificationSignal))
emit receivedDidCloseNotebookDocumentNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerDidOpenNotebookDocumentNotificationHandler(
[this,
protocol](const QByteArray &method,
const QLspSpecification::Notifications::DidOpenNotebookDocumentParamsType
¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedDidOpenNotebookDocumentNotification);
if (isSignalConnected(notificationSignal))
emit receivedDidOpenNotebookDocumentNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerDidSaveNotebookDocumentNotificationHandler(
[this,
protocol](const QByteArray &method,
const QLspSpecification::Notifications::DidSaveNotebookDocumentParamsType
¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedDidSaveNotebookDocumentNotification);
if (isSignalConnected(notificationSignal))
emit receivedDidSaveNotebookDocumentNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerTelemetryEventNotificationHandler(
[this,
protocol](const QByteArray &method,
const QLspSpecification::Notifications::TelemetryEventParamsType ¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedTelemetryEventNotification);
if (isSignalConnected(notificationSignal))
emit receivedTelemetryEventNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerDidChangeTextDocumentNotificationHandler(
[this, protocol](const QByteArray &method,
const QLspSpecification::Notifications::DidChangeTextDocumentParamsType
¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedDidChangeTextDocumentNotification);
if (isSignalConnected(notificationSignal))
emit receivedDidChangeTextDocumentNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerDidCloseTextDocumentNotificationHandler(
[this, protocol](const QByteArray &method,
const QLspSpecification::Notifications::DidCloseTextDocumentParamsType
¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedDidCloseTextDocumentNotification);
if (isSignalConnected(notificationSignal))
emit receivedDidCloseTextDocumentNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerDidOpenTextDocumentNotificationHandler(
[this, protocol](
const QByteArray &method,
const QLspSpecification::Notifications::DidOpenTextDocumentParamsType ¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedDidOpenTextDocumentNotification);
if (isSignalConnected(notificationSignal))
emit receivedDidOpenTextDocumentNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerDidSaveTextDocumentNotificationHandler(
[this, protocol](
const QByteArray &method,
const QLspSpecification::Notifications::DidSaveTextDocumentParamsType ¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedDidSaveTextDocumentNotification);
if (isSignalConnected(notificationSignal))
emit receivedDidSaveTextDocumentNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerPublishDiagnosticsNotificationHandler(
[this, protocol](
const QByteArray &method,
const QLspSpecification::Notifications::PublishDiagnosticsParamsType ¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedPublishDiagnosticsNotification);
if (isSignalConnected(notificationSignal))
emit receivedPublishDiagnosticsNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerWillSaveTextDocumentNotificationHandler(
[this, protocol](const QByteArray &method,
const QLspSpecification::Notifications::WillSaveTextDocumentParamsType
¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedWillSaveTextDocumentNotification);
if (isSignalConnected(notificationSignal))
emit receivedWillSaveTextDocumentNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerLogMessageNotificationHandler(
[this, protocol](const QByteArray &method,
const QLspSpecification::Notifications::LogMessageParamsType ¶ms) {
static const QMetaMethod notificationSignal =
QMetaMethod::fromSignal(&QLspNotifySignals::receivedLogMessageNotification);
if (isSignalConnected(notificationSignal))
emit receivedLogMessageNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerShowMessageNotificationHandler(
[this,
protocol](const QByteArray &method,
const QLspSpecification::Notifications::ShowMessageParamsType ¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedShowMessageNotification);
if (isSignalConnected(notificationSignal))
emit receivedShowMessageNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerWorkDoneProgressCancelNotificationHandler(
[this,
protocol](const QByteArray &method,
const QLspSpecification::Notifications::WorkDoneProgressCancelParamsType
¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedWorkDoneProgressCancelNotification);
if (isSignalConnected(notificationSignal))
emit receivedWorkDoneProgressCancelNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerDidChangeConfigurationNotificationHandler(
[this,
protocol](const QByteArray &method,
const QLspSpecification::Notifications::DidChangeConfigurationParamsType
¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedDidChangeConfigurationNotification);
if (isSignalConnected(notificationSignal))
emit receivedDidChangeConfigurationNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerDidChangeWatchedFilesNotificationHandler(
[this, protocol](const QByteArray &method,
const QLspSpecification::Notifications::DidChangeWatchedFilesParamsType
¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedDidChangeWatchedFilesNotification);
if (isSignalConnected(notificationSignal))
emit receivedDidChangeWatchedFilesNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerDidChangeWorkspaceFoldersNotificationHandler(
[this,
protocol](const QByteArray &method,
const QLspSpecification::Notifications::DidChangeWorkspaceFoldersParamsType
¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedDidChangeWorkspaceFoldersNotification);
if (isSignalConnected(notificationSignal))
emit receivedDidChangeWorkspaceFoldersNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerCreateFilesNotificationHandler(
[this,
protocol](const QByteArray &method,
const QLspSpecification::Notifications::CreateFilesParamsType ¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedCreateFilesNotification);
if (isSignalConnected(notificationSignal))
emit receivedCreateFilesNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerDeleteFilesNotificationHandler(
[this,
protocol](const QByteArray &method,
const QLspSpecification::Notifications::DeleteFilesParamsType ¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedDeleteFilesNotification);
if (isSignalConnected(notificationSignal))
emit receivedDeleteFilesNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
protocol->registerRenameFilesNotificationHandler(
[this,
protocol](const QByteArray &method,
const QLspSpecification::Notifications::RenameFilesParamsType ¶ms) {
static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
&QLspNotifySignals::receivedRenameFilesNotification);
if (isSignalConnected(notificationSignal))
emit receivedRenameFilesNotification(params);
else
protocol->handleUndispatchedNotification(method);
});
}
QT_END_NAMESPACE