MythTV  master
mediamonitor-darwin.h
Go to the documentation of this file.
1 #ifndef MYTH_MEDIA_MONITOR_DARWIN_H
2 #define MYTH_MEDIA_MONITOR_DARWIN_H
3 
4 #define DEFAULT_DVD "disk1"
5 #define DEFAULT_CD "disk1"
6 
8 {
9  public:
10  MonitorThreadDarwin(MediaMonitor* pMon, unsigned long interval)
11  : MonitorThread(pMon, interval) {};
12 
13  void run(void) override; // MThread
14 
15  void diskInsert(const char *devName,
16  const char *volName, QString model, bool isCDorDVD = 1);
17  void diskRemove(QString devName);
18  void diskRename(const char *devName, const char *volName);
19 };
20 
22 {
23  public:
24  MediaMonitorDarwin(QObject* par, unsigned long interval, bool allowEject)
25  : MediaMonitor(par, interval, allowEject) {};
26 
27  void StartMonitoring(void) override; // MediaMonitor
28  bool AddDevice(MythMediaDevice* pDevice) override; // MediaMonitor
29  QStringList GetCDROMBlockDevices(void) override; // MediaMonitor
30 };
31 #endif // MYTH_MEDIA_MONITOR_DARWIN_H
void StartMonitoring(void) override
Start the monitoring thread if needed.
void diskRename(const char *devName, const char *volName)
Deal with the user, or another program, renaming a volume.
bool AddDevice(MythMediaDevice *pDevice) override
Simpler version of MediaMonitorUnix::AddDevice()
void diskInsert(const char *devName, const char *volName, QString model, bool isCDorDVD=1)
Create a MythMedia instance and insert in MythMediaMonitor list.
void run(void) override
Use the DiskArbitration Daemon to inform us of media changes.
void diskRemove(QString devName)
QStringList GetCDROMBlockDevices(void) override
List of CD/DVD devices.
MediaMonitorDarwin(QObject *par, unsigned long interval, bool allowEject)
This currently depends on Apple's DiskArbitration framework.
MonitorThreadDarwin(MediaMonitor *pMon, unsigned long interval)