| 1 | /* |
| 2 | * File: CtcProperties.cpp |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: Aug 7, 2009 |
| 6 | * |
| 7 | * Copyright (c) 2009-2013 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * This program is free software: you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation, either version 3 of the License, or |
| 13 | * (at your option) any later version. |
| 14 | * |
| 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 22 | * |
| 23 | */ |
| 24 | |
| 25 | #include "HerculesStudio.h"cxx . . $ `<file>/HercStudio/HerculesStudio.h`/ |
| 26 | #include "CtcProperties.h"cxx . . $ `<file>/HercConfiguration/CtcProperties.h`/ |
| 27 | #include "ConfigurationEditor.h"cxx . . $ `<file>/HercConfiguration/ConfigurationEditor.h`/ |
| 28 | #include "Preferences.h"cxx . . $ `<file>/HercStudio/Preferences.h`/ |
| 29 | |
| 30 | #include <QMessageBox> |
| 31 | #include <QFileDialog> |
| 32 | |
| 33 | #include <sstream> |
| 34 | |
| 35 | CtcPropertiescxx . . $ CtcProperties#::CtcPropertiescxx . . $ CtcProperties#CtcProperties(b7c8c82eacf24532).(ConfigLinecxx . . $ ConfigLine#& configLine, QWidgetcxx . . $ QWidget# *parent) |
| 36 | : GenericDevicePropertiescxx . . $ GenericDeviceProperties#(configLine, parent) |
| 37 | { |
| 38 | uicxx . . $ CtcProperties#ui..setupUicxx . . $ Ui_CtcPropertiesClass#setupUi(108f35f7aa7f3cf9).(this); |
| 39 | initializecxx . . $ CtcProperties#initialize(d220a453c8207c79).(configLine); |
| 40 | |
| 41 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ CtcProperties#ui..okButtoncxx . . $ Ui_CtcPropertiesClass#okButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(ok())); |
| 42 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ CtcProperties#ui..cancelButtoncxx . . $ Ui_CtcPropertiesClass#cancelButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(cancel())); |
| 43 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ CtcProperties#ui..typeCombocxx . . $ Ui_CtcPropertiesClass#typeCombo., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(currentIndexChanged(const QString &)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(typeChanged(const QString &))); |
| 44 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ CtcProperties#ui..oatBrowseButtoncxx . . $ Ui_CtcPropertiesClass#oatBrowseButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(oatBrowse())); |
| 45 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ CtcProperties#ui..tun0CheckBoxcxx . . $ Ui_CtcPropertiesClass#tun0CheckBox., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(stateChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(tun0Check(int))); |
| 46 | } |
| 47 | |
| 48 | CtcPropertiescxx . . $ CtcProperties#::~cxx . . $ CtcProperties#`~CtcProperties`(49f6e7a06ebc5aa8).CtcPropertiescxx . . $ CtcProperties#() |
| 49 | { |
| 50 | |
| 51 | } |
| 52 | |
| 53 | |
| 54 | void CtcPropertiescxx . . $ CtcProperties#::okcxx . . $ CtcProperties#ok(49f6e7a06ebc5aa8).() |
| 55 | { |
| 56 | if (!deviceNumberValidatorcxx . . $ GenericDeviceProperties#deviceNumberValidator(5bc323e34e13a656).(uicxx . . $ CtcProperties#ui..deviceNumbercxx . . $ Ui_CtcPropertiesClass#deviceNumber.)) |
| 57 | return; |
| 58 | stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# newLineBuffcxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).; |
| 59 | |
| 60 | newLineBuff <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..deviceNumbercxx . . $ Ui_CtcPropertiesClass#deviceNumber.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 61 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..typeCombocxx . . $ Ui_CtcPropertiesClass#typeCombo.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 62 | |
| 63 | if (uicxx . . $ CtcProperties#ui..typeCombocxx . . $ Ui_CtcPropertiesClass#typeCombo.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 0) // lcs |
| 64 | { |
| 65 | if (!uicxx . . $ CtcProperties#ui..tuncxx . . $ Ui_CtcPropertiesClass#tun.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) |
| 66 | { |
| 67 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -n " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..tuncxx . . $ Ui_CtcPropertiesClass#tun.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 68 | } |
| 69 | if (!uicxx . . $ CtcProperties#ui..oatcxx . . $ Ui_CtcPropertiesClass#oat.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) |
| 70 | { |
| 71 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -o " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..oatcxx . . $ Ui_CtcPropertiesClass#oat.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 72 | } |
| 73 | if (!(uicxx . . $ CtcProperties#ui..maccxx . . $ Ui_CtcPropertiesClass#mac.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). ":::::")) |
| 74 | { |
| 75 | if (macValidatorcxx . . $ CtcProperties#macValidator(7c222eea44a24d43).(uicxx . . $ CtcProperties#ui..maccxx . . $ Ui_CtcPropertiesClass#mac.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).())) |
| 76 | { |
| 77 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -m " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..maccxx . . $ Ui_CtcPropertiesClass#mac.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() ; |
| 78 | } |
| 79 | else |
| 80 | return; |
| 81 | } |
| 82 | if ( !uicxx . . $ CtcProperties#ui..guestIPcxx . . $ Ui_CtcPropertiesClass#guestIP.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).() && (uicxx . . $ CtcProperties#ui..guestIPcxx . . $ Ui_CtcPropertiesClass#guestIP.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "..." ) ) |
| 83 | { |
| 84 | if (validateIpcxx . . $ IpValidator#validateIp(8c7794b15f0d8b60).(uicxx . . $ CtcProperties#ui..guestIPcxx . . $ Ui_CtcPropertiesClass#guestIP., false, false)) |
| 85 | { |
| 86 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..guestIPcxx . . $ Ui_CtcPropertiesClass#guestIP.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() ; |
| 87 | } |
| 88 | else |
| 89 | return; |
| 90 | } |
| 91 | } |
| 92 | else if (uicxx . . $ CtcProperties#ui..typeCombocxx . . $ Ui_CtcPropertiesClass#typeCombo.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 2) // ctct |
| 93 | { |
| 94 | if (!validateIpcxx . . $ IpValidator#validateIp(8c7794b15f0d8b60).(uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.,false, false)) |
| 95 | return; |
| 96 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..lportSpinboxcxx . . $ Ui_CtcPropertiesClass#lportSpinbox.->textcxx . . $ QAbstractSpinBox#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() ; |
| 97 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 98 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..hostPortSpinboxcxx . . $ Ui_CtcPropertiesClass#hostPortSpinbox.->textcxx . . $ QAbstractSpinBox#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 99 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..buffsizeSpinBoxcxx . . $ Ui_CtcPropertiesClass#buffsizeSpinBox.->textcxx . . $ QAbstractSpinBox#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 100 | } |
| 101 | else if (uicxx . . $ CtcProperties#ui..typeCombocxx . . $ Ui_CtcPropertiesClass#typeCombo.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 1) // ctci |
| 102 | { |
| 103 | if (uicxx . . $ CtcProperties#ui..tun0CheckBoxcxx . . $ Ui_CtcPropertiesClass#tun0CheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()) |
| 104 | { |
| 105 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " tun0"; |
| 106 | } |
| 107 | else |
| 108 | { |
| 109 | if (!validateIpcxx . . $ IpValidator#validateIp(8c7794b15f0d8b60).(uicxx . . $ CtcProperties#ui..guestIPcxx . . $ Ui_CtcPropertiesClass#guestIP.,false, false)) |
| 110 | return; |
| 111 | if (!validateIpcxx . . $ IpValidator#validateIp(8c7794b15f0d8b60).(uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.,false, false)) |
| 112 | return; |
| 113 | if (!uicxx . . $ CtcProperties#ui..tuncxx . . $ Ui_CtcPropertiesClass#tun.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) |
| 114 | { |
| 115 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -n " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..tuncxx . . $ Ui_CtcPropertiesClass#tun.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 116 | } |
| 117 | if (!(uicxx . . $ CtcProperties#ui..maccxx . . $ Ui_CtcPropertiesClass#mac.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). ":::::")) |
| 118 | { |
| 119 | if (macValidatorcxx . . $ CtcProperties#macValidator(7c222eea44a24d43).(uicxx . . $ CtcProperties#ui..maccxx . . $ Ui_CtcPropertiesClass#mac.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).())) |
| 120 | { |
| 121 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -m " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..maccxx . . $ Ui_CtcPropertiesClass#mac.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() ; |
| 122 | } |
| 123 | else |
| 124 | return; |
| 125 | } |
| 126 | if (!(uicxx . . $ CtcProperties#ui..maskcxx . . $ Ui_CtcPropertiesClass#mask.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "...")) |
| 127 | { |
| 128 | if (validateIpcxx . . $ IpValidator#validateIp(8c7794b15f0d8b60).(uicxx . . $ CtcProperties#ui..maskcxx . . $ Ui_CtcPropertiesClass#mask., false, false)) |
| 129 | { |
| 130 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -s " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..maskcxx . . $ Ui_CtcPropertiesClass#mask.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() ; |
| 131 | } |
| 132 | else |
| 133 | return; |
| 134 | } |
| 135 | if (!(uicxx . . $ CtcProperties#ui..guestIPcxx . . $ Ui_CtcPropertiesClass#guestIP.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "...")) |
| 136 | { |
| 137 | if (validateIpcxx . . $ IpValidator#validateIp(8c7794b15f0d8b60).(uicxx . . $ CtcProperties#ui..guestIPcxx . . $ Ui_CtcPropertiesClass#guestIP., false, false)) |
| 138 | { |
| 139 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..guestIPcxx . . $ Ui_CtcPropertiesClass#guestIP.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() ; |
| 140 | } |
| 141 | else |
| 142 | return; |
| 143 | } |
| 144 | if (!(uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "...")) |
| 145 | { |
| 146 | if (validateIpcxx . . $ IpValidator#validateIp(8c7794b15f0d8b60).(uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP., false, false)) |
| 147 | { |
| 148 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() ; |
| 149 | } |
| 150 | else |
| 151 | return; |
| 152 | } |
| 153 | } |
| 154 | } |
| 155 | else // qeth |
| 156 | { |
| 157 | if (!(uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "...")) |
| 158 | { |
| 159 | if (validateIpcxx . . $ IpValidator#validateIp(8c7794b15f0d8b60).(uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP., false, false)) |
| 160 | { |
| 161 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() ; |
| 162 | } |
| 163 | else |
| 164 | return; |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | |
| 169 | newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 170 | mLinecxx . . $ GenericDeviceProperties#mLine..replaceLinecxx . . $ ConfigLine#replaceLine(9c546c94e5fcce4e).(newLineBuff.strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).()); |
| 171 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateLinecxx . . $ GenericDeviceProperties#updateLine(b45ddcbc8423892c).(true); |
| 172 | this->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 173 | } |
| 174 | |
| 175 | void CtcPropertiescxx . . $ CtcProperties#::cancelcxx . . $ CtcProperties#cancel(49f6e7a06ebc5aa8).() |
| 176 | { |
| 177 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateLinecxx . . $ GenericDeviceProperties#updateLine(b45ddcbc8423892c).(false); |
| 178 | this->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 179 | } |
| 180 | |
| 181 | bool CtcPropertiescxx . . $ CtcProperties#::macValidatorcxx . . $ CtcProperties#macValidator(7c222eea44a24d43).(const stdcxx . . $ std/::stringcxx . . $ std/string#& mac) |
| 182 | { |
| 183 | bool ret = true; |
| 184 | if (mac.lengthcxx . . $ std/__cxx11/basic_string#length(48278e53df7b52a5).() != 17) |
| 185 | ret = false; |
| 186 | QStringcxx . . $ QString# qmaccxx . . $ QString#QString(e1217c004a86c950). = maccxx . . $ QString#QString(85c52e162fed56f9)..c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(); |
| 187 | for (int i=0; i<6 && ret; i++) |
| 188 | { |
| 189 | int pos = i*3; |
| 190 | if (i>0 && qmac.toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(i*3-1,1) !=cxx . . $ std/`operator!=`(4b17aa87c9f300c6). ":") |
| 191 | ret=false; |
| 192 | stdcxx . . $ std/::stringcxx . . $ std/string# c1cxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f). = qmaccxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..toLowercxx . . $ QString#toLower(dca2c5857e9adf82).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(pos,1).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(); |
| 193 | stdcxx . . $ std/::stringcxx . . $ std/string# c2cxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f). = qmaccxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..toLowercxx . . $ QString#toLower(dca2c5857e9adf82).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(pos+1,1).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(); |
| 194 | if (c1[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).0] < '0' || c1[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).0] > 'f' || c2[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).0] < '0' || c2[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).0] > 'f') |
| 195 | { |
| 196 | ret=false; |
| 197 | } |
| 198 | } |
| 199 | if (!ret) |
| 200 | { |
| 201 | QMessageBoxcxx . . $ QMessageBox#::warningcxx . . $ QMessageBox#warning(a9e3742e6f7b4147).(this, "Illegal MAC address"cxx . . $ QString#QString(85c52e162fed56f9)., "Please provide device name\nhh:hh:hh:hh:hh:hh"cxx . . $ QString#QString(85c52e162fed56f9)., QMessageBoxcxx . . $ QFlags#QFlags(9b289cee16747614).::Okcxx . . $ QMessageBox#Ok.); |
| 202 | return false; |
| 203 | } |
| 204 | return true; |
| 205 | } |
| 206 | |
| 207 | |
| 208 | void CtcPropertiescxx . . $ CtcProperties#::typeChangedcxx . . $ CtcProperties#typeChanged(3520e46b33348bf6).(const QStringcxx . . $ QString# &newValue) |
| 209 | { |
| 210 | if (newValue.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "qeth") arrangeQethcxx . . $ CtcProperties#arrangeQeth(b45ddcbc8423892c).(true); |
| 211 | else if (newValue.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "lcs") arrangeLcscxx . . $ CtcProperties#arrangeLcs(b45ddcbc8423892c).(true); |
| 212 | else if (newValue.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ctct") arrangeCtctcxx . . $ CtcProperties#arrangeCtct(b45ddcbc8423892c).(true); |
| 213 | else arrangeCtccxx . . $ CtcProperties#arrangeCtc(b45ddcbc8423892c).(true); |
| 214 | } |
| 215 | |
| 216 | void CtcPropertiescxx . . $ CtcProperties#::arrangeQethcxx . . $ CtcProperties#arrangeQeth(b45ddcbc8423892c).(bool set) |
| 217 | { |
| 218 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5, "qeth " << (set ? "true" : "false")); |
| 219 | if (set) |
| 220 | { |
| 221 | arrangeCtccxx . . $ CtcProperties#arrangeCtc(b45ddcbc8423892c).(!set); |
| 222 | arrangeCtctcxx . . $ CtcProperties#arrangeCtct(b45ddcbc8423892c).(!set); |
| 223 | arrangeLcscxx . . $ CtcProperties#arrangeLcs(b45ddcbc8423892c).(!set); |
| 224 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setInputMaskcxx . . $ QLineEdit#setInputMask(3520e46b33348bf6).("000.000.000.000;"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 225 | } |
| 226 | uicxx . . $ CtcProperties#ui..hostIPLabelcxx . . $ Ui_CtcPropertiesClass#hostIPLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 227 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 228 | |
| 229 | uicxx . . $ CtcProperties#ui..hostIPLabelcxx . . $ Ui_CtcPropertiesClass#hostIPLabel.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(20,50,53,16); |
| 230 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(110,40,113,26); |
| 231 | } |
| 232 | |
| 233 | void CtcPropertiescxx . . $ CtcProperties#::arrangeLcscxx . . $ CtcProperties#arrangeLcs(b45ddcbc8423892c).(bool set) |
| 234 | { |
| 235 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5, "lcs " << (set ? "true" : "false") ); |
| 236 | if (set) |
| 237 | { |
| 238 | arrangeCtccxx . . $ CtcProperties#arrangeCtc(b45ddcbc8423892c).(!set); |
| 239 | arrangeCtctcxx . . $ CtcProperties#arrangeCtct(b45ddcbc8423892c).(!set); |
| 240 | arrangeQethcxx . . $ CtcProperties#arrangeQeth(b45ddcbc8423892c).(!set); |
| 241 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setInputMaskcxx . . $ QLineEdit#setInputMask(3520e46b33348bf6).("000.000.000.000;"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 242 | } |
| 243 | uicxx . . $ CtcProperties#ui..guestIPLabelcxx . . $ Ui_CtcPropertiesClass#guestIPLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 244 | uicxx . . $ CtcProperties#ui..guestIPcxx . . $ Ui_CtcPropertiesClass#guestIP.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 245 | uicxx . . $ CtcProperties#ui..tunLabelcxx . . $ Ui_CtcPropertiesClass#tunLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 246 | uicxx . . $ CtcProperties#ui..tuncxx . . $ Ui_CtcPropertiesClass#tun.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 247 | uicxx . . $ CtcProperties#ui..macLabelcxx . . $ Ui_CtcPropertiesClass#macLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 248 | uicxx . . $ CtcProperties#ui..maccxx . . $ Ui_CtcPropertiesClass#mac.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 249 | uicxx . . $ CtcProperties#ui..macLabel2cxx . . $ Ui_CtcPropertiesClass#macLabel2.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 250 | uicxx . . $ CtcProperties#ui..oatFilenameLabelcxx . . $ Ui_CtcPropertiesClass#oatFilenameLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 251 | uicxx . . $ CtcProperties#ui..oatcxx . . $ Ui_CtcPropertiesClass#oat.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 252 | uicxx . . $ CtcProperties#ui..oatBrowseButtoncxx . . $ Ui_CtcPropertiesClass#oatBrowseButton.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 253 | //ui.oatEditButton->setVisible(set); |
| 254 | |
| 255 | uicxx . . $ CtcProperties#ui..hostIPLabelcxx . . $ Ui_CtcPropertiesClass#hostIPLabel.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(20,70,53,16); |
| 256 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(110,60,113,26); |
| 257 | uicxx . . $ CtcProperties#ui..tunLabelcxx . . $ Ui_CtcPropertiesClass#tunLabel.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(20,70,81,16); |
| 258 | uicxx . . $ CtcProperties#ui..tuncxx . . $ Ui_CtcPropertiesClass#tun.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(110,60,301,26); |
| 259 | uicxx . . $ CtcProperties#ui..macLabelcxx . . $ Ui_CtcPropertiesClass#macLabel.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(20,110,53,16); |
| 260 | uicxx . . $ CtcProperties#ui..maccxx . . $ Ui_CtcPropertiesClass#mac.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(110,100,171,26); |
| 261 | uicxx . . $ CtcProperties#ui..macLabel2cxx . . $ Ui_CtcPropertiesClass#macLabel2.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(300,100,53,16); |
| 262 | uicxx . . $ CtcProperties#ui..oatFilenameLabelcxx . . $ Ui_CtcPropertiesClass#oatFilenameLabel.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(20,150,91,16); |
| 263 | uicxx . . $ CtcProperties#ui..oatcxx . . $ Ui_CtcPropertiesClass#oat.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(110,140,211,26); |
| 264 | uicxx . . $ CtcProperties#ui..oatBrowseButtoncxx . . $ Ui_CtcPropertiesClass#oatBrowseButton.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(330,140,21,26); |
| 265 | //ui.oatEditButton->setGeometry(360,140,52,26); |
| 266 | } |
| 267 | |
| 268 | void CtcPropertiescxx . . $ CtcProperties#::arrangeCtccxx . . $ CtcProperties#arrangeCtc(b45ddcbc8423892c).(bool set) |
| 269 | { |
| 270 | bool nonTunSet = set; |
| 271 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5, "ctc " << (set ? "true" : "false")); |
| 272 | if (set) |
| 273 | { |
| 274 | arrangeLcscxx . . $ CtcProperties#arrangeLcs(b45ddcbc8423892c).(!set); |
| 275 | arrangeCtctcxx . . $ CtcProperties#arrangeCtct(b45ddcbc8423892c).(!set); |
| 276 | arrangeQethcxx . . $ CtcProperties#arrangeQeth(b45ddcbc8423892c).(!set); |
| 277 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setInputMaskcxx . . $ QLineEdit#setInputMask(3520e46b33348bf6).("000.000.000.000;"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 278 | } |
| 279 | |
| 280 | uicxx . . $ CtcProperties#ui..tun0CheckBoxcxx . . $ Ui_CtcPropertiesClass#tun0CheckBox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 281 | nonTunSet = !(uicxx . . $ CtcProperties#ui..tun0CheckBoxcxx . . $ Ui_CtcPropertiesClass#tun0CheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()); |
| 282 | |
| 283 | uicxx . . $ CtcProperties#ui..guestIPLabelcxx . . $ Ui_CtcPropertiesClass#guestIPLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 284 | uicxx . . $ CtcProperties#ui..guestIPcxx . . $ Ui_CtcPropertiesClass#guestIP.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 285 | uicxx . . $ CtcProperties#ui..maskLabelcxx . . $ Ui_CtcPropertiesClass#maskLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 286 | uicxx . . $ CtcProperties#ui..maskcxx . . $ Ui_CtcPropertiesClass#mask.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 287 | uicxx . . $ CtcProperties#ui..hostIPLabelcxx . . $ Ui_CtcPropertiesClass#hostIPLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 288 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 289 | uicxx . . $ CtcProperties#ui..tunLabelcxx . . $ Ui_CtcPropertiesClass#tunLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 290 | uicxx . . $ CtcProperties#ui..tuncxx . . $ Ui_CtcPropertiesClass#tun.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 291 | uicxx . . $ CtcProperties#ui..macLabelcxx . . $ Ui_CtcPropertiesClass#macLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 292 | uicxx . . $ CtcProperties#ui..maccxx . . $ Ui_CtcPropertiesClass#mac.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 293 | uicxx . . $ CtcProperties#ui..macLabel2cxx . . $ Ui_CtcPropertiesClass#macLabel2.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 294 | |
| 295 | //disable if tun0 is set |
| 296 | uicxx . . $ CtcProperties#ui..guestIPLabelcxx . . $ Ui_CtcPropertiesClass#guestIPLabel.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(nonTunSet); |
| 297 | uicxx . . $ CtcProperties#ui..guestIPcxx . . $ Ui_CtcPropertiesClass#guestIP.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(nonTunSet); |
| 298 | uicxx . . $ CtcProperties#ui..maskLabelcxx . . $ Ui_CtcPropertiesClass#maskLabel.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(nonTunSet); |
| 299 | uicxx . . $ CtcProperties#ui..maskcxx . . $ Ui_CtcPropertiesClass#mask.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(nonTunSet); |
| 300 | uicxx . . $ CtcProperties#ui..hostIPLabelcxx . . $ Ui_CtcPropertiesClass#hostIPLabel.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(nonTunSet); |
| 301 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(nonTunSet); |
| 302 | uicxx . . $ CtcProperties#ui..tunLabelcxx . . $ Ui_CtcPropertiesClass#tunLabel.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(nonTunSet); |
| 303 | uicxx . . $ CtcProperties#ui..tuncxx . . $ Ui_CtcPropertiesClass#tun.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(nonTunSet); |
| 304 | uicxx . . $ CtcProperties#ui..macLabelcxx . . $ Ui_CtcPropertiesClass#macLabel.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(nonTunSet); |
| 305 | uicxx . . $ CtcProperties#ui..maccxx . . $ Ui_CtcPropertiesClass#mac.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(nonTunSet); |
| 306 | uicxx . . $ CtcProperties#ui..macLabel2cxx . . $ Ui_CtcPropertiesClass#macLabel2.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(nonTunSet); |
| 307 | |
| 308 | uicxx . . $ CtcProperties#ui..hostIPLabelcxx . . $ Ui_CtcPropertiesClass#hostIPLabel.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(20,70,53,16); |
| 309 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(110,60,113,26); |
| 310 | uicxx . . $ CtcProperties#ui..tunLabelcxx . . $ Ui_CtcPropertiesClass#tunLabel.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(20,110,81,16); |
| 311 | uicxx . . $ CtcProperties#ui..tuncxx . . $ Ui_CtcPropertiesClass#tun.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(110,100,301,26); |
| 312 | uicxx . . $ CtcProperties#ui..macLabelcxx . . $ Ui_CtcPropertiesClass#macLabel.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(20,150,53,16); |
| 313 | uicxx . . $ CtcProperties#ui..maccxx . . $ Ui_CtcPropertiesClass#mac.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(110,140,171,26); |
| 314 | uicxx . . $ CtcProperties#ui..macLabel2cxx . . $ Ui_CtcPropertiesClass#macLabel2.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(300,140,53,16); |
| 315 | uicxx . . $ CtcProperties#ui..tun0CheckBoxcxx . . $ Ui_CtcPropertiesClass#tun0CheckBox.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(250,110,140,24); |
| 316 | } |
| 317 | |
| 318 | void CtcPropertiescxx . . $ CtcProperties#::arrangeCtctcxx . . $ CtcProperties#arrangeCtct(b45ddcbc8423892c).(bool set) |
| 319 | { |
| 320 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(3,"ctct " << (set ? "true" : "false")); |
| 321 | if (set) |
| 322 | { |
| 323 | arrangeCtccxx . . $ CtcProperties#arrangeCtc(b45ddcbc8423892c).(!set); |
| 324 | arrangeLcscxx . . $ CtcProperties#arrangeLcs(b45ddcbc8423892c).(!set); |
| 325 | arrangeQethcxx . . $ CtcProperties#arrangeQeth(b45ddcbc8423892c).(!set); |
| 326 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setInputMaskcxx . . $ QLineEdit#setInputMask(3520e46b33348bf6).("000.000.000.000;"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 327 | } |
| 328 | uicxx . . $ CtcProperties#ui..hostIPLabelcxx . . $ Ui_CtcPropertiesClass#hostIPLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 329 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 330 | uicxx . . $ CtcProperties#ui..hostPortLabelcxx . . $ Ui_CtcPropertiesClass#hostPortLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 331 | uicxx . . $ CtcProperties#ui..hostPortSpinboxcxx . . $ Ui_CtcPropertiesClass#hostPortSpinbox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 332 | uicxx . . $ CtcProperties#ui..lportLabelcxx . . $ Ui_CtcPropertiesClass#lportLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 333 | uicxx . . $ CtcProperties#ui..lportSpinboxcxx . . $ Ui_CtcPropertiesClass#lportSpinbox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 334 | uicxx . . $ CtcProperties#ui..buffsizeLabelcxx . . $ Ui_CtcPropertiesClass#buffsizeLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 335 | uicxx . . $ CtcProperties#ui..buffsizeSpinBoxcxx . . $ Ui_CtcPropertiesClass#buffsizeSpinBox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(set); |
| 336 | |
| 337 | uicxx . . $ CtcProperties#ui..hostIPLabelcxx . . $ Ui_CtcPropertiesClass#hostIPLabel.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(20,30,53,16); |
| 338 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(110,20,113,26); |
| 339 | uicxx . . $ CtcProperties#ui..hostPortLabelcxx . . $ Ui_CtcPropertiesClass#hostPortLabel.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(240,30,61,16); |
| 340 | uicxx . . $ CtcProperties#ui..hostPortSpinboxcxx . . $ Ui_CtcPropertiesClass#hostPortSpinbox.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(320,20,61,26); |
| 341 | uicxx . . $ CtcProperties#ui..lportLabelcxx . . $ Ui_CtcPropertiesClass#lportLabel.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(20,70,61,16); |
| 342 | uicxx . . $ CtcProperties#ui..lportSpinboxcxx . . $ Ui_CtcPropertiesClass#lportSpinbox.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(110,60,61,26); |
| 343 | uicxx . . $ CtcProperties#ui..buffsizeLabelcxx . . $ Ui_CtcPropertiesClass#buffsizeLabel.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(20,110,71,16); |
| 344 | uicxx . . $ CtcProperties#ui..buffsizeSpinBoxcxx . . $ Ui_CtcPropertiesClass#buffsizeSpinBox.->setGeometrycxx . . $ QWidget#setGeometry(748afa4755bc9595).(110,100,71,26); |
| 345 | } |
| 346 | |
| 347 | void CtcPropertiescxx . . $ CtcProperties#::arrangeByTypecxx . . $ CtcProperties#arrangeByType(49f6e7a06ebc5aa8).() |
| 348 | { |
| 349 | if (uicxx . . $ CtcProperties#ui..typeCombocxx . . $ Ui_CtcPropertiesClass#typeCombo.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).().toLowercxx . . $ QString#toLower(30b3b70527b1c61a).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "qeth") |
| 350 | { |
| 351 | arrangeQethcxx . . $ CtcProperties#arrangeQeth(b45ddcbc8423892c).(true); |
| 352 | } |
| 353 | else if (uicxx . . $ CtcProperties#ui..typeCombocxx . . $ Ui_CtcPropertiesClass#typeCombo.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).().toLowercxx . . $ QString#toLower(30b3b70527b1c61a).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "lcs") |
| 354 | { |
| 355 | arrangeLcscxx . . $ CtcProperties#arrangeLcs(b45ddcbc8423892c).(true); |
| 356 | } |
| 357 | else if (uicxx . . $ CtcProperties#ui..typeCombocxx . . $ Ui_CtcPropertiesClass#typeCombo.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).().toLowercxx . . $ QString#toLower(30b3b70527b1c61a).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ctct") |
| 358 | { |
| 359 | arrangeCtctcxx . . $ CtcProperties#arrangeCtct(b45ddcbc8423892c).(true); |
| 360 | } |
| 361 | else |
| 362 | { |
| 363 | arrangeCtccxx . . $ CtcProperties#arrangeCtc(b45ddcbc8423892c).(true); |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | void CtcPropertiescxx . . $ CtcProperties#::oatBrowsecxx . . $ CtcProperties#oatBrowse(49f6e7a06ebc5aa8).() |
| 368 | { |
| 369 | stdcxx . . $ std/::stringcxx . . $ std/string# scxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f). = QFileDialogcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).::getOpenFileNamecxx . . $ QFileDialog#getOpenFileName(a6b29be4bec65236).(this, |
| 370 | "Locate OAT File Name"cxx . . $ QString#QString(85c52e162fed56f9)., |
| 371 | Preferencescxx . . $ QString#QString(85c52e162fed56f9).::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().configDircxx . . $ Preferences#configDir(219584694fe2b248).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(), |
| 372 | trcxx . . $ CtcProperties#tr(75d9f1c324b4579d).("All files(*)")).toUtf8cxx . . $ QString#toUtf8(7c2073558a834e49).().datacxx . . $ QByteArray#data(41208ce6ca65dd58).(); |
| 373 | uicxx . . $ CtcProperties#ui..oatcxx . . $ Ui_CtcPropertiesClass#oat.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(scxx . . $ QString#QString(85c52e162fed56f9)..c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 374 | } |
| 375 | |
| 376 | void CtcPropertiescxx . . $ CtcProperties#::tun0Checkcxx . . $ CtcProperties#tun0Check(d4f767463ce0a6b3).(int) |
| 377 | { |
| 378 | arrangeByTypecxx . . $ CtcProperties#arrangeByType(49f6e7a06ebc5aa8).(); |
| 379 | } |
| 380 | |
| 381 | void CtcPropertiescxx . . $ CtcProperties#::initializecxx . . $ CtcProperties#initialize(d220a453c8207c79).(ConfigLinecxx . . $ ConfigLine# & configLine) |
| 382 | { |
| 383 | if (configLine.sizecxx . . $ ConfigLine#size(455f465bc33b4cdf).() > 0) |
| 384 | uicxx . . $ CtcProperties#ui..deviceNumbercxx . . $ Ui_CtcPropertiesClass#deviceNumber.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(configLinecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(0).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 385 | |
| 386 | QStringcxx . . $ QString# typecxx . . $ QString#QString(e1217c004a86c950). = configLinecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(1).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(); |
| 387 | if (type.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "qeth") |
| 388 | { |
| 389 | uicxx . . $ CtcProperties#ui..typeCombocxx . . $ Ui_CtcPropertiesClass#typeCombo.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(3); |
| 390 | if (configLine.sizecxx . . $ ConfigLine#size(455f465bc33b4cdf).() >= 2) |
| 391 | { |
| 392 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(configLinecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(2).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 393 | } |
| 394 | |
| 395 | } |
| 396 | else if (type.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "lcs") |
| 397 | { |
| 398 | uicxx . . $ CtcProperties#ui..typeCombocxx . . $ Ui_CtcPropertiesClass#typeCombo.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 399 | |
| 400 | for (int i=2; i<configLine.sizecxx . . $ ConfigLine#size(455f465bc33b4cdf).(); i++) |
| 401 | { |
| 402 | if (configLine.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "-n" || |
| 403 | configLine.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "--dev") |
| 404 | { |
| 405 | uicxx . . $ CtcProperties#ui..tuncxx . . $ Ui_CtcPropertiesClass#tun.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(configLinecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(++i).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 406 | } |
| 407 | else if (configLine.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "-o" || |
| 408 | configLine.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "--oat") |
| 409 | { |
| 410 | uicxx . . $ CtcProperties#ui..oatcxx . . $ Ui_CtcPropertiesClass#oat.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(configLinecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(++i).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 411 | } |
| 412 | else if (configLine.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "-m" || |
| 413 | configLine.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "--mac") |
| 414 | { |
| 415 | uicxx . . $ CtcProperties#ui..maccxx . . $ Ui_CtcPropertiesClass#mac.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(configLinecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(++i).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 416 | } |
| 417 | else if (i+1 == configLine.sizecxx . . $ ConfigLine#size(455f465bc33b4cdf).()) |
| 418 | { |
| 419 | uicxx . . $ CtcProperties#ui..guestIPcxx . . $ Ui_CtcPropertiesClass#guestIP.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(configLinecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 420 | } |
| 421 | } |
| 422 | } |
| 423 | else if (type.toLowercxx . . $ QString#toLower(dca2c5857e9adf82).() ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "ctct") |
| 424 | { |
| 425 | uicxx . . $ CtcProperties#ui..typeCombocxx . . $ Ui_CtcPropertiesClass#typeCombo.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(2); |
| 426 | |
| 427 | int port = atoi(configLine.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(2).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 428 | uicxx . . $ CtcProperties#ui..lportSpinboxcxx . . $ Ui_CtcPropertiesClass#lportSpinbox.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(port); |
| 429 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setInputMaskcxx . . $ QLineEdit#setInputMask(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).); |
| 430 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(configLinecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(3).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 431 | port = atoi(configLine.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(4).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 432 | uicxx . . $ CtcProperties#ui..hostPortSpinboxcxx . . $ Ui_CtcPropertiesClass#hostPortSpinbox.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(port); |
| 433 | if (configLine.sizecxx . . $ ConfigLine#size(455f465bc33b4cdf).() > 5) |
| 434 | { |
| 435 | int size = atoi(configLine.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(5).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 436 | uicxx . . $ CtcProperties#ui..buffsizeSpinBoxcxx . . $ Ui_CtcPropertiesClass#buffsizeSpinBox.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(size); |
| 437 | } |
| 438 | } |
| 439 | else |
| 440 | { |
| 441 | uicxx . . $ CtcProperties#ui..typeCombocxx . . $ Ui_CtcPropertiesClass#typeCombo.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(1); |
| 442 | |
| 443 | QStringcxx . . $ QString# tun0cxx . . $ QString#QString(49f6e7a06ebc5aa8).; |
| 444 | if (configLine.sizecxx . . $ ConfigLine#size(455f465bc33b4cdf).() > 2) tun0 =cxx . . $ QString#`operator=`(d02845eef0c33901). configLine.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(2).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(); |
| 445 | if (tun0 ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "tun0") |
| 446 | { |
| 447 | uicxx . . $ CtcProperties#ui..tun0CheckBoxcxx . . $ Ui_CtcPropertiesClass#tun0CheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true); |
| 448 | } |
| 449 | else |
| 450 | { |
| 451 | uicxx . . $ CtcProperties#ui..tun0CheckBoxcxx . . $ Ui_CtcPropertiesClass#tun0CheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(false); |
| 452 | for (int i=2; i<configLine.sizecxx . . $ ConfigLine#size(455f465bc33b4cdf).(); i++) |
| 453 | { |
| 454 | |
| 455 | if (configLine.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "-n" || |
| 456 | configLine.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "--dev") |
| 457 | { |
| 458 | uicxx . . $ CtcProperties#ui..tuncxx . . $ Ui_CtcPropertiesClass#tun.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(configLinecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(++i).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 459 | } |
| 460 | else if (configLine.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "-m" || |
| 461 | configLine.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "--mac") |
| 462 | { |
| 463 | uicxx . . $ CtcProperties#ui..maccxx . . $ Ui_CtcPropertiesClass#mac.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(configLinecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(++i).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 464 | } |
| 465 | else if (configLine.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "-s") |
| 466 | { |
| 467 | uicxx . . $ CtcProperties#ui..maskcxx . . $ Ui_CtcPropertiesClass#mask.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(configLinecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(++i).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 468 | } |
| 469 | else if (i+1 == configLine.sizecxx . . $ ConfigLine#size(455f465bc33b4cdf).()) |
| 470 | { |
| 471 | uicxx . . $ CtcProperties#ui..hostIPcxx . . $ Ui_CtcPropertiesClass#hostIP.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(configLinecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 472 | } |
| 473 | else if (i+2 == configLine.sizecxx . . $ ConfigLine#size(455f465bc33b4cdf).()) |
| 474 | { |
| 475 | uicxx . . $ CtcProperties#ui..guestIPcxx . . $ Ui_CtcPropertiesClass#guestIP.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(configLinecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 476 | } |
| 477 | } |
| 478 | uicxx . . $ CtcProperties#ui..tun0CheckBoxcxx . . $ Ui_CtcPropertiesClass#tun0CheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(false); |
| 479 | } |
| 480 | } |
| 481 | |
| 482 | arrangeByTypecxx . . $ CtcProperties#arrangeByType(49f6e7a06ebc5aa8).(); |
| 483 | |
| 484 | |
| 485 | } |