mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
27 lines
531 B
C++
27 lines
531 B
C++
#ifndef DRIVEFORMATTHREAD_H
|
|
#define DRIVEFORMATTHREAD_H
|
|
|
|
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
* Copyright (C) 2020 Raspberry Pi (Trading) Limited
|
|
*/
|
|
|
|
#include <QThread>
|
|
|
|
class DriveFormatThread : public QThread
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
DriveFormatThread(const QByteArray &device, QObject *parent = nullptr);
|
|
virtual ~DriveFormatThread();
|
|
virtual void run();
|
|
|
|
signals:
|
|
void success();
|
|
void error(QString msg);
|
|
|
|
protected:
|
|
QByteArray _device;
|
|
};
|
|
|
|
#endif // DRIVEFORMATTHREAD_H
|