KCal Library
Go to the documentation of this file.
34 #include <QtCore/QString>
35 #include <QtCore/QStringList>
36 #include <QtCore/QList>
38 #include <kdatetime.h>
44 #include "kcal_export.h"
46 #include <kpimutils/supertrait.h>
49 template <
typename T>
class shared_ptr;
88 typedef boost::shared_ptr<Alarm>
Ptr;
118 bool operator==(
const Alarm &a )
const;
152 void setType( Type type );
180 void setText(
const QString &text );
210 void setAudioFile(
const QString &audioFile );
231 void setProcedureAlarm(
const QString &programFile,
244 void setProgramFile(
const QString &programFile );
264 void setProgramArguments(
const QString &arguments );
273 QString programArguments()
const;
303 void setMailAddress(
const Person &mailAlarmAddress );
315 void setMailAddresses(
const QList<Person> &mailAlarmAddresses );
327 void addMailAddress(
const Person &mailAlarmAddress );
347 void setMailSubject(
const QString &mailAlarmSubject );
367 void setMailAttachment(
const QString &mailAttachFile );
379 void setMailAttachments(
const QStringList &mailAttachFiles );
390 void addMailAttachment(
const QString &mailAttachFile );
410 void setMailText(
const QString &text );
427 void setTime(
const KDateTime &alarmTime );
434 KDateTime time()
const;
442 KDateTime endTime()
const;
447 bool hasTime()
const;
457 void setStartOffset(
const Duration &offset );
474 bool hasStartOffset()
const;
484 void setEndOffset(
const Duration &offset );
501 bool hasEndOffset()
const;
517 void shiftTimes(
const KDateTime::Spec &oldSpec,
518 const KDateTime::Spec &newSpec );
527 void setSnoozeTime(
const Duration &alarmSnoozeTime );
545 void setRepeatCount(
int alarmRepeatCount );
552 int repeatCount()
const;
565 KDateTime nextRepetition(
const KDateTime &preTime )
const;
580 KDateTime previousRepetition(
const KDateTime &afterTime )
const;
603 void setEnabled(
bool enable );
610 bool enabled()
const;
617 virtual void customPropertyUpdated();
A class to manage custom calendar properties.
This file is part of the API for handling calendar data and defines the CustomProperties class...
boost::shared_ptr< Alarm > Ptr
A shared pointer to a Alarm object.
This file is part of the API for handling calendar data and defines the Person class.
bool operator!=(const Alarm &a) const
Compares two alarms for inequality.
Represents a person, by name ane email address.
This file is part of the API for handling calendar data and defines the ListBase class.
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
This class provides a template for lists of pointers.
Type
The different types of alarms.
This file is part of the API for handling calendar data and defines the Duration class.
ListBase< Alarm > List
List of alarms.
Represents a span of time measured in seconds or days.
Represents an alarm notification.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:29 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.