2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2018 Intel Corporation.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2018-01-19 23:30:24 +00:00
|
|
|
|
|
|
|
#ifndef DATASTREAMCONVERTER_H
|
|
|
|
#define DATASTREAMCONVERTER_H
|
|
|
|
|
|
|
|
#include "converter.h"
|
|
|
|
|
|
|
|
class DataStreamDumper : public Converter
|
|
|
|
{
|
|
|
|
// Converter interface
|
|
|
|
public:
|
|
|
|
QString name() override;
|
|
|
|
Direction directions() override;
|
|
|
|
Options outputOptions() override;
|
|
|
|
const char *optionsHelp() override;
|
|
|
|
bool probeFile(QIODevice *f) override;
|
|
|
|
QVariant loadFile(QIODevice *f, Converter *&outputConverter) override;
|
|
|
|
void saveFile(QIODevice *f, const QVariant &contents, const QStringList &options) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
class DataStreamConverter : public Converter
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DataStreamConverter();
|
|
|
|
|
|
|
|
// Converter interface
|
|
|
|
public:
|
|
|
|
QString name() override;
|
|
|
|
Direction directions() override;
|
|
|
|
Options outputOptions() override;
|
|
|
|
const char *optionsHelp() override;
|
|
|
|
bool probeFile(QIODevice *f) override;
|
|
|
|
QVariant loadFile(QIODevice *f, Converter *&outputConverter) override;
|
|
|
|
void saveFile(QIODevice *f, const QVariant &contents, const QStringList &options) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DATASTREAMCONVERTER_H
|