MythTV  master
mythbdinfo.h
Go to the documentation of this file.
1 #ifndef MYTHBDINFO_H
2 #define MYTHBDINFO_H
3 
4 #ifdef HAVE_LIBBLURAY
5 #include <libbluray/bluray.h>
6 #else
7 #include "libbluray/bluray.h"
8 #endif
9 
10 // Qt
11 #include <QCoreApplication>
12 
13 // MythTV
14 #include "libmythtv/mythtvexp.h"
15 
17 {
18  friend class MythBDBuffer;
19  Q_DECLARE_TR_FUNCTIONS(MythBDInfo)
20 
21  public:
22  explicit MythBDInfo(const QString &Filename);
23  ~MythBDInfo(void) = default;
24  bool IsValid (void) const;
25  QString GetLastError (void) const;
26  bool GetNameAndSerialNum(QString &Name, QString &SerialNum);
27 
28  protected:
29  static void GetNameAndSerialNum(BLURAY* BluRay, QString &Name,
30  QString &SerialNum, const QString &Filename,
31  const QString &LogPrefix);
32  QString m_name;
33  QString m_serialnumber;
34  QString m_lastError;
35  bool m_isValid { true };
36 
37  private:
38  Q_DISABLE_COPY(MythBDInfo)
39 };
40 
41 #endif // MYTHBDINFO_H
mythtvexp.h
MythBDBuffer::GetNameAndSerialNum
bool GetNameAndSerialNum(QString &Name, QString &SerialNum) override
Definition: mythbdbuffer.cpp:1256
MythBDInfo::m_serialnumber
QString m_serialnumber
Definition: mythbdinfo.h:33
MythBDBuffer
Definition: mythbdbuffer.h:19
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
MythBDInfo
Definition: mythbdinfo.h:16
Name
Definition: channelsettings.cpp:71
MythMediaBuffer::GetLastError
QString GetLastError(void) const
Definition: mythmediabuffer.cpp:1766
MythBDInfo::m_name
QString m_name
Definition: mythbdinfo.h:32
MythBDInfo::m_lastError
QString m_lastError
Definition: mythbdinfo.h:34