MailImporter

messagestatus.h
1/*
2 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "mailimporter_export.h"
10
11namespace MailImporter
12{
13/**
14 * @brief The MessageStatus class
15 * @author Laurent Montel <montel@kde.org>
16 */
17class MAILIMPORTER_EXPORT MessageStatus
18{
19public:
22
23 void setRead(bool state);
24 [[nodiscard]] bool isRead() const;
25
26 void setDeleted(bool state);
27 [[nodiscard]] bool isDeleted() const;
28
29 void setReplied(bool state);
30 [[nodiscard]] bool isReplied() const;
31
32 void setForwarded(bool state);
33 [[nodiscard]] bool isForwarded() const;
34
35private:
36 bool mRead = false;
37 bool mDeleted = false;
38 bool mReplied = false;
39 bool mForwarded = false;
40};
41}
The MessageStatus class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.