|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Generic interface for platform disc drive handling. More...
#include <IDiscDriveHandler.h>
Public Member Functions | |
| virtual DriveState | GetDriveState (const std::string &devicePath)=0 |
| Get the optical drive state provided its device path. | |
| virtual TrayState | GetTrayState (const std::string &devicePath)=0 |
| Get the optical drive tray state provided the drive device path. | |
| virtual void | EjectDriveTray (const std::string &devicePath)=0 |
| Eject the provided drive device. | |
| virtual void | CloseDriveTray (const std::string &devicePath)=0 |
| Close the provided drive device. | |
| virtual void | ToggleDriveTray (const std::string &devicePath)=0 |
| Toggle the state of a given drive device. | |
Static Public Member Functions | |
| static std::shared_ptr< IDiscDriveHandler > | CreateInstance () |
| Called to create platform-specific disc drive handler. | |
Protected Member Functions | |
| virtual | ~IDiscDriveHandler ()=default |
| IDiscDriveHandler ()=default | |
Generic interface for platform disc drive handling.
|
protectedvirtualdefault |
|
protecteddefault |
|
pure virtual |
Close the provided drive device.
| devicePath | the path for the device drive (e.g. /dev/sr0) |
Implemented in CDiscDriveHandlerPosix, and CWin32DiscDriveHandler.
|
static |
Called to create platform-specific disc drive handler.
This method is used to create platform-specific disc drive handler
|
pure virtual |
Eject the provided drive device.
| devicePath | the path for the device drive (e.g. /dev/sr0) |
Implemented in CDiscDriveHandlerPosix, and CWin32DiscDriveHandler.
|
pure virtual |
Get the optical drive state provided its device path.
| devicePath | the path for the device drive (e.g. /dev/sr0) |
Implemented in CDiscDriveHandlerPosix, and CWin32DiscDriveHandler.
|
pure virtual |
Get the optical drive tray state provided the drive device path.
| devicePath | the path for the device drive (e.g. /dev/sr0) |
Implemented in CDiscDriveHandlerPosix, and CWin32DiscDriveHandler.
|
pure virtual |
Toggle the state of a given drive device.
Will internally call EjectDriveTray or CloseDriveTray depending on the internal state of the drive (i.e. if open -> CloseDriveTray / if closed -> EjectDriveTray)
| devicePath | the path for the device drive (e.g. /dev/sr0) |
Implemented in CDiscDriveHandlerPosix, and CWin32DiscDriveHandler.