KCalendarCore

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

KDE's Doxygen guidelines are available online.