forked from dresden-elektronik/deconz-rest-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
product_match.h
30 lines (24 loc) · 821 Bytes
/
product_match.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* Copyright (c) 2021 dresden elektronik ingenieurtechnik gmbh.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
* style license a copy of which has been included with this distribution in
* the LICENSE.txt file.
*
*/
#ifndef PRODUCT_MATCH_H
#define PRODUCT_MATCH_H
#include <QString>
class Resource;
struct lidlDevice {
const char *zigbeeManufacturerName;
const char *zigbeeModelIdentifier;
const char *manufacturername;
const char *modelid;
};
const QString R_GetProductId(Resource *resource);
bool isTuyaManufacturerName(const QString &manufacturer);
bool isLidlDevice(const QString &zigbeeModelIdentifier, const QString &manufacturername);
const lidlDevice *getLidlDevice(const QString &zigbeeManufacturerName);
#endif // PRODUCT_MATCH_H