1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef CALENDARPLUGIN_H
#define CALENDARPLUGIN_H
#include "calendarbackend.h"
#include "calendarBackendInterface.h"
#include <QtPlugin>
//![0]
class JulianGregorianPlugin : public QObject, public RequestedCalendarInterface
{
Q_OBJECT
Q_INTERFACES(RequestedCalendarInterface)
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.Examples."
"CalendarBackend."
"RequestedCalendarInterface/1.0")
public:
JulianGregorianPlugin();
QCalendar::SystemId loadCalendar(QAnyStringView request) override;
~JulianGregorianPlugin();
};
//![0]
#endif // CALENDARPLUGIN_H
|