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

#include <IStorageProvider.h>

Inheritance diagram for IStorageProvider:
CAndroidStorageProvider CIOSStorageProvider CLinuxStorageProvider COSXStorageProvider CPosixMountProvider CStorageProvider CUDevProvider CUDisks2Provider CUDisksProvider CWin32StorageProvider

Public Member Functions

virtual ~IStorageProvider ()=default
 
virtual void Initialize ()=0
 
virtual void Stop ()=0
 
virtual void GetLocalDrives (std::vector< CMediaSource > &localDrives)=0
 
virtual void GetRemovableDrives (std::vector< CMediaSource > &removableDrives)=0
 
virtual std::string GetFirstOpticalDeviceFileName ()
 
virtual bool Eject (const std::string &mountpath)=0
 
virtual std::vector< std::string > GetDiskUsage ()=0
 
virtual bool PumpDriveChangeEvents (IStorageEventsCallback *callback)=0
 

Static Public Member Functions

static std::unique_ptr< IStorageProviderCreateInstance ()
 Called by media manager to create platform storage provider.
 

Constructor & Destructor Documentation

◆ ~IStorageProvider()

virtual IStorageProvider::~IStorageProvider ( )
virtualdefault

Member Function Documentation

◆ CreateInstance()

std::unique_ptr< IStorageProvider > IStorageProvider::CreateInstance ( )
static

Called by media manager to create platform storage provider.

This method used to create platform specified storage provider

◆ Eject()

◆ GetDiskUsage()

virtual std::vector< std::string > IStorageProvider::GetDiskUsage ( )
pure virtual

◆ GetFirstOpticalDeviceFileName()

virtual std::string IStorageProvider::GetFirstOpticalDeviceFileName ( )
inlinevirtual

Reimplemented in CStorageProvider, and CWin32StorageProvider.

◆ GetLocalDrives()

◆ GetRemovableDrives()

virtual void IStorageProvider::GetRemovableDrives ( std::vector< CMediaSource > & removableDrives)
pure virtual

◆ Initialize()

◆ PumpDriveChangeEvents()

◆ Stop()


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