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 <libmythmetadata/dbaccess.h>

Collaboration diagram for FileAssociations:
[legend]

Classes

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 ( )
private

Definition at line 826 of file dbaccess.cpp.

◆ ~FileAssociations()

FileAssociations::~FileAssociations ( )
private

Definition at line 831 of file dbaccess.cpp.

Member Function Documentation

◆ getFileAssociation()

FileAssociations & FileAssociations::getFileAssociation ( )
static

◆ add()

bool FileAssociations::add ( file_association fa)

Definition at line 791 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)

◆ getList()

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

◆ getExtensionIgnoreList()

void FileAssociations::getExtensionIgnoreList ( ext_ignore_list ext_ignore) const

◆ load_data()

void FileAssociations::load_data ( )

Definition at line 821 of file dbaccess.cpp.

Referenced by getFileAssociation().

Member Data Documentation

◆ m_imp

class FileAssociationsImp* FileAssociations::m_imp {nullptr}
private

Definition at line 177 of file dbaccess.h.

Referenced by add(), get(), getExtensionIgnoreList(), getList(), load_data(), remove(), and ~FileAssociations().


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