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

#include <AndroidStorageProvider.h>

Inheritance diagram for CAndroidStorageProvider:
IStorageProvider

Public Member Functions

 CAndroidStorageProvider ()
 
 ~CAndroidStorageProvider () override=default
 
void Initialize () override
 
void Stop () override
 
bool Eject (const std::string &mountpath) override
 
void GetLocalDrives (std::vector< CMediaSource > &localDrives) override
 
void GetRemovableDrives (std::vector< CMediaSource > &removableDrives) override
 
std::vector< std::string > GetDiskUsage () override
 
bool PumpDriveChangeEvents (IStorageEventsCallback *callback) override
 
- Public Member Functions inherited from IStorageProvider
virtual ~IStorageProvider ()=default
 
virtual std::string GetFirstOpticalDeviceFileName ()
 

Static Public Member Functions

static bool GetExternalStorage (std::string &path, const std::string &type="")
 If external storage is available, it returns the path for the external storage (for the specified type)
 
- Static Public Member Functions inherited from IStorageProvider
static std::unique_ptr< IStorageProviderCreateInstance ()
 Called by media manager to create platform storage provider.
 

Constructor & Destructor Documentation

◆ CAndroidStorageProvider()

CAndroidStorageProvider::CAndroidStorageProvider ( )

◆ ~CAndroidStorageProvider()

CAndroidStorageProvider::~CAndroidStorageProvider ( )
overridedefault

Member Function Documentation

◆ Eject()

bool CAndroidStorageProvider::Eject ( const std::string & mountpath)
inlineoverridevirtual

Implements IStorageProvider.

◆ GetDiskUsage()

std::vector< std::string > CAndroidStorageProvider::GetDiskUsage ( void )
overridevirtual

Implements IStorageProvider.

◆ GetExternalStorage()

bool CAndroidStorageProvider::GetExternalStorage ( std::string & path,
const std::string & type = "" )
static

If external storage is available, it returns the path for the external storage (for the specified type)

Parameters
pathwill contain the path of the external storage (for the specified type)
typeoptional type. Possible values are "", "files", "music", "videos", "pictures", "photos, "downloads"
Returns
true if external storage is available and a valid path has been stored in the path parameter

◆ GetLocalDrives()

void CAndroidStorageProvider::GetLocalDrives ( std::vector< CMediaSource > & localDrives)
overridevirtual

Implements IStorageProvider.

◆ GetRemovableDrives()

void CAndroidStorageProvider::GetRemovableDrives ( std::vector< CMediaSource > & removableDrives)
overridevirtual

Implements IStorageProvider.

◆ Initialize()

void CAndroidStorageProvider::Initialize ( )
inlineoverridevirtual

Implements IStorageProvider.

◆ PumpDriveChangeEvents()

bool CAndroidStorageProvider::PumpDriveChangeEvents ( IStorageEventsCallback * callback)
overridevirtual

Implements IStorageProvider.

◆ Stop()

void CAndroidStorageProvider::Stop ( )
inlineoverridevirtual

Implements IStorageProvider.


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