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

A simple wrapper around libXNVCtrl - which is dynamically loaded on demand. More...

#include <mythnvcontrol.h>

Collaboration diagram for MythNVControl:
Collaboration graph
[legend]

Public Member Functions

 ~MythNVControl ()
 
int GetDisplayID () const
 

Static Public Member Functions

static NVControl Create ()
 Create a valid instance of MythNVControl. More...
 

Public Attributes

MythXDisplaym_display { nullptr }
 
QueryTargetBinary m_queryBinary { nullptr }
 
QueryScreenAttrib m_queryScreen { nullptr }
 
QueryTargetAttrib m_queryTarget { nullptr }
 
SetAttribute m_setAttrib { nullptr }
 

Protected Member Functions

 MythNVControl (const QString &Path, MythXDisplay *MDisplay)
 

Protected Attributes

QLibrary m_lib
 

Detailed Description

A simple wrapper around libXNVCtrl - which is dynamically loaded on demand.

Definition at line 38 of file mythnvcontrol.h.

Constructor & Destructor Documentation

◆ ~MythNVControl()

MythNVControl::~MythNVControl ( )

Definition at line 190 of file mythnvcontrol.cpp.

◆ MythNVControl()

MythNVControl::MythNVControl ( const QString &  Path,
MythXDisplay MDisplay 
)
protected

Definition at line 180 of file mythnvcontrol.cpp.

Referenced by Create().

Member Function Documentation

◆ Create()

NVControl MythNVControl::Create ( )
static

Create a valid instance of MythNVControl.

If libXNVCtrl is not found at the first attempt, this function will always return null. If libXNVCtrl is found but the current display does not support the extension, further attempts will be made in case the screen changes (to one which does support the extension).

Definition at line 135 of file mythnvcontrol.cpp.

Referenced by MythVRR::Create(), and MythGSync::ForceGSync().

◆ GetDisplayID()

int MythNVControl::GetDisplayID ( ) const

Definition at line 196 of file mythnvcontrol.cpp.

Member Data Documentation

◆ m_lib

QLibrary MythNVControl::m_lib
protected

Definition at line 48 of file mythnvcontrol.h.

Referenced by ~MythNVControl().

◆ m_display

MythXDisplay* MythNVControl::m_display { nullptr }

Definition at line 51 of file mythnvcontrol.h.

Referenced by GetDisplayID(), and ~MythNVControl().

◆ m_queryBinary

QueryTargetBinary MythNVControl::m_queryBinary { nullptr }

Definition at line 52 of file mythnvcontrol.h.

Referenced by GetDisplayID().

◆ m_queryScreen

QueryScreenAttrib MythNVControl::m_queryScreen { nullptr }

Definition at line 53 of file mythnvcontrol.h.

◆ m_queryTarget

QueryTargetAttrib MythNVControl::m_queryTarget { nullptr }

Definition at line 54 of file mythnvcontrol.h.

◆ m_setAttrib

SetAttribute MythNVControl::m_setAttrib { nullptr }

Definition at line 55 of file mythnvcontrol.h.


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