Changeset View
Changeset View
Standalone View
Standalone View
src/core/atcore.h
Show First 20 Lines • Show All 300 Lines • ▼ Show 20 Line(s) | 238 | signals: | |||
---|---|---|---|---|---|
301 | * @brief The files on the sd card have changed. | 301 | * @brief The files on the sd card have changed. | ||
302 | */ | 302 | */ | ||
303 | void sdCardFileListChanged(const QStringList &fileList); | 303 | void sdCardFileListChanged(const QStringList &fileList); | ||
304 | 304 | | |||
305 | /** | 305 | /** | ||
306 | * @brief pushedCommand via serialLayer connect this to your log to see send commands | 306 | * @brief pushedCommand via serialLayer connect this to your log to see send commands | ||
307 | * @param comm: the command sent. | 307 | * @param comm: the command sent. | ||
308 | */ | 308 | */ | ||
309 | void pushedCommand(const QByteArray &comm); | 309 | void pushedCommand(const QByteArray &comm); | ||
patrickelectric: Do you have a progress function in another PR that is changing from float to int, why are you… | |||||
310 | 310 | | |||
tcanabrava: Don’t const ref floats, pass by value | |||||
311 | /** | ||||
312 | * @brief WriteToSD precentage changed. | ||||
313 | * @param newProgress. | ||||
314 | */ | ||||
315 | void sdWriteProgressChanged(float newProgress); | ||||
316 | | ||||
317 | /** | ||||
318 | * @brief sdWriteChanged | ||||
319 | * @param writing: true if writing to file. | ||||
320 | */ | ||||
321 | void sdWriteChanged(bool writing); | ||||
322 | | ||||
311 | public slots: | 323 | public slots: | ||
312 | 324 | | |||
313 | /** | 325 | /** | ||
314 | * @brief Set the printers state | 326 | * @brief Set the printers state | ||
315 | * @param state : printer state. | 327 | * @param state : printer state. | ||
316 | * @sa state(), stateChanged(), AtCore::STATES | 328 | * @sa state(), stateChanged(), AtCore::STATES | ||
317 | */ | 329 | */ | ||
318 | void setState(AtCore::STATES state); | 330 | void setState(AtCore::STATES state); | ||
▲ Show 20 Lines • Show All 160 Lines • ▼ Show 20 Line(s) | |||||
479 | */ | 491 | */ | ||
480 | Q_INVOKABLE void sdDelete(const QString &fileName); | 492 | Q_INVOKABLE void sdDelete(const QString &fileName); | ||
481 | 493 | | |||
482 | /** | 494 | /** | ||
483 | * @brief Queue the Printer for status of sd card print | 495 | * @brief Queue the Printer for status of sd card print | ||
484 | */ | 496 | */ | ||
485 | void sdCardPrintStatus(); | 497 | void sdCardPrintStatus(); | ||
486 | 498 | | |||
499 | /** | ||||
500 | * @brief Write a file to the machines SdCard | ||||
501 | * @param fileName: Local file to send to machine | ||||
502 | * @return True if successful | ||||
503 | */ | ||||
504 | Q_INVOKABLE bool toSd(const QString &fileName); | ||||
patrickelectric: ToSd | |||||
505 | | ||||
487 | private slots: | 506 | private slots: | ||
488 | /** | 507 | /** | ||
489 | * @brief processQueue send commands from the queue. | 508 | * @brief processQueue send commands from the queue. | ||
490 | */ | 509 | */ | ||
491 | void processQueue(); | 510 | void processQueue(); | ||
492 | 511 | | |||
493 | /** | 512 | /** | ||
494 | * @brief Send M105 to the printer if one is not in the Queue | 513 | * @brief Send M105 to the printer if one is not in the Queue | ||
▲ Show 20 Lines • Show All 129 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 ?