|
OpenHantek
|
#include <exportjson.h>
Public Member Functions | |
| ExporterJSON () | |
| void | create (ExporterRegistry *registry) override |
| QString | name () override |
| QString | format () override |
| Type | type () override |
| bool | samples (const std::shared_ptr< PPresult > newData) override |
| bool | save () override |
| float | progress () override |
| The progress of receiving and processing samples. If the exporter returns 1, it will be called back by the GUI via the save() method. | |
| Public Member Functions inherited from ExporterInterface | |
| virtual | ~ExporterInterface () |
Private Member Functions | |
| QFile * | getFile () |
| void | fillData (QTextStream &jsonStream, const ExporterData &dto) |
Private Attributes | |
| std::shared_ptr< PPresult > | data |
Additional Inherited Members | |
| Public Types inherited from ExporterInterface | |
| enum class | Type { SnapshotExport , ContinuousExport } |
| Protected Attributes inherited from ExporterInterface | |
| ExporterRegistry * | registry |
| ExporterJSON::ExporterJSON | ( | ) |
|
overridevirtual |
Starts up this exporter. Acquires resources etc. Do not call this directly, it will be called by the exporter registry at some point. Release your resources in the destructor as usual.
| registry | The exporter registry instance. This is used to obtain a reference to the settings. |
Implements ExporterInterface.
|
private |
|
overridevirtual |
Implements ExporterInterface.
|
private |
|
overridevirtual |
Implements ExporterInterface.
|
overridevirtual |
The progress of receiving and processing samples. If the exporter returns 1, it will be called back by the GUI via the save() method.
Implements ExporterInterface.
|
overridevirtual |
A new sample set from the ExporterRegistry. The exporter needs to be active to receive samples. If it is a snapshot exporter, only one set of samples will be received.
Implements ExporterInterface.
|
overridevirtual |
Exporter: Save your received data and perform any conversions necessary. This method will be called in the GUI thread context and can create and show dialogs if required.
Implements ExporterInterface.
|
overridevirtual |
Implements ExporterInterface.
|
private |