libdrmconf  0.10.4
A library to program DMR radios.
Public Member Functions | List of all members
USBSerial::Descriptor Class Reference

Specialization of radio interface info for serial ports. More...

#include <usbserial.hh>

Inheritance diagram for USBSerial::Descriptor:
Inheritance graph
[legend]
Collaboration diagram for USBSerial::Descriptor:
Collaboration graph
[legend]

Public Member Functions

 Descriptor (uint16_t vid, uint16_t pid, const QString &device)
 Constructor from VID, PID and device path.
 
- Public Member Functions inherited from USBDeviceDescriptor
 USBDeviceDescriptor ()
 Empty constructor.
 
 USBDeviceDescriptor (const USBDeviceDescriptor &other)
 Copy constructor.
 
USBDeviceDescriptoroperator= (const USBDeviceDescriptor &other)
 Assignment.
 
bool isValid () const
 Returns true if the descriptor is still valid. More...
 
QString description () const
 Returns a human readable description of the device.
 
const QVariant & device () const
 Returns the device information identifying the interface uniquely.
 
QString deviceHandle () const
 Returns a unique string representation of the device information.
 
- Public Member Functions inherited from USBDeviceInfo
 USBDeviceInfo ()
 Empty constructor.
 
 USBDeviceInfo (Class cls, uint16_t vid, uint16_t pid, bool save=true, bool identifiable=true)
 Constructor from class, VID and PID.
 
virtual ~USBDeviceInfo ()
 Destructor.
 
 USBDeviceInfo (const USBDeviceInfo &other)
 Copy constructor.
 
USBDeviceInfooperator= (const USBDeviceInfo &other)
 Assignment.
 
bool operator== (const USBDeviceInfo &other) const
 Comparison.
 
bool operator!= (const USBDeviceInfo &other) const
 Comparison.
 
bool isValid () const
 Returns true if the interface info is valid.
 
Class interfaceClass () const
 Returns the interface class.
 
uint16_t vendorId () const
 Returns the vendor ID or 0 if not set.
 
uint16_t productId () const
 Returns the product ID or 0 if not set.
 
QString description () const
 Returns a brief human readable description of the interface.
 
QString longDescription () const
 Returns a more extensive human readable description of the interface.
 
bool isSave () const
 Returns true if it is save to send commands to this device without user approval. More...
 
bool isIdentifiable () const
 Returns true if the radio is identifiable automatically.
 

Additional Inherited Members

- Public Types inherited from USBDeviceInfo
enum class  Class { None , Serial , DFU , HID }
 Possible interface types. More...
 
- Static Public Member Functions inherited from USBDeviceDescriptor
static QList< USBDeviceDescriptordetect ()
 Searches for all connected radios (may contain false positives).
 
- Protected Member Functions inherited from USBDeviceDescriptor
 USBDeviceDescriptor (const USBDeviceInfo &info, const QString &device)
 Hidden constructor from info and path string.
 
 USBDeviceDescriptor (const USBDeviceInfo &info, const USBDeviceHandle &device)
 Hidden constructor from info and USB device address.
 
bool validSerial () const
 Checks a serial port.
 
bool validRawUSB () const
 Checks a raw USB device.
 
- Protected Attributes inherited from USBDeviceDescriptor
QVariant _device
 Holds some information to identify the radio interface uniquely.
 
- Protected Attributes inherited from USBDeviceInfo
Class _class
 The class of the interface.
 
uint16_t _vid
 The USB vid.
 
uint16_t _pid
 The USB pid.
 
bool _save
 If true, it is save to send commands to the device without user approval.
 
bool _identifiable
 If true, the device may be identified automatically.
 

Detailed Description

Specialization of radio interface info for serial ports.


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