KCalCore Library
Go to the documentation of this file.
31 #ifndef KCALCORE_ALARM_H
32 #define KCALCORE_ALARM_H
34 #include "kcalcore_export.h"
39 #include <KDE/KDateTime>
41 #include <QtCore/QString>
42 #include <QtCore/QStringList>
43 #include <QtCore/QVector>
44 #include <QDataStream>
114 bool operator==(
const Alarm &a)
const;
121 bool operator!=(
const Alarm &a)
const;
154 void setType(
Type type);
182 void setText(
const QString &text);
212 void setAudioFile(
const QString &audioFile);
233 void setProcedureAlarm(
const QString &programFile,
246 void setProgramFile(
const QString &programFile);
266 void setProgramArguments(
const QString &arguments);
275 QString programArguments()
const;
305 void setMailAddress(
const Person::Ptr &mailAlarmAddress);
317 void setMailAddresses(
const Person::List &mailAlarmAddresses);
329 void addMailAddress(
const Person::Ptr &mailAlarmAddress);
349 void setMailSubject(
const QString &mailAlarmSubject);
369 void setMailAttachment(
const QString &mailAttachFile);
381 void setMailAttachments(
const QStringList &mailAttachFiles);
392 void addMailAttachment(
const QString &mailAttachFile);
412 void setMailText(
const QString &text);
429 void setTime(
const KDateTime &alarmTime);
436 KDateTime time()
const;
446 KDateTime nextTime(
const KDateTime &preTime,
bool ignoreRepetitions =
false)
const;
454 KDateTime endTime()
const;
459 bool hasTime()
const;
469 void setStartOffset(
const Duration &offset);
486 bool hasStartOffset()
const;
496 void setEndOffset(
const Duration &offset);
513 bool hasEndOffset()
const;
529 void shiftTimes(
const KDateTime::Spec &oldSpec,
530 const KDateTime::Spec &newSpec);
539 void setSnoozeTime(
const Duration &alarmSnoozeTime);
557 void setRepeatCount(
int alarmRepeatCount);
564 int repeatCount()
const;
577 KDateTime nextRepetition(
const KDateTime &preTime)
const;
592 KDateTime previousRepetition(
const KDateTime &afterTime)
const;
614 void setEnabled(
bool enable);
621 bool enabled()
const;
629 void setHasLocationRadius(
bool hasLocationRadius);
636 bool hasLocationRadius()
const;
646 void setLocationRadius(
int locationRadius);
653 int locationRadius()
const;
660 virtual void customPropertyUpdated();
666 virtual void virtual_hook(
int id,
void *data);
This file is part of the API for handling calendar data and defines the CustomProperties class...
Represents a span of time measured in seconds or days.
QSharedPointer< Alarm > Ptr
A shared pointer to an Alarm object.
Represents an alarm notification.
Type
The different types of alarms.
QVector< Ptr > List
List of alarms.
This file is part of the API for handling calendar data and defines the Person class.
KCALCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalCore::Alarm::Ptr &)
Alarm deserializer.
This file is part of the API for handling calendar data and defines the Duration class.
A class to manage custom calendar properties.
KCALCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalCore::Alarm::Ptr &)
Alarm serializer.
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:36:53 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.