| 285 | } |
| 286 | |
| 287 | void StSecurityFileTransfer::ProcessCopy(const std::shared_ptr<FileTransferRecord>& record) { |
| 288 | auto msg = record->AsString(); |
| 289 | QClipboard* clipboard = QApplication::clipboard(); |
| 290 | clipboard->setText(QString::fromStdString(msg)); |
| 291 | context_->NotifyAppMessage(tcTr("id_copy_success"), tcTr("id_copy_success_clipboard")); |
| 292 | } |
| 293 | |
| 294 | void StSecurityFileTransfer::ProcessCopyAsJson(const std::shared_ptr<FileTransferRecord>& record) { |
| 295 | auto msg = record->AsJson(); |
nothing calls this directly
no test coverage detected