xbmc
Public Member Functions | Static Public Member Functions | List of all members
PVR::CPVREpgSearchFilter Class Reference

Public Member Functions

 CPVREpgSearchFilter (bool bRadio)
 ctor. More...
 
void Reset ()
 Clear this filter.
 
std::string GetPath () const
 Return the path for this filter. More...
 
bool FilterEntry (const std::shared_ptr< CPVREpgInfoTag > &tag) const
 Check if a tag will be filtered or not. More...
 
bool IsRadio () const
 Get the type of channels to search. More...
 
const std::string & GetSearchTerm () const
 
void SetSearchTerm (const std::string &strSearchTerm)
 
void SetSearchPhrase (const std::string &strSearchPhrase)
 
bool IsCaseSensitive () const
 
void SetCaseSensitive (bool bIsCaseSensitive)
 
bool ShouldSearchInDescription () const
 
void SetSearchInDescription (bool bSearchInDescription)
 
int GetGenreType () const
 
void SetGenreType (int iGenreType)
 
int GetMinimumDuration () const
 
void SetMinimumDuration (int iMinimumDuration)
 
int GetMaximumDuration () const
 
void SetMaximumDuration (int iMaximumDuration)
 
bool ShouldIgnoreFinishedBroadcasts () const
 
void SetIgnoreFinishedBroadcasts (bool bIgnoreFinishedBroadcasts)
 
bool ShouldIgnoreFutureBroadcasts () const
 
void SetIgnoreFutureBroadcasts (bool bIgnoreFutureBroadcasts)
 
const CDateTimeGetStartDateTime () const
 
void SetStartDateTime (const CDateTime &startDateTime)
 
const CDateTimeGetEndDateTime () const
 
void SetEndDateTime (const CDateTime &endDateTime)
 
bool ShouldIncludeUnknownGenres () const
 
void SetIncludeUnknownGenres (bool bIncludeUnknownGenres)
 
bool ShouldRemoveDuplicates () const
 
void SetRemoveDuplicates (bool bRemoveDuplicates)
 
int GetClientID () const
 
void SetClientID (int iClientID)
 
int GetChannelGroupID () const
 
void SetChannelGroupID (int iChannelGroupID)
 
int GetChannelUID () const
 
void SetChannelUID (int iChannelUID)
 
bool IsFreeToAirOnly () const
 
void SetFreeToAirOnly (bool bFreeToAirOnly)
 
bool ShouldIgnorePresentTimers () const
 
void SetIgnorePresentTimers (bool bIgnorePresentTimers)
 
bool ShouldIgnorePresentRecordings () const
 
void SetIgnorePresentRecordings (bool bIgnorePresentRecordings)
 
int GetDatabaseId () const
 
void SetDatabaseId (int iDatabaseId)
 
const std::string & GetTitle () const
 
void SetTitle (const std::string &title)
 
const CDateTimeGetLastExecutedDateTime () const
 
void SetLastExecutedDateTime (const CDateTime &lastExecutedDateTime)
 
const PVREpgSearchDataGetEpgSearchData () const
 
void SetEpgSearchDataFiltered ()
 
bool IsChanged () const
 
void SetChanged (bool bChanged)
 

Static Public Member Functions

static void RemoveDuplicates (std::vector< std::shared_ptr< CPVREpgInfoTag >> &results)
 remove duplicates from a list of epg tags. More...
 

Constructor & Destructor Documentation

◆ CPVREpgSearchFilter()

CPVREpgSearchFilter::CPVREpgSearchFilter ( bool  bRadio)
explicit

ctor.

Parameters
bRadiothe type of channels to search - if true, 'radio'. 'tv', otherwise.

Member Function Documentation

◆ FilterEntry()

bool CPVREpgSearchFilter::FilterEntry ( const std::shared_ptr< CPVREpgInfoTag > &  tag) const

Check if a tag will be filtered or not.

Parameters
tagThe tag to check.
Returns
True if this tag matches the filter, false if not.

◆ GetPath()

std::string CPVREpgSearchFilter::GetPath ( ) const

Return the path for this filter.

Returns
the path.

◆ IsRadio()

bool PVR::CPVREpgSearchFilter::IsRadio ( ) const
inline

Get the type of channels to search.

Returns
true, if 'radio'. false, otherwise.

◆ RemoveDuplicates()

void CPVREpgSearchFilter::RemoveDuplicates ( std::vector< std::shared_ptr< CPVREpgInfoTag >> &  results)
static

remove duplicates from a list of epg tags.

Parameters
resultsThe list of epg tags.

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