OpenHantek
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 
10 class ExporterRegistry;
11 class PPresult;
12 
18 public:
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;
76 protected:
77  ExporterRegistry *registry;
78 };
Definition: exporterinterface.h:17
virtual bool samples(const std::shared_ptr< PPresult >)=0
Definition: exporterregistry.h:23
virtual Type type()=0
Type
Definition: exporterinterface.h:44
virtual QIcon icon()=0
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:31