KAlarm Library
alarmtext.h
bool isEmail() const
Return whether the instance contains the text of an email.
Definition alarmtext.cpp:293
static QString fromCalendarText(const QString &text, bool &email)
Translate an alarm calendar text to a display text.
Definition alarmtext.cpp:422
QString subject() const
Return the 'Subject' header parameter for an email alarm.
Definition alarmtext.cpp:251
void setEmail(const QString &to, const QString &from, const QString &cc, const QString &time, const QString &subject, const QString &body, unsigned long kmailSerialNumber=0)
Set the instance contents to be an email.
Definition alarmtext.cpp:144
AlarmText(const QString &text=QString())
Constructor which sets the alarm text.
Definition alarmtext.cpp:106
unsigned long kmailSerialNumber() const
Return the kmail serial number of an email.
Definition alarmtext.cpp:308
QString time() const
Return the 'Date' header parameter for an email alarm.
Definition alarmtext.cpp:246
QString from() const
Return the 'From' header parameter for an email alarm.
Definition alarmtext.cpp:236
QString displayText() const
Return the text for a text message alarm, in display format.
Definition alarmtext.cpp:183
static QString emailHeaders(const QString &text, bool subjectOnly)
Check whether a text is an email (with at least To and From headers), and if so return its headers or...
Definition alarmtext.cpp:399
bool isScript() const
Return whether the instance contains the text of a script.
Definition alarmtext.cpp:298
static bool checkIfEmail(const QString &text)
Return whether a text is an email, with at least To and From headers.
Definition alarmtext.cpp:388
void setScript(const QString &text)
Set the instance contents to be a script.
Definition alarmtext.cpp:138
bool isTodo() const
Return whether the instance contains the text of a todo.
Definition alarmtext.cpp:303
static QString toCalendarText(const QString &text)
Return the text for an alarm message text, in alarm calendar format.
Definition alarmtext.cpp:462
void setTodo(const KCalCore::Todo::Ptr &todo)
Set the instance contents to be a todo.
Definition alarmtext.cpp:159
QSharedPointer< Todo > Ptr
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.