Rename macos device finder

This commit is contained in:
Jonas Kvinge 2019-01-01 20:22:19 +01:00
parent faee781042
commit 4641115314
4 changed files with 13 additions and 10 deletions

View File

@ -838,7 +838,7 @@ optional_source(APPLE
core/macscreensaver.cpp
core/macfslistener.mm
widgets/osd_mac.mm
engine/osxdevicefinder.cpp
engine/macosdevicefinder.cpp
globalshortcuts/globalshortcutbackend-macos.mm
globalshortcuts/globalshortcutgrabber-macos.mm
HEADERS

View File

@ -38,7 +38,7 @@
#endif
#ifdef Q_OS_MACOS
# include "osxdevicefinder.h"
# include "macosdevicefinder.h"
#endif
#ifdef Q_OS_WIN32

View File

@ -27,10 +27,11 @@
#include <QList>
#include <QString>
#include "osxdevicefinder.h"
#include "core/logging.h"
#include "core/scoped_cftyperef.h"
#include "macosdevicefinder.h"
namespace {
template <typename T>
@ -61,11 +62,11 @@ std::unique_ptr<T> GetProperty(const AudioDeviceID& device_id, const AudioObject
} // namespace
OsxDeviceFinder::OsxDeviceFinder()
MacOsDeviceFinder::MacOsDeviceFinder()
: DeviceFinder("osxaudio", { "osxaudio", "osx", "osxaudiosink"} ) {
}
QList<DeviceFinder::Device> OsxDeviceFinder::ListDevices() {
QList<DeviceFinder::Device> MacOsDeviceFinder::ListDevices() {
QList<Device> ret;

View File

@ -18,21 +18,23 @@
*
*/
#ifndef OSXDEVICEFINDER_H
#define OSXDEVICEFINDER_H
#ifndef MACOSDEVICEFINDER_H
#define MACOSDEVICEFINDER_H
#include "config.h"
#include <stdbool.h>
#include <QList>
#include "devicefinder.h"
class OsxDeviceFinder : public DeviceFinder {
class MacOsDeviceFinder : public DeviceFinder {
public:
OsxDeviceFinder();
MacOsDeviceFinder();
virtual bool Initialise() { return true; }
virtual QList<Device> ListDevices();
};
#endif // OSXDEVICEFINDER_H
#endif // MACOSDEVICEFINDER_H