KCalendarCore

calendarplugin.h
1 /*
2  This file is part of the kcalcore library.
3 
4  SPDX-FileCopyrightText: 2020 Nicolas Fella <[email protected]>
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 #pragma once
8 
9 #include "kcalendarcore_export.h"
10 
11 #include <KCalendarCore/Calendar>
12 
13 namespace KCalendarCore
14 {
15 /**
16  @brief
17  A plugin that provides calendar data.
18 
19  It allows calendar applications to consume data provided by multiple
20  sources, e.g. local ical files or remote calendars.
21 
22  @since 5.85
23 
24 */
25 class KCALENDARCORE_EXPORT CalendarPlugin : public QObject
26 {
27  Q_OBJECT
28 public:
29  CalendarPlugin(QObject *parent, const QVariantList &args);
30 
31  /**
32  * The set of calendars defined by this plugin.
33  *
34  * @return QVector of calendars.
35  */
36  virtual QVector<Calendar::Ptr> calendars() const = 0;
37 
38 Q_SIGNALS:
39  /**
40  * Emitted when the set of calendars changed.
41  */
42  void calendarsChanged();
43 
44 private:
45  void *d;
46 };
47 
48 }
A plugin that provides calendar data.
Namespace for all KCalendarCore types.
Definition: alarm.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Oct 21 2021 22:52:53 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.