KSaneCore

finddevicesthread.h
1/*
2 * SPDX-FileCopyrightText: 2007-2008 Kare Sars <kare dot sars at iki dot fi>
3 * SPDX-FileCopyrightText: 2014 Gregor Mitsch : port to KDE5 frameworks
4 *
5 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6 */
7
8#ifndef KSANE_FIND_DEVICES_THREAD_H
9#define KSANE_FIND_DEVICES_THREAD_H
10
11#include "deviceinformation.h"
12#include "interface.h"
13
14#include <QThread>
15#include <QList>
16
17namespace KSaneCore
18{
19
20class FindSaneDevicesThread : public QThread
21{
23
24public:
25 static FindSaneDevicesThread *getInstance();
26 ~FindSaneDevicesThread() override;
27 void run() override;
28
29 QList<DeviceInformation *> devicesList() const;
30 void setDeviceType(const Interface::DeviceType type);
31
32private:
33 FindSaneDevicesThread();
34
35 QList<DeviceInformation *> m_deviceList;
36 Interface::DeviceType m_deviceType = Interface::AllDevices;
37};
38
39} // namespace KSaneCore
40
41#endif // KSANE_FIND_DEVICES_THREAD_H
DeviceType
This enumeration is used to filter the devices found by SANE.
Definition interface.h:98
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:49:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.