AtCore  1.0.72
AtCore is a API to manage the serial connection between the computer and 3D Printers.
teacupplugin.h
Go to the documentation of this file.
1 /* AtCore KDE Libary for 3D Printers
2  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
3  SPDX-FileCopyrightText: 2016-2018 Chris Rizzitello <rizzitello@kde.org>
4  SPDX-FileCopyrightText: 2016 Tomaz Canabrava <tcanabrava@kde.org>
5  SPDX-FileCopyrightText: 2016-2018 Patrick José Pereira <patrickjp@kde.org>
6 */
7 
8 #pragma once
9 
10 #include <QObject>
11 
12 #include "ifirmware.h"
17 class TeacupPlugin : public IFirmware
18 {
19  Q_OBJECT
20  Q_PLUGIN_METADATA(IID "org.kde.atelier.core.firmware")
21  Q_INTERFACES(IFirmware)
22 
23 public:
27  TeacupPlugin();
28  ~TeacupPlugin() = default;
29 
34  virtual bool isSdSupported() const override;
35 
40  QString name() const override;
41 
47  QByteArray translate(const QString &command) override;
48 };
The IFirmware class Base Class for Firmware Plugins.
Definition: ifirmware.h:25
The TeacupPlugin class Plugin for Teacup.
Definition: teacupplugin.h:18
QString name() const override
Return Plugin name.
Definition: teacupplugin.cpp:17
~TeacupPlugin()=default
virtual bool isSdSupported() const override
Check for plugin support of sd cards.
Definition: teacupplugin.cpp:22
QByteArray translate(const QString &command) override
Translate common commands to firmware specific command.
Definition: teacupplugin.cpp:32
TeacupPlugin()
Create new TeacupPlugin.
Definition: teacupplugin.cpp:27