AusweisApp2/src/global/UsbId.h

34 lines
591 B
C
Raw Normal View History

2017-12-20 14:54:05 +01:00
/*!
2018-03-28 15:10:51 +02:00
* \copyright Copyright (c) 2017-2018 Governikus GmbH & Co. KG, Germany
2017-12-20 14:54:05 +01:00
*/
#pragma once
#include <QtGlobal>
class QDebug;
namespace governikus
{
class UsbId
{
private:
unsigned int mVendorId;
unsigned int mProductId;
public:
UsbId(unsigned int pVendorId = 0x0, unsigned int pProductId = 0x0);
unsigned int getVendorId() const;
unsigned int getProductId() const;
bool operator==(const UsbId& pOther) const;
};
} /* namespace governikus */
Q_DECLARE_TYPEINFO(governikus::UsbId, Q_PRIMITIVE_TYPE);
QDebug operator <<(QDebug pDbg, const governikus::UsbId& pUsbId);