Changeset View
Changeset View
Standalone View
Standalone View
src/core/atcore.h
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 60 | { | |||
---|---|---|---|---|---|
66 | Q_PROPERTY(int serialTimerInterval READ serialTimerInterval WRITE setSerialTimerInterval NOTIFY serialTimerIntervalChanged) | 66 | Q_PROPERTY(int serialTimerInterval READ serialTimerInterval WRITE setSerialTimerInterval NOTIFY serialTimerIntervalChanged) | ||
67 | Q_PROPERTY(QStringList serialPorts READ serialPorts NOTIFY portsChanged) | 67 | Q_PROPERTY(QStringList serialPorts READ serialPorts NOTIFY portsChanged) | ||
68 | Q_PROPERTY(float percentagePrinted READ percentagePrinted NOTIFY printProgressChanged) | 68 | Q_PROPERTY(float percentagePrinted READ percentagePrinted NOTIFY printProgressChanged) | ||
69 | Q_PROPERTY(QStringList portSpeeds READ portSpeeds CONSTANT) | 69 | Q_PROPERTY(QStringList portSpeeds READ portSpeeds CONSTANT) | ||
70 | Q_PROPERTY(QString connectedPort READ connectedPort) | 70 | Q_PROPERTY(QString connectedPort READ connectedPort) | ||
71 | Q_PROPERTY(AtCore::STATES state READ state WRITE setState NOTIFY stateChanged) | 71 | Q_PROPERTY(AtCore::STATES state READ state WRITE setState NOTIFY stateChanged) | ||
72 | Q_PROPERTY(bool sdMount READ isSdMounted WRITE setSdMounted NOTIFY sdMountChanged) | 72 | Q_PROPERTY(bool sdMount READ isSdMounted WRITE setSdMounted NOTIFY sdMountChanged) | ||
73 | Q_PROPERTY(QStringList sdFileList READ sdFileList NOTIFY sdCardFileListChanged) | 73 | Q_PROPERTY(QStringList sdFileList READ sdFileList NOTIFY sdCardFileListChanged) | ||
74 | Q_PROPERTY(bool autoTemperatureReport READ autoTemperatureReport WRITE setAutoTemperatureReport NOTIFY autoTemperatureReportChanged) | ||||
74 | 75 | | |||
75 | friend class AtCoreTests; | 76 | friend class AtCoreTests; | ||
76 | //Add friends as Sd Card support is extended to more plugins. | 77 | //Add friends as Sd Card support is extended to more plugins. | ||
77 | friend class RepetierPlugin; | 78 | friend class RepetierPlugin; | ||
78 | friend class MarlinPlugin; | 79 | friend class MarlinPlugin; | ||
79 | //friend class SmoothiePlugin; | 80 | //friend class SmoothiePlugin; | ||
80 | //friend class TeacupPlugin; | 81 | //friend class TeacupPlugin; | ||
81 | //friend class AprinterPlugin; | 82 | //friend class AprinterPlugin; | ||
▲ Show 20 Lines • Show All 148 Lines • ▼ Show 20 Line(s) | 85 | public: | |||
230 | QStringList sdFileList(); | 231 | QStringList sdFileList(); | ||
231 | 232 | | |||
232 | /** | 233 | /** | ||
233 | * @brief Check if an sd card is mounted on the printer | 234 | * @brief Check if an sd card is mounted on the printer | ||
234 | * @return True if card mounted | 235 | * @return True if card mounted | ||
235 | */ | 236 | */ | ||
236 | bool isSdMounted() const; | 237 | bool isSdMounted() const; | ||
237 | 238 | | |||
239 | /** | ||||
240 | * @brief Check if using automatic Temperature reporting to monitor temperatures | ||||
241 | * @return True if using automatic temperature reporting | ||||
242 | */ | ||||
243 | bool autoTemperatureReport() const; | ||||
244 | | ||||
238 | signals: | 245 | signals: | ||
239 | 246 | | |||
240 | /** | 247 | /** | ||
241 | * @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. | ||
242 | * | 249 | * | ||
243 | * Possable Messages Are: | 250 | * Possable Messages Are: | ||
244 | * - Waiting for firmware detect. | 251 | * - Waiting for firmware detect. | ||
245 | * - No Plugin found for (detected FW) | 252 | * - No Plugin found for (detected FW) | ||
Show All 30 Lines | |||||
276 | 283 | | |||
277 | /** | 284 | /** | ||
278 | * @brief New interval for temperature timer | 285 | * @brief New interval for temperature timer | ||
279 | * @sa setTemperatureTimerInterval() | 286 | * @sa setTemperatureTimerInterval() | ||
280 | */ | 287 | */ | ||
281 | void temperatureTimerIntervalChanged(const int newTime); | 288 | void temperatureTimerIntervalChanged(const int newTime); | ||
282 | 289 | | |||
283 | /** | 290 | /** | ||
291 | * @brief use of automatic temperature reporting has changed | ||||
292 | * @param autoReport: True if using automatic Reporting mode. | ||||
293 | */ | ||||
294 | void autoTemperatureReportChanged(bool autoReport); | ||||
295 | | ||||
296 | /** | ||||
297 | * @brief New interval for automatic temperature report | ||||
298 | * @sa setautoTemperatureReport() | ||||
299 | */ | ||||
300 | void autoCheckTemperatureIntervalChanged(const int newTime); | ||||
301 | | ||||
302 | /** | ||||
284 | * @brief The Printer's State Changed | 303 | * @brief The Printer's State Changed | ||
285 | * @param newState : the new state of the printer | 304 | * @param newState : the new state of the printer | ||
286 | * @sa setState(), state(), AtCore::STATES | 305 | * @sa setState(), state(), AtCore::STATES | ||
287 | */ | 306 | */ | ||
288 | void stateChanged(AtCore::STATES newState); | 307 | void stateChanged(AtCore::STATES newState); | ||
289 | 308 | | |||
290 | /** | 309 | /** | ||
291 | * @brief Available serialports Changed | 310 | * @brief Available serialports Changed | ||
▲ Show 20 Lines • Show All 182 Lines • ▼ Show 20 Line(s) | 335 | public slots: | |||
474 | void setSerialTimerInterval(int newTime); | 493 | void setSerialTimerInterval(int newTime); | ||
475 | 494 | | |||
476 | /** | 495 | /** | ||
477 | * @brief Set the time between checks for new Temperature (5000 is default on new connections) | 496 | * @brief Set the time between checks for new Temperature (5000 is default on new connections) | ||
478 | * @param newTime: Milliseconds between checks. values <= 0 will Disable Checks. | 497 | * @param newTime: Milliseconds between checks. values <= 0 will Disable Checks. | ||
479 | */ | 498 | */ | ||
480 | void setTemperatureTimerInterval(int newTime); | 499 | void setTemperatureTimerInterval(int newTime); | ||
481 | 500 | | |||
501 | /** @brief Set if atcore should Enable auto temperature reporting. Temperature timer will also be stopped. | ||||
502 | * @param autoReport: True to enable automatic reporting of temperatures. | ||||
503 | * @sa setAutoCheckTemperature | ||||
504 | */ | ||||
505 | void setAutoTemperatureReport(bool autoReport); | ||||
506 | | ||||
507 | /** | ||||
508 | * @brief Tell the machine to start reporting its temperature automaticly | ||||
509 | * @param newTime: Time in seconds between reports (0: disabled) | ||||
510 | */ | ||||
511 | Q_INVOKABLE void setAutoCheckTemperatureInterval(int newTime); | ||||
512 | | ||||
482 | /** | 513 | /** | ||
483 | * @brief delete file from sd card | 514 | * @brief delete file from sd card | ||
484 | */ | 515 | */ | ||
485 | Q_INVOKABLE void sdDelete(const QString &fileName); | 516 | Q_INVOKABLE void sdDelete(const QString &fileName); | ||
486 | 517 | | |||
487 | /** | 518 | /** | ||
488 | * @brief Queue the Printer for status of sd card print | 519 | * @brief Queue the Printer for status of sd card print | ||
489 | */ | 520 | */ | ||
▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines |