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

#include <VideoInfoTag.h>

Public Member Functions

void Clear ()
 Clear all data.
 
void Archive (CArchive &ar)
 Archive all data.
 
void Save (TiXmlNode *movie)
 Store all data to XML.
 
void ParseNative (const TiXmlElement *movie)
 Restore all data from XML.
 
void Merge (CAssetInfo &other)
 Merge in all valid data from another asset info.
 
void Serialize (CVariant &value) const
 Serialize all data.
 
const std::string & GetTitle () const
 Get the video's asset title.
 
void SetTitle (const std::string &assetTitle)
 Set this videos's asset title.
 
int GetId () const
 Get the video's asset id.
 
void SetId (int assetId)
 Set this videos's asset id.
 
VideoAssetType GetType () const
 Get the video's asset type.
 
void SetType (VideoAssetType assetType)
 Set this videos's asset type.
 

Member Function Documentation

◆ Archive()

void CVideoInfoTag::CAssetInfo::Archive ( CArchive & ar)

Archive all data.

Parameters
arThe archive to write the data to / to read the data from.

◆ Clear()

void CVideoInfoTag::CAssetInfo::Clear ( )

Clear all data.

◆ GetId()

int CVideoInfoTag::CAssetInfo::GetId ( ) const
inline

Get the video's asset id.

Returns
The id or -1 if the item has no video asset.

◆ GetTitle()

const std::string & CVideoInfoTag::CAssetInfo::GetTitle ( ) const
inline

Get the video's asset title.

Returns
The title or an empty string if the item has no video asset.

◆ GetType()

VideoAssetType CVideoInfoTag::CAssetInfo::GetType ( ) const
inline

Get the video's asset type.

Returns
The type or VideoAssetType::UNKNOWN if the item has no video asset.

◆ Merge()

void CVideoInfoTag::CAssetInfo::Merge ( CAssetInfo & other)

Merge in all valid data from another asset info.

Parameters
otherThe other asset info.

◆ ParseNative()

void CVideoInfoTag::CAssetInfo::ParseNative ( const TiXmlElement * movie)

Restore all data from XML.

Parameters
movieThe XML element containing the data.

◆ Save()

void CVideoInfoTag::CAssetInfo::Save ( TiXmlNode * movie)

Store all data to XML.

Parameters
movieThe XML element to write the data to.

◆ Serialize()

void CVideoInfoTag::CAssetInfo::Serialize ( CVariant & value) const

Serialize all data.

Parameters
valueThe container to write the data to.

◆ SetId()

void CVideoInfoTag::CAssetInfo::SetId ( int assetId)

Set this videos's asset id.

Parameters
assetIdThe id.

◆ SetTitle()

void CVideoInfoTag::CAssetInfo::SetTitle ( const std::string & assetTitle)

Set this videos's asset title.

Parameters
assetTitleThe title.

◆ SetType()

void CVideoInfoTag::CAssetInfo::SetType ( VideoAssetType assetType)

Set this videos's asset type.

Parameters
assetTypeThe type.

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