OpenHantek
Loading...
Searching...
No Matches
exporterinterface.h
1// SPDX-License-Identifier: GPL-2.0+
2
3#pragma once
4
5#include <QIcon>
6#include <QString>
7
8#include <memory>
9
11class PPresult;
12
18public:
19
27 virtual void create(ExporterRegistry *registry) = 0;
28
33 virtual QIcon icon() = 0;
34
39 virtual QString name() = 0;
40
44 enum class Type { SnapshotExport, ContinousExport };
45
50 virtual Type type() = 0;
51
57 virtual bool samples(const std::shared_ptr<PPresult>) = 0;
58
65 virtual bool save() = 0;
66
75 virtual float progress() = 0;
76protected:
77 ExporterRegistry *registry;
78};
Definition exporterinterface.h:17
virtual float progress()=0
The progress of receiving and processing samples. If the exporter returns 1, it will be called back b...
virtual QString name()=0
virtual bool samples(const std::shared_ptr< PPresult >)=0
virtual bool save()=0
virtual QIcon icon()=0
virtual void create(ExporterRegistry *registry)=0
Type
Definition exporterinterface.h:44
virtual Type type()=0
Definition exporterregistry.h:23
Post processing results.
Definition ppresult.h:31