Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
IDiscDriveHandler.h File Reference
#include <memory>
#include <string>

Classes

class  IDiscDriveHandler
 Generic interface for platform disc drive handling. More...
 

Enumerations

enum class  DriveState {
  OPEN , NOT_READY , READY , CLOSED_NO_MEDIA ,
  CLOSED_MEDIA_PRESENT , NONE , CLOSED_MEDIA_UNDEFINED
}
 Represents the state of a disc (optical) drive. More...
 
enum class  TrayState { UNDEFINED , OPEN , CLOSED_NO_MEDIA , CLOSED_MEDIA_PRESENT }
 Represents the state of the drive tray. More...
 

Enumeration Type Documentation

◆ DriveState

enum class DriveState
strong

Represents the state of a disc (optical) drive.

Enumerator
OPEN 

The drive is open

NOT_READY 

The drive is not ready (happens when openning or closing)

READY 

The drive is ready

CLOSED_NO_MEDIA 

The drive is closed but no media could be detected in the drive

CLOSED_MEDIA_PRESENT 

The drive is closed and there is media in the drive

NONE 

The system does not have an optical drive

CLOSED_MEDIA_UNDEFINED 

The drive is closed but we don't know yet if there's media there

◆ TrayState

enum class TrayState
strong

Represents the state of the drive tray.

Enumerator
UNDEFINED 

The tray is in an undefined state, we don't know yet

OPEN 

The tray is open

CLOSED_NO_MEDIA 

The tray is closed and doesn't have any optical media

CLOSED_MEDIA_PRESENT 

The tray is closed and contains optical media