File indexing completed on 2024-11-24 04:45:05
0001 /* 0002 SPDX-FileCopyrightText: 2018 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "knowledgedb.h" 0010 0011 class QByteArray; 0012 class QIODevice; 0013 class QString; 0014 0015 namespace KItinerary { 0016 namespace Generator { 0017 0018 0019 /** Code generation utilities. */ 0020 namespace CodeGen 0021 { 0022 void writeLicenseHeaderWikidata(QIODevice *out); 0023 void writeLicenseHeaderOSM(QIODevice *out); 0024 void writeCoordinate(QIODevice *out, KnowledgeDb::Coordinate coord); 0025 void writeCountryIsoCode(QIODevice *out, const QString &isoCode); 0026 void writeTimezone(QIODevice *out, const QByteArray &tzName); 0027 void writeTimezoneEnum(QIODevice *out, const QByteArray &tzName); 0028 } 0029 0030 } 0031 } 0032