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/macscreensaver.cpp
core/macfslistener.mm core/macfslistener.mm
widgets/osd_mac.mm widgets/osd_mac.mm
engine/osxdevicefinder.cpp engine/macosdevicefinder.cpp
globalshortcuts/globalshortcutbackend-macos.mm globalshortcuts/globalshortcutbackend-macos.mm
globalshortcuts/globalshortcutgrabber-macos.mm globalshortcuts/globalshortcutgrabber-macos.mm
HEADERS HEADERS

View File

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

View File

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

View File

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