This currently depends on Apple's DiskArbitration framework. More...
#include <mediamonitor-darwin.h>
Public Member Functions | |
| MediaMonitorDarwin (QObject *par, unsigned long interval, bool allowEject) | |
| virtual void | StartMonitoring (void) |
| Start the monitoring thread if needed. | |
| virtual bool | AddDevice (MythMediaDevice *pDevice) |
| Simpler version of MediaMonitorUnix::AddDevice(). | |
| QStringList | GetCDROMBlockDevices (void) |
| List of CD/DVD devices. | |
This currently depends on Apple's DiskArbitration framework.
Only recent versions of OS X have this.
Definition at line 21 of file mediamonitor-darwin.h.
| MediaMonitorDarwin::MediaMonitorDarwin | ( | QObject * | par, | |
| unsigned long | interval, | |||
| bool | allowEject | |||
| ) | [inline] |
Definition at line 24 of file mediamonitor-darwin.h.
| void MediaMonitorDarwin::StartMonitoring | ( | void | ) | [virtual] |
Start the monitoring thread if needed.
Reimplemented from MediaMonitor.
Definition at line 518 of file mediamonitor-darwin.cpp.
| bool MediaMonitorDarwin::AddDevice | ( | MythMediaDevice * | pDevice | ) | [virtual] |
Simpler version of MediaMonitorUnix::AddDevice().
This doesn't do the stat() or duplicate checking.
Implements MediaMonitor.
Definition at line 549 of file mediamonitor-darwin.cpp.
| QStringList MediaMonitorDarwin::GetCDROMBlockDevices | ( | void | ) | [virtual] |
List of CD/DVD devices.
On Unix, this returns a list of /dev nodes which can be open()d. Darwin doesn't have fixed devices for removables/pluggables, so this method is actually useless as it stands. In the long term, this method should return both a name, and an opaque type? (for the IOKit io_object_t)
Implements MediaMonitor.
Definition at line 629 of file mediamonitor-darwin.cpp.
1.6.3