Akonadi Calendar

publishdialog.h
1/*
2 SPDX-FileCopyrightText: 2001 Cornelius Schumacher <schumacher@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#pragma once
7
8#include "akonadi-calendar_export.h"
9
10#include <KCalendarCore/Attendee>
11#include <QDialog>
12
13#include <memory>
14
15// TODO: documentation
16// Uses akonadi-contact, so don't move this class to KCalUtils.
17namespace Akonadi
18{
19class PublishDialogPrivate;
20
21class AKONADI_CALENDAR_EXPORT PublishDialog : public QDialog
22{
23 Q_OBJECT
24public:
25 /**
26 * Creates a new PublishDialog
27 * @param parent the dialog's parent
28 */
29 explicit PublishDialog(QWidget *parent = nullptr);
30
31 /**
32 * Destructor
33 */
34 ~PublishDialog() override;
35
36 /**
37 * Adds a new attendee to the dialog
38 * @param attendee the attendee to add
39 */
40 void addAttendee(const KCalendarCore::Attendee &attendee);
41
42 /**
43 * Returns a list of e-mail addresses.
44 * //TODO: This should be a QStringList, but KCalUtils::Scheduler::publish() accepts a QString.
45 */
46 [[nodiscard]] QString addresses() const;
47
48public Q_SLOTS:
49 void accept() override;
50
51private:
52 AKONADI_CALENDAR_NO_EXPORT void slotHelp();
53 //@cond PRIVATE
54 std::unique_ptr<PublishDialogPrivate> const d;
55 //@endcond
56};
57}
FreeBusyManager::Singleton.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 19 2024 11:52:11 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.