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