OpenHantek
Loading...
Searching...
No Matches
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
12class PPresult;
13
19 public:
20 virtual ~ExporterInterface();
28 virtual void create( ExporterRegistry *registry ) = 0;
29
34 virtual QString name() = 0;
35
39 virtual QString format() = 0;
40
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
77 protected:
79};
Definition exporterinterface.h:18
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 name()=0
virtual bool samples(const std::shared_ptr< PPresult >)=0
virtual bool save()=0
virtual QString format()=0
virtual void create(ExporterRegistry *registry)=0
Type
Definition exporterinterface.h:44
@ SnapshotExport
Definition exporterinterface.h:44
@ ContinuousExport
Definition exporterinterface.h:44
ExporterRegistry * registry
Definition exporterinterface.h:78
virtual Type type()=0
Definition exporterregistry.h:23
Post processing results.
Definition ppresult.h:43