27 #include <tqstringlist.h>
28 #include <tqvaluelist.h>
30 #include "customproperties.h"
34 #include "libkcal_export.h"
36 #include <tdemacros.h>
48 enum Type { Invalid, Display, Procedure, Email, Audio };
76 bool operator==(
const Alarm & )
const;
77 bool operator!=(
const Alarm &a )
const {
return !operator==( a ); }
86 void setType( Type type );
98 void setDisplayAlarm(
const TQString &text = TQString() );
104 void setText(
const TQString &text );
109 TQString text()
const;
116 void setAudioAlarm(
const TQString &audioFile = TQString() );
121 void setAudioFile(
const TQString &audioFile );
127 TQString audioFile()
const;
135 void setProcedureAlarm(
const TQString &programFile,
136 const TQString &arguments = TQString() );
141 void setProgramFile(
const TQString &programFile );
147 TQString programFile()
const;
152 void setProgramArguments(
const TQString &arguments );
158 TQString programArguments()
const;
168 void setEmailAlarm(
const TQString &subject,
const TQString &text,
169 const TQValueList<Person> &addressees,
170 const TQStringList &attachments = TQStringList() );
176 void setMailAddress(
const Person &mailAlarmAddress );
181 void setMailAddresses(
const TQValueList<Person> &mailAlarmAddresses );
186 void addMailAddress(
const Person &mailAlarmAddress );
190 TQValueList<Person> mailAddresses()
const;
196 void setMailSubject(
const TQString &mailAlarmSubject );
200 TQString mailSubject()
const;
206 void setMailAttachment(
const TQString &mailAttachFile );
211 void setMailAttachments(
const TQStringList &mailAttachFiles );
216 void addMailAttachment(
const TQString &mailAttachFile );
220 TQStringList mailAttachments()
const;
226 void setMailText(
const TQString &text );
232 TQString mailText()
const;
237 void setTime(
const TQDateTime &alarmTime );
241 TQDateTime time()
const;
246 TQDateTime endTime()
const;
250 bool hasTime()
const;
255 void setStartOffset(
const Duration & );
266 bool hasStartOffset()
const;
271 void setEndOffset(
const Duration & );
282 bool hasEndOffset()
const;
289 void setSnoozeTime(
const Duration &alarmSnoozeTime );
302 void setRepeatCount(
int alarmRepeatCount );
306 int repeatCount()
const;
314 TQDateTime nextRepetition(
const TQDateTime& preTime)
const;
322 TQDateTime previousRepetition(
const TQDateTime& afterTime)
const;
338 void setEnabled(
bool enable);
342 bool enabled()
const;
358 virtual void customPropertyUpdated();
363 TQString mDescription;
365 TQStringList mMailAttachFiles;
366 TQValueList<Person> mMailAddresses;
367 TQString mMailSubject;
371 int mAlarmRepeatCount;
374 TQDateTime mAlarmTime;
This class represents an alarm notification.
Incidence * parent() const
Get the alarm's parent incidence.
This class represents custom calendar properties.
This class represents a duration.
This class provides the base class common to all calendar components.
This class represents a person.
Namespace KCal is for global classes, objects and/or functions in libkcal.