mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Same legal entity, just a company name change. https://find-and-update.company-information.service.gov.uk/company/08207441/filing-history
29 lines
612 B
C++
29 lines
612 B
C++
#ifndef DRIVELISTMODELPOLLTHREAD_H
|
|
#define DRIVELISTMODELPOLLTHREAD_H
|
|
|
|
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
* Copyright (C) 2020 Raspberry Pi Ltd
|
|
*/
|
|
|
|
#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
|