mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
30 lines
626 B
C
30 lines
626 B
C
|
#ifndef DRIVELISTMODELPOLLTHREAD_H
|
||
|
#define DRIVELISTMODELPOLLTHREAD_H
|
||
|
|
||
|
/*
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
* Copyright (C) 2020 Raspberry Pi (Trading) Limited
|
||
|
*/
|
||
|
|
||
|
#include <QThread>
|
||
|
#include "dependencies/drivelist/src/drivelist.hpp"
|
||
|
|
||
|
class DriveListModelPollThread : public QThread
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
DriveListModelPollThread(QObject *parent = nullptr);
|
||
|
~DriveListModelPollThread();
|
||
|
void start();
|
||
|
void stop();
|
||
|
|
||
|
protected:
|
||
|
bool _terminate;
|
||
|
virtual void run() override;
|
||
|
|
||
|
signals:
|
||
|
void newDriveList(std::vector<Drivelist::DeviceDescriptor> list);
|
||
|
};
|
||
|
|
||
|
#endif // DRIVELISTMODELPOLLTHREAD_H
|