Changeset View
Changeset View
Standalone View
Standalone View
src/core/atcore.h
Show All 20 Lines | 1 | /* AtCore | |||
---|---|---|---|---|---|
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 462 Lines • ▼ Show 20 Line(s) | 474 | private slots: | |||
499 | */ | 500 | */ | ||
500 | void locateSerialPort(); | 501 | void locateSerialPort(); | ||
501 | 502 | | |||
502 | /** | 503 | /** | ||
503 | * @brief Send request to the printer for the sd card file list. | 504 | * @brief Send request to the printer for the sd card file list. | ||
504 | */ | 505 | */ | ||
505 | void getSDFileList(); | 506 | void getSDFileList(); | ||
506 | 507 | | |||
508 | /** | ||||
509 | * @brief Handle serial Errors. | ||||
510 | */ | ||||
511 | void handleSerialError(QSerialPort::SerialPortError error); | ||||
512 | | ||||
507 | private: | 513 | private: | ||
508 | /** | 514 | /** | ||
509 | * @brief True if a firmware plugin is loaded | 515 | * @brief True if a firmware plugin is loaded | ||
510 | */ | 516 | */ | ||
511 | bool firmwarePluginLoaded() const; | 517 | bool firmwarePluginLoaded() const; | ||
512 | 518 | | |||
513 | /** | 519 | /** | ||
514 | * @brief True if a serial port is initialized | 520 | * @brief True if a serial port is initialized | ||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |