MythTV  master
mythdrmconnector.h
Go to the documentation of this file.
1 #ifndef MYTHDRMCONNECTOR_H
2 #define MYTHDRMCONNECTOR_H
3 
4 // MythTV
8 
9 using Encoders = std::vector<uint32_t>;
10 using DRMConn = std::shared_ptr<class MythDRMConnector>;
11 using DRMConns = std::vector<DRMConn>;
12 
14 {
15  public:
16  static DRMConn Create(int FD, uint32_t Id);
17  static DRMConn GetConnector(const DRMConns& Connectors, uint32_t Id);
18  static DRMConns GetConnectors(int FD);
19  static QString GetConnectorName(uint32_t Type, uint32_t Id);
20  static DRMConn GetConnectorByName(const DRMConns& Connectors, const QString& Name);
21  bool Connected() const;
22 
23  uint32_t m_id { 0 };
24  uint32_t m_encoderId { 0 };
25  uint32_t m_type { DRM_MODE_CONNECTOR_Unknown };
26  uint32_t m_typeId { 0 };
27  QString m_name;
28  drmModeConnection m_state { DRM_MODE_UNKNOWNCONNECTION };
29  uint32_t m_mmWidth { 0 };
30  uint32_t m_mmHeight { 0 };
33 
34  protected:
35  MythDRMConnector(int FD, uint32_t Id);
36 
37  private:
38  Q_DISABLE_COPY(MythDRMConnector)
39 };
40 
41 #endif
mythdrmproperty.h
DRMProps
std::vector< DRMProp > DRMProps
Definition: mythdrmproperty.h:8
MUI_PUBLIC
#define MUI_PUBLIC
Definition: mythuiexp.h:9
MythDRMConnector::m_modes
DRMModes m_modes
Definition: mythdrmconnector.h:31
mythdrmresources.h
MythDRMConnector
A wrapper around a DRM connector object.
Definition: mythdrmconnector.h:13
DRMConn
std::shared_ptr< class MythDRMConnector > DRMConn
Definition: mythdrmconnector.h:10
DRMModes
std::vector< DRMMode > DRMModes
Definition: mythdrmmode.h:8
MythDRMConnector::m_properties
DRMProps m_properties
Definition: mythdrmconnector.h:32
Name
Definition: channelsettings.cpp:46
DRMConns
std::vector< DRMConn > DRMConns
Definition: mythdrmconnector.h:11
mythdrmmode.h
Encoders
std::vector< uint32_t > Encoders
Definition: mythdrmconnector.h:9
MythDRMConnector::m_name
QString m_name
Definition: mythdrmconnector.h:27