MythTV  master
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
GalleryFilter Class Reference

#include <galleryfilter.h>

Public Member Functions

 GalleryFilter (bool loaddefaultsettings=true)
 
 GalleryFilter (const GalleryFilter &gfs)
 
GalleryFilteroperator= (const GalleryFilter &gfs)
 
void saveAsDefault ()
 
QString getDirFilter () const
 
void setDirFilter (QString dirFilter)
 
int getTypeFilter () const
 
void setTypeFilter (int typeFilter)
 
int getSort () const
 
void setSort (int sort)
 
bool getChangedState ()
 
void dumpFilter (const QString &src)
 

Static Public Member Functions

static bool TestFilter (const QString &dir, const GalleryFilter &flt, int *dirCount, int *imageCount, int *movieCount)
 

Private Attributes

QString m_dirFilter
 
int m_typeFilter {kTypeFilterAll}
 
int m_sort {kSortOrderUnsorted}
 
bool m_changed_state {false}
 

Detailed Description

Definition at line 33 of file galleryfilter.h.

Constructor & Destructor Documentation

◆ GalleryFilter() [1/2]

GalleryFilter::GalleryFilter ( bool  loaddefaultsettings = true)
explicit

Definition at line 15 of file galleryfilter.cpp.

◆ GalleryFilter() [2/2]

GalleryFilter::GalleryFilter ( const GalleryFilter gfs)

Definition at line 28 of file galleryfilter.cpp.

Member Function Documentation

◆ TestFilter()

bool GalleryFilter::TestFilter ( const QString &  dir,
const GalleryFilter flt,
int *  dirCount,
int *  imageCount,
int *  movieCount 
)
static

Definition at line 63 of file galleryfilter.cpp.

Referenced by FilterScanThread::run().

◆ operator=()

GalleryFilter & GalleryFilter::operator= ( const GalleryFilter gfs)

Definition at line 33 of file galleryfilter.cpp.

◆ saveAsDefault()

void GalleryFilter::saveAsDefault ( )

Definition at line 56 of file galleryfilter.cpp.

Referenced by GalleryFilterDialog::saveAsDefault().

◆ getDirFilter()

QString GalleryFilter::getDirFilter ( ) const
inline

◆ setDirFilter()

void GalleryFilter::setDirFilter ( QString  dirFilter)
inline

Definition at line 46 of file galleryfilter.h.

Referenced by GalleryFilterDialog::setDirFilter().

◆ getTypeFilter()

int GalleryFilter::getTypeFilter ( ) const
inline

◆ setTypeFilter()

void GalleryFilter::setTypeFilter ( int  typeFilter)
inline

Definition at line 53 of file galleryfilter.h.

Referenced by GalleryFilterDialog::setTypeFilter().

◆ getSort()

int GalleryFilter::getSort ( ) const
inline

◆ setSort()

void GalleryFilter::setSort ( int  sort)
inline

Definition at line 60 of file galleryfilter.h.

Referenced by GalleryFilterDialog::setSort().

◆ getChangedState()

bool GalleryFilter::getChangedState ( )
inline

Definition at line 66 of file galleryfilter.h.

Referenced by GalleryFilterDialog::saveAndExit().

◆ dumpFilter()

void GalleryFilter::dumpFilter ( const QString &  src)

Member Data Documentation

◆ m_dirFilter

QString GalleryFilter::m_dirFilter
private

Definition at line 75 of file galleryfilter.h.

Referenced by dumpFilter(), GalleryFilter(), operator=(), and saveAsDefault().

◆ m_typeFilter

int GalleryFilter::m_typeFilter {kTypeFilterAll}
private

Definition at line 76 of file galleryfilter.h.

Referenced by dumpFilter(), GalleryFilter(), operator=(), and saveAsDefault().

◆ m_sort

int GalleryFilter::m_sort {kSortOrderUnsorted}
private

Definition at line 77 of file galleryfilter.h.

Referenced by dumpFilter(), GalleryFilter(), operator=(), and saveAsDefault().

◆ m_changed_state

bool GalleryFilter::m_changed_state {false}
private

Definition at line 79 of file galleryfilter.h.

Referenced by operator=().


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