The Out-only converters shouldn't need to implement loadFile(), as it shouldn't be called - a converter is not used for input unless it says it supports input. At the same time, provide the "ground state" implementations for optionsHelp(), outputOptions() and probeFile() to save the trivial implementations the need to duplicate one another. In the process, make the handling of loadFile()'s outputConverter more consistent among those that do implement it. Always set outputConverter if it's initially null (the caller does assert this). Pick-to: 6.6 6.5 Task-number: QTBUG-111228 Change-Id: I856d12c791d1f8e0accdb7dd1412d493117b2302 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
21 lines
541 B
C++
21 lines
541 B
C++
// Copyright (C) 2018 Intel Corporation.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
#ifndef DEBUGTEXTDUMPER_H
|
|
#define DEBUGTEXTDUMPER_H
|
|
|
|
#include "converter.h"
|
|
|
|
class DebugTextDumper : public Converter
|
|
{
|
|
// Converter interface
|
|
public:
|
|
QString name() const override;
|
|
Directions directions() const override;
|
|
Options outputOptions() const override;
|
|
void saveFile(QIODevice *f, const QVariant &contents,
|
|
const QStringList &options) const override;
|
|
};
|
|
|
|
#endif // DEBUGTEXTDUMPER_H
|