comparison OSTC3pOperations.cpp @ 8:21ce6187d32e

Minor changes done by automatic style checker
author Ideenmodellierer
date Mon, 12 Jan 2026 13:51:17 +0000
parents 0b3630a29ad8
children
comparison
equal deleted inserted replaced
7:0969ef86c42d 8:21ce6187d32e
34 // THE POSSIBILITY OF SUCH DAMAGE. 34 // THE POSSIBILITY OF SUCH DAMAGE.
35 // 35 //
36 ////////////////////////////////////////////////////////////////////////////// 36 //////////////////////////////////////////////////////////////////////////////
37 37
38 #include "OSTC3pOperations.h" 38 #include "OSTC3pOperations.h"
39 #include <QRegularExpression>
39 #include "Utils/Log.h" 40 #include "Utils/Log.h"
40 #include <QRegularExpression>
41 41
42 ////////////////////////////////////////////////////////////////////////////// 42 //////////////////////////////////////////////////////////////////////////////
43 43
44 OSTC3pOperations::OSTC3pOperations() 44 OSTC3pOperations::OSTC3pOperations()
45 { 45 {
60 descriptionString.clear(); 60 descriptionString.clear();
61 61
62 LOG_TRACE("Getting model..."); 62 LOG_TRACE("Getting model...");
63 HardwareDescriptor hw = hardwareDescriptor(); 63 HardwareDescriptor hw = hardwareDescriptor();
64 64
65 // if( hw != HW_OSTC3p_a && hw != HW_OSTC3p_b ) 65 // if( hw != HW_OSTC3p_a && hw != HW_OSTC3p_b )
66 // LOG_THROW("Not an OSTC3+."); 66 // LOG_THROW("Not an OSTC3+.");
67 67
68 LOG_TRACE("Getting identity..."); 68 LOG_TRACE("Getting identity...");
69 getCommonIdentity(); 69 getCommonIdentity();
70 70
71 LOG_TRACE("Found " << descriptionString); 71 LOG_TRACE("Found " << descriptionString);
86 ////////////////////////////////////////////////////////////////////////////// 86 //////////////////////////////////////////////////////////////////////////////
87 87
88 HardwareOperations::CompanionFeatures OSTC3pOperations::supported() const 88 HardwareOperations::CompanionFeatures OSTC3pOperations::supported() const
89 { 89 {
90 // No ICON, no DUMPSCREEN, no VPM 90 // No ICON, no DUMPSCREEN, no VPM
91 return CompanionFeatures(PARAMETERS|DATE|NAME|FIRMWARE 91 return CompanionFeatures(PARAMETERS | DATE | NAME | FIRMWARE | HELIUM_DIVE | CCR_DIVE
92 |HELIUM_DIVE|CCR_DIVE|BLUETOOTH); 92 | BLUETOOTH);
93 } 93 }
94 #if 0 94 #if 0
95 QRegExp OSTC3pOperations::portTemplate() const 95 QRegExp OSTC3pOperations::portTemplate() const
96 { 96 {
97 #if defined(Q_OS_MAC) 97 #if defined(Q_OS_MAC)
108 #include <QRegularExpression> 108 #include <QRegularExpression>
109 109
110 QRegularExpression OSTC3pOperations::portTemplate() const 110 QRegularExpression OSTC3pOperations::portTemplate() const
111 { 111 {
112 #if defined(Q_OS_MAC) 112 #if defined(Q_OS_MAC)
113 return QRegularExpression("tty.OSTC[0-9][0-9]+.*", 113 return QRegularExpression("tty.OSTC[0-9][0-9]+.*", QRegularExpression::CaseInsensitiveOption);
114 QRegularExpression::CaseInsensitiveOption);
115 #elif defined(Q_OS_LINUX) 114 #elif defined(Q_OS_LINUX)
116 // Debian, Ubuntu, RedHat, CentOS, SUSE 115 // Debian, Ubuntu, RedHat, CentOS, SUSE
117 return QRegularExpression("ttyUSB.*"); // default: case-sensitive 116 return QRegularExpression("ttyUSB.*"); // default: case-sensitive
118 #elif defined(Q_OS_WIN) 117 #elif defined(Q_OS_WIN)
119 return QRegularExpression("COM.*"); // default: case-sensitive 118 return QRegularExpression("COM.*"); // default: case-sensitive
120 #endif 119 #endif
121 } 120 }
122 121
123 void OSTC3pOperations::getSignal() 122 void OSTC3pOperations::getSignal()
124 { 123 {