AtCore  1.0.72
AtCore is a API to manage the serial connection between the computer and 3D Printers.
printthread.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: 2017-2018, 2020 Chris Rizzitello <rizzitello@kde.org>
4  SPDX-FileCopyrightText: 2018 Tomaz Canabrava <tcanabrava@kde.org>
5  SPDX-FileCopyrightText: 2018 Leandro Santiago <leandrosansilva@gmail.com>
6 */
7 
8 #pragma once
9 
10 #include <QFile>
11 
12 #include "atcore.h"
13 
21 class ATCORE_EXPORT PrintThread : public QObject
22 {
23  Q_OBJECT
24 public:
30  PrintThread(AtCore *parent, const QString &fileName);
31 signals:
35  void finished();
36 
41  void error(QString err);
42 
46  void printProgressChanged(const float);
47 
52  void nextCommand(const QString &comm);
53 
58  void stateChanged(const AtCore::STATES &state);
59 
60 public slots:
64  void start();
65 private slots:
69  void processJob();
70 
75  void setState(const AtCore::STATES &state);
76 
77 private:
81  void nextLine();
82 
86  void endPrint();
87 
130  void injectCommand(QString &command);
131 
137 };
PrintThread::d
PrintThreadPrivate * d
Definition: printthread.h:135
PrintThread::PrintThreadPrivate
The PrintThreadPrivate class.
Definition: printthread.cpp:22
PrintThread
The PrintThread class A Thread for running a print job.
Definition: printthread.h:21
atcore.h
AtCore::STATES
STATES
STATES enum Possible states the printer can be in.
Definition: atcore.h:75
AtCore
The AtCore class aims to provides a high level interface for serial based gcode devices
Definition: atcore.h:44