* @brief Close the current CSV file */
| 96 | * @brief Close the current CSV file |
| 97 | */ |
| 98 | API::CommandResponse API::Handlers::CSVExportHandler::close(const QString& id, |
| 99 | const QJsonObject& params) |
| 100 | { |
| 101 | Q_UNUSED(params) |
| 102 | |
| 103 | CSV::Export::instance().closeFile(); |
| 104 | |
| 105 | QJsonObject result; |
| 106 | result[QStringLiteral("closed")] = true; |
| 107 | return CommandResponse::makeSuccess(id, result); |
| 108 | } |
| 109 | |
| 110 | //-------------------------------------------------------------------------------------------------- |
| 111 | // Getters |