Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CDatabaseQueryRuleCombination Class Reference

#include <DatabaseQuery.h>

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

Public Types

enum  Combination { CombinationOr = 0 , CombinationAnd }
 

Public Member Functions

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
 

Protected Attributes

Combination m_type = CombinationAnd
 
CDatabaseQueryRuleCombinations m_combinations
 
CDatabaseQueryRules m_rules
 

Friends

class CGUIDialogSmartPlaylistEditor
 
class CGUIDialogMediaFilter
 

Member Enumeration Documentation

◆ Combination

Enumerator
CombinationOr 
CombinationAnd 

Constructor & Destructor Documentation

◆ ~CDatabaseQueryRuleCombination()

virtual CDatabaseQueryRuleCombination::~CDatabaseQueryRuleCombination ( )
virtualdefault

Member Function Documentation

◆ clear()

void CDatabaseQueryRuleCombination::clear ( )

◆ empty()

bool CDatabaseQueryRuleCombination::empty ( ) const
inline

◆ GetType()

Combination CDatabaseQueryRuleCombination::GetType ( ) const
inline

◆ GetWhereClause()

std::string CDatabaseQueryRuleCombination::GetWhereClause ( const CDatabase & db,
const std::string & strType ) const

◆ Load() [1/2]

bool CDatabaseQueryRuleCombination::Load ( const CVariant & obj,
const IDatabaseQueryRuleFactory * factory )
virtual

◆ Load() [2/2]

virtual bool CDatabaseQueryRuleCombination::Load ( const TiXmlNode * node,
const std::string & encoding = "UTF-8" )
inlinevirtual

◆ Save() [1/2]

bool CDatabaseQueryRuleCombination::Save ( CVariant & obj) const
virtual

◆ Save() [2/2]

bool CDatabaseQueryRuleCombination::Save ( TiXmlNode * parent) const
virtual

◆ SetType()

void CDatabaseQueryRuleCombination::SetType ( Combination combination)
inline

◆ TranslateCombinationType()

std::string CDatabaseQueryRuleCombination::TranslateCombinationType ( ) const

Friends And Related Symbol Documentation

◆ CGUIDialogMediaFilter

friend class CGUIDialogMediaFilter
friend

◆ CGUIDialogSmartPlaylistEditor

friend class CGUIDialogSmartPlaylistEditor
friend

Member Data Documentation

◆ m_combinations

CDatabaseQueryRuleCombinations CDatabaseQueryRuleCombination::m_combinations
protected

◆ m_rules

CDatabaseQueryRules CDatabaseQueryRuleCombination::m_rules
protected

◆ m_type

Combination CDatabaseQueryRuleCombination::m_type = CombinationAnd
protected

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