Commit 13ba49da authored by David Jarvie's avatar David Jarvie

Move private stuff from kaevent.h into .cpp

parent f2c2fbc7
......@@ -269,10 +269,10 @@ QVector<KAEvent> BirthdayDlg::events() const
if (date <= today)
date.setYMD(thisYear + 1, date.month(), date.day());
KAEvent event(KDateTime(date, KDateTime::ClockTime),
mPrefix->text() + name + mSuffix->text(),
mFontColourButton->bgColour(), mFontColourButton->fgColour(),
mFontColourButton->font(), KAEvent::MESSAGE, mLateCancel->minutes(),
mFlags, true);
mPrefix->text() + name + mSuffix->text(),
mFontColourButton->bgColour(), mFontColourButton->fgColour(),
mFontColourButton->font(), KAEvent::MESSAGE, mLateCancel->minutes(),
mFlags, true);
float fadeVolume;
int fadeSecs;
float volume = mSoundPicker->volume(fadeVolume, fadeSecs);
......@@ -305,11 +305,11 @@ void BirthdayDlg::slotOk()
config.writeEntry("BirthdaySuffix", mSuffix->text());
config.sync();
mFlags = (mSoundPicker->sound() == Preferences::Sound_Beep ? KAEvent::BEEP : 0)
| (mSoundPicker->repeat() ? KAEvent::REPEAT_SOUND : 0)
| (mConfirmAck->isChecked() ? KAEvent::CONFIRM_ACK : 0)
| (mFontColourButton->defaultFont() ? KAEvent::DEFAULT_FONT : 0)
| KAEvent::ANY_TIME;
mFlags = KAEvent::ANY_TIME;
if (mSoundPicker->sound() == Preferences::Sound_Beep) mFlags |= KAEvent::BEEP;
if (mSoundPicker->repeat()) mFlags |= KAEvent::REPEAT_SOUND;
if (mConfirmAck->isChecked()) mFlags |= KAEvent::CONFIRM_ACK;
if (mFontColourButton->defaultFont()) mFlags |= KAEvent::DEFAULT_FONT;
KDialog::accept();
}
......
......@@ -69,7 +69,7 @@ class BirthdayDlg : public KDialog
RepetitionButton* mSubRepetition;
QString mPrefixText; // last entered value of prefix text
QString mSuffixText; // last entered value of suffix text
int mFlags; // event flag bits
KAEvent::Flags mFlags; // event flag bits
};
......
This diff is collapsed.
......@@ -96,11 +96,10 @@ class KALARM_CAL_EXPORT KAAlarm
// The following values must be greater than the preceding ones, to
// ensure that in ordered processing they are processed afterwards.
AT_LOGIN_ALARM = 0x10, //!< Additional repeat-at-login trigger
DISPLAYING_ALARM = 0x20, //!< Copy of the alarm currently being displayed
// The following values are for internal KAEvent use only
AUDIO_ALARM = 0x30, // sound to play when displaying the alarm
PRE_ACTION_ALARM = 0x40, // command to execute before displaying the alarm
POST_ACTION_ALARM = 0x50 // command to execute after the alarm window is closed
DISPLAYING_ALARM = 0x20 //!< Copy of the alarm currently being displayed
// IMPORTANT: if any values are added to this list, ensure that the
// KAEvent::Private::AlarmType enum is adjusted similarly.
};
/** Default constructor, which creates an invalid instance. */
......@@ -189,7 +188,7 @@ class KALARM_CAL_EXPORT KAEvent
typedef QVector<KAEvent*> List;
/** Flags for use in D-Bus calls, etc. */
enum
enum Flag
{
BEEP = 0x02, //!< sound an audible beep when the alarm is displayed
REPEAT_AT_LOGIN = 0x04, //!< repeat the alarm at every login
......@@ -207,16 +206,12 @@ class KALARM_CAL_EXPORT KAEvent
EXCL_HOLIDAYS = 0x4000, //!< don't trigger the alarm on holidays
WORK_TIME_ONLY = 0x8000, //!< trigger the alarm only during working hours
DISPLAY_COMMAND = 0x10000, //!< display command output in the alarm window
REMINDER_ONCE = 0x20000, //!< only trigger the reminder on the first recurrence
// The following are read-only internal values
REMINDER = 0x100000,
DEFERRAL = 0x200000,
TIMED_FLAG = 0x400000,
DATE_DEFERRAL = DEFERRAL,
TIME_DEFERRAL = DEFERRAL | TIMED_FLAG,
DISPLAYING_ = 0x800000,
READ_ONLY_FLAGS = 0xF00000 //!< mask for all read-only internal values
REMINDER_ONCE = 0x20000 //!< only trigger the reminder on the first recurrence
// IMPORTANT: if any values are added to this list, ensure that the
// additional enum values in KAEvent::Private are also adjusted.
};
Q_DECLARE_FLAGS(Flags, Flag)
/** The basic action type(s) for the event's main alarm, as bit values. */
enum Actions
......@@ -316,13 +311,13 @@ class KALARM_CAL_EXPORT KAEvent
* @param font font (for display alarms, ignored otherwise).
* @param action alarm action type.
* @param lateCancel late-cancellation period (minutes), else 0.
* @param flags OR of flag enum values.
* @param flags OR of Flag enum values.
* @param changesPending true to inhibit automatic data updates until
* further changes have been applied to the instance;
* call endChanges() when changes are complete.
*/
KAEvent(const KDateTime&, const QString& text, const QColor& bg, const QColor& fg,
const QFont& f, SubAction, int lateCancel, int flags, bool changesPending = false);
const QFont& f, SubAction, int lateCancel, Flags flags, bool changesPending = false);
#ifdef USE_AKONADI
/** Construct an event and initialise it from a KCalCore::Event. */
explicit KAEvent(const KCalCore::ConstEventPtr&);
......@@ -354,14 +349,14 @@ class KALARM_CAL_EXPORT KAEvent
* @param font font (for display alarms, ignored otherwise)
* @param action alarm action type
* @param lateCancel late-cancellation period (minutes), else 0
* @param flags OR of flag enum values
* @param flags OR of Flag enum values
* @param changesPending true to inhibit automatic data updates until
* further changes have been applied to the instance;
* call endChanges() when changes are complete.
*/
void set(const KDateTime& dt, const QString& text, const QColor& bg,
const QColor& fg, const QFont& font, SubAction action, int lateCancel,
int flags, bool changesPending = false);
Flags flags, bool changesPending = false);
#ifdef USE_AKONADI
/** Update an existing KCalCore::Event with the KAEvent data.
......@@ -412,8 +407,8 @@ class KALARM_CAL_EXPORT KAEvent
*/
bool expired() const;
/** Return the OR of various flag enum status values. */
int flags() const;
/** Return the OR of various Flag enum status values. */
Flags flags() const;
/** Set the alarm category (active/archived/template). */
void setCategory(KAlarm::CalEvent::Type type);
......@@ -1186,6 +1181,7 @@ class KALARM_CAL_EXPORT KAEvent
QSharedDataPointer<Private> d;
};
Q_DECLARE_OPERATORS_FOR_FLAGS(KAEvent::Flags)
Q_DECLARE_METATYPE(KAEvent)
#endif // KAEVENT_H
......
......@@ -71,7 +71,7 @@ class CommandOptions
QStringList attachments() const { return mAttachments; }
QString subject() const { return mSubject; }
uint fromID() const { return mFromID; }
int flags() const { return mFlags; }
KAEvent::Flags flags() const { return mFlags; }
bool disableAll() const { return mDisableAll; }
#ifndef NDEBUG
KDateTime simulationTime() const { return mSimulationTime; }
......@@ -116,7 +116,7 @@ class CommandOptions
QStringList mAttachments; // NEW: email attachment file names
QString mSubject; // NEW: email subject
uint mFromID; // NEW: email sender ID
int mFlags; // NEW: event flags
KAEvent::Flags mFlags; // NEW: event flags
bool mDisableAll; // disable all alarm monitoring
#ifndef NDEBUG
KDateTime mSimulationTime; // system time to be simulated, or invalid if none
......
......@@ -275,7 +275,7 @@ bool DBusHandler::scheduleMessage(const QString& message, const KDateTime& start
const KUrl& audioFile, int reminderMins, const KARecurrence& recurrence,
const Duration& subRepeatDuration, int subRepeatCount)
{
unsigned kaEventFlags = convertStartFlags(start, flags);
KAEvent::Flags kaEventFlags = convertStartFlags(start, flags);
KAEvent::SubAction action = (kaEventFlags & KAEvent::DISPLAY_COMMAND) ? KAEvent::COMMAND : KAEvent::MESSAGE;
QColor bg = convertBgColour(bgColor);
if (!bg.isValid())
......@@ -315,7 +315,7 @@ bool DBusHandler::scheduleFile(const KUrl& file,
const KUrl& audioFile, int reminderMins, const KARecurrence& recurrence,
const Duration& subRepeatDuration, int subRepeatCount)
{
unsigned kaEventFlags = convertStartFlags(start, flags);
KAEvent::Flags kaEventFlags = convertStartFlags(start, flags);
QColor bg = convertBgColour(bgColor);
if (!bg.isValid())
return false;
......@@ -330,7 +330,7 @@ bool DBusHandler::scheduleCommand(const QString& commandLine,
const KDateTime& start, int lateCancel, unsigned flags,
const KARecurrence& recurrence, const Duration& subRepeatDuration, int subRepeatCount)
{
unsigned kaEventFlags = convertStartFlags(start, flags);
KAEvent::Flags kaEventFlags = convertStartFlags(start, flags);
return theApp()->scheduleEvent(KAEvent::COMMAND, commandLine, start, lateCancel, kaEventFlags, Qt::black, Qt::black, QFont(),
QString(), -1, 0, recurrence, subRepeatDuration, subRepeatCount);
}
......@@ -343,7 +343,7 @@ bool DBusHandler::scheduleEmail(const QString& fromID, const QString& addresses,
const KDateTime& start, int lateCancel, unsigned flags,
const KARecurrence& recurrence, const Duration& subRepeatDuration, int subRepeatCount)
{
unsigned kaEventFlags = convertStartFlags(start, flags);
KAEvent::Flags kaEventFlags = convertStartFlags(start, flags);
uint senderId = 0;
if (!fromID.isEmpty())
{
......@@ -388,7 +388,7 @@ bool DBusHandler::scheduleAudio(const QString& audioUrl, int volumePercent,
const KDateTime& start, int lateCancel, unsigned flags,
const KARecurrence& recurrence, const Duration& subRepeatDuration, int subRepeatCount)
{
unsigned kaEventFlags = convertStartFlags(start, flags);
KAEvent::Flags kaEventFlags = convertStartFlags(start, flags);
float volume = (volumePercent >= 0) ? volumePercent / 100.0f : -1;
return theApp()->scheduleEvent(KAEvent::AUDIO, QString(), start, lateCancel, kaEventFlags, Qt::black, Qt::black, QFont(),
audioUrl, volume, 0, recurrence, subRepeatDuration, subRepeatCount);
......@@ -458,9 +458,9 @@ KDateTime DBusHandler::convertDateTime(const QString& dateTime, const KDateTime&
/******************************************************************************
* Convert the flag bits to KAEvent flag bits.
*/
unsigned DBusHandler::convertStartFlags(const KDateTime& start, unsigned flags)
KAEvent::Flags DBusHandler::convertStartFlags(const KDateTime& start, unsigned flags)
{
unsigned kaEventFlags = 0;
KAEvent::Flags kaEventFlags = 0;
if (flags & REPEAT_AT_LOGIN) kaEventFlags |= KAEvent::REPEAT_AT_LOGIN;
if (flags & BEEP) kaEventFlags |= KAEvent::BEEP;
if (flags & SPEAK) kaEventFlags |= KAEvent::SPEAK;
......
/*
* dbushandler.h - handler for D-Bus calls by other applications
* Program: kalarm
* Copyright © 2001,2002,2004-2007,2009-2010 by David Jarvie <djarvie@kde.org>
* Copyright © 2001-2011 by David Jarvie <djarvie@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -23,6 +23,7 @@
#include "datetime.h"
#include "kalarmiface.h"
#include "kaevent.h"
#ifdef USE_AKONADI
#include <kcalcore/duration.h>
......@@ -124,7 +125,7 @@ class DBusHandler : public QObject, public KAlarmIface
const KARecurrence&, const KCal::Duration& subRepeatDuration = KCal::Duration(0), int subRepeatCount = 0);
#endif
static KDateTime convertDateTime(const QString& dateTime, const KDateTime& = KDateTime());
static unsigned convertStartFlags(const KDateTime& start, unsigned flags);
static KAEvent::Flags convertStartFlags(const KDateTime& start, unsigned flags);
static QColor convertBgColour(const QString& bgColor);
#ifdef USE_AKONADI
static bool convertRecurrence(KDateTime& start, KARecurrence&, const QString& startDateTime, const QString& icalRecurrence, int subRepeatInterval, KCalCore::Duration& subRepeatDuration);
......
......@@ -834,11 +834,16 @@ void EditAlarmDlg::setEvent(KAEvent& event, const QString& text, bool trial)
/******************************************************************************
* Get the currently specified alarm flag bits.
*/
int EditAlarmDlg::getAlarmFlags() const
KAEvent::Flags EditAlarmDlg::getAlarmFlags() const
{
return (mShowInKorganizer && mShowInKorganizer->isEnabled() && mShowInKorganizer->isChecked() ? KAEvent::COPY_KORGANIZER : 0)
| (mRecurrenceEdit->repeatType() == RecurrenceEdit::AT_LOGIN ? KAEvent::REPEAT_AT_LOGIN : 0)
| ((mTemplate ? mTemplateAnyTime->isChecked() : mAlarmDateTime.isDateOnly()) ? KAEvent::ANY_TIME : 0);
KAEvent::Flags flags(0);
if (mShowInKorganizer && mShowInKorganizer->isEnabled() && mShowInKorganizer->isChecked())
flags |= KAEvent::COPY_KORGANIZER;
if (mRecurrenceEdit->repeatType() == RecurrenceEdit::AT_LOGIN)
flags |= KAEvent::REPEAT_AT_LOGIN;
if (mTemplate ? mTemplateAnyTime->isChecked() : mAlarmDateTime.isDateOnly())
flags |= KAEvent::ANY_TIME;
return flags;
}
/******************************************************************************
......
......@@ -109,7 +109,7 @@ class EditAlarmDlg : public KDialog
virtual void saveState(const KAEvent*) = 0;
virtual bool type_stateChanged() const = 0;
virtual void type_setEvent(KAEvent&, const KDateTime&, const QString& text, int lateCancel, bool trial) = 0;
virtual int getAlarmFlags() const;
virtual KAEvent::Flags getAlarmFlags() const;
virtual bool type_validate(bool trial) = 0;
virtual void type_trySuccessMessage(ShellProcess*, const QString& text) = 0;
virtual Reminder* createReminder(QWidget* parent) { Q_UNUSED(parent); return 0; }
......
......@@ -570,18 +570,19 @@ void EditDisplayAlarmDlg::type_setEvent(KAEvent& event, const KDateTime& dt, con
/******************************************************************************
* Get the currently specified alarm flag bits.
*/
int EditDisplayAlarmDlg::getAlarmFlags() const
KAEvent::Flags EditDisplayAlarmDlg::getAlarmFlags() const
{
bool cmd = (mTypeCombo->currentIndex() == tCOMMAND);
return EditAlarmDlg::getAlarmFlags()
| (mSoundPicker->sound() == Preferences::Sound_Beep ? KAEvent::BEEP : 0)
| (mSoundPicker->sound() == Preferences::Sound_Speak ? KAEvent::SPEAK : 0)
| (mSoundPicker->repeat() ? KAEvent::REPEAT_SOUND : 0)
| (mConfirmAck->isChecked() ? KAEvent::CONFIRM_ACK : 0)
| (lateCancel()->isAutoClose() ? KAEvent::AUTO_CLOSE : 0)
| (mFontColourButton->defaultFont() ? KAEvent::DEFAULT_FONT : 0)
| (cmd ? KAEvent::DISPLAY_COMMAND : 0)
| (cmd && mCmdEdit->isScript() ? KAEvent::SCRIPT : 0);
KAEvent::Flags flags = EditAlarmDlg::getAlarmFlags();
if (mSoundPicker->sound() == Preferences::Sound_Beep) flags |= KAEvent::BEEP;
if (mSoundPicker->sound() == Preferences::Sound_Speak) flags |= KAEvent::SPEAK;
if (mSoundPicker->repeat()) flags |= KAEvent::REPEAT_SOUND;
if (mConfirmAck->isChecked()) flags |= KAEvent::CONFIRM_ACK;
if (lateCancel()->isAutoClose()) flags |= KAEvent::AUTO_CLOSE;
if (mFontColourButton->defaultFont()) flags |= KAEvent::DEFAULT_FONT;
if (cmd) flags |= KAEvent::DISPLAY_COMMAND;
if (cmd && mCmdEdit->isScript()) flags |= KAEvent::SCRIPT;
return flags;
}
/******************************************************************************
......@@ -919,11 +920,12 @@ void EditCommandAlarmDlg::type_setEvent(KAEvent& event, const KDateTime& dt, con
/******************************************************************************
* Get the currently specified alarm flag bits.
*/
int EditCommandAlarmDlg::getAlarmFlags() const
KAEvent::Flags EditCommandAlarmDlg::getAlarmFlags() const
{
return EditAlarmDlg::getAlarmFlags()
| (mCmdEdit->isScript() ? KAEvent::SCRIPT : 0)
| (mCmdOutputGroup->checkedButton() == mCmdExecInTerm ? KAEvent::EXEC_IN_XTERM : 0);
KAEvent::Flags flags = EditAlarmDlg::getAlarmFlags();
if (mCmdEdit->isScript()) flags |= KAEvent::SCRIPT;
if (mCmdOutputGroup->checkedButton() == mCmdExecInTerm) flags |= KAEvent::EXEC_IN_XTERM;
return flags;
}
/******************************************************************************
......@@ -1304,10 +1306,11 @@ void EditEmailAlarmDlg::type_setEvent(KAEvent& event, const KDateTime& dt, const
/******************************************************************************
* Get the currently specified alarm flag bits.
*/
int EditEmailAlarmDlg::getAlarmFlags() const
KAEvent::Flags EditEmailAlarmDlg::getAlarmFlags() const
{
return EditAlarmDlg::getAlarmFlags()
| (mEmailBcc->isChecked() ? KAEvent::EMAIL_BCC : 0);
KAEvent::Flags flags = EditAlarmDlg::getAlarmFlags();
if (mEmailBcc->isChecked()) flags |= KAEvent::EMAIL_BCC;
return flags;
}
/******************************************************************************
......@@ -1597,10 +1600,11 @@ void EditAudioAlarmDlg::type_setEvent(KAEvent& event, const KDateTime& dt, const
/******************************************************************************
* Get the currently specified alarm flag bits.
*/
int EditAudioAlarmDlg::getAlarmFlags() const
KAEvent::Flags EditAudioAlarmDlg::getAlarmFlags() const
{
return EditAlarmDlg::getAlarmFlags()
| (mSoundConfig->getRepeat() ? KAEvent::REPEAT_SOUND : 0);
KAEvent::Flags flags = EditAlarmDlg::getAlarmFlags();
if (mSoundConfig->getRepeat()) flags |= KAEvent::REPEAT_SOUND;
return flags;
}
/******************************************************************************
......
......@@ -81,7 +81,7 @@ class EditDisplayAlarmDlg : public EditAlarmDlg
virtual void saveState(const KAEvent*);
virtual bool type_stateChanged() const;
virtual void type_setEvent(KAEvent&, const KDateTime&, const QString& text, int lateCancel, bool trial);
virtual int getAlarmFlags() const;
virtual KAEvent::Flags getAlarmFlags() const;
virtual bool type_validate(bool trial) { Q_UNUSED(trial); return true; }
virtual void type_trySuccessMessage(ShellProcess*, const QString&) {}
virtual CheckBox* type_createConfirmAckCheckbox(QWidget* parent) { mConfirmAck = createConfirmAckCheckbox(parent); return mConfirmAck; }
......@@ -165,7 +165,7 @@ class EditCommandAlarmDlg : public EditAlarmDlg
virtual void saveState(const KAEvent*);
virtual bool type_stateChanged() const;
virtual void type_setEvent(KAEvent&, const KDateTime&, const QString& text, int lateCancel, bool trial);
virtual int getAlarmFlags() const;
virtual KAEvent::Flags getAlarmFlags() const;
virtual bool type_validate(bool trial);
virtual void type_trySuccessMessage(ShellProcess*, const QString& text);
virtual bool checkText(QString& result, bool showErrorMessage = true) const;
......@@ -223,7 +223,7 @@ class EditEmailAlarmDlg : public EditAlarmDlg
virtual void saveState(const KAEvent*);
virtual bool type_stateChanged() const;
virtual void type_setEvent(KAEvent&, const KDateTime&, const QString& text, int lateCancel, bool trial);
virtual int getAlarmFlags() const;
virtual KAEvent::Flags getAlarmFlags() const;
virtual bool type_validate(bool trial);
virtual void type_trySuccessMessage(ShellProcess*, const QString& text);
virtual bool checkText(QString& result, bool showErrorMessage = true) const;
......@@ -288,7 +288,7 @@ class EditAudioAlarmDlg : public EditAlarmDlg
virtual void saveState(const KAEvent*);
virtual bool type_stateChanged() const;
virtual void type_setEvent(KAEvent&, const KDateTime&, const QString& text, int lateCancel, bool trial);
virtual int getAlarmFlags() const;
virtual KAEvent::Flags getAlarmFlags() const;
virtual bool type_validate(bool trial) { Q_UNUSED(trial); return true; }
virtual void type_trySuccessMessage(ShellProcess*, const QString&) {}
virtual bool checkText(QString& result, bool showErrorMessage = true) const;
......
......@@ -375,7 +375,7 @@ int KAlarmApp::newInstance()
if (!options.audioFile().isEmpty()
|| options.flags() & (KAEvent::BEEP | KAEvent::SPEAK))
{
int flags = options.flags();
KAEvent::Flags flags = options.flags();
Preferences::SoundType type = (flags & KAEvent::BEEP) ? Preferences::Sound_Beep
: (flags & KAEvent::SPEAK) ? Preferences::Sound_Speak
: Preferences::Sound_File;
......@@ -1111,8 +1111,8 @@ void KAlarmApp::setSpreadWindowsState(bool spread)
* Reply = true unless there was a parameter error or an error opening calendar file.
*/
bool KAlarmApp::scheduleEvent(KAEvent::SubAction action, const QString& text, const KDateTime& dateTime,
int lateCancel, int flags, const QColor& bg, const QColor& fg, const QFont& font,
const QString& audioFile, float audioVolume, int reminderMinutes,
int lateCancel, KAEvent::Flags flags, const QColor& bg, const QColor& fg,
const QFont& font, const QString& audioFile, float audioVolume, int reminderMinutes,
const KARecurrence& recurrence, int repeatInterval, int repeatCount,
#ifdef USE_AKONADI
uint mailFromID, const KCalCore::Person::List& mailAddresses,
......
......@@ -81,7 +81,7 @@ class KAlarmApp : public KUniqueApplication
void setSpreadWindowsState(bool spread);
// Methods called indirectly by the DCOP interface
bool scheduleEvent(KAEvent::SubAction, const QString& text, const KDateTime&,
int lateCancel, int flags, const QColor& bg, const QColor& fg,
int lateCancel, KAEvent::Flags flags, const QColor& bg, const QColor& fg,
const QFont&, const QString& audioFile, float audioVolume,
int reminderMinutes, const KARecurrence& recurrence,
int repeatInterval, int repeatCount,
......
......@@ -1470,7 +1470,7 @@ void MainWindow::executeDropEvent(MainWindow* win, QDropEvent* e)
KDateTime start = todo->dtStart(true);
if (!start.isValid() && todo->hasDueDate())
start = todo->dtDue(true);
int flags = KAEvent::DEFAULT_FONT;
KAEvent::Flags flags = KAEvent::DEFAULT_FONT;
if (start.isDateOnly())
flags |= KAEvent::ANY_TIME;
KAEvent ev(start, alarmText.displayText(), Preferences::defaultBgColour(), Preferences::defaultFgColour(),
......
......@@ -218,8 +218,6 @@ MessageWin::MessageWin(const KAEvent* event, const KAAlarm& alarm, int flags)
mDontShowAgainCheck(0),
mEditDlg(0),
mDeferDlg(0),
mFlags(event->flags()),
mLateCancel(event->lateCancel()),
mAlwaysHide(flags & ALWAYS_HIDE),
mErrorWindow(false),
mInitialised(false),
......
......@@ -194,8 +194,6 @@ class MessageWin : public MainWindowBase
EditAlarmDlg* mEditDlg; // alarm edit dialog invoked by Edit button
DeferAlarmDlg* mDeferDlg;
QDateTime mDeferLimit; // last time to which the message can currently be deferred
int mFlags; // event flags
int mLateCancel;
int mButtonDelay; // delay (ms) after window is shown before buttons are enabled
int mScreenNumber; // screen to display on, or -1 for default
bool mAlwaysHide; // the window should never be displayed
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment