Wrapper class providing peripheral information
Classes can extend Peripheral to inherit peripheral properties.  
More...
Wrapper class providing peripheral information
Classes can extend Peripheral to inherit peripheral properties. 
Used on kodi::addon::CInstancePeripheral::PerformDeviceScan().
@ingroup cpp_kodi_addon_peripheral_Defs_Peripheral_Peripheral
The following table contains values that can be set with class Peripheral : 
Further are following included:
◆ Index()
  
  
      
        
          | unsigned int kodi::addon::Peripheral::Index  | 
          ( | 
          void |            | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get peripheral index identifier. 
- Returns
 - Index number 
 
 
 
◆ IsVidPidKnown()
  
  
      
        
          | bool kodi::addon::Peripheral::IsVidPidKnown  | 
          ( | 
          void |            | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Check VID and PID are known. 
- Returns
 - true if VID and PID are not 0
 
- Note
 - Derived property: VID and PID are 
0x0000 if unknown  
 
 
◆ Name()
  
  
      
        
          | const std::string & kodi::addon::Peripheral::Name  | 
          ( | 
          void |            | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get peripheral name. 
- Returns
 - Name string of peripheral 
 
 
 
◆ operator==()
  
  
      
        
          | bool kodi::addon::Peripheral::operator==  | 
          ( | 
          const Peripheral & |           rhs | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Comparison operator. 
- Note
 - The index is not included in the comparison because it is affected by the presence of other peripherals 
 
 
 
◆ Peripheral()
◆ ProductID()
  
  
      
        
          | uint16_t kodi::addon::Peripheral::ProductID  | 
          ( | 
          void |            | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get peripheral product id. 
- Returns
 - Product id 
 
 
 
◆ SetIndex()
  
  
      
        
          | void kodi::addon::Peripheral::SetIndex  | 
          ( | 
          unsigned int |           index | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set peripheral index. 
- Parameters
 - 
  
  
 
 
 
◆ SetName()
  
  
      
        
          | void kodi::addon::Peripheral::SetName  | 
          ( | 
          const std::string & |           strName | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set peripheral name. 
- Parameters
 - 
  
  
 
 
 
◆ SetProductID()
  
  
      
        
          | void kodi::addon::Peripheral::SetProductID  | 
          ( | 
          uint16_t |           productId | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set peripheral product identifier. 
- Parameters
 - 
  
  
 
 
 
◆ SetType()
Set peripheral type. 
- Parameters
 - 
  
  
 
 
 
◆ SetVendorID()
  
  
      
        
          | void kodi::addon::Peripheral::SetVendorID  | 
          ( | 
          uint16_t |           vendorId | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set peripheral vendor id. 
- Parameters
 - 
  
  
 
 
 
◆ Type()
◆ VendorID()
  
  
      
        
          | uint16_t kodi::addon::Peripheral::VendorID  | 
          ( | 
          void |            | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get peripheral vendor id. 
- Returns
 - Vendor id 
 
 
 
◆ ~Peripheral()
  
  
      
        
          | virtual kodi::addon::Peripheral::~Peripheral  | 
          ( | 
          void |            | ) | 
           | 
         
       
   | 
  
virtualdefault   |