Messagelib

itippart.h
1/*
2 SPDX-FileCopyrightText: 2023 Daniel Vrátil <dvratil@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QString>
10#include <memory>
11
12#include "messagecomposer_export.h"
13#include "messagepart.h"
14
15namespace MessageComposer
16{
17/**
18 * @brief The ItipPart class
19 */
20class MESSAGECOMPOSER_EXPORT ItipPart : public MessagePart
21{
22 Q_OBJECT
23 Q_PROPERTY(QString invitation READ invitation WRITE setInvitation NOTIFY invitationChanged)
24 Q_PROPERTY(QString invitationBody READ invitationBody WRITE setInvitationBody NOTIFY invitationBodyChanged)
25 Q_PROPERTY(bool outlookConformInvitation READ outlookConformInvitation WRITE setOutlookConformInvitation NOTIFY outlookConformInvitationChanged)
26 Q_PROPERTY(QString method READ method WRITE setMethod NOTIFY methodChanged)
27
28public:
29 explicit ItipPart(QObject *parent = nullptr);
30 ~ItipPart() override;
31
32 [[nodiscard]] QString method() const;
33 void setMethod(const QString &method);
34
35 [[nodiscard]] QString invitation() const;
36 void setInvitation(const QString &invitation);
37
38 [[nodiscard]] QString invitationBody() const;
39 void setInvitationBody(const QString &invitationBody);
40
41 // default false
42 [[nodiscard]] bool outlookConformInvitation() const;
43 void setOutlookConformInvitation(bool enabled);
44
45Q_SIGNALS:
46 void methodChanged();
47 void invitationChanged();
48 void invitationBodyChanged();
49 void outlookConformInvitationChanged();
50
51private:
52 class ItipPartPrivate;
53 std::unique_ptr<ItipPartPrivate> const d;
54};
55}
The ItipPart class.
Definition itippart.h:21
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 19 2024 11:56:56 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.