Changeset View
Changeset View
Standalone View
Standalone View
src/core/atcore.h
Show First 20 Lines • Show All 297 Lines • ▼ Show 20 Line(s) | 245 | signals: | |||
---|---|---|---|---|---|
298 | */ | 298 | */ | ||
299 | void sdMountChanged(bool newState); | 299 | void sdMountChanged(bool newState); | ||
300 | 300 | | |||
301 | /** | 301 | /** | ||
302 | * @brief The files on the sd card have changed. | 302 | * @brief The files on the sd card have changed. | ||
303 | */ | 303 | */ | ||
304 | void sdCardFileListChanged(const QStringList &fileList); | 304 | void sdCardFileListChanged(const QStringList &fileList); | ||
305 | 305 | | |||
306 | /** | ||||
307 | * @brief WriteToSD precentage changed. | ||||
308 | * @param newProgress. | ||||
309 | */ | ||||
310 | void sdWriteProgressChanged(float newProgress); | ||||
patrickelectric: Do you have a progress function in another PR that is changing from float to int, why are you… | |||||
311 | | ||||
tcanabrava: Don’t const ref floats, pass by value | |||||
306 | public slots: | 312 | public slots: | ||
307 | 313 | | |||
308 | /** | 314 | /** | ||
309 | * @brief Set the printers state | 315 | * @brief Set the printers state | ||
310 | * @param state : printer state. | 316 | * @param state : printer state. | ||
311 | * @sa state(),stateChanged(),AtCore::STATES | 317 | * @sa state(),stateChanged(),AtCore::STATES | ||
312 | */ | 318 | */ | ||
313 | void setState(AtCore::STATES state); | 319 | void setState(AtCore::STATES state); | ||
▲ Show 20 Lines • Show All 154 Lines • ▼ Show 20 Line(s) | |||||
468 | */ | 474 | */ | ||
469 | Q_INVOKABLE void sdDelete(const QString &fileName); | 475 | Q_INVOKABLE void sdDelete(const QString &fileName); | ||
470 | 476 | | |||
471 | /** | 477 | /** | ||
472 | * @brief Queue the Printer for status of sd card print | 478 | * @brief Queue the Printer for status of sd card print | ||
473 | */ | 479 | */ | ||
474 | void sdCardPrintStatus(); | 480 | void sdCardPrintStatus(); | ||
475 | 481 | | |||
482 | /** | ||||
483 | * @brief Write a file to the machines SdCard | ||||
484 | * @param fileName: Local file to send to machine | ||||
485 | * @return True if successful | ||||
486 | */ | ||||
487 | bool writeFiletoSd(const QString &fileName); | ||||
patrickelectric: ToSd | |||||
488 | | ||||
476 | private slots: | 489 | private slots: | ||
477 | /** | 490 | /** | ||
478 | * @brief processQueue send commands from the queue. | 491 | * @brief processQueue send commands from the queue. | ||
479 | */ | 492 | */ | ||
480 | void processQueue(); | 493 | void processQueue(); | ||
481 | 494 | | |||
482 | /** | 495 | /** | ||
483 | * @brief Send M105 to the printer if one is not in the Queue | 496 | * @brief Send M105 to the printer if one is not in the Queue | ||
▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines |
Do you have a progress function in another PR that is changing from float to int, why are you using float here ?