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
[legend]

Classes

struct  file_association
 

Public Types

typedef std::vector< file_associationassociation_list
 
typedef std::vector< std::pair< QString, bool > > ext_ignore_list
 

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 135 of file dbaccess.h.

Member Typedef Documentation

◆ association_list

Definition at line 153 of file dbaccess.h.

◆ ext_ignore_list

typedef std::vector<std::pair<QString, bool> > FileAssociations::ext_ignore_list

Definition at line 154 of file dbaccess.h.

Constructor & Destructor Documentation

◆ FileAssociations()

FileAssociations::FileAssociations ( )
private

Definition at line 825 of file dbaccess.cpp.

◆ ~FileAssociations()

FileAssociations::~FileAssociations ( )
private

Definition at line 830 of file dbaccess.cpp.

Member Function Documentation

◆ getFileAssociation()

FileAssociations & FileAssociations::getFileAssociation ( )
static

◆ add()

bool FileAssociations::add ( file_association fa)

Definition at line 790 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 805 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 815 of file dbaccess.cpp.

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

◆ load_data()

void FileAssociations::load_data ( )

Definition at line 820 of file dbaccess.cpp.

Referenced by getFileAssociation().

Member Data Documentation

◆ m_imp

class FileAssociationsImp* FileAssociations::m_imp {nullptr}
private

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