Debian Codegraph @

HercConfiguration/CardReaderProperties.cpp

raw symbols SCIP
1 /*
2 * File: CardReaderProperties.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 "CardReaderProperties.h"cxx . . $ `<file>/HercConfiguration/CardReaderProperties.h`/
27 #include "NewReaderFile.h"cxx . . $ `<file>/HercConfiguration/NewReaderFile.h`/
28
29 #include <sstream>
30
31 CardReaderPropertiescxx . . $ CardReaderProperties#::CardReaderPropertiescxx . . $ CardReaderProperties#CardReaderProperties(b7c8c82eacf24532).(ConfigLinecxx . . $ ConfigLine#& line, QWidgetcxx . . $ QWidget# *parent)
32 : GenericDevicePropertiescxx . . $ GenericDeviceProperties#(line, parent), mNewReaderFilecxx . . $ CardReaderProperties#mNewReaderFile.(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
33 {
34 uicxx . . $ CardReaderProperties#ui..setupUicxx . . $ Extended_Ui_CardReaderProperties#setupUi(108f35f7aa7f3cf9).(this);
35 ReaderFileListViewcxx . . $ ReaderFileListView# * listView = static_cast<ReaderFileListViewcxx . . $ ReaderFileListView# *>(uicxx . . $ CardReaderProperties#ui..fileNamesListViewcxx . . $ Extended_Ui_CardReaderProperties#fileNamesListView.);
36 listView->setReaderParentcxx . . $ ReaderFileListView#setReaderParent(108f35f7aa7f3cf9).(this);
37
38 initializecxx . . $ CardReaderProperties#initialize(24d554b72bd565d4).(line);
39 connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ CardReaderProperties#ui..fileNamesListViewcxx . . $ Extended_Ui_CardReaderProperties#fileNamesListView., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(pressed (const QModelIndex &)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(itemPressed( const QModelIndex &)));
40 connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ CardReaderProperties#ui..sockdevcxx . . $ Ui_CardReaderPropertiesClass#sockdev., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(textChanged(const QString &)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(sockdevChanged()));
41 connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ CardReaderProperties#ui..addButtoncxx . . $ Ui_CardReaderPropertiesClass#addButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(pressed()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(addPressed()));
42 connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ CardReaderProperties#ui..deleteButtoncxx . . $ Ui_CardReaderPropertiesClass#deleteButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(pressed()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(deletePressed()));
43 connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ CardReaderProperties#ui..OKButtoncxx . . $ Ui_CardReaderPropertiesClass#OKButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(pressed()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(ok()));
44 connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ CardReaderProperties#ui..cancelButtoncxx . . $ Ui_CardReaderPropertiesClass#cancelButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(pressed()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(cancel()));
45 connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ CardReaderProperties#ui..sockdevCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#sockdevCheckBox., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(stateChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(sockdevChanged()));
46 }
47
48 CardReaderPropertiescxx . . $ CardReaderProperties#::~cxx . . $ CardReaderProperties#`~CardReaderProperties`(49f6e7a06ebc5aa8).CardReaderPropertiescxx . . $ CardReaderProperties#()
49 {
50
51 }
52
53 void CardReaderPropertiescxx . . $ CardReaderProperties#::okcxx . . $ CardReaderProperties#ok(49f6e7a06ebc5aa8).()
54 {
55 if (!deviceNumberValidatorcxx . . $ GenericDeviceProperties#deviceNumberValidator(5bc323e34e13a656).(uicxx . . $ CardReaderProperties#ui..deviceNumbercxx . . $ Ui_CardReaderPropertiesClass#deviceNumber.))
56 return;
57 stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# newLineBuffcxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).;
58
59 newLineBuff <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CardReaderProperties#ui..deviceNumbercxx . . $ Ui_CardReaderPropertiesClass#deviceNumber.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).()
60 <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CardReaderProperties#ui..deviceCombocxx . . $ Ui_CardReaderPropertiesClass#deviceCombo.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).();
61 if (uicxx . . $ CardReaderProperties#ui..sockdevCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#sockdevCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).())
62 {
63 newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). uicxx . . $ CardReaderProperties#ui..sockdevcxx . . $ Ui_CardReaderPropertiesClass#sockdev.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).();
64 }
65 else
66 {
67 if (mModelcxx . . $ CardReaderProperties#mModel.!=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
68 {
69 for (int i=0; i<mModelcxx . . $ CardReaderProperties#mModel.->rowCountcxx . . $ QStandardItemModel#rowCount(e3878d4d6cd9529c).(); i++)
70 {
71 newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). mModelcxx . . $ CardReaderProperties#mModel.->itemcxx . . $ QStandardItemModel#item(9141c2fac43bb6a6).(i)->textcxx . . $ QStandardItem#text(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).();
72 }
73 }
74 }
75 if (uicxx . . $ CardReaderProperties#ui..sockdevCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#sockdevCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).())
76 {
77 newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " sockdev" ;
78 }
79 else
80 {
81 if (uicxx . . $ CardReaderProperties#ui..eofRadioButtoncxx . . $ Ui_CardReaderPropertiesClass#eofRadioButton.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).())
82 {
83 newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " eof";
84 }
85 if (uicxx . . $ CardReaderProperties#ui..intrqRadioButtoncxx . . $ Ui_CardReaderPropertiesClass#intrqRadioButton.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).())
86 {
87 newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " intrq";
88 }
89 if (uicxx . . $ CardReaderProperties#ui..multifileCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#multifileCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).())
90 {
91 newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " multifile";
92 }
93 }
94
95 if (uicxx . . $ CardReaderProperties#ui..truncCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#truncCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).())
96 {
97 newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " trunc";
98 }
99 if (uicxx . . $ CardReaderProperties#ui..autopadCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#autopadCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).())
100 {
101 newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " autopad";
102 }
103 if (uicxx . . $ CardReaderProperties#ui..ebcdicRadioButtoncxx . . $ Ui_CardReaderPropertiesClass#ebcdicRadioButton.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).())
104 {
105 newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " ebcdic";
106 }
107 if (uicxx . . $ CardReaderProperties#ui..asciiRadioButtoncxx . . $ Ui_CardReaderPropertiesClass#asciiRadioButton.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).())
108 {
109 newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " ascii";
110 }
111
112 newLineBuff <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n";
113 mLinecxx . . $ GenericDeviceProperties#mLine..replaceLinecxx . . $ ConfigLine#replaceLine(9c546c94e5fcce4e).(newLineBuff.strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).());
114 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateLinecxx . . $ GenericDeviceProperties#updateLine(b45ddcbc8423892c).(true);
115 this->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).();
116 }
117
118 void CardReaderPropertiescxx . . $ CardReaderProperties#::cancelcxx . . $ CardReaderProperties#cancel(49f6e7a06ebc5aa8).()
119 {
120 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateLinecxx . . $ GenericDeviceProperties#updateLine(b45ddcbc8423892c).(false);
121 this->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).();
122 }
123
124 void CardReaderPropertiescxx . . $ CardReaderProperties#::itemPressedcxx . . $ CardReaderProperties#itemPressed(87a6de385263c395).(const QModelIndexcxx . . $ QModelIndex# & index)
125 {
126 mDragCandidatecxx . . $ CardReaderProperties#mDragCandidate. = index.rowcxx . . $ QModelIndex#row(455f465bc33b4cdf).();
127 mDragCountcxx . . $ CardReaderProperties#mDragCount. = mModelcxx . . $ CardReaderProperties#mModel.->rowCountcxx . . $ QStandardItemModel#rowCount(e3878d4d6cd9529c).();
128 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5, "index pressed:" << mDragCandidate << std::endl);
129 }
130 void CardReaderPropertiescxx . . $ CardReaderProperties#::shouldBeDeletedcxx . . $ CardReaderProperties#shouldBeDeleted(49f6e7a06ebc5aa8).()
131 {
132 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5, "should be deleted:" << mDragCandidate << std::endl);
133 if (mModelcxx . . $ CardReaderProperties#mModel.->rowCountcxx . . $ QStandardItemModel#rowCount(e3878d4d6cd9529c).() > mDragCountcxx . . $ CardReaderProperties#mDragCount.)
134 mModelcxx . . $ CardReaderProperties#mModel.->removeRowcxx . . $ QAbstractItemModel#removeRow(eb30e146838e644d).(mDragCandidatecxx . . $ CardReaderProperties#mDragCandidate.);
135 mDragCandidatecxx . . $ CardReaderProperties#mDragCandidate.=-1;
136 }
137
138 void CardReaderPropertiescxx . . $ CardReaderProperties#::addPressedcxx . . $ CardReaderProperties#addPressed(49f6e7a06ebc5aa8).()
139 {
140 if (mNewReaderFilecxx . . $ CardReaderProperties#mNewReaderFile. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
141 mNewReaderFilecxx . . $ CardReaderProperties#mNewReaderFile.->closecxx . . $ QWidget#close(c9857a73d68e59ba).();
142 mNewReaderFilecxx . . $ CardReaderProperties#mNewReaderFile. = new NewReaderFilecxx . . $ NewReaderFile#NewReaderFile(108f35f7aa7f3cf9).(this);
143 mNewReaderFilecxx . . $ CardReaderProperties#mNewReaderFile.->movecxx . . $ QWidget#move(3e454b8ccf442868).(this->geometrycxx . . $ QWidget#geometry(f4023511c62cad66).().xcxx . . $ QRect#x(455f465bc33b4cdf).(),this->geometrycxx . . $ QWidget#geometry(f4023511c62cad66).().ycxx . . $ QRect#y(455f465bc33b4cdf).());
144 connectcxx . . $ QObject#connect(158df1d9a01a3410).(mNewReaderFilecxx . . $ CardReaderProperties#mNewReaderFile., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(okPressed(QString &)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(addFile(QString&)));
145 connectcxx . . $ QObject#connect(158df1d9a01a3410).(mNewReaderFilecxx . . $ CardReaderProperties#mNewReaderFile., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(destroyed(QObject *)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(newFileFinished(QObject *)));
146 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5, "add pressed:" << mDragCandidate << std::endl);
147 }
148
149 void CardReaderPropertiescxx . . $ CardReaderProperties#::deletePressedcxx . . $ CardReaderProperties#deletePressed(49f6e7a06ebc5aa8).()
150 {
151 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5, "delete pressed:" << std::endl);
152 if (uicxx . . $ CardReaderProperties#ui..fileNamesListViewcxx . . $ Extended_Ui_CardReaderProperties#fileNamesListView.->currentIndexcxx . . $ QAbstractItemView#currentIndex(a394cbc57608ce34).().rowcxx . . $ QModelIndex#row(455f465bc33b4cdf).() >= 0)
153 {
154 mModelcxx . . $ CardReaderProperties#mModel.->removeRowcxx . . $ QAbstractItemModel#removeRow(eb30e146838e644d).(uicxx . . $ CardReaderProperties#ui..fileNamesListViewcxx . . $ Extended_Ui_CardReaderProperties#fileNamesListView.->currentIndexcxx . . $ QAbstractItemView#currentIndex(a394cbc57608ce34).().rowcxx . . $ QModelIndex#row(455f465bc33b4cdf).());
155 }
156 uicxx . . $ CardReaderProperties#ui..sockdevCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#sockdevCheckBox.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (mModelcxx . . $ CardReaderProperties#mModel.->rowCountcxx . . $ QStandardItemModel#rowCount(e3878d4d6cd9529c).() == 0);
157 }
158
159 void CardReaderPropertiescxx . . $ CardReaderProperties#::addFilecxx . . $ CardReaderProperties#addFile(4c89b026053e4d32).(QStringcxx . . $ QString# & file)
160 {
161 hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5,"pickupFile:" << file.toStdString() << std::endl);
162 QStandardItemcxx . . $ QStandardItem# *parentItem = mModelcxx . . $ CardReaderProperties#mModel.->invisibleRootItemcxx . . $ QStandardItemModel#invisibleRootItem(c0cc2a7c3bad46fb).();
163 parentItem->appendRowcxx . . $ QStandardItem#appendRow(317b3a1fa3b6b2ce).(new QStandardItemcxx . . $ QStandardItem#(file));
164 uicxx . . $ CardReaderProperties#ui..sockdevCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#sockdevCheckBox.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (mModelcxx . . $ CardReaderProperties#mModel.->rowCountcxx . . $ QStandardItemModel#rowCount(e3878d4d6cd9529c).() == 0);
165 }
166
167 void CardReaderPropertiescxx . . $ CardReaderProperties#::newFileFinishedcxx . . $ CardReaderProperties#newFileFinished(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *)
168 {
169 mNewReaderFilecxx . . $ CardReaderProperties#mNewReaderFile. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
170 }
171
172 void CardReaderPropertiescxx . . $ CardReaderProperties#::sockdevChangedcxx . . $ CardReaderProperties#sockdevChanged(49f6e7a06ebc5aa8).()
173 {
174 setSockdevcxx . . $ CardReaderProperties#setSockdev(b45ddcbc8423892c).(uicxx . . $ CardReaderProperties#ui..sockdevCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#sockdevCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).());
175 uicxx . . $ CardReaderProperties#ui..sockdevCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#sockdevCheckBox.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c). (uicxx . . $ CardReaderProperties#ui..sockdevcxx . . $ Ui_CardReaderPropertiesClass#sockdev.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).().isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).());
176 }
177
178 void CardReaderPropertiescxx . . $ CardReaderProperties#::setSockdevcxx . . $ CardReaderProperties#setSockdev(b45ddcbc8423892c).(bool enabled)
179 {
180 uicxx . . $ CardReaderProperties#ui..addButtoncxx . . $ Ui_CardReaderPropertiesClass#addButton.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(!enabled);
181 uicxx . . $ CardReaderProperties#ui..deleteButtoncxx . . $ Ui_CardReaderPropertiesClass#deleteButton.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(!enabled);
182 uicxx . . $ CardReaderProperties#ui..fileNamesListViewcxx . . $ Extended_Ui_CardReaderProperties#fileNamesListView.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(!enabled);
183 uicxx . . $ CardReaderProperties#ui..labelcxx . . $ Ui_CardReaderPropertiesClass#label.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(!enabled);
184 uicxx . . $ CardReaderProperties#ui..multifileCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#multifileCheckBox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(!enabled);
185 uicxx . . $ CardReaderProperties#ui..eofGroupBoxcxx . . $ Ui_CardReaderPropertiesClass#eofGroupBox.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(!enabled);
186
187 uicxx . . $ CardReaderProperties#ui..sockdevcxx . . $ Ui_CardReaderPropertiesClass#sockdev.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(enabled);
188 uicxx . . $ CardReaderProperties#ui..sockspecLabelcxx . . $ Ui_CardReaderPropertiesClass#sockspecLabel.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(enabled);
189
190 }
191
192 void CardReaderPropertiescxx . . $ CardReaderProperties#::initializecxx . . $ CardReaderProperties#initialize(24d554b72bd565d4).(const ConfigLinecxx . . $ ConfigLine# & line)
193 {
194 if (line.sizecxx . . $ ConfigLine#size(455f465bc33b4cdf).() > 0)
195 uicxx . . $ CardReaderProperties#ui..deviceNumbercxx . . $ Ui_CardReaderPropertiesClass#deviceNumber.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(linecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(0).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).());
196 stdcxx . . $ std/::stringcxx . . $ std/string# dev = linecxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(1);
197 if (dev ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "2501")
198 uicxx . . $ CardReaderProperties#ui..deviceCombocxx . . $ Ui_CardReaderPropertiesClass#deviceCombo.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(1);
199 else if (dev ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "3505")
200 uicxx . . $ CardReaderProperties#ui..deviceCombocxx . . $ Ui_CardReaderPropertiesClass#deviceCombo.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(2);
201 else uicxx . . $ CardReaderProperties#ui..deviceCombocxx . . $ Ui_CardReaderPropertiesClass#deviceCombo.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0);
202
203 mModelcxx . . $ CardReaderProperties#mModel. = new QStandardItemModelcxx . . $ QStandardItemModel#QStandardItemModel(ea15c0ea3584af89).(0,3);
204 mModelcxx . . $ CardReaderProperties#mModel.->clearcxx . . $ QStandardItemModel#clear(49f6e7a06ebc5aa8).();
205 QStandardItemcxx . . $ QStandardItem# *parentItem = mModelcxx . . $ CardReaderProperties#mModel.->invisibleRootItemcxx . . $ QStandardItemModel#invisibleRootItem(c0cc2a7c3bad46fb).();
206 uicxx . . $ CardReaderProperties#ui..autoDetectRadioButtoncxx . . $ Ui_CardReaderPropertiesClass#autoDetectRadioButton.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true); // default
207 uicxx . . $ CardReaderProperties#ui..eofNoneRadioButtoncxx . . $ Ui_CardReaderPropertiesClass#eofNoneRadioButton.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true); // default
208
209 int index = line.sizecxx . . $ ConfigLine#size(455f465bc33b4cdf).()-1;
210 if (index >= 2)
211 {
212 stdcxx . . $ std/::stringcxx . . $ std/string# keywordscxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f). = "sockdev eof intrq multifile ebcdic ascii trunc autopad"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).;
213 uicxx . . $ CardReaderProperties#ui..sockdevCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#sockdevCheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(false);
214 while (keywords.findcxx . . $ std/__cxx11/basic_string#find(7e867d215bf3e68).(line.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(index)) != stdcxx . . $ std/::stringcxx . . $ std/string#::nposcxx . . $ std/__cxx11/basic_string#npos.)
215 {
216 if (line.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(index) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "sockdev")
217 {
218 uicxx . . $ CardReaderProperties#ui..sockdevCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#sockdevCheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true);
219 }
220 else if (line.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(index) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "eof")
221 {
222 uicxx . . $ CardReaderProperties#ui..eofRadioButtoncxx . . $ Ui_CardReaderPropertiesClass#eofRadioButton.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true);
223 }
224 else if (line.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(index) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "intrq")
225 {
226 uicxx . . $ CardReaderProperties#ui..intrqRadioButtoncxx . . $ Ui_CardReaderPropertiesClass#intrqRadioButton.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true);
227 }
228 else if (line.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(index) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "multifile")
229 {
230 uicxx . . $ CardReaderProperties#ui..multifileCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#multifileCheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true);
231 }
232 else if (line.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(index) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "ebcdic")
233 {
234 uicxx . . $ CardReaderProperties#ui..ebcdicRadioButtoncxx . . $ Ui_CardReaderPropertiesClass#ebcdicRadioButton.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true);
235 }
236 else if (line.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(index) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "ascii")
237 {
238 uicxx . . $ CardReaderProperties#ui..asciiRadioButtoncxx . . $ Ui_CardReaderPropertiesClass#asciiRadioButton.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true);
239 }
240 else if (line.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(index) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "trunc")
241 {
242 uicxx . . $ CardReaderProperties#ui..truncCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#truncCheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true);
243 }
244 else if (line.getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(index) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "autopad")
245 {
246 uicxx . . $ CardReaderProperties#ui..autopadCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#autopadCheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true);
247 }
248 index--;
249 }
250 if (!uicxx . . $ CardReaderProperties#ui..sockdevCheckBoxcxx . . $ Ui_CardReaderPropertiesClass#sockdevCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).())
251 {
252 for (int i=0; i<=index-2; i++)
253 {
254 parentItem->appendRowcxx . . $ QStandardItem#appendRow(317b3a1fa3b6b2ce).(new QStandardItemcxx . . $ QStandardItem#(linecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(i+2).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()));
255 }
256 }
257 else
258 {
259 uicxx . . $ CardReaderProperties#ui..sockdevcxx . . $ Ui_CardReaderPropertiesClass#sockdev.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(linecxx . . $ QString#QString(85c52e162fed56f9)..getTokencxx . . $ ConfigLine#getToken(ffc0d510d034206b).(2).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).());
260 }
261 }
262 sockdevChangedcxx . . $ CardReaderProperties#sockdevChanged(49f6e7a06ebc5aa8).();
263 uicxx . . $ CardReaderProperties#ui..fileNamesListViewcxx . . $ Extended_Ui_CardReaderProperties#fileNamesListView.->setModelcxx . . $ QAbstractItemView#setModel(c6e1f1e42522b780).(mModelcxx . . $ CardReaderProperties#mModel.);
264 uicxx . . $ CardReaderProperties#ui..fileNamesListViewcxx . . $ Extended_Ui_CardReaderProperties#fileNamesListView.->setViewModecxx . . $ QListView#setViewMode(475aadb04979362b).(QListViewcxx . . $ QListView#::ListModecxx . . $ QListView#ListMode.);
265 }
266