Messagelib

dkimresultattribute.h
1 /*
2  SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 #pragma once
7 
8 #include "messageviewer_private_export.h"
9 #include <Akonadi/Attribute>
10 #include <memory>
11 namespace MessageViewer
12 {
13 class DKIMResultAttributePrivate;
14 
15 class MESSAGEVIEWER_TESTS_EXPORT DKIMResultAttribute : public Akonadi::Attribute
16 {
17 public:
18  DKIMResultAttribute();
19  ~DKIMResultAttribute() override;
20  [[nodiscard]] DKIMResultAttribute *clone() const override;
21  [[nodiscard]] QByteArray type() const override;
22  [[nodiscard]] QByteArray serialized() const override;
23  void deserialize(const QByteArray &data) override;
24 
25  [[nodiscard]] bool operator==(const DKIMResultAttribute &other) const;
26 
27  void setError(int err);
28  [[nodiscard]] int error() const;
29 
30  void setWarning(int err);
31  [[nodiscard]] int warning() const;
32 
33  void setStatus(int err);
34  [[nodiscard]] int status() const;
35 
36 private:
37  friend class DKIMResultAttributePrivate;
38  std::unique_ptr<DKIMResultAttributePrivate> const d;
39 };
40 }
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Q_SCRIPTABLE CaptureState status()
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:55:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.