MythTV  master
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
MythDRMProperty Class Reference

A wrapper around a DRM object property. More...

#include <mythdrmproperty.h>

Inheritance diagram for MythDRMProperty:
Inheritance graph
[legend]

Public Types

enum  Type {
  Invalid = 0, Range, Enum, Bitmask,
  Blob, Object, SignedRange
}
 

Public Member Functions

virtual ~MythDRMProperty ()=default
 
virtual QString ToString ()
 

Static Public Member Functions

static DRMProps GetProperties (int FD, uint32_t ObjectId, uint32_t ObjectType)
 
static DRMProp GetProperty (const QString &Name, const DRMProps &Properties)
 

Public Attributes

Type m_type { Invalid }
 
uint32_t m_id { 0 }
 
bool m_readOnly { true }
 
bool m_atomic { false }
 
QString m_name
 

Protected Member Functions

 MythDRMProperty (Type mType, uint32_t Id, uint32_t Flags, const char *Name)
 

Detailed Description

A wrapper around a DRM object property.

Retrieve a list of the properties available for an object with GetProperties and retrieve a single, named property from a given list with GetProperty.

Note
Property values represent the initial property state and will not reflect subsequent changes unless explicitly updated.

Definition at line 10 of file mythdrmproperty.h.

Member Enumeration Documentation

◆ Type

Enumerator
Invalid 
Range 
Enum 
Bitmask 
Blob 
Object 
SignedRange 

Definition at line 13 of file mythdrmproperty.h.

Constructor & Destructor Documentation

◆ ~MythDRMProperty()

virtual MythDRMProperty::~MythDRMProperty ( )
virtualdefault

◆ MythDRMProperty()

MythDRMProperty::MythDRMProperty ( Type  mType,
uint32_t  Id,
uint32_t  Flags,
const char *  Name 
)
protected

Definition at line 16 of file mythdrmproperty.cpp.

Member Function Documentation

◆ GetProperties()

DRMProps MythDRMProperty::GetProperties ( int  FD,
uint32_t  ObjectId,
uint32_t  ObjectType 
)
static

◆ GetProperty()

DRMProp MythDRMProperty::GetProperty ( const QString &  Name,
const DRMProps Properties 
)
static

◆ ToString()

virtual QString MythDRMProperty::ToString ( )
inlinevirtual

Reimplemented in MythDRMEnumProperty, MythDRMSignedRangeProperty, and MythDRMRangeProperty.

Definition at line 27 of file mythdrmproperty.h.

Member Data Documentation

◆ m_type

Type MythDRMProperty::m_type { Invalid }

Definition at line 29 of file mythdrmproperty.h.

Referenced by MythDRMBitmaskProperty::MythDRMBitmaskProperty().

◆ m_id

uint32_t MythDRMProperty::m_id { 0 }

Definition at line 30 of file mythdrmproperty.h.

◆ m_readOnly

bool MythDRMProperty::m_readOnly { true }

Definition at line 31 of file mythdrmproperty.h.

◆ m_atomic

bool MythDRMProperty::m_atomic { false }

Definition at line 32 of file mythdrmproperty.h.

◆ m_name

QString MythDRMProperty::m_name

The documentation for this class was generated from the following files: