* @brief Get the current visible plot time window in seconds */
| 375 | * @brief Get the current visible plot time window in seconds |
| 376 | */ |
| 377 | API::CommandResponse API::Handlers::DashboardHandler::getTimeRange(const QString& id, |
| 378 | const QJsonObject& params) |
| 379 | { |
| 380 | Q_UNUSED(params) |
| 381 | |
| 382 | const double seconds = UI::Dashboard::instance().plotTimeRange(); |
| 383 | |
| 384 | QJsonObject result; |
| 385 | result[QStringLiteral("seconds")] = seconds; |
| 386 | |
| 387 | return CommandResponse::makeSuccess(id, result); |
| 388 | } |
| 389 | |
| 390 | /** |
| 391 | * @brief Get all dashboard configuration settings |
nothing calls this directly
no test coverage detected