comparison OSTC_CR_Operations.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 OSTC_CR_Operations.h
3 /// \brief Implementing various operations for H&W OSTC-cR dive computer
4 /// \author JD Gascuel.
5 /// \sa ComputerOperations.h
6 ///
7 /// \copyright (c) 2011-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 // 2014-11-08 : [jDG] Creation, from OSTC3Operations.h
39
40 #ifndef OSTC3_S8_OPERATIONS_H
41 #define OSTC3_S8_OPERATIONS_H
42
43 #include "OSTC3Operations.h"
44
45 //////////////////////////////////////////////////////////////////////////////
46 /// \brief Implementing various low-level operations for OSTC3-S8 dive computer
47 class OSTCcROperations
48 : public OSTC3Operations
49 {
50 /// \brief Returns "OSTC_cR"
51 QString model() const override;
52 CompanionFeatures supported() const override;
53
54 //------------------------------------------------------------------------
55 /// \brief Read OSTC3-S8 computer firmware, serial and custom text.
56 /// Everything is formated for the description() string.
57 /// \throws if something goes wrong.
58 void getIdentity() override;
59
60 QString firmwareTemplate() const override;
61
62 //////////////////////////////////////////////////////////////////////////
63 public:
64 OSTCcROperations();
65 };
66
67 #endif // OSTC3_S8_OPERATIONS_H