Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
VideoLibraryQuery.cpp File Reference
#include "VideoLibraryQuery.h"
#include "FileItem.h"
#include "FileItemList.h"
#include "dbwrappers/Database.h"
#include "media/LibraryQueryRule.h"
#include "media/MediaType.h"
#include "utils/ContentNames.h"
#include "utils/DatabaseUtils.h"
#include "utils/LabelFormatter.h"
#include "utils/StreamDetails.h"
#include "utils/StringUtils.h"
#include "video/VideoDatabase.h"
#include "video/VideoDbPaths.h"
#include <algorithm>
#include <array>
#include <climits>
#include <cstdlib>
#include <optional>
#include <string>
#include <string_view>

Namespaces

namespace  KODI
 
namespace  KODI::VIDEO
 
namespace  KODI::VIDEO::LIBRARY_QUERY
 The video database's side of a library query: the SQL its rules take against the movie, TV show, episode and music video views, and its listings, values and ranges.
 

Functions

std::string KODI::VIDEO::LIBRARY_QUERY::RuleClause (const MEDIA::CLibraryQueryRule &rule, MEDIA::TYPE type, const std::string &negate, const std::string &param, const std::string &parameter, const CDatabase &db)
 The clause of a rule the views have a form of their own for.
 
std::string KODI::VIDEO::LIBRARY_QUERY::BooleanClause (const MEDIA::CLibraryQueryRule &rule, MEDIA::TYPE type, const std::string &negate)
 
CDatabaseQueryRule::SearchOperator KODI::VIDEO::LIBRARY_QUERY::OperatorOf (const MEDIA::CLibraryQueryRule &rule, MEDIA::TYPE type)
 
std::optional< std::string_view > KODI::VIDEO::LIBRARY_QUERY::ListingPath (MEDIA::TYPE itemType, MEDIA::LIBRARY_QUERY::GROUP group)
 The path that lists the items of a kind in the video library, or the groups of the items a query matches.
 
std::string_view KODI::VIDEO::LIBRARY_QUERY::GroupContent (MEDIA::LIBRARY_QUERY::GROUP group)
 The content name of the list of a group in the video library. Empty if it has none.
 
bool KODI::VIDEO::LIBRARY_QUERY::BrowseValues (CVideoDatabase &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 video library, for a field to be given one.
 
std::optional< MEDIA::LIBRARY_QUERY::RangeColumn > KODI::VIDEO::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::VIDEO::LIBRARY_QUERY::ItemsById (CVideoDatabase &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