KAlarm Library
26 #include "kalarmcal_export.h"
28 #ifndef KALARMCAL_USE_KRESOURCES
31 namespace KCal {
class Todo; }
33 #include <QtCore/QString>
63 explicit AlarmText(
const QString& text = QString());
73 void setText(
const QString& text);
78 void setScript(
const QString& text);
88 void setEmail(
const QString& to,
const QString& from,
const QString& cc,
const QString& time,
89 const QString& subject,
const QString& body,
unsigned long kmailSerialNumber = 0);
91 #ifndef KALARMCAL_USE_KRESOURCES
100 void setTodo(
const KCal::Todo* todo);
108 QString displayText()
const;
116 QString from()
const;
124 QString time()
const;
128 QString subject()
const;
132 QString body()
const;
137 QString summary()
const;
141 QString location()
const;
149 QString description()
const;
152 bool isEmpty()
const;
154 bool isEmail()
const;
156 bool isScript()
const;
163 unsigned long kmailSerialNumber()
const;
172 static QString summary(
const KAEvent& event,
int maxLines = 1,
bool* truncated = 0);
177 static bool checkIfEmail(
const QString& text);
186 static QString emailHeaders(
const QString& text,
bool subjectOnly);
194 static QString fromCalendarText(
const QString& text,
bool& email);
200 static QString toCalendarText(
const QString& text);
211 #endif // ALARMTEXT_H
Parses email, todo and script alarm texts.
KAEvent represents a KAlarm event.
QSharedPointer< Todo > Ptr
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:14 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.