MythTV  master
Public Member Functions | Public Attributes | List of all members
DirCacheEntry Class Reference

Records dir info for every displayed dir. More...

#include <galleryviews.h>

Collaboration diagram for DirCacheEntry:
Collaboration graph
[legend]

Public Member Functions

 DirCacheEntry ()=default
 
 DirCacheEntry (int parentId, int dirs, int files, QList< ThumbPair > thumbs, int thumbCount)
 
QString ToString (int id) const
 

Public Attributes

int m_parent {0}
 
int m_thumbCount {0}
 
int m_dirCount {-1}
 
int m_fileCount {-1}
 
QList< ThumbPairm_thumbs
 

Detailed Description

Records dir info for every displayed dir.

Populating dir thumbnails may entail lengthy interrogation of the dir subtree even though it doesn't change often. Caching this info improves browsing response.

Definition at line 145 of file galleryviews.h.

Constructor & Destructor Documentation

◆ DirCacheEntry() [1/2]

DirCacheEntry::DirCacheEntry ( )
default

◆ DirCacheEntry() [2/2]

DirCacheEntry::DirCacheEntry ( int  parentId,
int  dirs,
int  files,
QList< ThumbPair thumbs,
int  thumbCount 
)
inline

Definition at line 149 of file galleryviews.h.

Member Function Documentation

◆ ToString()

QString DirCacheEntry::ToString ( int  id) const

Definition at line 458 of file galleryviews.cpp.

Referenced by DirectoryView::Cache(), and DirectoryView::PopulateFromCache().

Member Data Documentation

◆ m_parent

int DirCacheEntry::m_parent {0}

Definition at line 156 of file galleryviews.h.

Referenced by ToString().

◆ m_thumbCount

int DirCacheEntry::m_thumbCount {0}

Definition at line 157 of file galleryviews.h.

Referenced by DirectoryView::PopulateFromCache(), and ToString().

◆ m_dirCount

int DirCacheEntry::m_dirCount {-1}

Definition at line 158 of file galleryviews.h.

Referenced by DirectoryView::PopulateFromCache(), and ToString().

◆ m_fileCount

int DirCacheEntry::m_fileCount {-1}

Definition at line 159 of file galleryviews.h.

Referenced by DirectoryView::PopulateFromCache(), and ToString().

◆ m_thumbs

QList<ThumbPair> DirCacheEntry::m_thumbs

Definition at line 160 of file galleryviews.h.

Referenced by DirectoryView::PopulateFromCache(), and ToString().


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