File indexing completed on 2025-03-09 04:54:38
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 0006 */ 0007 0008 #pragma once 0009 0010 #include <Akonadi/Attribute> 0011 #include <memory> 0012 namespace MessageViewer 0013 { 0014 class ScamAttributePrivate; 0015 0016 class ScamAttribute : public Akonadi::Attribute 0017 { 0018 public: 0019 explicit ScamAttribute(); 0020 ~ScamAttribute() override; 0021 0022 [[nodiscard]] ScamAttribute *clone() const override; 0023 [[nodiscard]] QByteArray type() const override; 0024 [[nodiscard]] QByteArray serialized() const override; 0025 void deserialize(const QByteArray &data) override; 0026 0027 [[nodiscard]] bool isAScam() const; 0028 void setIsAScam(bool b); 0029 0030 [[nodiscard]] bool operator==(const ScamAttribute &other) const; 0031 0032 private: 0033 friend class ScamAttributePrivate; 0034 std::unique_ptr<ScamAttributePrivate> const d; 0035 }; 0036 }