mirror of https://github.com/qt/qtbase.git
26 lines
734 B
C
26 lines
734 B
C
|
// 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
|