MythTV  master
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
FileAssociations Class Reference

#include <dbaccess.h>

Collaboration diagram for FileAssociations:
Collaboration graph


struct  file_association

Public Types

using association_list = std::vector< file_association >
using ext_ignore_list = std::vector< std::pair< QString, bool > >

Public Member Functions

bool add (file_association &fa)
bool get (unsigned int id, file_association &val) const
bool get (const QString &ext, file_association &val) const
bool remove (unsigned int id)
const association_listgetList () const
void getExtensionIgnoreList (ext_ignore_list &ext_ignore) const
void load_data ()

Static Public Member Functions

static FileAssociationsgetFileAssociation ()

Private Member Functions

 FileAssociations ()
 ~FileAssociations ()

Private Attributes

class FileAssociationsImpm_imp {nullptr}

Detailed Description

Definition at line 136 of file dbaccess.h.

Member Typedef Documentation

◆ association_list

Definition at line 154 of file dbaccess.h.

◆ ext_ignore_list

using FileAssociations::ext_ignore_list = std::vector<std::pair<QString, bool> >

Definition at line 155 of file dbaccess.h.

Constructor & Destructor Documentation

◆ FileAssociations()

FileAssociations::FileAssociations ( )

Definition at line 820 of file dbaccess.cpp.

◆ ~FileAssociations()

FileAssociations::~FileAssociations ( )

Definition at line 825 of file dbaccess.cpp.

Member Function Documentation

◆ getFileAssociation()

FileAssociations & FileAssociations::getFileAssociation ( )

◆ add()

bool FileAssociations::add ( file_association fa)

Definition at line 785 of file dbaccess.cpp.

◆ get() [1/2]

bool FileAssociations::get ( unsigned int  id,
file_association val 
) const

◆ get() [2/2]

bool FileAssociations::get ( const QString &  ext,
file_association val 
) const

◆ remove()

bool FileAssociations::remove ( unsigned int  id)

Definition at line 800 of file dbaccess.cpp.

◆ getList()

const FileAssociations::association_list & FileAssociations::getList ( ) const

◆ getExtensionIgnoreList()

void FileAssociations::getExtensionIgnoreList ( ext_ignore_list ext_ignore) const

Definition at line 810 of file dbaccess.cpp.

Referenced by VideoScannerThread::buildFileList(), and VideoListImp::buildFileList().

◆ load_data()

void FileAssociations::load_data ( )

Definition at line 815 of file dbaccess.cpp.

Referenced by getFileAssociation().

Member Data Documentation

◆ m_imp

class FileAssociationsImp* FileAssociations::m_imp {nullptr}

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