Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/sdwidget.h
Show All 15 Lines | 1 | /* AtCore Test Client | |||
---|---|---|---|---|---|
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | 17 | */ | ||
18 | #pragma once | 18 | #pragma once | ||
19 | 19 | | |||
20 | #include <QListWidget> | 20 | #include <QListWidget> | ||
21 | #include <QWidget> | 21 | #include <QWidget> | ||
22 | 22 | | |||
23 | #include "atcorewidgets_export.h" | 23 | #include "atcorewidgets_export.h" | ||
24 | /* Usage: | 24 | /** | ||
25 | * | 25 | * @brief The SdWidget class | ||
26 | * Create a instance of the sd widget. | 26 | * Provide basic Sd card actions. Requires Fw Support. | ||
27 | */ | 27 | */ | ||
28 | | ||||
29 | class ATCOREWIDGETS_EXPORT SdWidget : public QWidget | 28 | class ATCOREWIDGETS_EXPORT SdWidget : public QWidget | ||
30 | { | 29 | { | ||
31 | Q_OBJECT | 30 | Q_OBJECT | ||
32 | public: | 31 | public: | ||
32 | /** | ||||
33 | * @brief SdWidget | ||||
34 | * @param parent | ||||
35 | */ | ||||
33 | SdWidget(QWidget *parent = nullptr); | 36 | SdWidget(QWidget *parent = nullptr); | ||
37 | | ||||
38 | /** | ||||
39 | * @brief update the list of files on the card. | ||||
40 | * @param fileList | ||||
41 | */ | ||||
34 | void updateFilelist(const QStringList &fileList); | 42 | void updateFilelist(const QStringList &fileList); | ||
35 | signals: | 43 | signals: | ||
44 | /** | ||||
45 | * @brief request a list of files on the card. | ||||
46 | */ | ||||
36 | void requestSdList(); | 47 | void requestSdList(); | ||
48 | | ||||
49 | /** | ||||
50 | * @brief User has selected to print a file for the sd card. | ||||
51 | * @param fileName: file to print. | ||||
52 | */ | ||||
37 | void printSdFile(const QString &fileName); | 53 | void printSdFile(const QString &fileName); | ||
54 | | ||||
55 | /** | ||||
56 | * @brief User has selected to delete a file for the sd card. | ||||
57 | * @param fileName: file to delete | ||||
58 | */ | ||||
38 | void deleteSdFile(const QString &fileName); | 59 | void deleteSdFile(const QString &fileName); | ||
39 | 60 | | |||
40 | private: | 61 | private: | ||
41 | QListWidget *listSdFiles = nullptr; | 62 | QListWidget *listSdFiles = nullptr; | ||
42 | }; | 63 | }; |