File indexing completed on 2024-12-29 04:51:02
0001 /* 0002 SPDX-FileCopyrightText: 2023 Volker Krause <vkrause@kde.org> 0003 SPDX-License-Identifier: LGPL-2.0-or-later 0004 */ 0005 0006 #ifndef KITINERARY_RSP6DECODER_H 0007 #define KITINERARY_RSP6DECODER_H 0008 0009 class QByteArray; 0010 0011 namespace KItinerary { 0012 0013 /** 0014 * UK RSP-6 ticket decoder. 0015 * 0016 * @see https://eta.st/2023/01/31/rail-tickets.html 0017 * @see https://git.eta.st/eta/rsp6-decoder 0018 */ 0019 class Rsp6Decoder 0020 { 0021 public: 0022 /** Decodes base26 transport encoding and decrypts the ticket payload. */ 0023 static QByteArray decode(const QByteArray &data); 0024 }; 0025 0026 } 0027 0028 #endif // KITINERARY_RSP6DECODER_H