File indexing completed on 2024-06-23 05:48:51
0001 /* 0002 This file is part of the Okteta Kasten module, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2009 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_UINT8CODEC_HPP 0010 #define KASTEN_UINT8CODEC_HPP 0011 0012 // tool 0013 #include "../abstracttypecodec.hpp" 0014 0015 namespace Okteta { 0016 0017 class UInt8Codec : public AbstractTypeCodec 0018 { 0019 public: 0020 UInt8Codec(); 0021 0022 ~UInt8Codec() override; 0023 0024 public: // AbstractTypeCodec API 0025 QVariant value(const PODData& data, int* byteCount) const override; 0026 QByteArray valueToBytes(const QVariant& value) const override; 0027 0028 bool areEqual(const QVariant& value, QVariant& otherValue) const override; 0029 }; 0030 0031 } 0032 0033 #endif