AtCore 1.0.72
AtCore is a API to manage the serial connection between the computer and 3D Printers.
Loading...
Searching...
No Matches
sdwidget.h
Go to the documentation of this file.
1/* AtCore KDE Libary for 3D Printers
2 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
3 SPDX-FileCopyrightText: 2018, 2020 Chris Rizzitello <rizzitello@kde.org>
4*/
5
6#pragma once
7
8#include <QWidget>
9
10#include "atcorewidgets_export.h"
11
12class QListWidget;
17class ATCOREWIDGETS_EXPORT SdWidget : public QWidget
18{
19 Q_OBJECT
20public:
25 explicit SdWidget(QWidget *parent = nullptr);
26 ~SdWidget() = default;
27
32 void updateFilelist(const QStringList &fileList);
33signals:
38
43 void printSdFile(const QString &fileName);
44
49 void deleteSdFile(const QString &fileName);
50
51private:
52 QListWidget *listSdFiles = nullptr;
53};
The SdWidget class Provide basic Sd card actions. Requires Fw Support.
Definition sdwidget.h:18
void printSdFile(const QString &fileName)
User has selected to print a file for the sd card.
void deleteSdFile(const QString &fileName)
User has selected to delete a file for the sd card.
~SdWidget()=default
void requestSdList()
request a list of files on the card.