MythTV  master
Classes | Enumerations | Functions
mythsorthelper.h File Reference
#include <QCoreApplication>
#include <QRegularExpression>
#include <memory>
#include "mythbaseexp.h"
Include dependency graph for mythsorthelper.h:
This graph shows which files directly or indirectly include this file:

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< MythSortHelpergetMythSortHelper (void)
 Get a pointer to the MythSortHelper singleton. More...
 
MBASE_PUBLIC void resetMythSortHelper (void)
 Delete the MythSortHelper singleton. More...
 

Enumeration Type Documentation

◆ SortPrefixMode

enum SortPrefixMode : std::uint8_t
Enumerator
SortPrefixKeep 
SortPrefixRemove 
SortPrefixToEnd 

Definition at line 12 of file mythsorthelper.h.

◆ SortExclusionMode

enum SortExclusionMode : std::uint8_t
Enumerator
SortExclusionMatch 
SortExclusionPrefix 

Definition at line 19 of file mythsorthelper.h.

Function Documentation

◆ getMythSortHelper()

MBASE_PUBLIC std::shared_ptr<MythSortHelper> getMythSortHelper ( void  )

◆ resetMythSortHelper()

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().