Revision control

++ // 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 &params) {
++ 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 &params) {
++ 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 &params) {
++ 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 &params) {
++ 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 &params) {
++ 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 &params) {
++ 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
++ &params) {
++ 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
++ &params) {
++ 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
++ &params) {
++ 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
++ &params) {
++ 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 &params) {
++ 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
++ &params) {
++ 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
++ &params) {
++ 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 &params) {
++ 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 &params) {
++ 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 &params) {
++ 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
++ &params) {
++ 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 &params) {
++ 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 &params) {
++ 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
++ &params) {
++ 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
++ &params) {
++ 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
++ &params) {
++ 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
++ &params) {
++ 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 &params) {
++ 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 &params) {
++ 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 &params) {
++ static const QMetaMethod notificationSignal = QMetaMethod::fromSignal(
++ &QLspNotifySignals::receivedRenameFilesNotification);
++ if (isSignalConnected(notificationSignal))
++ emit receivedRenameFilesNotification(params);
++ else
++ protocol->handleUndispatchedNotification(method);
++ });
++ }
++
++ QT_END_NAMESPACE