| 91 | } |
| 92 | |
| 93 | std::vector<std::string> MqttTopicListWidget::GetTopics() |
| 94 | { |
| 95 | std::vector<std::string> result; |
| 96 | for (int i = 0; i < _table->rowCount(); ++i) { |
| 97 | auto topic = _table->item(i, 0)->text().trimmed(); |
| 98 | result.push_back(topic.toStdString()); |
| 99 | } |
| 100 | return result; |
| 101 | } |
| 102 | |
| 103 | std::vector<int> MqttTopicListWidget::GetQoS() |
| 104 | { |