Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::PLAYLIST::CSmartPlaylistRuleCombination Class Reference

#include <SmartPlayList.h>

Inheritance diagram for KODI::PLAYLIST::CSmartPlaylistRuleCombination:
CDatabaseQueryRuleCombination

Public Member Functions

 CSmartPlaylistRuleCombination ()=default
 
 ~CSmartPlaylistRuleCombination () override=default
 
std::string GetWhereClause (const CDatabase &db, const std::string &strType, std::set< std::string > &referencedPlaylists) const
 
void GetVirtualFolders (const std::string &strType, std::vector< std::string > &virtualFolders) const
 
void AddRule (const CSmartPlaylistRule &rule)
 
- Public Member Functions inherited from CDatabaseQueryRuleCombination
virtual ~CDatabaseQueryRuleCombination ()=default
 
void clear ()
 
virtual bool Load (const TiXmlNode *node, const std::string &encoding="UTF-8")
 
virtual bool Load (const CVariant &obj, const IDatabaseQueryRuleFactory *factory)
 
virtual bool Save (TiXmlNode *parent) const
 
virtual bool Save (CVariant &obj) const
 
std::string GetWhereClause (const CDatabase &db, const std::string &strType) const
 
std::string TranslateCombinationType () const
 
Combination GetType () const
 
void SetType (Combination combination)
 
bool empty () const
 

Additional Inherited Members

- Public Types inherited from CDatabaseQueryRuleCombination
enum  Combination { CombinationOr = 0 , CombinationAnd }
 
- Protected Attributes inherited from CDatabaseQueryRuleCombination
Combination m_type = CombinationAnd
 
CDatabaseQueryRuleCombinations m_combinations
 
CDatabaseQueryRules m_rules
 

Constructor & Destructor Documentation

◆ CSmartPlaylistRuleCombination()

KODI::PLAYLIST::CSmartPlaylistRuleCombination::CSmartPlaylistRuleCombination ( )
default

◆ ~CSmartPlaylistRuleCombination()

KODI::PLAYLIST::CSmartPlaylistRuleCombination::~CSmartPlaylistRuleCombination ( )
overridedefault

Member Function Documentation

◆ AddRule()

void KODI::PLAYLIST::CSmartPlaylistRuleCombination::AddRule ( const CSmartPlaylistRule & rule)

◆ GetVirtualFolders()

void KODI::PLAYLIST::CSmartPlaylistRuleCombination::GetVirtualFolders ( const std::string & strType,
std::vector< std::string > & virtualFolders ) const

◆ GetWhereClause()

std::string KODI::PLAYLIST::CSmartPlaylistRuleCombination::GetWhereClause ( const CDatabase & db,
const std::string & strType,
std::set< std::string > & referencedPlaylists ) const

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