Changeset View
Changeset View
Standalone View
Standalone View
src/core/atcore.h
Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Line(s) | 84 | public: | |||
---|---|---|---|---|---|
151 | Q_INVOKABLE bool initSerial(const QString &port, int baud, bool disableROC = false); | 151 | Q_INVOKABLE bool initSerial(const QString &port, int baud, bool disableROC = false); | ||
152 | 152 | | |||
153 | /** | 153 | /** | ||
154 | * @brief Returns a list of valid baud speeds | 154 | * @brief Returns a list of valid baud speeds | ||
155 | */ | 155 | */ | ||
156 | QStringList portSpeeds() const; | 156 | QStringList portSpeeds() const; | ||
157 | 157 | | |||
158 | /** | 158 | /** | ||
159 | * @brief Main access to the serialLayer | | |||
160 | * @return Current serialLayer | | |||
161 | * @sa initSerial(),serialPorts(),closeConnection() | | |||
162 | */ | | |||
163 | SerialLayer *serial() const; | | |||
164 | | ||||
165 | /** | | |||
166 | * @brief Close the current serial connection | 159 | * @brief Close the current serial connection | ||
167 | * @sa initSerial(),serial(),serialPorts(),AtCore::close() | 160 | * @sa initSerial(),serial(),serialPorts(),AtCore::close() | ||
168 | */ | 161 | */ | ||
169 | Q_INVOKABLE void closeConnection(); | 162 | Q_INVOKABLE void closeConnection(); | ||
170 | 163 | | |||
171 | /** | 164 | /** | ||
172 | * @brief Main access to the loaded firmware plugin | 165 | * @brief Main access to the loaded firmware plugin | ||
173 | * @return IFirmware * to currently loaded plugin | 166 | * @return IFirmware * to currently loaded plugin | ||
▲ Show 20 Lines • Show All 124 Lines • ▼ Show 20 Line(s) | 238 | signals: | |||
298 | */ | 291 | */ | ||
299 | void sdMountChanged(bool newState); | 292 | void sdMountChanged(bool newState); | ||
300 | 293 | | |||
301 | /** | 294 | /** | ||
302 | * @brief The files on the sd card have changed. | 295 | * @brief The files on the sd card have changed. | ||
303 | */ | 296 | */ | ||
304 | void sdCardFileListChanged(const QStringList &fileList); | 297 | void sdCardFileListChanged(const QStringList &fileList); | ||
305 | 298 | | |||
299 | /** | ||||
300 | * @brief pushedCommand via serialLayer connect this to your log to see send commands | ||||
301 | * @param comm: the command sent. | ||||
302 | */ | ||||
303 | void pushedCommand(const QByteArray &comm); | ||||
304 | | ||||
306 | public slots: | 305 | public slots: | ||
307 | 306 | | |||
308 | /** | 307 | /** | ||
309 | * @brief Set the printers state | 308 | * @brief Set the printers state | ||
310 | * @param state : printer state. | 309 | * @param state : printer state. | ||
311 | * @sa state(),stateChanged(),AtCore::STATES | 310 | * @sa state(),stateChanged(),AtCore::STATES | ||
312 | */ | 311 | */ | ||
313 | void setState(AtCore::STATES state); | 312 | void setState(AtCore::STATES state); | ||
▲ Show 20 Lines • Show All 172 Lines • ▼ Show 20 Line(s) | 475 | private slots: | |||
486 | 485 | | |||
487 | /** | 486 | /** | ||
488 | * @brief Connect to SerialLayer::receivedCommand | 487 | * @brief Connect to SerialLayer::receivedCommand | ||
489 | * @param message: new message. | 488 | * @param message: new message. | ||
490 | */ | 489 | */ | ||
491 | void newMessage(const QByteArray &message); | 490 | void newMessage(const QByteArray &message); | ||
492 | 491 | | |||
493 | /** | 492 | /** | ||
493 | * @brief Connect to SerialLayer::pushedCommand | ||||
494 | * @param command: newCommand. | ||||
495 | */ | ||||
496 | void newCommand(const QByteArray &command); | ||||
497 | | ||||
498 | /** | ||||
494 | * @brief Search for firmware string in message. | 499 | * @brief Search for firmware string in message. | ||
495 | * A Helper function for Firmware detection | 500 | * A Helper function for Firmware detection | ||
496 | * @param message | 501 | * @param message | ||
497 | */ | 502 | */ | ||
498 | void findFirmware(const QByteArray &message); | 503 | void findFirmware(const QByteArray &message); | ||
499 | 504 | | |||
500 | /** | 505 | /** | ||
501 | * @brief Search for new serial ports | 506 | * @brief Search for new serial ports | ||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |