File indexing completed on 2024-05-12 05:14:49
0001 /* 0002 * mailsend.h - data relating to sending emails 0003 * Program: kalarm 0004 * SPDX-FileCopyrightText: 2004-2022 David Jarvie <djarvie@kde.org> 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #pragma once 0010 0011 #include "kalarmcalendar/kaevent.h" 0012 0013 namespace MailSend 0014 { 0015 0016 // Data to store for each mail send job. 0017 // Some data is required by KAMail, while other data is used by the caller. 0018 struct JobData 0019 { 0020 JobData() = default; 0021 JobData(KAlarmCal::KAEvent& e, const KAlarmCal::KAAlarm& a, bool resched, bool notify) 0022 : event(e), alarm(a), reschedule(resched), allowNotify(notify), queued(false) {} 0023 KAlarmCal::KAEvent event; 0024 KAlarmCal::KAAlarm alarm; 0025 QString from, bcc, subject; 0026 bool reschedule; 0027 bool allowNotify; 0028 bool queued; 0029 }; 0030 0031 } 0032 0033 // vim: et sw=4: