Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
MusicLibraryQuery.cpp File Reference
#include "MusicLibraryQuery.h"
#include "FileItemList.h"
#include "media/LibraryQueryRule.h"
#include "media/MediaType.h"
#include "music/MusicDatabase.h"
#include "music/MusicDbPaths.h"
#include "utils/ContentNames.h"
#include "utils/DatabaseUtils.h"
#include "utils/SortUtils.h"
#include <algorithm>
#include <array>
#include <optional>
#include <string>
#include <string_view>

Namespaces

namespace  KODI
 
namespace  KODI::MUSIC
 
namespace  KODI::MUSIC::LIBRARY_QUERY
 The music database's side of a library query: the SQL its rules take against the song, album and artist views, and its listings, values and ranges.
 

Functions

std::string KODI::MUSIC::LIBRARY_QUERY::RuleClause (const MEDIA::CLibraryQueryRule &rule, MEDIA::TYPE type, const std::string &negate, const std::string &param, const std::string &parameter, bool useOriginalDate)
 The clause of a rule the views have a form of their own for.
 
std::string KODI::MUSIC::LIBRARY_QUERY::BooleanClause (const MEDIA::CLibraryQueryRule &rule, MEDIA::TYPE type, const std::string &negate)
 
std::optional< std::string_view > KODI::MUSIC::LIBRARY_QUERY::ListingPath (MEDIA::TYPE itemType, MEDIA::LIBRARY_QUERY::GROUP group)
 The path that lists the items of a kind in the music library, or the groups of the items a query matches.
 
std::string_view KODI::MUSIC::LIBRARY_QUERY::GroupContent (MEDIA::LIBRARY_QUERY::GROUP group)
 The content name of the list of a group in the music library. Empty if it has none.
 
bool KODI::MUSIC::LIBRARY_QUERY::BrowseValues (CMusicDatabase &db, MEDIA::LIBRARY_QUERY::BROWSE browse, MEDIA::TYPE itemType, const std::string &baseDir, const CDatabase::Filter &filter, bool countOnly, CFileItemList &items)
 Lists the values there are of a kind in the music library, for a field to be given one.
 
std::optional< MEDIA::LIBRARY_QUERY::RangeColumn > KODI::MUSIC::LIBRARY_QUERY::RangeColumnOf (Field field, MEDIA::TYPE itemType)
 The column a field's range is read from, for items of a kind. Nullopt if it has none.
 
bool KODI::MUSIC::LIBRARY_QUERY::ItemsById (CMusicDatabase &db, MEDIA::TYPE itemType, const std::string &ids, CFileItemList &items)
 Adds the items of a kind with these ids to items.
 

Variable Documentation

◆ content

std::string_view content

◆ group

GROUP group

◆ itemType

MEDIA::TYPE itemType

◆ path

std::string_view path