mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
parent
6069e8f441
commit
755d7dc6ab
8 changed files with 115 additions and 23 deletions
29
drivelistmodelpollthread.h
Normal file
29
drivelistmodelpollthread.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue