@@ -19,7 +19,8 @@ QDataStream& operator<<(QDataStream& out, const RigProfile& v)
1919 << v.xitOffset << v.getRITInfo << v.getXITInfo
2020 << v.defaultPWR << v.getPTTInfo << v.QSYWiping
2121 << v.getKeySpeed << v.assignedCWKey << v.keySpeedSync
22- << v.driver << v.dxSpot2Rig << v.pttType << v.pttPortPath ;
22+ << v.driver << v.dxSpot2Rig << v.pttType << v.pttPortPath
23+ << v.rts << v.dtr ;
2324
2425 return out;
2526}
@@ -57,6 +58,8 @@ QDataStream& operator>>(QDataStream& in, RigProfile& v)
5758 in >> v.dxSpot2Rig ;
5859 in >> v.pttType ;
5960 in >> v.pttPortPath ;
61+ in >> v.rts ;
62+ in >> v.dtr ;
6063
6164 return in;
6265}
@@ -73,7 +76,8 @@ RigProfilesManager::RigProfilesManager() :
7376 " pollinterval, txfreq_start, txfreq_end, get_freq, get_mode, "
7477 " get_vfo, get_pwr, rit_offset, xit_offset, get_rit, get_xit, "
7578 " default_pwr, get_ptt, qsy_wiping, get_key_speed, assigned_cw_key, "
76- " key_speed_sync, driver, dxspot2rig, ptt_type, ptt_port_pathname "
79+ " key_speed_sync, driver, dxspot2rig, ptt_type, ptt_port_pathname, "
80+ " rts, dtr "
7781 " FROM rig_profiles" ) )
7882 {
7983 qWarning ()<< " Cannot prepare select" ;
@@ -115,6 +119,8 @@ RigProfilesManager::RigProfilesManager() :
115119 profileDB.dxSpot2Rig = profileQuery.value (28 ).toBool ();
116120 profileDB.pttType = profileQuery.value (29 ).toString ();
117121 profileDB.pttPortPath = profileQuery.value (30 ).toString ();
122+ profileDB.rts = profileQuery.value (31 ).toString ();
123+ profileDB.dtr = profileQuery.value (32 ).toString ();
118124
119125 addProfile (profileDB.profileName , profileDB);
120126 }
@@ -142,12 +148,12 @@ void RigProfilesManager::save()
142148 " baudrate, databits, stopbits, flowcontrol, parity, pollinterval, txfreq_start, "
143149 " txfreq_end, get_freq, get_mode, get_vfo, get_pwr, rit_offset, xit_offset, get_rit, "
144150 " get_xit, default_pwr, get_ptt, qsy_wiping, get_key_speed, assigned_cw_key, key_speed_sync, "
145- " driver, dxSpot2Rig, ptt_type, ptt_port_pathname ) "
151+ " driver, dxSpot2Rig, ptt_type, ptt_port_pathname, rts, dtr ) "
146152 " VALUES (:profile_name, :model, :port_pathname, :hostname, :netport, "
147153 " :baudrate, :databits, :stopbits, :flowcontrol, :parity, :pollinterval, :txfreq_start, "
148154 " :txfreq_end, :get_freq, :get_mode, :get_vfo, :get_pwr, :rit_offset, :xit_offset, :get_rit, "
149155 " :get_xit, :default_pwr, :get_ptt, :qsy_wiping, :get_key_speed, :assigned_cw_key, :key_speed_sync, "
150- " :driver, :dxSpot2Rig, :ptt_type, :ptt_port_pathname)" ) )
156+ " :driver, :dxSpot2Rig, :ptt_type, :ptt_port_pathname, :rts, :dtr )" ) )
151157 {
152158 qWarning () << " cannot prepare Insert statement" ;
153159 return ;
@@ -191,6 +197,9 @@ void RigProfilesManager::save()
191197 insertQuery.bindValue (" :dxSpot2Rig" , rigProfile.dxSpot2Rig );
192198 insertQuery.bindValue (" :ptt_type" , rigProfile.pttType );
193199 insertQuery.bindValue (" :ptt_port_pathname" , rigProfile.pttPortPath );
200+ insertQuery.bindValue (" :rts" , rigProfile.rts );
201+ insertQuery.bindValue (" :dtr" , rigProfile.dtr );
202+
194203
195204 if ( ! insertQuery.exec () )
196205 {
@@ -239,6 +248,8 @@ bool RigProfile::operator==(const RigProfile &profile)
239248 && profile.dxSpot2Rig == this ->dxSpot2Rig
240249 && profile.pttType == this ->pttType
241250 && profile.pttPortPath == this ->pttPortPath
251+ && profile.rts == this ->rts
252+ && profile.dtr == this ->dtr
242253 );
243254}
244255
0 commit comments