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>
11namespace MessageViewer
12{
13class DKIMResultAttributePrivate;
14
15class MESSAGEVIEWER_TESTS_EXPORT DKIMResultAttribute : public Akonadi::Attribute
16{
17public:
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
36private:
37 friend class DKIMResultAttributePrivate;
38 std::unique_ptr<DKIMResultAttributePrivate> const d;
39};
40}
Q_SCRIPTABLE CaptureState status()
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
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.