Messagelib
7 #include "sendlaterinfo.h"
11 bool SendLaterInfo::isValid()
const
13 return (mId != -1) && mDateTime.
isValid();
16 bool SendLaterInfo::isRecurrence()
const
21 void SendLaterInfo::setRecurrence(
bool b)
26 void SendLaterInfo::setRecurrenceUnit(SendLaterInfo::RecurrenceUnit unit)
28 mRecurrenceUnit = unit;
31 SendLaterInfo::RecurrenceUnit SendLaterInfo::recurrenceUnit()
const
33 return mRecurrenceUnit;
36 void SendLaterInfo::setRecurrenceEachValue(
int value)
38 mRecurrenceEachValue = value;
41 int SendLaterInfo::recurrenceEachValue()
const
43 return mRecurrenceEachValue;
56 void SendLaterInfo::setDateTime(
const QDateTime &time)
66 void SendLaterInfo::setLastDateTimeSend(
const QDateTime &dateTime)
68 mLastDateTimeSend = dateTime;
71 QDateTime SendLaterInfo::lastDateTimeSend()
const
73 return mLastDateTimeSend;
76 void SendLaterInfo::setSubject(
const QString &subject)
81 QString SendLaterInfo::subject()
const
86 void SendLaterInfo::setTo(
const QString &to)
91 QString SendLaterInfo::to()
const
96 bool SendLaterInfo::operator==(
const SendLaterInfo &other)
const
98 return (itemId() == other.itemId()) && (recurrenceUnit() == other.recurrenceUnit()) && (recurrenceEachValue() == other.recurrenceEachValue())
99 && (isRecurrence() == other.isRecurrence()) && (dateTime() == other.dateTime()) && (lastDateTimeSend() == other.lastDateTimeSend())
100 && (subject() == other.subject()) && (to() == other.to());
105 d <<
"mTo: " << info.to();
106 d <<
"mSubject: " << info.subject();
107 d <<
"mDateTime: " << info.dateTime().
toString();
108 d <<
"mLastDateTimeSend: " << info.lastDateTimeSend().
toString();
109 d <<
"mId: " << info.itemId();
110 d <<
"mRecurrenceEachValue: " << info.recurrenceEachValue();
111 d <<
"mRecurrenceUnit: " << info.recurrenceUnit();
112 d <<
"mRecurrence: " << info.isRecurrence();
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
QDataStream & operator<<(QDataStream &out, const KDateTime &dateTime)
bool isValid() const const
QString toString(Qt::DateFormat format) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:07:15 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.