Akonadi Calendar

publishdialog.h
1 /*
2  SPDX-FileCopyrightText: 2001 Cornelius Schumacher <[email protected]>
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 // TODO: documentation
14 // Uses akonadi-contact, so don't move this class to KCalUtils.
15 namespace Akonadi
16 {
17 class AKONADI_CALENDAR_EXPORT PublishDialog : public QDialog
18 {
19  Q_OBJECT
20 public:
21  /**
22  * Creates a new PublishDialog
23  * @param parent the dialog's parent
24  */
25  explicit PublishDialog(QWidget *parent = nullptr);
26 
27  /**
28  * Destructor
29  */
30  ~PublishDialog() override;
31 
32  /**
33  * Adds a new attendee to the dialog
34  * @param attendee the attendee to add
35  */
36  void addAttendee(const KCalendarCore::Attendee &attendee);
37 
38  /**
39  * Returns a list of e-mail addresses.
40  * //TODO: This should be a QStringList, but KCalUtils::Scheduler::publish() accepts a QString.
41  */
42  Q_REQUIRED_RESULT QString addresses() const;
43 
44 public Q_SLOTS:
45  void accept() override;
46 
47 private:
48  void slotHelp();
49  //@cond PRIVATE
50  class Private;
51  Private *const d;
52  //@endcond
53 };
54 }
55 
FreeBusyManager::Singleton.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jun 19 2021 23:12:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.