KCalendarCore

calendarpluginloader.h
1/*
2 SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
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
13namespace KCalendarCore
14{
15
16/**
17 * Provides access to a KCalendarCore::CalendarPlugin instance, if available.
18 * @since 5.97
19 */
20class KCALENDARCORE_EXPORT CalendarPluginLoader
21{
22 Q_GADGET
23 Q_PROPERTY(bool hasPlugin READ hasPlugin)
24 Q_PROPERTY(KCalendarCore::CalendarPlugin *plugin READ plugin)
25
26public:
27 /** Returns @c true if there is a platform calendar available. */
28 static bool hasPlugin();
29
30 /** Returns the platform calendar plugin. */
32};
33
34}
35
36#endif // KCALENDARCORE_CALENDARPLUGINLOADER_H
Provides access to a KCalendarCore::CalendarPlugin instance, if available.
static bool hasPlugin()
Returns true if there is a platform calendar available.
static KCalendarCore::CalendarPlugin * plugin()
Returns the platform calendar plugin.
A plugin that provides calendar data.
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 1 2024 18:46:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.