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