MessageComposer::SendLaterInfo Class

Send later information. More...

Header: #include <MessageComposer/SendLaterInfo>
CMake: find_package(KPim6MessageComposer REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::MessageComposer)

Public Functions

SendLaterInfo()
QDateTime dateTime() const
bool isRecurrence() const
bool isValid() const
Akonadi::Item::Id itemId() const
QDateTime lastDateTimeSend() const
int recurrenceEachValue() const
MessageComposer::SendLaterInfo::RecurrenceUnit recurrenceUnit() const
void setDateTime(const QDateTime &time)
void setItemId(Akonadi::Item::Id id)
void setLastDateTimeSend(const QDateTime &date)
void setRecurrence(bool b)
void setRecurrenceEachValue(int value)
void setRecurrenceUnit(MessageComposer::SendLaterInfo::RecurrenceUnit unit)
void setSubject(const QString &subject)
QString subject() const

Detailed Description

Member Function Documentation

[explicit noexcept default] SendLaterInfo::SendLaterInfo()

QDateTime SendLaterInfo::dateTime() const

Returns the scheduled send date and time.

See also setDateTime().

bool SendLaterInfo::isRecurrence() const

Returns whether the message should recur.

bool SendLaterInfo::isValid() const

Returns whether the send later info contains valid data.

Akonadi::Item::Id SendLaterInfo::itemId() const

Returns the Akonadi item ID for the message.

See also setItemId().

QDateTime SendLaterInfo::lastDateTimeSend() const

Returns the date and time when the message was last sent.

See also setLastDateTimeSend().

int SendLaterInfo::recurrenceEachValue() const

Returns how many recurrence units between each send.

See also setRecurrenceEachValue().

MessageComposer::SendLaterInfo::RecurrenceUnit SendLaterInfo::recurrenceUnit() const

Returns the recurrence unit.

See also setRecurrenceUnit().

void SendLaterInfo::setDateTime(const QDateTime &time)

Sets the date and time to send the message. time The scheduled send time.

See also dateTime().

void SendLaterInfo::setItemId(Akonadi::Item::Id id)

Sets the Akonadi item ID for the message. id The Akonadi item ID.

See also itemId().

void SendLaterInfo::setLastDateTimeSend(const QDateTime &date)

Sets the date and time when the message was last sent (for recurrence). date The last send date and time.

See also lastDateTimeSend().

void SendLaterInfo::setRecurrence(bool b)

Sets whether the message should recur. b True to enable recurrence, false otherwise.

See also isRecurrence().

void SendLaterInfo::setRecurrenceEachValue(int value)

Sets how many recurrence units between each send. value The number of units between sends.

See also recurrenceEachValue().

void SendLaterInfo::setRecurrenceUnit(MessageComposer::SendLaterInfo::RecurrenceUnit unit)

Sets the recurrence unit (days, weeks, months, or years). unit The recurrence unit.

See also recurrenceUnit().

void SendLaterInfo::setSubject(const QString &subject)

Sets the subject of the scheduled message. subject The message subject.

See also subject().

QString SendLaterInfo::subject() const

Returns the subject of the scheduled message.

See also setSubject().