| 1 |
/* This file is part of the KDE project |
| 2 |
SPDX-FileCopyrightText: 2022 Dag Andersen <[email protected]> |
| 3 |
|
| 4 |
SPDX-License-Identifier: LGPL-2.0-or-later |
| 5 |
*/ |
| 6 |
|
| 7 |
// clazy:excludeall=qstring-arg |
| 8 |
#include "planmodels_export.h" |
| 9 |
|
| 10 |
#include "ReportGeneratorFactory.h" |
| 11 |
#include "ReportGenerator.h" |
| 12 |
#include "ReportGeneratorOdt.h" |
| 13 |
|
| 14 |
|
| 15 |
namespace KPlato |
| 16 |
{ |
| 17 |
|
| 18 |
ReportGeneratorFactory::ReportGeneratorFactory() |
| 19 |
{ |
| 20 |
} |
| 21 |
|
| 22 |
|
| 23 |
ReportGeneratorFactory::~ReportGeneratorFactory() |
| 24 |
{ |
| 25 |
} |
| 26 |
|
| 27 |
ReportGenerator *ReportGeneratorFactory::createReportGenerator(const QString &type) |
| 28 |
{ |
| 29 |
if (type.toLower() == QStringLiteral("odt")) { |
| 30 |
return new ReportGeneratorOdt(); |
| 31 |
} |
| 32 |
return nullptr; |
| 33 |
} |
| 34 |
|
| 35 |
} //namespace KPlato |