Warning, file /pim/kalarm/src/functions_p.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * functions_p.h - private declarations for miscellaneous functions 0003 * Program: kalarm 0004 * SPDX-FileCopyrightText: 2009-2022 David Jarvie <djarvie@kde.org> 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #pragma once 0010 0011 #include "config-kalarm.h" 0012 0013 #include <QObject> 0014 0015 class EditAlarmDlg; 0016 0017 namespace KAlarm 0018 { 0019 0020 // Private class which exists solely to allow signals/slots to work. 0021 class Private : public QObject 0022 { 0023 Q_OBJECT 0024 public: 0025 explicit Private(QObject* parent = nullptr) : QObject(parent), mMsgParent(nullptr) {} 0026 static Private* instance() 0027 { 0028 if (!mInstance) 0029 mInstance = new Private; 0030 return mInstance; 0031 } 0032 0033 QWidget* mMsgParent; 0034 0035 #if ENABLE_RTC_WAKE_FROM_SUSPEND 0036 public Q_SLOTS: 0037 void cancelRtcWake(); 0038 #endif 0039 0040 private: 0041 static Private* mInstance; 0042 }; 0043 0044 // Private class to handle Edit New Alarm dialog OK button. 0045 class PrivateNewAlarmDlg : public QObject 0046 { 0047 Q_OBJECT 0048 public: 0049 PrivateNewAlarmDlg() = default; 0050 explicit PrivateNewAlarmDlg(EditAlarmDlg*); 0051 void accept(EditAlarmDlg*); 0052 0053 private Q_SLOTS: 0054 void okClicked(); 0055 void cancelClicked(); 0056 }; 0057 0058 } // namespace KAlarm 0059 0060 // vim: et sw=4: