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