Changeset View
Changeset View
Standalone View
Standalone View
src/core/atcore.h
Show First 20 Lines • Show All 236 Lines • ▼ Show 20 Line(s) | 84 | public: | |||
---|---|---|---|---|---|
237 | QStringList sdFileList(); | 237 | QStringList sdFileList(); | ||
238 | 238 | | |||
239 | /** | 239 | /** | ||
240 | * @brief Check if an sd card is mounted on the printer | 240 | * @brief Check if an sd card is mounted on the printer | ||
241 | * @return True if card mounted | 241 | * @return True if card mounted | ||
242 | */ | 242 | */ | ||
243 | bool isSdMounted() const; | 243 | bool isSdMounted() const; | ||
244 | 244 | | |||
245 | /** | ||||
246 | * @brief isSdWriting | ||||
247 | * @return true if writing to sd card | ||||
248 | */ | ||||
249 | bool isSdWriting() const; | ||||
250 | | ||||
245 | signals: | 251 | signals: | ||
246 | 252 | | |||
247 | /** | 253 | /** | ||
248 | * @brief Message emit from atcore these should be displayed to the user for debug. | 254 | * @brief Message emit from atcore these should be displayed to the user for debug. | ||
249 | * | 255 | * | ||
250 | * Possable Messages Are: | 256 | * Possable Messages Are: | ||
251 | * - Waiting for firmware detect. | 257 | * - Waiting for firmware detect. | ||
252 | * - No Plugin found for (detected FW) | 258 | * - No Plugin found for (detected FW) | ||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
298 | */ | 304 | */ | ||
299 | void sdMountChanged(bool newState); | 305 | void sdMountChanged(bool newState); | ||
300 | 306 | | |||
301 | /** | 307 | /** | ||
302 | * @brief The files on the sd card have changed. | 308 | * @brief The files on the sd card have changed. | ||
303 | */ | 309 | */ | ||
304 | void sdCardFileListChanged(const QStringList &fileList); | 310 | void sdCardFileListChanged(const QStringList &fileList); | ||
305 | 311 | | |||
312 | /** | ||||
313 | * @brief WriteToSD precentage changed. | ||||
314 | * @param newProgress. | ||||
315 | */ | ||||
316 | void sdWriteProgressChanged(float newProgress); | ||||
patrickelectric: Do you have a progress function in another PR that is changing from float to int, why are you… | |||||
317 | | ||||
tcanabrava: Don’t const ref floats, pass by value | |||||
318 | /** | ||||
319 | * @brief sdWriteChanged | ||||
320 | * @param writing: true if writing to file. | ||||
321 | */ | ||||
322 | void sdWriteChanged(bool writing); | ||||
323 | | ||||
306 | public slots: | 324 | public slots: | ||
307 | 325 | | |||
308 | /** | 326 | /** | ||
309 | * @brief Set the printers state | 327 | * @brief Set the printers state | ||
310 | * @param state : printer state. | 328 | * @param state : printer state. | ||
311 | * @sa state(),stateChanged(),AtCore::STATES | 329 | * @sa state(),stateChanged(),AtCore::STATES | ||
312 | */ | 330 | */ | ||
313 | void setState(AtCore::STATES state); | 331 | void setState(AtCore::STATES state); | ||
▲ Show 20 Lines • Show All 154 Lines • ▼ Show 20 Line(s) | |||||
468 | */ | 486 | */ | ||
469 | Q_INVOKABLE void sdDelete(const QString &fileName); | 487 | Q_INVOKABLE void sdDelete(const QString &fileName); | ||
470 | 488 | | |||
471 | /** | 489 | /** | ||
472 | * @brief Queue the Printer for status of sd card print | 490 | * @brief Queue the Printer for status of sd card print | ||
473 | */ | 491 | */ | ||
474 | void sdCardPrintStatus(); | 492 | void sdCardPrintStatus(); | ||
475 | 493 | | |||
494 | /** | ||||
495 | * @brief Write a file to the machines SdCard | ||||
496 | * @param fileName: Local file to send to machine | ||||
497 | * @return True if successful | ||||
498 | */ | ||||
499 | bool writeFiletoSd(const QString &fileName); | ||||
patrickelectric: ToSd | |||||
500 | | ||||
476 | private slots: | 501 | private slots: | ||
477 | /** | 502 | /** | ||
478 | * @brief processQueue send commands from the queue. | 503 | * @brief processQueue send commands from the queue. | ||
479 | */ | 504 | */ | ||
480 | void processQueue(); | 505 | void processQueue(); | ||
481 | 506 | | |||
482 | /** | 507 | /** | ||
483 | * @brief Send M105 to the printer if one is not in the Queue | 508 | * @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 ?