Changeset View
Changeset View
Standalone View
Standalone View
src/core/atcore.h
Show First 20 Lines • Show All 294 Lines • ▼ Show 20 Line(s) | 238 | signals: | |||
---|---|---|---|---|---|
295 | * @brief The files on the sd card have changed. | 295 | * @brief The files on the sd card have changed. | ||
296 | */ | 296 | */ | ||
297 | void sdCardFileListChanged(const QStringList &fileList); | 297 | void sdCardFileListChanged(const QStringList &fileList); | ||
298 | 298 | | |||
299 | /** | 299 | /** | ||
300 | * @brief pushedCommand via serialLayer connect this to your log to see send commands | 300 | * @brief pushedCommand via serialLayer connect this to your log to see send commands | ||
301 | * @param comm: the command sent. | 301 | * @param comm: the command sent. | ||
302 | */ | 302 | */ | ||
303 | void pushedCommand(const QByteArray &comm); | 303 | 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… | |||||
304 | 304 | | |||
tcanabrava: Don’t const ref floats, pass by value | |||||
305 | /** | ||||
306 | * @brief WriteToSD precentage changed. | ||||
307 | * @param newProgress. | ||||
308 | */ | ||||
309 | void sdWriteProgressChanged(float newProgress); | ||||
310 | | ||||
311 | /** | ||||
312 | * @brief sdWriteChanged | ||||
313 | * @param writing: true if writing to file. | ||||
314 | */ | ||||
315 | void sdWriteChanged(bool writing); | ||||
316 | | ||||
305 | public slots: | 317 | public slots: | ||
306 | 318 | | |||
307 | /** | 319 | /** | ||
308 | * @brief Set the printers state | 320 | * @brief Set the printers state | ||
309 | * @param state : printer state. | 321 | * @param state : printer state. | ||
310 | * @sa state(),stateChanged(),AtCore::STATES | 322 | * @sa state(),stateChanged(),AtCore::STATES | ||
311 | */ | 323 | */ | ||
312 | void setState(AtCore::STATES state); | 324 | void setState(AtCore::STATES state); | ||
▲ Show 20 Lines • Show All 154 Lines • ▼ Show 20 Line(s) | |||||
467 | */ | 479 | */ | ||
468 | Q_INVOKABLE void sdDelete(const QString &fileName); | 480 | Q_INVOKABLE void sdDelete(const QString &fileName); | ||
469 | 481 | | |||
470 | /** | 482 | /** | ||
471 | * @brief Queue the Printer for status of sd card print | 483 | * @brief Queue the Printer for status of sd card print | ||
472 | */ | 484 | */ | ||
473 | void sdCardPrintStatus(); | 485 | void sdCardPrintStatus(); | ||
474 | 486 | | |||
487 | /** | ||||
488 | * @brief Write a file to the machines SdCard | ||||
489 | * @param fileName: Local file to send to machine | ||||
490 | * @return True if successful | ||||
491 | */ | ||||
492 | Q_INVOKABLE bool toSd(const QString &fileName); | ||||
patrickelectric: ToSd | |||||
493 | | ||||
475 | private slots: | 494 | private slots: | ||
476 | /** | 495 | /** | ||
477 | * @brief processQueue send commands from the queue. | 496 | * @brief processQueue send commands from the queue. | ||
478 | */ | 497 | */ | ||
479 | void processQueue(); | 498 | void processQueue(); | ||
480 | 499 | | |||
481 | /** | 500 | /** | ||
482 | * @brief Send M105 to the printer if one is not in the Queue | 501 | * @brief Send M105 to the printer if one is not in the Queue | ||
▲ Show 20 Lines • Show All 114 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 ?