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

#include <PeripheralUtils.h>

Inheritance diagram for kodi::addon::Peripheral:
kodi::addon::Joystick

Public Member Functions

 Peripheral (PERIPHERAL_TYPE type=PERIPHERAL_TYPE_UNKNOWN, const std::string &strName="")
 Constructor.
 
virtual ~Peripheral (void)=default
 Destructor.
 
bool operator== (const Peripheral &rhs) const
 Comparison operator.
 
PERIPHERAL_TYPE Type (void) const
 Get peripheral type.
 
const std::string & Name (void) const
 Get peripheral name.
 
uint16_t VendorID (void) const
 Get peripheral vendor id.
 
uint16_t ProductID (void) const
 Get peripheral product id.
 
unsigned int Index (void) const
 Get peripheral index identifier.
 
bool IsVidPidKnown (void) const
 Check VID and PID are known.
 
void SetType (PERIPHERAL_TYPE type)
 Set peripheral type.
 
void SetName (const std::string &strName)
 Set peripheral name.
 
void SetVendorID (uint16_t vendorId)
 Set peripheral vendor id.
 
void SetProductID (uint16_t productId)
 Set peripheral product identifier.
 
void SetIndex (unsigned int index)
 Set peripheral index.
 
 Peripheral (const PERIPHERAL_INFO &info)
 
void ToStruct (PERIPHERAL_INFO &info) const
 

Static Public Member Functions

static void FreeStruct (PERIPHERAL_INFO &info)
 

Constructor & Destructor Documentation

◆ Peripheral()

kodi::addon::Peripheral::Peripheral ( const PERIPHERAL_INFO & info)
inlineexplicit

Member Function Documentation

◆ FreeStruct()

static void kodi::addon::Peripheral::FreeStruct ( PERIPHERAL_INFO & info)
inlinestatic

◆ ToStruct()

void kodi::addon::Peripheral::ToStruct ( PERIPHERAL_INFO & info) const
inline

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