#include <MediaManager.h>
|
| CMediaManager () |
|
void | Initialize () |
|
void | Stop () |
|
bool | LoadSources () |
|
bool | SaveSources () |
|
void | GetLocalDrives (VECSOURCES &localDrives, bool includeQ=true) |
|
void | GetRemovableDrives (VECSOURCES &removableDrives) |
|
void | GetNetworkLocations (VECSOURCES &locations, bool autolocations=true) |
|
bool | AddNetworkLocation (const std::string &path) |
|
bool | HasLocation (const std::string &path) const |
|
bool | RemoveLocation (const std::string &path) |
|
bool | SetLocationPath (const std::string &oldPath, const std::string &newPath) |
|
void | AddAutoSource (const CMediaSource &share, bool bAutorun=false) |
|
void | RemoveAutoSource (const CMediaSource &share) |
|
bool | IsDiscInDrive (const std::string &devicePath="") |
|
bool | IsAudio (const std::string &devicePath="") |
|
bool | HasOpticalDrive () |
|
std::string | TranslateDevicePath (const std::string &devicePath, bool bReturnAsDevice=false) |
|
DWORD | GetDriveStatus (const std::string &devicePath="") |
|
std::string | GetDiscPath () |
|
void | SetHasOpticalDrive (bool bstatus) |
|
bool | Eject (const std::string &mountpath) |
|
void | EjectTray (const bool bEject=true, const char cDriveLetter='\0') |
|
void | CloseTray (const char cDriveLetter='\0') |
|
void | ToggleTray (const char cDriveLetter='\0') |
|
void | ProcessEvents () |
|
std::vector< std::string > | GetDiskUsage () |
|
void | OnStorageAdded (const std::string &label, const std::string &path) override |
|
void | OnStorageSafelyRemoved (const std::string &label) override |
|
void | OnStorageUnsafelyRemoved (const std::string &label) override |
|
void | OnJobComplete (unsigned int jobID, bool success, CJob *job) override |
| The callback used when a job completes. More...
|
|
virtual | ~IStorageEventsCallback ()=default |
|
virtual | ~IJobCallback ()=default |
| Destructor for job call back objects. More...
|
|
virtual void | OnJobProgress (unsigned int jobID, unsigned int progress, unsigned int total, const CJob *job) |
| An optional callback function that a job may call while processing. More...
|
|
◆ CMediaManager()
CMediaManager::CMediaManager |
( |
| ) |
|
◆ AddAutoSource()
void CMediaManager::AddAutoSource |
( |
const CMediaSource & |
share, |
|
|
bool |
bAutorun = false |
|
) |
| |
◆ AddNetworkLocation()
bool CMediaManager::AddNetworkLocation |
( |
const std::string & |
path | ) |
|
◆ CloseTray()
void CMediaManager::CloseTray |
( |
const char |
cDriveLetter = '\0' | ) |
|
◆ Eject()
bool CMediaManager::Eject |
( |
const std::string & |
mountpath | ) |
|
◆ EjectTray()
void CMediaManager::EjectTray |
( |
const bool |
bEject = true , |
|
|
const char |
cDriveLetter = '\0' |
|
) |
| |
◆ GetDiscPath()
std::string CMediaManager::GetDiscPath |
( |
| ) |
|
◆ GetDiskUsage()
std::vector< std::string > CMediaManager::GetDiskUsage |
( |
| ) |
|
◆ GetDriveStatus()
DWORD CMediaManager::GetDriveStatus |
( |
const std::string & |
devicePath = "" | ) |
|
◆ GetLocalDrives()
void CMediaManager::GetLocalDrives |
( |
VECSOURCES & |
localDrives, |
|
|
bool |
includeQ = true |
|
) |
| |
◆ GetNetworkLocations()
void CMediaManager::GetNetworkLocations |
( |
VECSOURCES & |
locations, |
|
|
bool |
autolocations = true |
|
) |
| |
◆ GetRemovableDrives()
void CMediaManager::GetRemovableDrives |
( |
VECSOURCES & |
removableDrives | ) |
|
◆ HasLocation()
bool CMediaManager::HasLocation |
( |
const std::string & |
path | ) |
const |
◆ HasOpticalDrive()
bool CMediaManager::HasOpticalDrive |
( |
| ) |
|
◆ Initialize()
◆ IsAudio()
bool CMediaManager::IsAudio |
( |
const std::string & |
devicePath = "" | ) |
|
◆ IsDiscInDrive()
bool CMediaManager::IsDiscInDrive |
( |
const std::string & |
devicePath = "" | ) |
|
◆ LoadSources()
bool CMediaManager::LoadSources |
( |
| ) |
|
◆ OnJobComplete()
void CMediaManager::OnJobComplete |
( |
unsigned int |
jobID, |
|
|
bool |
success, |
|
|
CJob * |
job |
|
) |
| |
|
inlineoverridevirtual |
The callback used when a job completes.
OnJobComplete is called at the completion of the job's DoWork() function, and is used to return information to the caller on the result of the job. On returning form this function the CJobManager will destroy this job.
- Parameters
-
jobID | the unique id of the job (as retrieved from CJobManager::AddJob) |
success | the result from the DoWork call |
job | the job that has been processed. The job will be destroyed after this function returns |
- See also
- CJobManager and CJob
Implements IJobCallback.
◆ OnStorageAdded()
void CMediaManager::OnStorageAdded |
( |
const std::string & |
label, |
|
|
const std::string & |
path |
|
) |
| |
|
overridevirtual |
◆ OnStorageSafelyRemoved()
void CMediaManager::OnStorageSafelyRemoved |
( |
const std::string & |
label | ) |
|
|
overridevirtual |
◆ OnStorageUnsafelyRemoved()
void CMediaManager::OnStorageUnsafelyRemoved |
( |
const std::string & |
label | ) |
|
|
overridevirtual |
◆ ProcessEvents()
void CMediaManager::ProcessEvents |
( |
| ) |
|
◆ RemoveAutoSource()
◆ RemoveLocation()
bool CMediaManager::RemoveLocation |
( |
const std::string & |
path | ) |
|
◆ SaveSources()
bool CMediaManager::SaveSources |
( |
| ) |
|
◆ SetHasOpticalDrive()
void CMediaManager::SetHasOpticalDrive |
( |
bool |
bstatus | ) |
|
◆ SetLocationPath()
bool CMediaManager::SetLocationPath |
( |
const std::string & |
oldPath, |
|
|
const std::string & |
newPath |
|
) |
| |
◆ Stop()
◆ ToggleTray()
void CMediaManager::ToggleTray |
( |
const char |
cDriveLetter = '\0' | ) |
|
◆ TranslateDevicePath()
std::string CMediaManager::TranslateDevicePath |
( |
const std::string & |
devicePath, |
|
|
bool |
bReturnAsDevice = false |
|
) |
| |
- Todo:
- translate cdda://<device>/
◆ m_bhasoptical
bool CMediaManager::m_bhasoptical |
|
protected |
◆ m_CritSecStorageProvider
◆ m_locations
◆ m_muAutoSource
◆ m_strFirstAvailDrive
std::string CMediaManager::m_strFirstAvailDrive |
|
protected |
The documentation for this class was generated from the following files: