Incidenceeditor

attendeedata.h
1/*
2 SPDX-FileCopyrightText: 2010 Casey Link <unnamedrambler@gmail.com>
3 SPDX-FileCopyrightText: 2009-2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#pragma once
9
10#include <Libkdepim/MultiplyingLine>
11
12#include <KCalendarCore/Attendee>
13
14namespace IncidenceEditorNG
15{
16class AttendeeData : public KPIM::MultiplyingLineData, public KCalendarCore::Attendee
17{
18public:
20 using List = QList<AttendeeData::Ptr>;
21
22 AttendeeData(const QString &name,
23 const QString &email,
24 bool rsvp = false,
25 Attendee::PartStat status = Attendee::None,
26 Attendee::Role role = Attendee::ReqParticipant,
27 const QString &uid = QString())
29 {
30 }
31
32 explicit AttendeeData(const KCalendarCore::Attendee &attendee)
33 : KCalendarCore::Attendee(attendee)
34 {
35 }
36
37 void clear() override;
38 [[nodiscard]] bool isEmpty() const override;
39
40 /**
41 * Return a copy of the attendee data
42 */
43 [[nodiscard]] KCalendarCore::Attendee attendee() const;
44};
45}
QString name() const
QString uid() const
QString email() const
PartStat status() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.