comparison OSTC2Operations.h @ 1:0b3630a29ad8

Initial version based on previous repository. Project was ported to QT6 and in now cmake based.
author Ideenmodellierer <tiefenrauscher@web.de>
date Thu, 27 Nov 2025 18:40:28 +0100
parents
children
comparison
equal deleted inserted replaced
0:76ccd6ce50c0 1:0b3630a29ad8
1 //////////////////////////////////////////////////////////////////////////////
2 /// \file OSTC2Operations.h
3 /// \brief Implementing various operations for H&W new OSTC2 (BLE) dive computer
4 /// \author JD Gascuel.
5 /// \sa ComputerOperations.h
6 ///
7 /// \copyright (c) 2015-2016 JD Gascuel. All rights reserved.
8 /// $Id$
9 //////////////////////////////////////////////////////////////////////////////
10 //
11 // BSD 2-Clause License:
12 //
13 // Redistribution and use in source and binary forms, with or without
14 // modification, are permitted provided that the following conditions
15 // are met:
16 //
17 // 1. Redistributions of source code must retain the above copyright notice,
18 // this list of conditions and the following disclaimer.
19 //
20 // 2. Redistributions in binary form must reproduce the above copyright notice,
21 // this list of conditions and the following disclaimer in the documentation
22 // and/or other materials provided with the distribution.
23 //
24 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
28 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
34 // THE POSSIBILITY OF SUCH DAMAGE.
35 //
36 //////////////////////////////////////////////////////////////////////////////
37 // HISTORY
38 // 2015-03-15 : [jDG] Creation, from OSTC3Operations.h
39
40 #ifndef OSTC_2p_OPERATIONS_H
41 #define OSTC_2p_OPERATIONS_H
42
43 #include "OSTC3Operations.h"
44
45 //////////////////////////////////////////////////////////////////////////////
46 /// \brief new OSTC2 (Bluetooth) is just an OSTC3 in a different package.
47 class OSTC2Operations
48 : public OSTC3Operations
49 {
50 /// \brief Returns "OSTC2"
51 QString model() const override;
52 CompanionFeatures supported() const override;
53
54 QSize nameSize() const override;
55
56 //------------------------------------------------------------------------
57 /// \brief Read OSTC2 (hwOS based) computer firmware, serial and custom text.
58 /// Everything is formated for the description() string.
59 /// \throws if something goes wrong.
60 void getIdentity() override;
61
62 QStringList listPorts() const override;
63 // QRegExp portTemplate() const override;
64 QRegularExpression portTemplate() const override;
65
66 QString firmwareTemplate() const override;
67
68 //////////////////////////////////////////////////////////////////////////
69 public:
70 OSTC2Operations();
71 };
72
73 #endif // OSTC_2p_OPERATIONS_H