File indexing completed on 2024-09-22 05:15:39

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     Public domain.
0007 */
0008 
0009 //// ADAPT(start)
0010 //// rename "TEMPLATE_BYTEARRAYCHECKSUMALGORITHM_HPP" to an include guard matching your class/file name
0011 //// e.g. "MYBYTEARRAYCHECKSUMALGORITHM_HPP"
0012 #ifndef KASTEN_TEMPLATE_BYTEARRAYCHECKSUMALGORITHM_HPP
0013 #define KASTEN_TEMPLATE_BYTEARRAYCHECKSUMALGORITHM_HPP
0014 //// ADAPT(end)
0015 
0016 // lib
0017 //// ADAPT(start)
0018 //// change "template_bytearraychecksumparameterset.hpp" to the name of the header of the used parameterset
0019 //// in case of no parameters use "nobytearraychecksumparameterset.hpp"
0020 #include "template_bytearraychecksumparameterset.hpp"
0021 //// ADAPT(end)
0022 #include <abstractbytearraychecksumalgorithm.hpp>
0023 
0024 //// ADAPT(start)
0025 //// rename the class name from Template_ByteArrayFilter to a proper name, both here and in the .cpp file
0026 //// e.g. MyByteArrayFilter
0027 class Template_ByteArrayChecksumAlgorithm : public AbstractByteArrayChecksumAlgorithm
0028 //// ADAPT(end)
0029 {
0030     Q_OBJECT
0031 
0032 public:
0033     Template_ByteArrayChecksumAlgorithm();
0034 
0035     ~Template_ByteArrayChecksumAlgorithm() override;
0036 
0037 public: // AbstractByteArrayChecksumAlgorithm API
0038     bool calculateChecksum(QString* result, const Okteta::AbstractByteArrayModel* model, const Okteta::AddressRange& range) const override;
0039     AbstractByteArrayChecksumParameterSet* parameterSet() override;
0040 
0041 private:
0042 //// ADAPT(start)
0043 //// change "Template_ByteArrayChecksumParameterSet" to the name of the class of the used parameterset
0044 //// in case of no parameters use "NoByteArrayChecksumParameterSet"
0045     Template_ByteArrayChecksumParameterSet mParameterSet;
0046 //// ADAPT(end)
0047 };
0048 
0049 #endif