/* ​ * SPDX-FileCopyrightText: 2020 Nicolas Fella ​ * SPDX-FileCopyrightText: 2022 Volker Krause ​ * ​ * SPDX-License-Identifier: LGPL-2.0-or-later ​ */ #ifndef KIRIGAMIADDONSDATEANDTIME_ANDROIDINTEGRATION_H #define KIRIGAMIADDONSDATEANDTIME_ANDROIDINTEGRATION_H #include "kirigamidateandtime_export.h" #include #include namespace KirigamiAddonsDateAndTime { /** Interface to native Android date/time pickers. * @internal */ class KIRIGAMIDATEANDTIME_EXPORT AndroidIntegration : public QObject { Q_OBJECT public: Q_INVOKABLE void showDatePicker(qint64 initialDate); Q_INVOKABLE void showTimePicker(qint64 initialTime); void _timeSelected(int hours, int minutes); void _timeCancelled(); static AndroidIntegration &instance(); Q_SIGNALS: void datePickerFinished(bool accepted, const QDateTime &date); void timePickerFinished(bool accepted, const QDateTime &time); private: static AndroidIntegration *s_instance; }; } #endif // KIRIGAMIADDONSDATEANDTIME_ANDROIDINTEGRATION_H