Warning, file /utilities/okteta/kasten/controllers/view/filter/filterjob.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 This file is part of the Okteta Kasten module, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2008 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_FILTERJOB_HPP 0010 #define KASTEN_FILTERJOB_HPP 0011 0012 // Okteta core 0013 #include <Okteta/AddressRange> 0014 #include <Okteta/Byte> 0015 // Qt 0016 #include <QObject> 0017 0018 class AbstractByteArrayFilter; 0019 0020 namespace Okteta { 0021 class AbstractByteArrayModel; 0022 } 0023 0024 namespace Kasten { 0025 0026 class FilterJob : public QObject // not yet: KJob 0027 { 0028 Q_OBJECT 0029 0030 public: 0031 FilterJob(AbstractByteArrayFilter* byteArrayFilter, 0032 Okteta::Byte* result, Okteta::AbstractByteArrayModel* model, const Okteta::AddressRange& range); 0033 0034 public: 0035 bool exec(); 0036 0037 private Q_SLOTS: 0038 void onFilteredBytes(); 0039 0040 private: 0041 AbstractByteArrayFilter* mByteArrayFilter; 0042 0043 Okteta::Byte* mResult; 0044 Okteta::AbstractByteArrayModel* mModel; 0045 const Okteta::AddressRange mRange; 0046 }; 0047 0048 inline FilterJob::FilterJob(AbstractByteArrayFilter* byteArrayFilter, 0049 Okteta::Byte* result, Okteta::AbstractByteArrayModel* model, 0050 const Okteta::AddressRange& range) 0051 : mByteArrayFilter(byteArrayFilter) 0052 , mResult(result) 0053 , mModel(model) 0054 , mRange(range) 0055 {} 0056 0057 } 0058 0059 #endif