MythTV  master
mythcdrom.h
Go to the documentation of this file.
1 #ifndef MYTHCDROM_H
2 #define MYTHCDROM_H
3 
4 #include "mythmedia.h"
5 
7 {
8  Q_OBJECT
9  protected:
10  MythCDROM(QObject* par, const char* DevicePath, bool SuperMount,
11  bool AllowEject);
12  public:
13  virtual ~MythCDROM() = default;
14 
15  virtual bool mediaChanged(void) { return false; }
16  virtual bool checkOK(void) { return true; }
17  MythMediaStatus checkMedia(void) override // MythMediaDevice
18  {
19  return setStatus(MEDIASTAT_UNKNOWN, false);
20  }
21  void setDeviceSpeed(const char *devicePath, int speed) override; // MythMediaDevice
22 
23  static MythCDROM* get(QObject* par, const char* devicePath,
24  bool SuperMount, bool AllowEject);
25 
26  typedef enum
27  {
30  kDVD
31  }ImageType;
32 
33  static ImageType inspectImage(const QString& path);
34 
35  protected:
36  void onDeviceMounted() override; // MythMediaDevice
37 };
38 
39 #endif
virtual bool checkOK(void)
Definition: mythcdrom.h:16
virtual void setDeviceSpeed(const char *, int)
Definition: mythmedia.h:100
MythMediaStatus checkMedia(void) override
Definition: mythcdrom.h:17
MythMediaStatus setStatus(MythMediaStatus newStat, bool CloseIt=false)
Definition: mythmedia.cpp:469
#define MBASE_PUBLIC
Definition: mythbaseexp.h:15
virtual bool mediaChanged(void)
Definition: mythcdrom.h:15
virtual void onDeviceMounted(void)
Override this to perform any post mount logic.
Definition: mythmedia.h:133
ImageType
Definition: musicmetadata.h:26
MythMediaStatus
Definition: mythmedia.h:12