Changeset 52d5172 in subsurface


Ignore:
Timestamp:
Jul 8, 2017, 4:06:12 PM (5 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
4b9ba4c3
Parents:
1fd00a3
Message:

Automate picking supported DCs on iOS and Android

We use a little script to create the code snippet. This script in return
relies on comments that were added to the latest libdivecomputer source
(in the Subsurface-branch).

Signed-off-by: Dirk Hohndel <dirk@…>

Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • core/downloadfromdcthread.cpp

    r345e063 r52d5172  
    5454static void fill_supported_mobile_list()
    5555{
    56         /* currently no BLE devices added as BLE backend is not ready yet */
     56        // This segment of the source is automatically generated
     57        // please edit scripts/dcTransport.pl , regenerated the code and copy it here
    5758
    5859#if defined(Q_OS_ANDROID)
    5960        /* BT, BLE and FTDI devices */
     61        mobileProductList["Aeris"] =
     62                        QStringList({{"500 AI"}, {"A300"}, {"A300 AI"}, {"A300CS"}, {"Atmos 2"}, {"Atmos AI"}, {"Atmos AI 2"}, {"Compumask"}, {"Elite"}, {"Elite T3"}, {"Epic"}, {"F10"}, {"F11"}, {"Manta"}, {"XR-1 NX"}, {"XR-2"}});
     63        mobileProductList["Aqualung"] =
     64                        QStringList({{"i300"}, {"i450T"}, {"i550"}, {"i750TC"}});
     65        mobileProductList["Beuchat"] =
     66                        QStringList({{"Mundial 2"}, {"Mundial 3"}, {"Voyager 2G"}});
     67        mobileProductList["Genesis"] =
     68                        QStringList({{"React Pro"}, {"React Pro White"}});
    6069        mobileProductList["Heinrichs Weikamp"] =
    61                         QStringList({{"OSTC Sport"}, {"OSTC 2N"}, {"OSTC 3"},
    62                                      {"OSTC 3+"}, {"OSTC 4"}});
    63         mobileProductList["Shearwater"] =
    64                         QStringList({{"Petrel"}, {"Petrel 2"}, {"Perdix"}});
    65         mobileProductList["Suunto"] =
    66                         QStringList({"EON Steel"});
     70                        QStringList({{"Frog"}, {"OSTC"}, {"OSTC 2"}, {"OSTC 2C"}, {"OSTC 2N"}, {"OSTC 3"}, {"OSTC 3+"}, {"OSTC 4"}, {"OSTC Mk2"}, {"OSTC Sport"}, {"OSTC cR"}});
     71        mobileProductList["Hollis"] =
     72                        QStringList({{"DG02"}, {"DG03"}, {"TX1"}});
     73        mobileProductList["Oceanic"] =
     74                        QStringList({{"Atom 1.0"}, {"Atom 2.0"}, {"Atom 3.0"}, {"Atom 3.1"}, {"Datamask"}, {"F10"}, {"F11"}, {"Geo"}, {"Geo 2.0"}, {"OC1"}, {"OCS"}, {"OCi"}, {"Pro Plus 2"}, {"Pro Plus 2.1"}, {"Pro Plus 3"}, {"VT 4.1"}, {"VT Pro"}, {"VT3"}, {"VT4"}, {"VTX"}, {"Veo 1.0"}, {"Veo 180"}, {"Veo 2.0"}, {"Veo 200"}, {"Veo 250"}, {"Veo 3.0"}, {"Versa Pro"}});
    6775        mobileProductList["Scubapro"] =
    6876                        QStringList({{"G2"}});
     77        mobileProductList["Seemann"] =
     78                        QStringList({{"XP5"}});
     79        mobileProductList["Shearwater"] =
     80                        QStringList({{"Nerd"}, {"Perdix"}, {"Perdix AI"}, {"Petrel"}, {"Petrel 2"}, {"Predator"}});
     81        mobileProductList["Sherwood"] =
     82                        QStringList({{"Amphos"}, {"Amphos Air"}, {"Insight"}, {"Insight 2"}, {"Vision"}, {"Wisdom"}, {"Wisdom 2"}, {"Wisdom 3"}});
     83        mobileProductList["Subgear"] =
     84                        QStringList({{"XP-Air"}});
     85        mobileProductList["Suunto"] =
     86                        QStringList({{"Cobra"}, {"Cobra 2"}, {"Cobra 3"}, {"D3"}, {"D4"}, {"D4i"}, {"D6"}, {"D6i"}, {"D9"}, {"D9tx"}, {"DX"}, {"EON Steel"}, {"Eon"}, {"Gekko"}, {"HelO2"}, {"Mosquito"}, {"Solution"}, {"Solution Alpha"}, {"Solution Nitrox"}, {"Spyder"}, {"Stinger"}, {"Vyper"}, {"Vyper 2"}, {"Vyper Air"}, {"Vyper Novo"}, {"Vytec"}, {"Zoop"}, {"Zoop Novo"}});
     87        mobileProductList["Tusa"] =
     88                        QStringList({{"Element II (IQ-750)"}, {"Zen (IQ-900)"}, {"Zen Air (IQ-950)"}});
     89        mobileProductList["Uwatec"] =
     90                        QStringList({{"Aladin Air Twin"}, {"Aladin Air Z"}, {"Aladin Air Z Nitrox"}, {"Aladin Air Z O2"}, {"Aladin Pro"}, {"Aladin Pro Ultra"}, {"Aladin Sport Plus"}, {"Memomouse"}});
    6991
    7092#endif
    7193#if defined(Q_OS_IOS)
    7294        /* BLE only, Qt does not support classic BT on iOS */
    73         mobileProductList["Heinrichs Weikamp"] =
    74                         QStringList({{"OSTC 4"}});
    75         mobileProductList["Shearwater"] =
    76                         QStringList({{"Petrel"}, {"Petrel 2"}, {"Perdix"}});
    77         mobileProductList["Suunto"] =
    78                         QStringList({"EON Steel"});
    7995        mobileProductList["Scubapro"] =
    8096                        QStringList({{"G2"}});
    81 #endif
     97        mobileProductList["Shearwater"] =
     98                        QStringList({{"Perdix AI"}});
     99        mobileProductList["Suunto"] =
     100                        QStringList({{"EON Steel"}});
     101
     102#endif
     103        // end of the automatically generated code
    82104}
    83105
Note: See TracChangeset for help on using the changeset viewer.