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
MonitorThreadDarwin::MonitorThreadDarwin
MonitorThreadDarwin(MediaMonitor *pMon, unsigned long interval)
Definition: mediamonitor-darwin.h:10
MonitorThread
Definition: mythmediamonitor.h:30
MediaMonitorDarwin::AddDevice
bool AddDevice(MythMediaDevice *pDevice) override
Simpler version of MediaMonitorUnix::AddDevice()
Definition: mediamonitor-darwin.cpp:557
MediaMonitorDarwin::GetCDROMBlockDevices
QStringList GetCDROMBlockDevices(void) override
List of CD/DVD devices.
Definition: mediamonitor-darwin.cpp:634
MediaMonitorDarwin::MediaMonitorDarwin
MediaMonitorDarwin(QObject *par, unsigned long interval, bool allowEject)
Definition: mediamonitor-darwin.h:24
MonitorThreadDarwin::diskRemove
void diskRemove(QString devName)
Definition: mediamonitor-darwin.cpp:477
MonitorThreadDarwin::diskRename
void diskRename(const char *devName, const char *volName)
Deal with the user, or another program, renaming a volume.
Definition: mediamonitor-darwin.cpp:498
MediaMonitor
Definition: mythmediamonitor.h:44
MediaMonitorDarwin
This currently depends on Apple's DiskArbitration framework.
Definition: mediamonitor-darwin.h:22
MonitorThreadDarwin
Definition: mediamonitor-darwin.h:8
MonitorThreadDarwin::run
void run(void) override
Use the DiskArbitration Daemon to inform us of media changes.
Definition: mediamonitor-darwin.cpp:373
MythMediaDevice
Definition: mythmedia.h:49
MediaMonitorDarwin::StartMonitoring
void StartMonitoring(void) override
Start the monitoring thread if needed.
Definition: mediamonitor-darwin.cpp:530
MonitorThreadDarwin::diskInsert
void diskInsert(const char *devName, const char *volName, QString model, bool isCDorDVD=1)
Create a MythMedia instance and insert in MythMediaMonitor list.
Definition: mediamonitor-darwin.cpp:416