Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches

#include <Filesystem.h>

Public Member Functions

 CDirEntry (const std::string &label="", const std::string &path="", bool folder=false, int64_t size=-1, time_t dateTime=0)
 Constructor for VFS directory entry.
 
 CDirEntry (const VFSDirEntry &dirEntry)
 
const std::string & Label (void) const
 Get the directory entry name.
 
const std::string & Title (void) const
 Get the optional title of entry.
 
const std::string & Path (void) const
 Get the path of the entry.
 
bool IsFolder (void) const
 Used to check entry is folder.
 
int64_t Size (void) const
 If file, the size of the file.
 
time_t DateTime ()
 Get file time and date for a new entry.
 
void SetLabel (const std::string &label)
 Set the label name.
 
void SetTitle (const std::string &title)
 Set the title name.
 
void SetPath (const std::string &path)
 Set the path of the entry.
 
void SetFolder (bool folder)
 Set the entry defined as folder.
 
void SetSize (int64_t size)
 Set a file size for a new entry.
 
void SetDateTime (time_t dateTime)
 Set file time and date for a new entry.
 
void AddProperty (const std::string &id, const std::string &value)
 Add a by string defined property entry to directory entry.
 
void ClearProperties ()
 Clear all present properties.
 
const std::map< std::string, std::string > & GetProperties () const
 Get the present properties list on directory entry.
 

Constructor & Destructor Documentation

◆ CDirEntry()

kodi::vfs::CDirEntry::CDirEntry ( const VFSDirEntry & dirEntry)
inlineexplicit

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