mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-01-23 20:34:31 +08:00
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
// Copyright (C) 2018 Intel Corporation.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
#ifndef CBORCONVERTER_H
|
|
#define CBORCONVERTER_H
|
|
|
|
#include "converter.h"
|
|
|
|
class CborDiagnosticDumper : 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 CborConverter : public Converter
|
|
{
|
|
public:
|
|
CborConverter();
|
|
|
|
// 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 // CBORCONVERTER_H
|