aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/serialterminal/serialterminalplugin.h
blob: c08fe5a2bd6f3128f3b4e0ddbe8f5b5c81fee3e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (C) 2018 Benjamin Balga
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include "serialoutputpane.h"
#include "serialterminalsettings.h"

#include <extensionsystem/iplugin.h>

#include <memory>

namespace SerialTerminal {
namespace Internal {

class SerialTerminalPlugin : public ExtensionSystem::IPlugin
{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "SerialTerminal.json")

public:
    explicit SerialTerminalPlugin() = default;

    void initialize() final;
    ShutdownFlag aboutToShutdown() final;

private:
    void settingsChanged(const Settings &settings);

    Settings m_settings;
    std::unique_ptr<SerialOutputPane> m_serialOutputPane;
};

} // namespace Internal
} // namespace SerialTerminal