Messagelib

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

KDE's Doxygen guidelines are available online.