Akonadi Mime

newmailnotifierattribute.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#pragma once
8
9#include "akonadi-mime_export.h"
10
11#include <Akonadi/Attribute>
12
13#include <memory>
14
15namespace Akonadi
16{
17class NewMailNotifierAttributePrivate;
18class AKONADI_MIME_EXPORT NewMailNotifierAttribute : public Akonadi::Attribute
19{
20public:
21 explicit NewMailNotifierAttribute();
22 ~NewMailNotifierAttribute() override;
23
24 /* reimpl */
25 NewMailNotifierAttribute *clone() const override;
26 [[nodiscard]] QByteArray type() const override;
27 [[nodiscard]] QByteArray serialized() const override;
28 void deserialize(const QByteArray &data) override;
29
30 [[nodiscard]] bool ignoreNewMail() const;
31 void setIgnoreNewMail(bool b);
32 bool operator==(const NewMailNotifierAttribute &other) const;
33
34private:
35 friend class NewMailNotifierAttributePrivate;
36 std::unique_ptr<NewMailNotifierAttributePrivate> const d;
37};
38}
Type type(const QSqlDatabase &db)
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:21:09 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.