Changeset View
Changeset View
Standalone View
Standalone View
src/core/atcore.h
Show All 18 Lines | 1 | /* AtCore | |||
---|---|---|---|---|---|
19 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
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 | #include <memory> | |||
28 | #include <QObject> | 28 | #include <QObject> | ||
29 | #include <QSerialPort> | 29 | #include <QSerialPort> | ||
30 | #include <QSerialPortInfo> | 30 | #include <QSerialPortInfo> | ||
31 | 31 | | |||
32 | #include "ifirmware.h" | 32 | #include "ifirmware.h" | ||
33 | #include "temperature.h" | 33 | #include "temperature.h" | ||
34 | #include "atcore_export.h" | 34 | #include "atcore_export.h" | ||
35 | 35 | | |||
▲ Show 20 Lines • Show All 158 Lines • ▼ Show 20 Line(s) | 84 | public: | |||
194 | * @brief Return printed percentage | 194 | * @brief Return printed percentage | ||
195 | * @sa printProgressChanged() | 195 | * @sa printProgressChanged() | ||
196 | */ | 196 | */ | ||
197 | float percentagePrinted() const; | 197 | float percentagePrinted() const; | ||
198 | 198 | | |||
199 | /** | 199 | /** | ||
200 | * @brief The temperature of the current hotend as told by the Firmware. | 200 | * @brief The temperature of the current hotend as told by the Firmware. | ||
201 | */ | 201 | */ | ||
202 | Temperature &temperature() const; | 202 | std::shared_ptr<Temperature> temperature(); | ||
203 | 203 | | |||
204 | /** | 204 | /** | ||
205 | * @brief Return the amount of miliseconds the serialTimer is set to. 0 = Disabled | 205 | * @brief Return the amount of miliseconds the serialTimer is set to. 0 = Disabled | ||
206 | */ | 206 | */ | ||
207 | int serialTimerInterval() const; | 207 | int serialTimerInterval() const; | ||
208 | 208 | | |||
209 | /** | 209 | /** | ||
210 | * @brief Return the amount of miliseconds the temperatureTimer is set to. 0 = Disabled | 210 | * @brief Return the amount of miliseconds the temperatureTimer is set to. 0 = Disabled | ||
▲ Show 20 Lines • Show All 413 Lines • Show Last 20 Lines |