AtCore  1.0.70
AtCore is a API to manage the serial connection between the computer and 3D Printers.
repetierplugin.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 RepetierPlugin : public IFirmware
35 {
36  Q_OBJECT
37  Q_PLUGIN_METADATA(IID "org.kde.atelier.core.firmware")
38  Q_INTERFACES(IFirmware)
39 
40 public:
45  ~RepetierPlugin() = default;
46 
51  virtual bool isSdSupported() const override;
52 
57  QString name() const override;
58 
63  void validateCommand(const QString &lastMessage) override;
64 };
RepetierPlugin()
Create new RepetierPlugin.
Definition: repetierplugin.cpp:43
void validateCommand(const QString &lastMessage) override
validateCommand to filter commands from messages
Definition: repetierplugin.cpp:48
The IFirmware class Base Class for Firmware Plugins.
Definition: ifirmware.h:39
~RepetierPlugin()=default
The RepetierPlugin class Plugin for Repetier.
Definition: repetierplugin.h:34
QString name() const override
Return Plugin name.
Definition: repetierplugin.cpp:33
virtual bool isSdSupported() const override
Check for plugin support of sd cards.
Definition: repetierplugin.cpp:38