| 1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
|---|---|
| 2 | // |
| 3 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | |
| 5 | #include "optionlsp.h" |
| 6 | #include "mainframe/optionlspgenerator.h" |
| 7 | |
| 8 | #include "base/abstractmenu.h" |
| 9 | #include "base/abstractmainwindow.h" |
| 10 | #include "base/abstractwidget.h" |
| 11 | |
| 12 | #include "services/option/optionservice.h" |
| 13 | |
| 14 | #include "framework/listener/listener.h" |
| 15 | |
| 16 | using namespace dpfservice; |
| 17 | |
| 18 | void OptionLsp::initialize() |
| 19 | { |
| 20 | DPF_USE_NAMESPACE; |
| 21 | } |
| 22 | |
| 23 | bool OptionLsp::start() |
| 24 | { |
| 25 | // auto &ctx = dpfInstance.serviceContext(); |
| 26 | // OptionService *optionService = ctx.service<OptionService>(OptionService::name()); |
| 27 | // if (!optionService) { |
| 28 | // qCritical() << "Failed, not found option service!"; |
| 29 | // abort(); |
| 30 | // } |
| 31 | // optionService->implGenerator<OptionLspGenerator>(OptionLspGenerator::kitName()); |
| 32 | return true; |
| 33 | } |
| 34 | |
| 35 | dpf::Plugin::ShutdownFlag OptionLsp::stop() |
| 36 | { |
| 37 | return Sync; |
| 38 | } |
| 39 |