Messagelib

scamattribute.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5
6*/
7
8#pragma once
9
10#include <Akonadi/Attribute>
11#include <memory>
12namespace MessageViewer
13{
14class ScamAttributePrivate;
15
16class ScamAttribute : public Akonadi::Attribute
17{
18public:
19 explicit ScamAttribute();
20 ~ScamAttribute() override;
21
22 [[nodiscard]] ScamAttribute *clone() const override;
23 [[nodiscard]] QByteArray type() const override;
24 [[nodiscard]] QByteArray serialized() const override;
25 void deserialize(const QByteArray &data) override;
26
27 [[nodiscard]] bool isAScam() const;
28 void setIsAScam(bool b);
29
30 [[nodiscard]] bool operator==(const ScamAttribute &other) const;
31
32private:
33 friend class ScamAttributePrivate;
34 std::unique_ptr<ScamAttributePrivate> const d;
35};
36}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.