KCalendarCore

calendarpluginloader.h
1 /*
2  SPDX-FileCopyrightText: 2022 Volker Krause <[email protected]>
3  SPDX-License-Identifier: LGPL-2.0-or-later
4 */
5 
6 #ifndef KCALENDARCORE_CALENDARPLUGINLOADER_H
7 #define KCALENDARCORE_CALENDARPLUGINLOADER_H
8 
9 #include "kcalendarcore_export.h"
10 
11 #include <KCalendarCore/CalendarPlugin>
12 
13 namespace KCalendarCore
14 {
15 
16 /**
17  * Provides access to a KCalendarCore::CalendarPlugin instance, if available.
18  * @since 5.97
19  */
20 class KCALENDARCORE_EXPORT CalendarPluginLoader
21 {
22  Q_GADGET
23  Q_PROPERTY(bool hasPlugin READ hasPlugin)
24  Q_PROPERTY(KCalendarCore::CalendarPlugin *plugin READ plugin)
25 
26 public:
27  /** Returns @c true if there is a platform calendar available. */
28  static bool hasPlugin();
29 
30  /** Returns the platform calendar plugin. */
31  static KCalendarCore::CalendarPlugin *plugin();
32 };
33 
34 }
35 
36 #endif // KCALENDARCORE_CALENDARPLUGINLOADER_H
A plugin that provides calendar data.
Namespace for all KCalendarCore types.
Definition: alarm.h:36
Provides access to a KCalendarCore::CalendarPlugin instance, if available.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:00:45 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.