AtCore  1.0.70
AtCore is a API to manage the serial connection between the computer and 3D Printers.
grblplugin.h
Go to the documentation of this file.
1 /* AtCore KDE Libary for 3D Printers
2  Copyright (C) <2016>
3 
4  Authors:
5  Tomaz Canabrava <tcanabrava@kde.org>
6  Chris Rizzitello <rizzitello@kde.org>
7  Patrick José Pereira <patrickjp@kde.org>
8 
9  This library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU Lesser General Public
11  License as published by the Free Software Foundation; either
12  version 2.1 of the License, or (at your option) version 3, or any
13  later version accepted by the membership of KDE e.V. (or its
14  successor approved by the membership of KDE e.V.), which shall
15  act as a proxy defined in Section 6 of version 3 of the license.
16 
17  This library is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  Lesser General Public License for more details.
21 
22  You should have received a copy of the GNU Lesser General Public
23  License along with this library. If not, see <http://www.gnu.org/licenses/>.
24 */
25 #pragma once
26 
27 #include <QObject>
28 
29 #include "ifirmware.h"
34 class GrblPlugin : public IFirmware
35 {
36  Q_OBJECT
37  Q_PLUGIN_METADATA(IID "org.kde.atelier.core.firmware")
38  Q_INTERFACES(IFirmware)
39 
40 public:
44  GrblPlugin();
45  ~GrblPlugin() = default;
46 
51  QString name() const override;
52 
57  bool isSdSupported() const override;
58 
64  QByteArray translate(const QString &command) override;
65 
70  void validateCommand(const QString &lastMessage) override;
71 };
void validateCommand(const QString &lastMessage) override
Grbl does not return anything on command execution.
Definition: grblplugin.cpp:47
The IFirmware class Base Class for Firmware Plugins.
Definition: ifirmware.h:39
QByteArray translate(const QString &command) override
Translate common commands to firmware specific command.
Definition: grblplugin.cpp:54
QString name() const override
Return Plugin name.
Definition: grblplugin.cpp:32
bool isSdSupported() const override
sdSupport
Definition: grblplugin.cpp:42
The GrblPlugin class Plugin for Grbl.
Definition: grblplugin.h:34
GrblPlugin()
Create new GrblPlugin.
Definition: grblplugin.cpp:37
~GrblPlugin()=default