Kodi Documentation  18.0
Kodi is an open source media player and entertainment hub.
kodi::addon Namespace Reference

Classes

class  CAddonBase
 Add-on main instance class. More...
 
class  CInstanceAudioDecoder
 
class  CInstanceAudioEncoder
 
class  CInstanceImageDecoder
 
class  CInstanceInputStream
 
class  CInstancePeripheral
 
class  CInstanceScreensaver
 
class  CInstanceVFS
 
class  CInstanceVideoCodec
 
class  CInstanceVisualization
 
struct  DriverPrimitive
 
class  IAddonInstance
 
class  Joystick
 
class  JoystickFeature
 
class  Peripheral
 
class  PeripheralEvent
 
class  PeripheralVector
 

Typedefs

typedef PeripheralVector< Peripheral, PERIPHERAL_INFOPeripherals
 
typedef PeripheralVector< PeripheralEvent, PERIPHERAL_EVENTPeripheralEvents
 
typedef PeripheralVector< Joystick, JOYSTICK_INFOJoysticks
 
typedef PeripheralVector< DriverPrimitive, JOYSTICK_DRIVER_PRIMITIVEDriverPrimitives
 
typedef PeripheralVector< JoystickFeature, JOYSTICK_FEATUREJoystickFeatures
 

Functions

kodi::addon::CInstanceVFS IAddonInstance GetKeyboardInput (const std::string &heading, std::string &input, bool hiddenInput=false)
 Require keyboard input. More...
 
void SetErrorDialog (const std::string &heading, const std::string &line1, const std::string &line2="", const std::string &line3="")
 Display an error dialog. More...
 
void RequireAuthentication (const std::string &url)
 Prompt the user for authentication of a URL. More...
 
 CVFSCallbacks (const VFSGetDirectoryCallbacks *cb)
 

Typedef Documentation

§ DriverPrimitives

§ JoystickFeatures

§ Joysticks

§ PeripheralEvents

§ Peripherals

Function Documentation

§ CVFSCallbacks()

kodi::addon::CVFSCallbacks ( const VFSGetDirectoryCallbacks cb)
explicit

§ GetKeyboardInput()

kodi::addon::CInstanceVFS IAddonInstance kodi::addon::GetKeyboardInput ( const std::string &  heading,
std::string &  input,
bool  hiddenInput = false 
)

Require keyboard input.

Becomes called if GetDirectory() returns false and GetDirectory() becomes after entry called again.

Parameters
[in]headingThe heading of the keyboard dialog
[out]inputThe resulting string. Returns string after second call!
[in]hiddenInputTo show input only as "*" on dialog
Returns
True if input was received, false otherwise

§ RequireAuthentication()

void kodi::addon::RequireAuthentication ( const std::string &  url)

Prompt the user for authentication of a URL.

Parameters
[in]urlThe URL

§ SetErrorDialog()

void kodi::addon::SetErrorDialog ( const std::string &  heading,
const std::string &  line1,
const std::string &  line2 = "",
const std::string &  line3 = "" 
)

Display an error dialog.

Parameters
[in]headingThe heading of the error dialog
[in]line1The first line of the error dialog
[in]line2[opt] The second line of the error dialog
[in]line3[opt] The third line of the error dialog