DeviceFinder: Add typedef DeviceList

This commit is contained in:
Jonas Kvinge
2023-06-01 18:43:43 +02:00
parent 8e14ef7c0c
commit a5a29f7ad3
15 changed files with 29 additions and 42 deletions

View File

@@ -40,6 +40,7 @@ class DeviceFinder {
int card;
int device;
};
using DeviceList = QList<Device>;
virtual ~DeviceFinder() {}
@@ -51,7 +52,7 @@ class DeviceFinder {
virtual bool Initialize() = 0;
// Returns a list of available devices.
virtual QList<Device> ListDevices() = 0;
virtual DeviceList ListDevices() = 0;
protected:
explicit DeviceFinder(const QString &name, const QStringList &outputs);