MythTV
master
|
#include <QCoreApplication>
#include <QRegularExpression>
#include <memory>
#include "mythbaseexp.h"
Go to the source code of this file.
Classes | |
class | MythSortHelper |
A class to consolidate all the soring functions. More... | |
Enumerations | |
enum | SortPrefixMode : std::uint8_t { SortPrefixKeep, SortPrefixRemove, SortPrefixToEnd } |
enum | SortExclusionMode : std::uint8_t { SortExclusionMatch, SortExclusionPrefix } |
Functions | |
MBASE_PUBLIC std::shared_ptr< MythSortHelper > | getMythSortHelper (void) |
Get a pointer to the MythSortHelper singleton. More... | |
MBASE_PUBLIC void | resetMythSortHelper (void) |
Delete the MythSortHelper singleton. More... | |
enum SortPrefixMode : std::uint8_t |
Enumerator | |
---|---|
SortPrefixKeep | |
SortPrefixRemove | |
SortPrefixToEnd |
Definition at line 12 of file mythsorthelper.h.
enum SortExclusionMode : std::uint8_t |
Enumerator | |
---|---|
SortExclusionMatch | |
SortExclusionPrefix |
Definition at line 19 of file mythsorthelper.h.
MBASE_PUBLIC std::shared_ptr<MythSortHelper> getMythSortHelper | ( | void | ) |
Get a pointer to the MythSortHelper singleton.
This function creates the MythSortHelper singleton, and returns a shared pointer to it.
Definition at line 130 of file mythsorthelper.cpp.
Referenced by MythGenericTree::ensureSortFields(), RecordingRule::ensureSortFields(), meta_dir_node::ensureSortFields(), ResultItem::ensureSortFields(), VideoMetadataImp::ensureSortFields(), ProgramInfo::ensureSortFields(), MusicMetadata::ensureSortFields(), GetSiteList(), MainGeneralSettings::MainGeneralSettings(), NewsSite::NewsSite(), RSSEditPopup::ParseAndSave(), Parse::ParseItem(), RSSSite::RSSSite(), NetSearch::SlotItemChanged(), RSSEditPopup::SlotSave(), and NetTree::UpdateCurrentItem().
MBASE_PUBLIC void resetMythSortHelper | ( | void | ) |
Delete the MythSortHelper singleton.
This function deletes the pointer to the MythSortHelper singleton. This will force the next call to get the singleton to create a new one, which will pick up any modified parameters. The old one will be deleted when the last reference goes away (which probably happens with this assignment).
Definition at line 147 of file mythsorthelper.cpp.
Referenced by MainGeneralSettings::applyChange().