MythTV  master
Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
FileAssociationsImp Class Reference

Public Types

using file_association = FileAssociations::file_association
 
using association_list = FileAssociations::association_list
 
using ext_ignore_list = FileAssociations::ext_ignore_list
 

Public Member Functions

 FileAssociationsImp ()=default
 
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 ()
 
void cleanup ()
 

Public Attributes

QMutex m_mutex
 

Private Member Functions

void fill_from_db ()
 
association_list::iterator find (const QString &ext)
 
association_list::iterator find (unsigned int id)
 
association_list::const_iterator cfind (const QString &ext) const
 
association_list::const_iterator cfind (unsigned int id) const
 

Private Attributes

association_list m_fileAssociations
 
bool m_ready {false}
 

Detailed Description

Definition at line 583 of file dbaccess.cpp.

Member Typedef Documentation

◆ file_association

Definition at line 586 of file dbaccess.cpp.

◆ association_list

Definition at line 587 of file dbaccess.cpp.

◆ ext_ignore_list

Definition at line 588 of file dbaccess.cpp.

Constructor & Destructor Documentation

◆ FileAssociationsImp()

FileAssociationsImp::FileAssociationsImp ( )
default

Member Function Documentation

◆ add()

bool FileAssociationsImp::add ( file_association fa)
inline

Definition at line 593 of file dbaccess.cpp.

Referenced by FileAssociations::add().

◆ get() [1/2]

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

◆ get() [2/2]

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

◆ remove()

bool FileAssociationsImp::remove ( unsigned int  id)
inline

Definition at line 667 of file dbaccess.cpp.

Referenced by FileAssociations::remove().

◆ getList()

const association_list& FileAssociationsImp::getList ( ) const
inline

Definition at line 684 of file dbaccess.cpp.

Referenced by FileAssociations::getList().

◆ getExtensionIgnoreList()

void FileAssociationsImp::getExtensionIgnoreList ( ext_ignore_list ext_ignore) const
inline

Definition at line 689 of file dbaccess.cpp.

Referenced by FileAssociations::getExtensionIgnoreList().

◆ load_data()

void FileAssociationsImp::load_data ( )
inline

Definition at line 697 of file dbaccess.cpp.

Referenced by FileAssociations::load_data().

◆ cleanup()

void FileAssociationsImp::cleanup ( )
inline

Definition at line 707 of file dbaccess.cpp.

◆ fill_from_db()

void FileAssociationsImp::fill_from_db ( )
inlineprivate

Definition at line 714 of file dbaccess.cpp.

Referenced by load_data().

◆ find() [1/2]

association_list::iterator FileAssociationsImp::find ( const QString &  ext)
inlineprivate

Definition at line 732 of file dbaccess.cpp.

Referenced by add(), and remove().

◆ find() [2/2]

association_list::iterator FileAssociationsImp::find ( unsigned int  id)
inlineprivate

Definition at line 746 of file dbaccess.cpp.

◆ cfind() [1/2]

association_list::const_iterator FileAssociationsImp::cfind ( const QString &  ext) const
inlineprivate

Definition at line 756 of file dbaccess.cpp.

Referenced by get().

◆ cfind() [2/2]

association_list::const_iterator FileAssociationsImp::cfind ( unsigned int  id) const
inlineprivate

Definition at line 770 of file dbaccess.cpp.

Member Data Documentation

◆ m_mutex

QMutex FileAssociationsImp::m_mutex
mutable

Definition at line 695 of file dbaccess.cpp.

Referenced by load_data().

◆ m_fileAssociations

association_list FileAssociationsImp::m_fileAssociations
private

◆ m_ready

bool FileAssociationsImp::m_ready {false}
private

Definition at line 782 of file dbaccess.cpp.

Referenced by cleanup(), and load_data().


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