MythTV  master
Public Member Functions | Private Attributes | List of all members
VideoDevice Class Reference
Inheritance diagram for VideoDevice:
Inheritance graph
Collaboration diagram for VideoDevice:
Collaboration graph

Public Member Functions

 VideoDevice (const CaptureCard &parent, uint minor_min=0, uint minor_max=UINT_MAX, const QString &card=QString(), const QRegularExpression &driver=QRegularExpression())
void fillSelectionsFromDir (const QDir &dir, bool absPath=true)
uint fillSelectionsFromDir (const QDir &dir, uint minor_min, uint minor_max, const QString &card, const QRegularExpression &driver, bool allow_duplicates)
QString Driver (void) const
QString Card (void) const
- Public Member Functions inherited from CaptureCardComboBoxSetting
 CaptureCardComboBoxSetting (const CaptureCard &parent, bool rw, const QString &setting)
- Public Member Functions inherited from MythUIComboBoxSetting
void setValue (int value) override
int getValueIndex (const QString &value) const
QString getValueLabel (void) const
void resultEdit (DialogCompletionEvent *dce) override
void edit (MythScreenType *screen) override
void addSelection (const QString &label, QString value=QString(), bool select=false)
void clearSelections ()
void fillSelectionsFromDir (const QDir &dir, bool absPath=true)
void updateButton (MythUIButtonListItem *item) override
 This method is called whenever the UI need to reflect a change Reimplement this If you widget need a custom look. More...
virtual int size (void) const
- Public Member Functions inherited from StandardSetting
virtual void setLabel (QString str)
QString getLabel (void) const
virtual void setHelpText (const QString &str)
QString getHelpText (void) const
virtual void setName (const QString &name)
QString getName (void) const
StandardSettingbyName (const QString &name)
bool isVisible (void) const
bool isEnabled () const
bool isReadOnly () const
bool haveChanged ()
 Return true if the setting have changed or any of its children. More...
void setChanged (bool changed)
StandardSettinggetParent () const
virtual QString getValue (void) const
void SetDBValue (const QString &val) override
QString GetDBValue (void) const override
MythUIButtonListItemcreateButton (MythUIButtonList *list)
virtual void addChild (StandardSetting *child)
virtual void removeChild (StandardSetting *child)
virtual QList< StandardSetting * > * getSubSettings ()
virtual bool haveSubSettings ()
virtual void clearSettings ()
void clearTargetedSettings (const QString &value)
virtual void Load (void)
virtual void Save (void)
virtual void Open (void)
virtual void Close (void)
StorageGetStorage (void) const
void addTargetedChild (const QString &value, StandardSetting *setting)
void addTargetedChildren (const QString &value, std::initializer_list< StandardSetting * > settings)
void removeTargetedChild (const QString &value, StandardSetting *child)
virtual bool keyPressEvent (QKeyEvent *event)
void MoveToThread (QThread *thread)
- Public Member Functions inherited from StorageUser
virtual ~StorageUser ()=default

Private Attributes

QMap< uint, uintm_minorList
QString m_cardName
QString m_driverName

Additional Inherited Members

- Public Slots inherited from MythUIComboBoxSetting
void setValue (const QString &newValue) override
- Public Slots inherited from StandardSetting
virtual void setEnabled (bool enabled)
virtual void setReadOnly (bool readonly)
void setVisible (bool visible)
virtual void setValue (const QString &newValue)
virtual void childChanged (StandardSetting *)
- Signals inherited from StandardSetting
void valueChanged (const QString &newValue)
void valueChanged (StandardSetting *setting)
void ShouldRedraw (StandardSetting *setting)
void settingsChanged (StandardSetting *selectedSetting=nullptr)
void ChangeSaved ()
void helpTextChanged (const QString &newValue)
- Protected Member Functions inherited from MythUIComboBoxSetting
 MythUIComboBoxSetting (Storage *_storage=nullptr, bool rw=false)
 Create a Setting Widget to select the value from a list. More...
 ~MythUIComboBoxSetting () override
- Protected Member Functions inherited from StandardSetting
 StandardSetting (Storage *_storage=nullptr)
 ~StandardSetting () override
void setParent (StandardSetting *parent)
- Protected Attributes inherited from MythUIComboBoxSetting
QVector< QString > m_labels
QVector< QString > m_values
- Protected Attributes inherited from StandardSetting
QString m_settingValue
bool m_enabled {true}
bool m_readonly {false}
QString m_label
QString m_helptext
QString m_name
bool m_visible {true}

Detailed Description

Definition at line 794 of file videosource.cpp.

Constructor & Destructor Documentation

◆ VideoDevice()

VideoDevice::VideoDevice ( const CaptureCard parent,
uint  minor_min = 0,
uint  minor_max = UINT_MAX,
const QString &  card = QString(),
const QRegularExpression &  driver = QRegularExpression() 

Definition at line 797 of file videosource.cpp.

Member Function Documentation

◆ fillSelectionsFromDir() [1/2]

void VideoDevice::fillSelectionsFromDir ( const QDir &  dir,
bool  absPath = true 
dirThe directory to open and search for devices.
absPathIgnored. The function always uses absolute paths.

Definition at line 832 of file videosource.cpp.

Referenced by VideoDevice().

◆ fillSelectionsFromDir() [2/2]

uint VideoDevice::fillSelectionsFromDir ( const QDir &  dir,
uint  minor_min,
uint  minor_max,
const QString &  card,
const QRegularExpression &  driver,
bool  allow_duplicates 

Definition at line 840 of file videosource.cpp.

◆ Driver()

QString VideoDevice::Driver ( void  ) const

Definition at line 900 of file videosource.cpp.

◆ Card()

QString VideoDevice::Card ( void  ) const

Definition at line 901 of file videosource.cpp.

Member Data Documentation

◆ m_minorList

QMap<uint, uint> VideoDevice::m_minorList

Definition at line 904 of file videosource.cpp.

Referenced by fillSelectionsFromDir().

◆ m_cardName

QString VideoDevice::m_cardName

Definition at line 905 of file videosource.cpp.

Referenced by Card().

◆ m_driverName

QString VideoDevice::m_driverName

Definition at line 906 of file videosource.cpp.

Referenced by Driver().

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