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 | |||||
312 | /** | ||||
313 | * @brief sdWriteChanged | ||||
314 | * @param writing: true if writing to file. | ||||
315 | */ | ||||
316 | void sdWriteChanged(bool writing); | ||||
317 | | ||||
306 | public slots: | 318 | public slots: | ||
307 | 319 | | |||
308 | /** | 320 | /** | ||
309 | * @brief Set the printers state | 321 | * @brief Set the printers state | ||
310 | * @param state : printer state. | 322 | * @param state : printer state. | ||
311 | * @sa state(),stateChanged(),AtCore::STATES | 323 | * @sa state(),stateChanged(),AtCore::STATES | ||
312 | */ | 324 | */ | ||
313 | void setState(AtCore::STATES state); | 325 | void setState(AtCore::STATES state); | ||
▲ Show 20 Lines • Show All 154 Lines • ▼ Show 20 Line(s) | |||||
468 | */ | 480 | */ | ||
469 | Q_INVOKABLE void sdDelete(const QString &fileName); | 481 | Q_INVOKABLE void sdDelete(const QString &fileName); | ||
470 | 482 | | |||
471 | /** | 483 | /** | ||
472 | * @brief Queue the Printer for status of sd card print | 484 | * @brief Queue the Printer for status of sd card print | ||
473 | */ | 485 | */ | ||
474 | void sdCardPrintStatus(); | 486 | void sdCardPrintStatus(); | ||
475 | 487 | | |||
488 | /** | ||||
489 | * @brief Write a file to the machines SdCard | ||||
490 | * @param fileName: Local file to send to machine | ||||
491 | * @return True if successful | ||||
492 | */ | ||||
493 | Q_INVOKABLE bool toSd(const QString &fileName); | ||||
patrickelectric: ToSd | |||||
494 | | ||||
476 | private slots: | 495 | private slots: | ||
477 | /** | 496 | /** | ||
478 | * @brief processQueue send commands from the queue. | 497 | * @brief processQueue send commands from the queue. | ||
479 | */ | 498 | */ | ||
480 | void processQueue(); | 499 | void processQueue(); | ||
481 | 500 | | |||
482 | /** | 501 | /** | ||
483 | * @brief Send M105 to the printer if one is not in the Queue | 502 | * @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 ?