summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-08 20:29:53 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-10 13:27:43 -0700
commitf4589583ef7dd259852069c0d5baad1bddee92a2 (patch)
treeada95c9b7eafa5a9790e1182f486a0cb756960c9 /mobile-widgets/qmlmanager.cpp
parent0212b1b9f7734c2ee4edaf7e27a2c25601b5c4bc (diff)
downloadsubsurface-f4589583ef7dd259852069c0d5baad1bddee92a2.tar.gz
Android: remove USB devices we don't support
The HID devices and the Atomics Aquatics Cobalt cannot work on Android right now. We should claim to support them. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp45
1 files changed, 3 insertions, 42 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 1e0717adb..4dd8de98c 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -2056,49 +2056,10 @@ void QMLManager::showDownloadPage(QString deviceString)
.arg(productList["Heinrichs Weikamp"].indexOf("OSTC 3"))
.arg(connectionListModel.indexOf("usb-serial"));
} else if (deviceString.contains("HeinrichsWeikamp OSTC 2N")) {
- name = QString("%1;%2;%3")
- .arg(vendorList.indexOf("Heinrichs Weikamp"))
- .arg(productList["Heinrichs Weikamp"].indexOf("OSTC 2N"))
- .arg(connectionListModel.indexOf("usb-serial"));
- } else if (deviceString.contains("mManufacturerName=ATOMIC AQUATICS") &&
- deviceString.contains("mProductName=COBALT")) {
- if (deviceString.contains("mVersion=2")) {
- name = QString("%1;%2;%3")
- .arg(vendorList.indexOf("Atomic Aquatics"))
- .arg(productList["Atomic Aquatics"].indexOf("Cobalt 2"))
- .arg(connectionListModel.indexOf("USB device"));
- } else {
- name = QString("%1;%2;%3")
- .arg(vendorList.indexOf("Atomic Aquatics"))
- .arg(productList["Atomic Aquatics"].indexOf("Cobalt"))
- .arg(connectionListModel.indexOf("USB device"));
- }
- } else if (deviceString.contains("mVendorId=5267") && // 0x1493 / 0x0030
- deviceString.contains("mProductId=48")) {
- name = QString("%1;%2;%3")
- .arg(connectionListModel.indexOf("Suunto"))
- .arg(productList["Suunto"].indexOf("EON Steel"))
- .arg(connectionListModel.indexOf("USB device"));
- } else if (deviceString.contains("mVendorId=5267") && // 0x1493 / 0x0033
- deviceString.contains("mProductId=51")) {
- name = QString("%1;%2;%3")
- .arg(connectionListModel.indexOf("Suunto"))
- .arg(productList["Suunto"].indexOf("EON Core"))
- .arg(connectionListModel.indexOf("USB device"));
- } else if (deviceString.contains("mVendorId=11884") && // 0x2e6c / 0x3201,0x3211,0x4201
- (deviceString.contains("mProductId=12801") ||
- deviceString.contains("mProductId=12817") ||
- deviceString.contains("mProductId=16897"))) {
name = QString("%1;%2;%3")
- .arg(connectionListModel.indexOf("Scubapro"))
- .arg(productList["Scubapro"].indexOf("G2"))
- .arg(connectionListModel.indexOf("USB device"));
- } else if (deviceString.contains("mVendorId=49745") && // 0xc251 / 0x2006
- deviceString.contains("mProductId=8198")) {
- name = QString("%1;%2;%3")
- .arg(connectionListModel.indexOf("Scubapro"))
- .arg(productList["Scubapro"].indexOf("Aladin Square"))
- .arg(connectionListModel.indexOf("USB device"));
+ .arg(vendorList.indexOf("Heinrichs Weikamp"))
+ .arg(productList["Heinrichs Weikamp"].indexOf("OSTC 2N"))
+ .arg(connectionListModel.indexOf("usb-serial"));
} else if (deviceString.contains("mVendorId=1027") && // FTDI: 0x0403 / 0x6001,0x6010,0x6011,0x6014,0x6015
(deviceString.contains("mProductId=24577") ||
deviceString.contains("mProductId=24592") ||