OpenHantek
exporterinterface.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-2.0-or-later
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 
45  virtual QString format() = 0;
46 
51 
56  virtual Type type() = 0;
57 
63  virtual bool samples( const std::shared_ptr< PPresult > ) = 0;
64 
71  virtual bool save() = 0;
72 
81  virtual float progress() = 0;
82 
83  protected:
85 };
Definition: exporterinterface.h:18
ExporterRegistry * registry
Definition: exporterinterface.h:84
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:50
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 QString format()=0
virtual void create(ExporterRegistry *registry)=0
virtual QString name()=0
Post processing results.
Definition: ppresult.h:43