Incidenceeditor

attendeeeditor.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 "attendeedata.h"
11#include "attendeeline.h"
12
13#include <Libkdepim/MultiplyingLineEditor>
14
15namespace IncidenceEditorNG
16{
17class AttendeeLineFactory : public KPIM::MultiplyingLineFactory
18{
20public:
21 explicit AttendeeLineFactory(QObject *parent)
22 : KPIM::MultiplyingLineFactory(parent)
23 {
24 }
25
26 KPIM::MultiplyingLine *newLine(QWidget *parent) override
27 {
28 return new AttendeeLine(parent);
29 }
30};
31
32class AttendeeEditor : public KPIM::MultiplyingLineEditor
33{
35public:
36 explicit AttendeeEditor(QWidget *parent = nullptr);
37
38 AttendeeData::List attendees() const;
39
40 void addAttendee(const KCalendarCore::Attendee &attendee);
41 void removeAttendee(const AttendeeData::Ptr &attendee);
42
43 void setActions(AttendeeLine::AttendeeActions actions);
44
46 void countChanged(int);
47 void changed(const KCalendarCore::Attendee &oldAttendee, const KCalendarCore::Attendee &newAttendee);
48 void editingFinished(KPIM::MultiplyingLine *);
49
50protected Q_SLOTS:
51 void slotLineAdded(KPIM::MultiplyingLine *);
52 void slotCalculateTotal();
53};
54}
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QList< QAction * > actions() const 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.