Changeset View
Changeset View
Standalone View
Standalone View
src/core/atcore.h
1 | /* AtCore | 1 | /* AtCore | ||
---|---|---|---|---|---|
2 | Copyright (C) <2016> | 2 | Copyright (C) <2016 - 2018> | ||
3 | 3 | | |||
4 | Authors: | 4 | Authors: | ||
5 | Tomaz Canabrava <tcanabrava@kde.org> | 5 | Tomaz Canabrava <tcanabrava@kde.org> | ||
6 | Chris Rizzitello <rizzitello@kde.org> | 6 | Chris Rizzitello <rizzitello@kde.org> | ||
7 | Patrick José Pereira <patrickjp@kde.org> | 7 | Patrick José Pereira <patrickjp@kde.org> | ||
8 | Lays Rodrigues <lays.rodrigues@kde.org> | 8 | Lays Rodrigues <lays.rodrigues@kde.org> | ||
9 | 9 | | |||
10 | This library is free software; you can redistribute it and/or | 10 | This library is free software; you can redistribute it and/or | ||
Show All 10 Lines | |||||
21 | Lesser General Public License for more details. | 21 | Lesser General Public License for more details. | ||
22 | 22 | | |||
23 | You should have received a copy of the GNU Lesser General Public | 23 | You should have received a copy of the GNU Lesser General Public | ||
24 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | 24 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
25 | */ | 25 | */ | ||
26 | #pragma once | 26 | #pragma once | ||
27 | 27 | | |||
28 | #include <QObject> | 28 | #include <QObject> | ||
29 | #include <QSerialPort> | ||||
29 | #include <QSerialPortInfo> | 30 | #include <QSerialPortInfo> | ||
30 | 31 | | |||
31 | #include "ifirmware.h" | 32 | #include "ifirmware.h" | ||
32 | #include "temperature.h" | 33 | #include "temperature.h" | ||
33 | #include "atcore_export.h" | 34 | #include "atcore_export.h" | ||
34 | 35 | | |||
35 | class SerialLayer; | 36 | class SerialLayer; | ||
36 | class IFirmware; | 37 | class IFirmware; | ||
▲ Show 20 Lines • Show All 208 Lines • ▼ Show 20 Line(s) | 245 | signals: | |||
245 | 246 | | |||
246 | /** | 247 | /** | ||
247 | * @brief Message emit from atcore these should be displayed to the user for debug. | 248 | * @brief Message emit from atcore these should be displayed to the user for debug. | ||
248 | * | 249 | * | ||
249 | * Possable Messages Are: | 250 | * Possable Messages Are: | ||
250 | * - Waiting for firmware detect. | 251 | * - Waiting for firmware detect. | ||
251 | * - No Plugin found for (detected FW) | 252 | * - No Plugin found for (detected FW) | ||
252 | * - Failed to open device in Read / Write mode. | 253 | * - Failed to open device in Read / Write mode. | ||
254 | * - Device Errors. | ||||
253 | * @param msg: the message. | 255 | * @param msg: the message. | ||
254 | */ | 256 | */ | ||
255 | void atcoreMessage(const QString &msg); | 257 | void atcoreMessage(const QString &msg); | ||
256 | 258 | | |||
257 | /** | 259 | /** | ||
258 | * @brief New number of extruders | 260 | * @brief New number of extruders | ||
259 | * @sa extruderCount(), setExtruderCount(int newCount) | 261 | * @sa extruderCount(), setExtruderCount(int newCount) | ||
260 | */ | 262 | */ | ||
▲ Show 20 Lines • Show All 245 Lines • ▼ Show 20 Line(s) | 476 | private slots: | |||
506 | */ | 508 | */ | ||
507 | void disableResetOnConnect(const QString &port); | 509 | void disableResetOnConnect(const QString &port); | ||
508 | 510 | | |||
509 | /** | 511 | /** | ||
510 | * @brief Send request to the printer for the sd card file list. | 512 | * @brief Send request to the printer for the sd card file list. | ||
511 | */ | 513 | */ | ||
512 | void getSDFileList(); | 514 | void getSDFileList(); | ||
513 | 515 | | |||
516 | /** | ||||
517 | * @brief Handle serial Errors. | ||||
518 | */ | ||||
519 | void handleSerialError(QSerialPort::SerialPortError error); | ||||
520 | | ||||
514 | private: | 521 | private: | ||
515 | /** | 522 | /** | ||
516 | * @brief True if a firmware plugin is loaded | 523 | * @brief True if a firmware plugin is loaded | ||
517 | */ | 524 | */ | ||
518 | bool firmwarePluginLoaded() const; | 525 | bool firmwarePluginLoaded() const; | ||
519 | 526 | | |||
520 | /** | 527 | /** | ||
521 | * @brief True if a serial port is initialized | 528 | * @brief True if a serial port is initialized | ||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |