![]() |
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
Represents a file on a share. More...
#include <FileItem.h>
Public Member Functions | |
CFileItem (void) | |
CFileItem (const CFileItem &item) | |
CFileItem (const CGUIListItem &item) | |
CFileItem (const std::string &strLabel) | |
CFileItem (const char *strLabel) | |
CFileItem (const CURL &path, bool bIsFolder) | |
CFileItem (const std::string &strPath, bool bIsFolder) | |
CFileItem (const CSong &song) | |
CFileItem (const CSong &song, const MUSIC_INFO::CMusicInfoTag &music) | |
CFileItem (const CURL &path, const CAlbum &album) | |
CFileItem (const std::string &path, const CAlbum &album) | |
CFileItem (const CArtist &artist) | |
CFileItem (const CGenre &genre) | |
CFileItem (const MUSIC_INFO::CMusicInfoTag &music) | |
CFileItem (const CVideoInfoTag &movie) | |
CFileItem (const PVR::CPVREpgInfoTagPtr &tag) | |
CFileItem (const PVR::CPVRChannelPtr &channel) | |
CFileItem (const PVR::CPVRRecordingPtr &record) | |
CFileItem (const PVR::CPVRTimerInfoTagPtr &timer) | |
CFileItem (const CMediaSource &share) | |
CFileItem (std::shared_ptr< const ADDON::IAddon > addonInfo) | |
CFileItem (const EventPtr &eventLogEntry) | |
~CFileItem (void) override | |
CGUIListItem * | Clone () const override |
const CURL | GetURL () const |
void | SetURL (const CURL &url) |
bool | IsURL (const CURL &url) const |
const std::string & | GetPath () const |
void | SetPath (const std::string &path) |
bool | IsPath (const std::string &path, bool ignoreURLOptions=false) const |
const CURL | GetDynURL () const |
void | SetDynURL (const CURL &url) |
const std::string & | GetDynPath () const |
void | SetDynPath (const std::string &path) |
void | Reset () |
reset class to it's default values as per construction. Free's all allocated memory. More... | |
CFileItem & | operator= (const CFileItem &item) |
void | Archive (CArchive &ar) override |
void | Serialize (CVariant &value) const override |
void | ToSortable (SortItem &sortable, Field field) const override |
void | ToSortable (SortItem &sortable, const Fields &fields) const |
bool | IsFileItem () const override |
bool | Exists (bool bUseCache=true) const |
std::string | GetOpticalMediaPath () const |
Check whether an item is an optical media folder or its parent. This will return the non-empty path to the playable entry point of the media one or two levels down (VIDEO_TS.IFO for DVDs or index.bdmv for BDs). The returned path will be empty if folder does not meet this criterion. More... | |
bool | IsVideo () const |
Check whether an item is a video item. Note that this returns true for anything with a video info tag, so that may include eg. folders. More... | |
bool | IsDiscStub () const |
bool | IsPicture () const |
Check whether an item is a picture item. Note that this returns true for anything with a picture info tag, so that may include eg. folders. More... | |
bool | IsLyrics () const |
bool | IsSubtitle () const |
bool | IsAudio () const |
Check whether an item is an audio item. Note that this returns true for anything with a music info tag, so that may include eg. folders. More... | |
bool | IsDeleted () const |
Check whether an item is 'deleted' (for example, a trashed pvr recording). More... | |
bool | IsAudioBook () const |
Check whether an item is an audio book item. More... | |
bool | IsGame () const |
bool | IsCUESheet () const |
bool | IsInternetStream (const bool bStrictCheck=false) const |
bool | IsPlayList () const |
bool | IsSmartPlayList () const |
bool | IsLibraryFolder () const |
bool | IsPythonScript () const |
bool | IsPlugin () const |
bool | IsScript () const |
bool | IsAddonsPath () const |
bool | IsSourcesPath () const |
bool | IsNFO () const |
bool | IsDiscImage () const |
bool | IsOpticalMediaFile () const |
bool | IsDVDFile (bool bVobs=true, bool bIfos=true) const |
bool | IsBDFile () const |
bool | IsBluray () const |
bool | IsProtectedBlurayDisc () const |
bool | IsRAR () const |
bool | IsAPK () const |
bool | IsZIP () const |
bool | IsCBZ () const |
bool | IsCBR () const |
bool | IsISO9660 () const |
bool | IsCDDA () const |
bool | IsDVD () const |
bool | IsOnDVD () const |
bool | IsOnLAN () const |
bool | IsHD () const |
bool | IsNfs () const |
bool | IsRemote () const |
bool | IsSmb () const |
bool | IsURL () const |
bool | IsStack () const |
bool | IsMultiPath () const |
bool | IsMusicDb () const |
bool | IsVideoDb () const |
bool | IsEPG () const |
bool | IsPVRChannel () const |
bool | IsPVRRecording () const |
bool | IsUsablePVRRecording () const |
bool | IsDeletedPVRRecording () const |
bool | IsInProgressPVRRecording () const |
bool | IsPVRTimer () const |
bool | IsType (const char *ext) const |
bool | IsVirtualDirectoryRoot () const |
bool | IsReadOnly () const |
bool | CanQueue () const |
void | SetCanQueue (bool bYesNo) |
bool | IsParentFolder () const |
bool | IsFileFolder (EFileFolderType types=EFILEFOLDER_MASK_ALL) const |
bool | IsRemovable () const |
bool | IsPVR () const |
bool | IsLiveTV () const |
bool | IsRSS () const |
bool | IsAndroidApp () const |
void | RemoveExtension () |
void | CleanString () |
void | FillInDefaultIcon () |
void | SetFileSizeLabel () |
void | SetLabel (const std::string &strLabel) override |
int | GetVideoContentType () const |
bool | IsLabelPreformatted () const |
void | SetLabelPreformatted (bool bYesNo) |
bool | SortsOnTop () const |
bool | SortsOnBottom () const |
void | SetSpecialSort (SortSpecial sort) |
bool | HasMusicInfoTag () const |
MUSIC_INFO::CMusicInfoTag * | GetMusicInfoTag () |
const MUSIC_INFO::CMusicInfoTag * | GetMusicInfoTag () const |
bool | HasVideoInfoTag () const |
CVideoInfoTag * | GetVideoInfoTag () |
const CVideoInfoTag * | GetVideoInfoTag () const |
bool | HasEPGInfoTag () const |
const PVR::CPVREpgInfoTagPtr | GetEPGInfoTag () const |
void | SetEPGInfoTag (const PVR::CPVREpgInfoTagPtr &tag) |
bool | HasPVRChannelInfoTag () const |
const PVR::CPVRChannelPtr | GetPVRChannelInfoTag () const |
bool | HasPVRRecordingInfoTag () const |
const PVR::CPVRRecordingPtr | GetPVRRecordingInfoTag () const |
bool | HasPVRTimerInfoTag () const |
const PVR::CPVRTimerInfoTagPtr | GetPVRTimerInfoTag () const |
CFileItem | GetItemToPlay () const |
return the item to play. will be almost 'this', but can be different (e.g. "Play recording" from PVR EPG grid window) More... | |
bool | IsResumePointSet () const |
Test if this item has a valid resume point set. More... | |
double | GetCurrentResumeTime () const |
Return the current resume time. More... | |
bool | GetCurrentResumeTimeAndPartNumber (int64_t &startOffset, int &partNumber) const |
Return the current resume time and part. More... | |
bool | HasPictureInfoTag () const |
const CPictureInfoTag * | GetPictureInfoTag () const |
bool | HasAddonInfo () const |
const std::shared_ptr< const ADDON::IAddon > | GetAddonInfo () const |
bool | HasGameInfoTag () const |
KODI::GAME::CGameInfoTag * | GetGameInfoTag () |
const KODI::GAME::CGameInfoTag * | GetGameInfoTag () const |
CPictureInfoTag * | GetPictureInfoTag () |
std::string | GetLocalFanart () const |
Get the local fanart for this item if it exists. More... | |
std::string | GetLocalArt (const std::string &artFile, bool useFolder=false) const |
Assemble the filename of a particular piece of local artwork for an item. No file existence check is typically performed. More... | |
std::string | FindLocalArt (const std::string &artFile, bool useFolder) const |
Assemble the filename of a particular piece of local artwork for an item, and check for file existence. More... | |
bool | SkipLocalArt () const |
Whether or not to skip searching for local art. More... | |
std::string | GetTBNFile () const |
std::string | GetFolderThumb (const std::string &folderJPG="folder.jpg") const |
std::string | GetMovieName (bool bUseFolderNames=false) const |
std::string | GetBaseMoviePath (bool useFolderNames) const |
Find the base movie path (i.e. the item the user expects us to use to lookup the movie) For folder items, with "use foldernames for lookups" it returns the folder. Regardless of settings, for VIDEO_TS/BDMV it returns the parent of the VIDEO_TS/BDMV folder (if present) More... | |
std::string | GetUserMusicThumb (bool alwaysCheckRemote=false, bool fallbackToFolder=false) const |
std::string | GetLocalMetadataPath () const |
Get the path where we expect local metadata to reside. For a folder, this is just the existing path (eg tvshow folder) For a file, this is the parent path, with exceptions made for VIDEO_TS and BDMV files. More... | |
std::string | FindTrailer () const |
virtual bool | LoadMusicTag () |
virtual bool | LoadGameTag () |
const std::string & | GetMimeType () const |
void | SetMimeType (const std::string &mimetype) |
void | FillInMimeType (bool lookup=true) |
Resolve the MIME type based on file extension or a web lookup If m_mimetype is already set (non-empty), this function has no effect. For http:// and shout:// streams, this will query the stream (blocking operation). Set lookup=false to skip any internet lookups and always return immediately. More... | |
bool | ContentLookup () |
Some sources do not support HTTP HEAD request to determine i.e. mime type. More... | |
void | SetMimeTypeForInternetFile () |
(Re)set the mime-type for internet files if allowed (m_doContentLookup) Some sources do not support HTTP HEAD request to determine i.e. mime type More... | |
void | SetContentLookup (bool enable) |
Lookup via HTTP HEAD request might not be needed, use this setter to disable ContentLookup. More... | |
void | SetExtraInfo (const std::string &info) |
const std::string & | GetExtraInfo () const |
void | UpdateInfo (const CFileItem &item, bool replaceLabels=true) |
Update an item with information from another item We take metadata information from the given item and supplement the current item with that info. If tags exist in the new item we use the entire tag information. Properties are appended, and labels, thumbnail and icon are updated if non-empty in the given item. More... | |
bool | IsSamePath (const CFileItem *item) const |
bool | IsAlbum () const |
void | SetFromVideoInfoTag (const CVideoInfoTag &video) |
Sets details using the information from the CVideoInfoTag object Sets the videoinfotag and uses its information to set the label and path. More... | |
void | SetFromMusicInfoTag (const MUSIC_INFO::CMusicInfoTag &music) |
Sets details using the information from the CMusicInfoTag object Sets the musicinfotag and uses its information to set the label and path. More... | |
void | SetFromAlbum (const CAlbum &album) |
Sets details using the information from the CAlbum object Sets the album in the music info tag and uses its information to set the label and album-specific properties. More... | |
void | SetFromSong (const CSong &song) |
Sets details using the information from the CSong object Sets the song in the music info tag and uses its information to set the label, path, song-specific properties and artwork. More... | |
void | SetCueDocument (const CCueDocumentPtr &cuePtr) |
void | LoadEmbeddedCue () |
bool | HasCueDocument () const |
bool | LoadTracksFromCueDocument (CFileItemList &scannedItems) |
![]() | |
CGUIListItem (void) | |
CGUIListItem (const CGUIListItem &item) | |
CGUIListItem (const std::string &strLabel) | |
virtual | ~CGUIListItem (void) |
CGUIListItem & | operator= (const CGUIListItem &item) |
const std::string & | GetLabel () const |
void | SetLabel2 (const std::string &strLabel) |
const std::string & | GetLabel2 () const |
void | SetIconImage (const std::string &strIcon) |
const std::string & | GetIconImage () const |
void | SetOverlayImage (GUIIconOverlay icon, bool bOnOff=false) |
std::string | GetOverlayImage () const |
void | SetArt (const std::string &type, const std::string &url) |
Set a particular art type for an item. More... | |
void | SetArt (const ArtMap &art) |
set artwork for an item More... | |
void | AppendArt (const ArtMap &art, const std::string &prefix="") |
append artwork to an item More... | |
void | SetArtFallback (const std::string &from, const std::string &to) |
set a fallback image for art More... | |
void | ClearArt () |
clear art on an item More... | |
std::string | GetArt (const std::string &type) const |
Get a particular art type for an item. More... | |
const ArtMap & | GetArt () const |
get artwork for an item Retrieves artwork in a type:url map More... | |
bool | HasArt (const std::string &type) const |
Check whether an item has a particular piece of art Equivalent to !GetArt(type).empty() More... | |
void | SetSortLabel (const std::string &label) |
void | SetSortLabel (const std::wstring &label) |
const std::wstring & | GetSortLabel () const |
void | Select (bool bOnOff) |
bool | IsSelected () const |
bool | HasIcon () const |
bool | HasOverlay () const |
void | SetLayout (CGUIListItemLayoutPtr layout) |
CGUIListItemLayout * | GetLayout () |
void | SetFocusedLayout (CGUIListItemLayoutPtr layout) |
CGUIListItemLayout * | GetFocusedLayout () |
void | FreeIcons () |
void | FreeMemory (bool immediately=false) |
void | SetInvalid () |
void | SetProperty (const std::string &strKey, const CVariant &value) |
void | IncrementProperty (const std::string &strKey, int nVal) |
void | IncrementProperty (const std::string &strKey, double dVal) |
void | ClearProperties () |
void | AppendProperties (const CGUIListItem &item) |
Append the properties of one CGUIListItem to another. Any existing properties in the current item will be overridden if they are set in the passed in item. More... | |
void | Archive (CArchive &ar) |
void | Serialize (CVariant &value) |
bool | HasProperty (const std::string &strKey) const |
bool | HasProperties () const |
void | ClearProperty (const std::string &strKey) |
const CVariant & | GetProperty (const std::string &strKey) const |
Public Attributes | |
bool | m_bIsShareOrDrive |
is this a root share/drive More... | |
int | m_iDriveType |
If m_bIsShareOrDrive is true, use to get the share type. Types see: CMediaSource::m_iDriveType. More... | |
CDateTime | m_dateTime |
file creation date & time More... | |
int64_t | m_dwSize |
file size (0 for folders) More... | |
std::string | m_strDVDLabel |
std::string | m_strTitle |
int | m_iprogramCount |
int | m_idepth |
int64_t | m_lStartOffset |
int | m_lStartPartNumber |
int64_t | m_lEndOffset |
LockType | m_iLockMode |
std::string | m_strLockCode |
int | m_iHasLock |
int | m_iBadPwdCount |
![]() | |
bool | m_bIsFolder |
is item a folder or a file More... | |
Additional Inherited Members | |
![]() | |
enum | GUIIconOverlay { ICON_OVERLAY_NONE = 0 , ICON_OVERLAY_RAR , ICON_OVERLAY_ZIP , ICON_OVERLAY_LOCKED , ICON_OVERLAY_UNWATCHED , ICON_OVERLAY_WATCHED , ICON_OVERLAY_HD } |
typedef std::map< std::string, std::string > | ArtMap |
![]() | |
typedef std::map< std::string, CVariant, icompare > | PropertyMap |
![]() | |
~IArchivable ()=default | |
![]() | |
~ISerializable ()=default | |
![]() | |
~ISortable ()=default | |
![]() | |
std::string | m_strLabel2 |
std::string | m_strIcon |
GUIIconOverlay | m_overlayIcon |
CGUIListItemLayoutPtr | m_layout |
CGUIListItemLayoutPtr | m_focusedLayout |
bool | m_bSelected |
PropertyMap | m_mapProperties |
Represents a file on a share.
CFileItem::CFileItem | ( | void | ) |
CFileItem::CFileItem | ( | const CFileItem & | item | ) |
|
explicit |
|
explicit |
|
explicit |
CFileItem::CFileItem | ( | const CURL & | path, |
bool | bIsFolder | ||
) |
CFileItem::CFileItem | ( | const std::string & | strPath, |
bool | bIsFolder | ||
) |
|
explicit |
CFileItem::CFileItem | ( | const CSong & | song, |
const MUSIC_INFO::CMusicInfoTag & | music | ||
) |
CFileItem::CFileItem | ( | const std::string & | path, |
const CAlbum & | album | ||
) |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
override |
Implements IArchivable.
Reimplemented in CFileItemList.
bool CFileItem::CanQueue | ( | ) | const |
void CFileItem::CleanString | ( | ) |
|
inlineoverridevirtual |
Reimplemented from CGUIListItem.
Reimplemented in CGUIStaticItem.
|
inline |
Some sources do not support HTTP HEAD request to determine i.e. mime type.
bool CFileItem::Exists | ( | bool | bUseCache = true | ) | const |
void CFileItem::FillInDefaultIcon | ( | ) |
void CFileItem::FillInMimeType | ( | bool | lookup = true | ) |
Resolve the MIME type based on file extension or a web lookup If m_mimetype is already set (non-empty), this function has no effect. For http:// and shout:// streams, this will query the stream (blocking operation). Set lookup=false to skip any internet lookups and always return immediately.
std::string CFileItem::FindLocalArt | ( | const std::string & | artFile, |
bool | useFolder | ||
) | const |
Assemble the filename of a particular piece of local artwork for an item, and check for file existence.
artFile | the art file to search for. |
useFolder | whether to look in the folder for the art file. Defaults to false. |
std::string CFileItem::FindTrailer | ( | ) | const |
|
inline |
std::string CFileItem::GetBaseMoviePath | ( | bool | useFolderNames | ) | const |
Find the base movie path (i.e. the item the user expects us to use to lookup the movie) For folder items, with "use foldernames for lookups" it returns the folder. Regardless of settings, for VIDEO_TS/BDMV it returns the parent of the VIDEO_TS/BDMV folder (if present)
useFolderNames | whether we're using foldernames for lookups |
double CFileItem::GetCurrentResumeTime | ( | ) | const |
Return the current resume time.
bool CFileItem::GetCurrentResumeTimeAndPartNumber | ( | int64_t & | startOffset, |
int & | partNumber | ||
) | const |
Return the current resume time and part.
startOffset | will be filled with the resume time offset in seconds if item has a resume point set, is unchanged otherwise |
partNumber | will be filled with the part number if item has a resume point set, is unchanged otherwise |
const std::string & CFileItem::GetDynPath | ( | ) | const |
const CURL CFileItem::GetDynURL | ( | ) | const |
|
inline |
|
inline |
std::string CFileItem::GetFolderThumb | ( | const std::string & | folderJPG = "folder.jpg" | ) | const |
CGameInfoTag * CFileItem::GetGameInfoTag | ( | ) |
|
inline |
CFileItem CFileItem::GetItemToPlay | ( | ) | const |
return the item to play. will be almost 'this', but can be different (e.g. "Play recording" from PVR EPG grid window)
std::string CFileItem::GetLocalArt | ( | const std::string & | artFile, |
bool | useFolder = false |
||
) | const |
Assemble the filename of a particular piece of local artwork for an item. No file existence check is typically performed.
artFile | the art file to search for. |
useFolder | whether to look in the folder for the art file. Defaults to false. |
std::string CFileItem::GetLocalFanart | ( | ) | const |
Get the local fanart for this item if it exists.
std::string CFileItem::GetLocalMetadataPath | ( | ) | const |
Get the path where we expect local metadata to reside. For a folder, this is just the existing path (eg tvshow folder) For a file, this is the parent path, with exceptions made for VIDEO_TS and BDMV files.
Three cases are handled:
/foo/bar/movie_name/file_name -> /foo/bar/movie_name/ /foo/bar/movie_name/VIDEO_TS/file_name -> /foo/bar/movie_name/ /foo/bar/movie_name/BDMV/file_name -> /foo/bar/movie_name/
|
inline |
std::string CFileItem::GetMovieName | ( | bool | bUseFolderNames = false | ) | const |
MUSIC_INFO::CMusicInfoTag * CFileItem::GetMusicInfoTag | ( | ) |
|
inline |
std::string CFileItem::GetOpticalMediaPath | ( | ) | const |
Check whether an item is an optical media folder or its parent. This will return the non-empty path to the playable entry point of the media one or two levels down (VIDEO_TS.IFO for DVDs or index.bdmv for BDs). The returned path will be empty if folder does not meet this criterion.
|
inline |
CPictureInfoTag * CFileItem::GetPictureInfoTag | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
std::string CFileItem::GetTBNFile | ( | ) | const |
const CURL CFileItem::GetURL | ( | ) | const |
std::string CFileItem::GetUserMusicThumb | ( | bool | alwaysCheckRemote = false , |
bool | fallbackToFolder = false |
||
) | const |
int CFileItem::GetVideoContentType | ( | ) | const |
CVideoInfoTag * CFileItem::GetVideoInfoTag | ( | ) |
const CVideoInfoTag * CFileItem::GetVideoInfoTag | ( | ) | const |
|
inline |
bool CFileItem::HasCueDocument | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool CFileItem::HasVideoInfoTag | ( | ) | const |
bool CFileItem::IsAddonsPath | ( | ) | const |
bool CFileItem::IsAlbum | ( | ) | const |
bool CFileItem::IsAndroidApp | ( | ) | const |
bool CFileItem::IsAPK | ( | ) | const |
bool CFileItem::IsAudio | ( | ) | const |
Check whether an item is an audio item. Note that this returns true for anything with a music info tag, so that may include eg. folders.
bool CFileItem::IsAudioBook | ( | ) | const |
Check whether an item is an audio book item.
bool CFileItem::IsBDFile | ( | ) | const |
bool CFileItem::IsBluray | ( | ) | const |
bool CFileItem::IsCBR | ( | ) | const |
bool CFileItem::IsCBZ | ( | ) | const |
bool CFileItem::IsCDDA | ( | ) | const |
bool CFileItem::IsCUESheet | ( | ) | const |
bool CFileItem::IsDeleted | ( | ) | const |
Check whether an item is 'deleted' (for example, a trashed pvr recording).
bool CFileItem::IsDeletedPVRRecording | ( | ) | const |
bool CFileItem::IsDiscImage | ( | ) | const |
bool CFileItem::IsDiscStub | ( | ) | const |
bool CFileItem::IsDVD | ( | ) | const |
bool CFileItem::IsDVDFile | ( | bool | bVobs = true , |
bool | bIfos = true |
||
) | const |
bool CFileItem::IsEPG | ( | ) | const |
bool CFileItem::IsFileFolder | ( | EFileFolderType | types = EFILEFOLDER_MASK_ALL | ) | const |
|
inlineoverridevirtual |
Reimplemented from CGUIListItem.
bool CFileItem::IsGame | ( | ) | const |
bool CFileItem::IsHD | ( | ) | const |
bool CFileItem::IsInProgressPVRRecording | ( | ) | const |
bool CFileItem::IsInternetStream | ( | const bool | bStrictCheck = false | ) | const |
bool CFileItem::IsISO9660 | ( | ) | const |
|
inline |
bool CFileItem::IsLibraryFolder | ( | ) | const |
bool CFileItem::IsLiveTV | ( | ) | const |
bool CFileItem::IsLyrics | ( | ) | const |
bool CFileItem::IsMultiPath | ( | ) | const |
bool CFileItem::IsMusicDb | ( | ) | const |
bool CFileItem::IsNFO | ( | ) | const |
bool CFileItem::IsNfs | ( | ) | const |
bool CFileItem::IsOnDVD | ( | ) | const |
bool CFileItem::IsOnLAN | ( | ) | const |
bool CFileItem::IsOpticalMediaFile | ( | ) | const |
bool CFileItem::IsParentFolder | ( | ) | const |
bool CFileItem::IsPath | ( | const std::string & | path, |
bool | ignoreURLOptions = false |
||
) | const |
bool CFileItem::IsPicture | ( | ) | const |
Check whether an item is a picture item. Note that this returns true for anything with a picture info tag, so that may include eg. folders.
bool CFileItem::IsPlayList | ( | ) | const |
bool CFileItem::IsPlugin | ( | ) | const |
bool CFileItem::IsProtectedBlurayDisc | ( | ) | const |
bool CFileItem::IsPVR | ( | ) | const |
bool CFileItem::IsPVRChannel | ( | ) | const |
bool CFileItem::IsPVRRecording | ( | ) | const |
bool CFileItem::IsPVRTimer | ( | ) | const |
bool CFileItem::IsPythonScript | ( | ) | const |
bool CFileItem::IsRAR | ( | ) | const |
bool CFileItem::IsReadOnly | ( | ) | const |
bool CFileItem::IsRemote | ( | ) | const |
bool CFileItem::IsRemovable | ( | ) | const |
bool CFileItem::IsResumePointSet | ( | ) | const |
Test if this item has a valid resume point set.
bool CFileItem::IsRSS | ( | ) | const |
bool CFileItem::IsSamePath | ( | const CFileItem * | item | ) | const |
bool CFileItem::IsScript | ( | ) | const |
bool CFileItem::IsSmartPlayList | ( | ) | const |
bool CFileItem::IsSmb | ( | ) | const |
bool CFileItem::IsSourcesPath | ( | ) | const |
bool CFileItem::IsStack | ( | ) | const |
bool CFileItem::IsSubtitle | ( | ) | const |
bool CFileItem::IsType | ( | const char * | ext | ) | const |
bool CFileItem::IsURL | ( | ) | const |
bool CFileItem::IsURL | ( | const CURL & | url | ) | const |
bool CFileItem::IsUsablePVRRecording | ( | ) | const |
bool CFileItem::IsVideo | ( | ) | const |
Check whether an item is a video item. Note that this returns true for anything with a video info tag, so that may include eg. folders.
bool CFileItem::IsVideoDb | ( | ) | const |
bool CFileItem::IsVirtualDirectoryRoot | ( | ) | const |
bool CFileItem::IsZIP | ( | ) | const |
void CFileItem::LoadEmbeddedCue | ( | ) |
|
virtual |
|
virtual |
bool CFileItem::LoadTracksFromCueDocument | ( | CFileItemList & | scannedItems | ) |
void CFileItem::RemoveExtension | ( | ) |
reset class to it's default values as per construction. Free's all allocated memory.
Implements ISerializable.
void CFileItem::SetCanQueue | ( | bool | bYesNo | ) |
|
inline |
Lookup via HTTP HEAD request might not be needed, use this setter to disable ContentLookup.
void CFileItem::SetCueDocument | ( | const CCueDocumentPtr & | cuePtr | ) |
void CFileItem::SetDynPath | ( | const std::string & | path | ) |
|
inline |
|
inline |
void CFileItem::SetFileSizeLabel | ( | ) |
Sets details using the information from the CAlbum object Sets the album in the music info tag and uses its information to set the label and album-specific properties.
album | album details to use and set |
void CFileItem::SetFromMusicInfoTag | ( | const MUSIC_INFO::CMusicInfoTag & | music | ) |
Sets details using the information from the CMusicInfoTag object Sets the musicinfotag and uses its information to set the label and path.
music | music details to use and set |
Sets details using the information from the CSong object Sets the song in the music info tag and uses its information to set the label, path, song-specific properties and artwork.
song | song details to use and set |
void CFileItem::SetFromVideoInfoTag | ( | const CVideoInfoTag & | video | ) |
Sets details using the information from the CVideoInfoTag object Sets the videoinfotag and uses its information to set the label and path.
video | video details to use and set |
|
overridevirtual |
Reimplemented from CGUIListItem.
|
inline |
|
inline |
void CFileItem::SetMimeTypeForInternetFile | ( | ) |
(Re)set the mime-type for internet files if allowed (m_doContentLookup) Some sources do not support HTTP HEAD request to determine i.e. mime type
|
inline |
|
inline |
bool CFileItem::SkipLocalArt | ( | ) | const |
Whether or not to skip searching for local art.
|
inline |
|
inline |
Implements ISortable.
Update an item with information from another item We take metadata information from the given item and supplement the current item with that info. If tags exist in the new item we use the entire tag information. Properties are appended, and labels, thumbnail and icon are updated if non-empty in the given item.
item | the item used to supplement information |
replaceLabels | whether to replace labels (defaults to true) |
bool CFileItem::m_bIsShareOrDrive |
is this a root share/drive
CDateTime CFileItem::m_dateTime |
file creation date & time
int64_t CFileItem::m_dwSize |
file size (0 for folders)
int CFileItem::m_iBadPwdCount |
int CFileItem::m_idepth |
int CFileItem::m_iDriveType |
If m_bIsShareOrDrive is true, use to get the share type. Types see: CMediaSource::m_iDriveType.
int CFileItem::m_iHasLock |
LockType CFileItem::m_iLockMode |
int CFileItem::m_iprogramCount |
int64_t CFileItem::m_lEndOffset |
int64_t CFileItem::m_lStartOffset |
int CFileItem::m_lStartPartNumber |
std::string CFileItem::m_strDVDLabel |
std::string CFileItem::m_strLockCode |
std::string CFileItem::m_strTitle |