summaryrefslogtreecommitdiffstats
path: root/examples/corelib/serialization/convert/nullconverter.h
blob: b2c69593f55d474ee78c05e47d3438991809a083 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2018 Intel Corporation.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef NULLCONVERTER_H
#define NULLCONVERTER_H

#include "converter.h"

class NullConverter : 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;
};

#endif // NULLCONVERTER_H