Changeset View
Changeset View
Standalone View
Standalone View
src/core/ifirmware.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 40 | { | |||
---|---|---|---|---|---|
42 | Q_PROPERTY(QString name READ name) | 42 | Q_PROPERTY(QString name READ name) | ||
43 | Q_PROPERTY(bool sdSupport READ isSdSupported) | 43 | Q_PROPERTY(bool sdSupport READ isSdSupported) | ||
44 | public: | 44 | public: | ||
45 | IFirmware(); | 45 | IFirmware(); | ||
46 | void init(AtCore *parent); | 46 | void init(AtCore *parent); | ||
47 | ~IFirmware() override = default; | 47 | ~IFirmware() override = default; | ||
48 | 48 | | |||
49 | /** | 49 | /** | ||
50 | * @brief calculate the checksum of a line | ||||
51 | * @param line: Line to be checksumed. | ||||
52 | * @return checksum of the line. | ||||
53 | */ | ||||
54 | virtual uint8_t checksum(QString line); | ||||
55 | | ||||
56 | /** | ||||
50 | * @brief Check for plugin support of sd cards. | 57 | * @brief Check for plugin support of sd cards. | ||
51 | * @return True if firmware plugin supports sd cards. | 58 | * @return True if firmware plugin supports sd cards. | ||
52 | */ | 59 | */ | ||
53 | virtual bool isSdSupported() const = 0; | 60 | virtual bool isSdSupported() const = 0; | ||
54 | 61 | | |||
55 | /** | 62 | /** | ||
56 | * @brief Virtual name to be reimplemented by Firmware plugin | 63 | * @brief Virtual name to be reimplemented by Firmware plugin | ||
57 | * | 64 | * | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |