MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setExportEnabled

Method setExportEnabled

app/src/CSV/Export.cpp:333–345  ·  view source on GitHub ↗

* @brief Enables or disables CSV export, closing the file on disable. */

Source from the content-addressed store, hash-verified

331 * @brief Enables or disables CSV export, closing the file on disable.
332 */
333void CSV::Export::setExportEnabled(const bool enabled)
334{
335 const bool allow = enabled && AppState::instance().operationMode() != SerialStudio::ConsoleOnly;
336
337 if (!allow && isOpen())
338 closeFile();
339
340 setConsumerEnabled(allow);
341 if (m_persistSettings)
342 m_settings.setValue("CSVExport", allow);
343
344 Q_EMIT enabledChanged();
345}
346
347//--------------------------------------------------------------------------------------------------
348// Hotpath data processing

Callers 3

enableConsumersMethod · 0.45
disableConsumersMethod · 0.45
endSessionMethod · 0.45

Calls 1

operationModeMethod · 0.80

Tested by

no test coverage detected