MythTV
master
|
Records dir info for every displayed dir. More...
#include <mythfrontend/galleryviews.h>
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< ThumbPair > | m_thumbs |
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 148 of file galleryviews.h.
|
default |
|
inline |
Definition at line 152 of file galleryviews.h.
QString DirCacheEntry::ToString | ( | int | id | ) | const |
Definition at line 461 of file galleryviews.cpp.
Referenced by DirectoryView::Cache(), and DirectoryView::PopulateFromCache().
int DirCacheEntry::m_parent {0} |
Definition at line 159 of file galleryviews.h.
Referenced by DirectoryView::RemoveImage(), and ToString().
int DirCacheEntry::m_thumbCount {0} |
Definition at line 160 of file galleryviews.h.
Referenced by DirectoryView::PopulateFromCache(), and ToString().
int DirCacheEntry::m_dirCount {-1} |
Definition at line 161 of file galleryviews.h.
Referenced by DirectoryView::PopulateFromCache(), and ToString().
int DirCacheEntry::m_fileCount {-1} |
Definition at line 162 of file galleryviews.h.
Referenced by DirectoryView::PopulateFromCache(), and ToString().
QList<ThumbPair> DirCacheEntry::m_thumbs |
Definition at line 163 of file galleryviews.h.
Referenced by DirectoryView::PopulateFromCache(), and ToString().