| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#pragma once |
| 6 |
#include "formatdialog.h" |
| 7 |
|
| 8 |
#include <DWidget> |
| 9 |
#include <DFrame> |
| 10 |
#include <DLabel> |
| 11 |
#include <DSuggestButton> |
| 12 |
#include <bminterface.h> |
| 13 |
#include <QListWidgetItem> |
| 14 |
|
| 15 |
DWIDGET_USE_NAMESPACE |
| 16 |
|
| 17 |
class DeviceInfo; |
| 18 |
class UsbSelectView : public DWidget |
| 19 |
{ |
| 20 |
Q_OBJECT |
| 21 |
public: |
| 22 |
explicit UsbSelectView(DWidget *parent = nullptr); |
| 23 |
|
| 24 |
signals: |
| 25 |
void deviceSelected(const QString &partition, bool format); |
| 26 |
void finish(quint32 error, const QString &title, const QString &description); |
| 27 |
void backToPrevUI(); |
| 28 |
|
| 29 |
public slots: |
| 30 |
void getIsoFileSelectedPath(QString isoPath); |
| 31 |
void resetStartInstall(); |
| 32 |
|
| 33 |
private: |
| 34 |
QList<DeviceInfo> m_mountDevs; |
| 35 |
QListWidgetItem *m_previous = nullptr; |
| 36 |
DSuggestButton *m_start = nullptr; |
| 37 |
}; |
| 38 |
|