28 enum PortType { none, serial, network, usb };
30 explicit Capabilities(
int model_number = 0, PortType port_type = none,
31 bool has_CAT_PTT =
false,
32 bool has_CAT_PTT_mic_data =
false,
33 bool has_CAT_indirect_serial_PTT =
false,
34 bool asynchronous =
false)
35 : model_number_{model_number}, port_type_{port_type},
36 has_CAT_PTT_{has_CAT_PTT},
37 has_CAT_PTT_mic_data_{has_CAT_PTT_mic_data},
38 has_CAT_indirect_serial_PTT_{has_CAT_indirect_serial_PTT},
39 asynchronous_{asynchronous} {}
44 bool has_CAT_PTT_mic_data_;
45 bool has_CAT_indirect_serial_PTT_;
105 QString network_port;
116 TXAudioSource audio_source;
118 SplitMode split_mode;
125 return rhs.rig_name == rig_name && rhs.serial_port == serial_port &&
126 rhs.network_port == network_port &&
127 rhs.usb_port == usb_port && rhs.baud == baud &&
128 rhs.data_bits == data_bits && rhs.stop_bits == stop_bits &&
129 rhs.handshake == handshake && rhs.force_dtr == force_dtr &&
130 rhs.dtr_high == dtr_high && rhs.force_rts == force_rts &&
131 rhs.rts_high == rts_high && rhs.ptt_type == ptt_type &&
132 rhs.audio_source == audio_source &&
133 rhs.split_mode == split_mode && rhs.ptt_port == ptt_port &&
134 rhs.poll_interval == poll_interval;