AusweisApp2
UsbId.h
gehe zur Dokumentation dieser Datei
1 
5 #pragma once
6 
7 #include <QtGlobal>
8 
9 
10 namespace governikus
11 {
12 
13 class UsbId
14 {
15  private:
16  unsigned int mVendorId;
17  unsigned int mProductId;
18 
19  public:
20  UsbId(unsigned int pVendorId = 0x0, unsigned int pProductId = 0x0);
21 
22  [[nodiscard]] unsigned int getVendorId() const;
23  [[nodiscard]] unsigned int getProductId() const;
24 
25  bool operator==(const UsbId& pOther) const;
26 };
27 
28 } // namespace governikus
29 
31 
32 QDebug operator <<(QDebug pDbg, const governikus::UsbId& pUsbId);
QDebug operator<<(QDebug pDbg, const governikus::UsbId &pUsbId)
Definition: UsbId.cpp:38
Q_DECLARE_TYPEINFO(governikus::UsbId, Q_PRIMITIVE_TYPE)
Definition: UsbId.h:14
unsigned int getProductId() const
Definition: UsbId.cpp:25
UsbId(unsigned int pVendorId=0x0, unsigned int pProductId=0x0)
Definition: UsbId.cpp:12
unsigned int getVendorId() const
Definition: UsbId.cpp:19
bool operator==(const UsbId &pOther) const
Definition: UsbId.cpp:31
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16