File indexing completed on 2024-12-15 04:51:46

0001 /*******************************************************************
0002  KNotes -- Notes for the KDE project
0003 
0004  SPDX-FileCopyrightText: 2005 Michael Brade <brade@kde.org>
0005 
0006  SPDX-License-Identifier: GPL-2.0-or-later
0007 *******************************************************************/
0008 
0009 #pragma once
0010 
0011 #include "noteshared_export.h"
0012 #include <QDialog>
0013 
0014 class QDateTime;
0015 class QAbstractButton;
0016 class KDateComboBox;
0017 class KTimeComboBox;
0018 class QButtonGroup;
0019 namespace NoteShared
0020 {
0021 class NoteAlarmDialogPrivate;
0022 class NOTESHARED_EXPORT NoteAlarmDialog : public QDialog
0023 {
0024     Q_OBJECT
0025 public:
0026     explicit NoteAlarmDialog(const QString &caption, QWidget *parent = nullptr);
0027     ~NoteAlarmDialog() override;
0028     void setAlarm(const QDateTime &dateTime);
0029     [[nodiscard]] QDateTime alarm() const;
0030 
0031 private:
0032     void slotButtonChanged(QAbstractButton *button);
0033     KDateComboBox *m_atDate = nullptr;
0034     KTimeComboBox *m_atTime = nullptr;
0035     QButtonGroup *const m_buttons = nullptr;
0036 };
0037 }