kodi
Public Member Functions | List of all members
CVideoInfoTag::CAssetInfo Class Reference

Public Member Functions

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

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.

◆ 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: