File indexing completed on 2024-05-12 05:55:42

0001 /*
0002     This file is part of the Okteta Kasten module, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2023 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #ifndef KASTEN_BYTEARRAYCODINGCONFIGENTRY_HPP
0010 #define KASTEN_BYTEARRAYCODINGCONFIGENTRY_HPP
0011 
0012 // KF
0013 #include <KConfigGroup>
0014 
0015 namespace Kasten {
0016 
0017 enum ByteArrayCoding
0018 {
0019     ByteArrayInvalidCoding = -1,
0020     ByteArrayHexadecimalCoding = 0,
0021     ByteArrayDecimalCoding = 1,
0022     ByteArrayOctalCoding = 2,
0023     ByteArrayBinaryCoding = 3,
0024     ByteArrayCharCoding = 4,
0025     ByteArrayUtf8Coding = 5
0026 };
0027 
0028 }
0029 
0030 template <>
0031 Kasten::ByteArrayCoding
0032 KConfigGroup::readEntry(const char *key,
0033                         const Kasten::ByteArrayCoding &defaultValue) const;
0034 
0035 template <>
0036 void KConfigGroup::writeEntry(const char *key,
0037                               const Kasten::ByteArrayCoding &value,
0038                               KConfigBase::WriteConfigFlags flags);
0039 
0040 #endif