|
MythTV master
|
#include <mythfrontend/videofilter.h>
Public Types | |
| enum | FilterChanges : std::uint16_t { kSortOrderChanged = (1 << 0) , kFilterCategoryChanged = (1 << 1) , kFilterGenreChanged = (1 << 2) , kFilterCountryChanged = (1 << 3) , kFilterYearChanged = (1 << 4) , kFilterRuntimeChanged = (1 << 5) , kFilterUserRatingChanged = (1 << 6) , kFilterBrowseChanged = (1 << 7) , kFilterInetRefChanged = (1 << 8) , kFilterCoverFileChanged = (1 << 9) , kFilterParentalLevelChanged = (1 << 10) , kFilterCastChanged = (1 << 11) , kFilterWatchedChanged = (1 << 12) , kFilterTextFilterChanged = (1 << 13) } |
| enum | ordering : std::uint8_t { kOrderByTitle = 0 , kOrderByYearDescending = 1 , kOrderByUserRatingDescending = 2 , kOrderByLength = 3 , kOrderByFilename = 4 , kOrderByID = 5 , kOrderBySeasonEp = 6 , kOrderByDateAddedDescending = 7 } |
Public Member Functions | |
| VideoFilterSettings (bool loaddefaultsettings=true, const QString &_prefix="") | |
| VideoFilterSettings (const VideoFilterSettings &rhs) | |
| VideoFilterSettings & | operator= (const VideoFilterSettings &rhs) |
| bool | matches_filter (const VideoMetadata &mdata) const |
| bool | meta_less_than (const VideoMetadata &lhs, const VideoMetadata &rhs) const |
| Compares two VideoMetadata instances. More... | |
| void | saveAsDefault () |
| int | GetCategory () const |
| void | SetCategory (int lcategory) |
| int | getGenre () const |
| void | setGenre (int lgenre) |
| int | GetCast () const |
| void | SetCast (int lcast) |
| int | getCountry () const |
| void | setCountry (int lcountry) |
| int | getYear () const |
| void | SetYear (int lyear) |
| int | getRuntime () const |
| void | setRuntime (int lruntime) |
| int | GetUserRating () const |
| void | SetUserRating (int luserrating) |
| int | GetBrowse () const |
| void | SetBrowse (int lbrowse) |
| int | GetWatched () const |
| void | SetWatched (int lwatched) |
| ordering | getOrderby () const |
| void | setOrderby (ordering lorderby) |
| QString | getTextFilter () const |
| void | setTextFilter (const QString &val) |
| ParentalLevel::Level | getParentalLevel () const |
| void | setParentalLevel (ParentalLevel::Level parental_level) |
| int | getInteRef () const |
| void | SetInetRef (int inetref) |
| int | GetCoverFile () const |
| void | SetCoverFile (int coverfile) |
| unsigned int | getChangedState () |
Private Member Functions | |
| Q_DECLARE_TR_FUNCTIONS (VideoFilterSettings) | |
Private Attributes | |
| int | m_category {kCategoryFilterAll} |
| int | m_genre {kGenreFilterAll} |
| int | m_country {kCountryFilterAll} |
| int | m_cast {kCastFilterAll} |
| int | m_year {kYearFilterAll} |
| int | m_runtime {kRuntimeFilterAll} |
| int | m_userRating {kUserRatingFilterAll} |
| int | m_browse {kBrowseFilterAll} |
| int | m_watched {kWatchedFilterAll} |
| int | m_inetRef {kInetRefFilterAll} |
| int | m_coverFile {kCoverFileFilterAll} |
| ordering | m_orderBy {kOrderByTitle} |
| ParentalLevel::Level | m_parentalLevel {ParentalLevel::plNone} |
| QString | m_prefix |
| QString | m_textFilter |
| int | m_season {-1} |
| int | m_episode {-1} |
| QDate | m_insertDate |
| unsigned int | m_changedState {0} |
Static Private Attributes | |
| static const QRegularExpression | kReSeason |
| static const QRegularExpression | kReDate |
Definition at line 73 of file videofilter.h.
Definition at line 78 of file videofilter.h.
| enum VideoFilterSettings::ordering : std::uint8_t |
| Enumerator | |
|---|---|
| kOrderByTitle | |
| kOrderByYearDescending | |
| kOrderByUserRatingDescending | |
| kOrderByLength | |
| kOrderByFilename | |
| kOrderByID | |
| kOrderBySeasonEp | |
| kOrderByDateAddedDescending | |
Definition at line 106 of file videofilter.h.
|
explicit |
Definition at line 27 of file videofilter.cpp.
| VideoFilterSettings::VideoFilterSettings | ( | const VideoFilterSettings & | rhs | ) |
Definition at line 67 of file videofilter.cpp.
|
inline |
Definition at line 169 of file videofilter.h.
Referenced by VideoFilterDialog::fillWidgets().
|
inline |
Definition at line 134 of file videofilter.h.
Referenced by VideoFilterDialog::fillWidgets().
|
inline |
Definition at line 120 of file videofilter.h.
Referenced by VideoFilterDialog::fillWidgets().
|
inline |
Definition at line 214 of file videofilter.h.
Referenced by VideoListImp::getFilterChangedState(), and VideoFilterDialog::saveAndExit().
|
inline |
Definition at line 141 of file videofilter.h.
Referenced by VideoFilterDialog::fillWidgets().
|
inline |
Definition at line 207 of file videofilter.h.
Referenced by VideoFilterDialog::fillWidgets().
|
inline |
Definition at line 127 of file videofilter.h.
Referenced by VideoFilterDialog::fillWidgets().
|
inline |
Definition at line 200 of file videofilter.h.
Referenced by VideoFilterDialog::fillWidgets().
|
inline |
Definition at line 183 of file videofilter.h.
Referenced by VideoFilterDialog::fillWidgets().
|
inline |
Definition at line 193 of file videofilter.h.
|
inline |
Definition at line 155 of file videofilter.h.
Referenced by VideoFilterDialog::fillWidgets().
|
inline |
Definition at line 190 of file videofilter.h.
Referenced by VideoFilterDialog::fillWidgets().
|
inline |
Definition at line 162 of file videofilter.h.
Referenced by VideoFilterDialog::fillWidgets().
|
inline |
Definition at line 176 of file videofilter.h.
Referenced by VideoFilterDialog::fillWidgets().
|
inline |
Definition at line 148 of file videofilter.h.
Referenced by VideoFilterDialog::fillWidgets().
| bool VideoFilterSettings::matches_filter | ( | const VideoMetadata & | mdata | ) | const |
Definition at line 195 of file videofilter.cpp.
Referenced by copy_entries(), VideoListImp::TryFilter(), and VideoListImp::update_meta_view().
| bool VideoFilterSettings::meta_less_than | ( | const VideoMetadata & | lhs, |
| const VideoMetadata & | rhs | ||
| ) | const |
Compares two VideoMetadata instances.
Definition at line 315 of file videofilter.cpp.
Referenced by metadata_sort::operator()().
| VideoFilterSettings & VideoFilterSettings::operator= | ( | const VideoFilterSettings & | rhs | ) |
Definition at line 73 of file videofilter.cpp.
|
private |
| void VideoFilterSettings::saveAsDefault | ( | ) |
Definition at line 178 of file videofilter.cpp.
Referenced by VideoFilterDialog::saveAsDefault().
|
inline |
Definition at line 170 of file videofilter.h.
Referenced by VideoFilterDialog::SetBrowse().
|
inline |
Definition at line 135 of file videofilter.h.
Referenced by VideoFilterDialog::SetCast().
|
inline |
Definition at line 121 of file videofilter.h.
Referenced by VideoFilterDialog::SetCategory().
|
inline |
Definition at line 142 of file videofilter.h.
Referenced by nv_python_libs.bbciplayer.bbciplayer_api.Videos::displayTreeView(), and VideoFilterDialog::setCountry().
|
inline |
Definition at line 208 of file videofilter.h.
Referenced by VideoFilterDialog::SetCoverFile().
|
inline |
Definition at line 128 of file videofilter.h.
Referenced by VideoFilterDialog::setGenre().
|
inline |
Definition at line 201 of file videofilter.h.
Referenced by VideoFilterDialog::SetInetRef().
|
inline |
Definition at line 184 of file videofilter.h.
Referenced by VideoFilterDialog::setOrderby().
|
inline |
Definition at line 194 of file videofilter.h.
Referenced by VideoListImp::refreshList().
|
inline |
Definition at line 156 of file videofilter.h.
Referenced by VideoFilterDialog::setRunTime().
| void VideoFilterSettings::setTextFilter | ( | const QString & | val | ) |
Definition at line 355 of file videofilter.cpp.
Referenced by VideoFilterDialog::setTextFilter().
|
inline |
Definition at line 163 of file videofilter.h.
Referenced by VideoFilterDialog::SetUserRating().
|
inline |
Definition at line 177 of file videofilter.h.
Referenced by VideoFilterDialog::SetWatched().
|
inline |
Definition at line 149 of file videofilter.h.
Referenced by VideoFilterDialog::SetYear().
|
staticprivate |
Definition at line 241 of file videofilter.h.
Referenced by setTextFilter().
|
staticprivate |
Definition at line 240 of file videofilter.h.
Referenced by setTextFilter().
|
private |
Definition at line 229 of file videofilter.h.
Referenced by GetBrowse(), matches_filter(), operator=(), saveAsDefault(), SetBrowse(), and VideoFilterSettings().
|
private |
Definition at line 225 of file videofilter.h.
Referenced by GetCast(), matches_filter(), operator=(), saveAsDefault(), SetCast(), and VideoFilterSettings().
|
private |
Definition at line 222 of file videofilter.h.
Referenced by GetCategory(), matches_filter(), operator=(), saveAsDefault(), SetCategory(), and VideoFilterSettings().
|
private |
Definition at line 243 of file videofilter.h.
Referenced by getChangedState(), operator=(), SetBrowse(), SetCast(), SetCategory(), setCountry(), SetCoverFile(), setGenre(), SetInetRef(), setOrderby(), setParentalLevel(), setRuntime(), setTextFilter(), SetUserRating(), SetWatched(), and SetYear().
|
private |
Definition at line 224 of file videofilter.h.
Referenced by getCountry(), matches_filter(), operator=(), saveAsDefault(), setCountry(), and VideoFilterSettings().
|
private |
Definition at line 232 of file videofilter.h.
Referenced by GetCoverFile(), matches_filter(), operator=(), saveAsDefault(), SetCoverFile(), and VideoFilterSettings().
|
private |
Definition at line 238 of file videofilter.h.
Referenced by matches_filter(), operator=(), and setTextFilter().
|
private |
Definition at line 223 of file videofilter.h.
Referenced by getGenre(), matches_filter(), operator=(), saveAsDefault(), setGenre(), and VideoFilterSettings().
|
private |
Definition at line 231 of file videofilter.h.
Referenced by getInteRef(), matches_filter(), operator=(), saveAsDefault(), SetInetRef(), and VideoFilterSettings().
|
private |
Definition at line 239 of file videofilter.h.
Referenced by matches_filter(), operator=(), and setTextFilter().
|
private |
Definition at line 233 of file videofilter.h.
Referenced by getOrderby(), meta_less_than(), operator=(), saveAsDefault(), setOrderby(), and VideoFilterSettings().
|
private |
Definition at line 234 of file videofilter.h.
Referenced by getParentalLevel(), matches_filter(), operator=(), and setParentalLevel().
|
private |
Definition at line 235 of file videofilter.h.
Referenced by operator=(), saveAsDefault(), and VideoFilterSettings().
|
private |
Definition at line 227 of file videofilter.h.
Referenced by getRuntime(), matches_filter(), operator=(), saveAsDefault(), setRuntime(), and VideoFilterSettings().
|
private |
Definition at line 237 of file videofilter.h.
Referenced by matches_filter(), operator=(), and setTextFilter().
|
private |
Definition at line 236 of file videofilter.h.
Referenced by getTextFilter(), matches_filter(), operator=(), saveAsDefault(), and setTextFilter().
|
private |
Definition at line 228 of file videofilter.h.
Referenced by GetUserRating(), matches_filter(), operator=(), saveAsDefault(), SetUserRating(), and VideoFilterSettings().
|
private |
Definition at line 230 of file videofilter.h.
Referenced by GetWatched(), matches_filter(), operator=(), saveAsDefault(), SetWatched(), and VideoFilterSettings().
|
private |
Definition at line 226 of file videofilter.h.
Referenced by getYear(), matches_filter(), operator=(), saveAsDefault(), SetYear(), and VideoFilterSettings().