Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestFileCache Class Reference
Inheritance diagram for TestFileCache:
XFILE::CFileCache XFILE::IFile CThread

Public Member Functions

 TestFileCache (unsigned int flags, std::unique_ptr< IFileCacheSource > source)
 
bool WaitForSeekRequest (std::chrono::milliseconds timeout)
 
bool WaitForDirectSeekWait (std::chrono::milliseconds timeout)
 
- Public Member Functions inherited from XFILE::CFileCache
 CFileCache (const unsigned int flags)
 
 ~CFileCache () override
 
void Process () override
 
void OnExit () override
 
void StopThread (bool bWait=true) override
 
bool Open (const CURL &url) override
 
void Close () override
 
bool Exists (const CURL &url) override
 
int Stat (const CURL &url, struct __stat64 *buffer) override
 Fills struct __stat64 with information about file specified by url.
 
ssize_t Read (void *lpBuf, size_t uiBufSize) override
 
int64_t Seek (int64_t iFilePosition, int iWhence) override
 
int64_t GetPosition () override
 
int64_t GetLength () override
 
int IoControl (IOControl request, void *param) override
 
IFile * GetFileImp ()
 
const std::string GetProperty (XFILE::FileProperty type, const std::string &name="") const override
 
const std::vector< std::string > GetPropertyValues (XFILE::FileProperty type, const std::string &name="") const override
 
- Public Member Functions inherited from XFILE::IFile
 IFile ()
 
virtual ~IFile ()
 
virtual bool OpenForWrite (const CURL &url, bool bOverWrite=false)
 
virtual bool ReOpen (const CURL &url)
 
virtual int Stat (struct __stat64 *buffer)
 
virtual ssize_t Write (const void *bufPtr, size_t bufSize)
 
virtual ReadLineResult ReadLine (char *buffer, std::size_t bufferSize)
 
virtual void Flush ()
 
virtual int Truncate (int64_t size)
 
virtual int GetChunkSize ()
 
virtual double GetDownloadSpeed ()
 
virtual bool Delete (const CURL &url)
 
virtual bool Rename (const CURL &url, const CURL &urlnew)
 
virtual bool SetHidden (const CURL &url, bool hidden)
 
- Public Member Functions inherited from CThread
 CThread (IRunnable *pRunnable, const char *ThreadName)
 
virtual ~CThread ()
 
void Create (bool bAutoDelete=false)
 
template<typename Rep , typename Period >
void Sleep (std::chrono::duration< Rep, Period > duration)
 
bool IsAutoDelete () const
 
bool IsRunning () const
 
bool IsCurrentThread () const
 
bool Join (std::chrono::milliseconds duration)
 
bool SetPriority (const ThreadPriority &priority)
 Set the threads priority. This uses the platforms native threading library to do so.
 
bool SetTask (const ThreadTask &task)
 Assign the current thread a task for OS scheduling (platform dependent)
 
bool RevertTask ()
 Revert the current thread to normal scheduling (platform dependent)
 
virtual void OnException ()
 

Additional Inherited Members

- Static Public Member Functions inherited from CThread
static const std::thread::id GetCurrentThreadId ()
 
static CThread * GetCurrentThread ()
 
- Protected Types inherited from CThread
enum  WaitResponse { WAIT_INTERRUPTED = -1 , WAIT_SIGNALED = 0 , WAIT_TIMEDOUT = 1 }
 
- Protected Member Functions inherited from XFILE::CFileCache
 CFileCache (unsigned int flags, std::unique_ptr< IFileCacheSource > source)
 Construct a file cache with a custom backing source.
 
- Protected Member Functions inherited from CThread
 CThread (const char *ThreadName)
 
virtual void OnStartup ()
 
WaitResponse AbortableWait (CEvent &event, std::chrono::milliseconds duration=std::chrono::milliseconds(-1))
 
- Protected Attributes inherited from CThread
std::atomic< bool > m_bStop
 

Constructor & Destructor Documentation

◆ TestFileCache()

TestFileCache::TestFileCache ( unsigned int flags,
std::unique_ptr< IFileCacheSource > source )
inline

Member Function Documentation

◆ WaitForDirectSeekWait()

bool TestFileCache::WaitForDirectSeekWait ( std::chrono::milliseconds timeout)
inline

◆ WaitForSeekRequest()

bool TestFileCache::WaitForSeekRequest ( std::chrono::milliseconds timeout)
inline

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