OpenHantek
exporterinterface.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-2.0+
2 
3 #pragma once
4 
5 #include <QCoreApplication>
6 #include <QIcon>
7 #include <QString>
8 
9 #include <memory>
10 
11 class ExporterRegistry;
12 class PPresult;
13 
19  public:
20  virtual ~ExporterInterface();
28  virtual void create( ExporterRegistry *registry ) = 0;
29 
34  virtual int faIcon() = 0;
35 
40  virtual QString name() = 0;
41 
46 
51  virtual Type type() = 0;
52 
58  virtual bool samples( const std::shared_ptr< PPresult > ) = 0;
59 
66  virtual bool save() = 0;
67 
76  virtual float progress() = 0;
77 
78  protected:
80 };
Definition: exporterinterface.h:18
ExporterRegistry * registry
Definition: exporterinterface.h:79
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:45
virtual bool save()=0
virtual ~ExporterInterface()
Definition: exporterinterface.cpp:5
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:37