11 #include <QLoggingCategory> 13 Q_DECLARE_LOGGING_CATEGORY(bluetooth)
22 BluetoothParamId mParamId;
30 return mParamId + QStringLiteral(
" | Value: ");
36 if (pValue.size() == 1)
38 pDest =
static_cast<T>(pValue.at(0));
41 qCWarning(bluetooth) <<
"Value is unknown:" << pDest;
47 qCWarning(bluetooth) <<
"Content has wrong size:" << pValue.toHex();
QDebug operator<<(QDebug pDbg, const governikus::BluetoothMessageParameter &pMsg)
Definition: BluetoothMessageParameter.cpp:12
BluetoothMessageParameter(BluetoothParamId pParamId, const QByteArray &pValue)
Definition: BluetoothMessageParameter.cpp:19
Definition: EnumHelper.h:80
bool parseByteParameter(const QByteArray &pValue, T &pDest) const
Definition: BluetoothMessageParameter.h:34
bool isValid() const
Definition: BluetoothMessageParameter.cpp:56
QByteArray toData() const
Definition: BluetoothMessageParameter.cpp:62
BluetoothParamId getParameterId() const
Definition: BluetoothMessageParameter.cpp:32
const QByteArray & getValue() const
Definition: BluetoothMessageParameter.cpp:38
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:14
#define T(v)
Definition: http_parser.cpp:237
virtual ~BluetoothMessageParameter()
Definition: BluetoothMessageParameter.cpp:27
QString toStringBase() const
Definition: BluetoothMessageParameter.h:28
bool mValid
Definition: BluetoothMessageParameter.h:26
virtual QString toString() const
Definition: BluetoothMessageParameter.cpp:50
virtual QString toStringValue() const
Definition: BluetoothMessageParameter.cpp:44
Definition: BluetoothMessageParameter.h:19
QByteArray mValue
Definition: BluetoothMessageParameter.h:25