OpenHantek
exporterinterface.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-2.0+
2 
3 #pragma once
4 
5 #include <QIcon>
6 #include <QString>
7 
8 #include <memory>
9 
10 class ExporterRegistry;
11 class PPresult;
12 
18 public:
26  virtual void create(ExporterRegistry *registry) = 0;
27 
32  virtual int faIcon() = 0;
33 
38  virtual QString name() = 0;
39 
44 
49  virtual Type type() = 0;
50 
56  virtual bool samples(const std::shared_ptr<PPresult>) = 0;
57 
64  virtual bool save() = 0;
65 
74  virtual float progress() = 0;
75 
76 protected:
78 };
Definition: exporterinterface.h:17
ExporterRegistry * registry
Definition: exporterinterface.h:77
virtual bool samples(const std::shared_ptr< PPresult >)=0
virtual int faIcon()=0
Definition: exporterregistry.h:23
virtual Type type()=0
Type
Definition: exporterinterface.h:43
virtual bool save()=0
virtual float progress()=0
The progress of receiving and processing samples. If the exporter returns 1, it will be called back b...
virtual void create(ExporterRegistry *registry)=0
virtual QString name()=0
Post processing results.
Definition: ppresult.h:36