add a space and a missing line
[kdepim.git] / doc / kalarm / index.docbook
blobc5149d6d5424821528de4787ba5782b2cc476144
1 <?xml version="1.0" ?>
2 <!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
3 <!ENTITY kappname "&kalarm;">
4 <!ENTITY package "kdepim">
5 <!ENTITY % addindex "IGNORE">
6 <!ENTITY % English "INCLUDE"><!-- change language only here -->
7 ]>
9 <!-- The language must NOT be changed here. -->
11 <book lang="&language;">
13 <bookinfo>
14 <title>The &kalarm; Handbook</title>
16 <authorgroup>
17 <author>
18 <firstname>David</firstname>
19 <surname>Jarvie</surname>
20 <affiliation>
21 <address>&David.Jarvie.mail;</address>
22 </affiliation>
23 </author>
25 <othercredit role="developer">
26 <firstname>David</firstname>
27 <surname>Jarvie</surname>
28 <affiliation><address>&David.Jarvie.mail;</address></affiliation>
29 <contrib>Developer</contrib>
30 </othercredit>
32 <!-- TRANS:ROLES_OF_TRANSLATORS -->
33 </authorgroup>
35 <copyright>
36 <year>2001</year><year>2002</year><year>2003</year><year>2004</year><year>2005</year><year>2006</year><year>2007</year><year>2008</year><year>2009</year><year>2010</year><year>2011</year>
37 <holder>&David.Jarvie;</holder>
38 </copyright>
40 <legalnotice>&FDLNotice;</legalnotice>
42 <!-- Don't change format of date and version of the documentation -->
44 <date>2011-04-29</date>
45 <releaseinfo>2.07.00 (&kde; 4.7)</releaseinfo>
47 <abstract>
48 <para>&kalarm; is a personal alarm message, command and email scheduler for &kde;.</para>
49 </abstract>
52 <keywordset>
53 <keyword>KDE</keyword>
54 <keyword>kdepim</keyword>
55 <keyword>kalarm</keyword>
56 <keyword>alarm</keyword>
57 <keyword>reminder</keyword>
58 <keyword>scheduler</keyword>
59 </keywordset>
61 </bookinfo>
64 <chapter id="introduction">
65 <title>Introduction</title>
67 <para>&kalarm; lets you schedule the display of personal alarm
68 messages, the playing of sound files, the execution of commands and
69 the sending of emails.</para>
71 <para>In its default graphical mode, &kalarm; displays the list of
72 pending alarms, showing their times and details. You can create new
73 alarms, or you can select existing alarms for modification or
74 deletion. You can also optionally view expired alarms.</para>
76 <para>When configuring an alarm, you can choose whether it should
77 repeat, and whether the alarm should be canceled if it cannot be
78 triggered at its scheduled time. For display alarms, you can type in
79 a message text, specify a text or image file to display, or specify a
80 command whose output should be displayed. You can also choose the
81 color of the alarm message, and whether to play a sound or speak the
82 message.</para>
84 <para>Alarms may also be scheduled from the command line, or via &DBus;
85 calls from programs.</para>
87 <para>When an alarm message is due, it is displayed on each &kde;
88 desktop to ensure that you don't miss it. The message window shows the
89 time for which the alarm was scheduled. It usually has a defer option
90 to ask for the alarm to be displayed again later. An example of an
91 alarm message:</para>
93 <screenshot>
94 <screeninfo>Screenshot of the &kalarm; message window</screeninfo>
95 <mediaobject>
96 <imageobject>
97 <imagedata fileref="alarmmessage.png" format="PNG"/>
98 </imageobject>
99 <textobject>
100 <phrase>Alarm message</phrase>
101 </textobject>
102 </mediaobject>
103 </screenshot>
105 <para>When the alarm specifies a command to execute or an email to
106 send, &kalarm; displays nothing.</para>
108 <para>&kalarm; usually shows an icon in the system tray, although this
109 can be hidden if desired.</para>
111 </chapter>
113 <chapter id="using-kalarm">
114 <title>Using &kalarm;</title>
116 <para>When it is run with no command line parameters, &kalarm; starts
117 in graphical mode, and displays the current list of outstanding
118 alarms.</para>
120 <tip><para>All spin boxes in &kalarm; have an acceleration facility.
121 To make the value change by larger steps, hold down the
122 &Shift; key while you click on the spin arrow
123 buttons.</para>
125 <mediaobject>
126 <imageobject>
127 <imagedata fileref="spinbox.png" format="PNG"/>
128 </imageobject>
129 </mediaobject>
130 </tip>
132 <sect1 id="alarm-types">
133 <title>Alarm Types</title>
135 <para>The basic functions available from the different alarm types
136 which &kalarm; provides are:</para>
138 <itemizedlist>
139 <listitem>
140 <para>Display alarms display either a text message which you type in,
141 or the contents of a text or image file, or the textual output from a
142 command which is run when the alarm triggers. In addition to
143 displaying one of these items, they can also play audio files, have
144 their text spoken, or emit a simple beep. You can also specify
145 commands to be executed before and after the alarm message is
146 displayed.</para>
147 </listitem>
149 <listitem>
150 <para>Command alarms execute either a command or a shell script which
151 you can type in. Nothing is displayed unless an error occurs.</para>
152 </listitem>
154 <listitem>
155 <para>Email alarms send a email. Nothing is displayed unless an error
156 occurs.</para>
157 </listitem>
159 <listitem>
160 <para>Audio alarms play an audio file. Nothing is displayed unless an
161 error occurs.</para>
162 </listitem>
163 </itemizedlist>
165 <sect2 id="errors">
166 <title>Error Handling</title>
168 <para>If an error occurs when an alarm triggers, an error message will
169 be displayed (unless you have previously specified not to show that
170 type of message again).</para>
172 <para>If an execution error occurred the last time a command alarm
173 triggered, a white on red exclamation mark is shown in the message
174 color column. Details of the error are displayed in a tooltip if you
175 position the cursor over that line in the alarm list. The same error
176 indications are shown for display alarms if an execution error
177 occurred for a pre- or post-alarm command specified in the Special
178 Actions dialog, except that the color column is not changed to a red
179 background.</para>
181 </sect2>
182 </sect1>
184 <sect1 id="alarm-list">
185 <title>Alarm List</title>
187 <para>The main &kalarm; window displays the current list of pending
188 alarms, showing their times, repetition intervals, colors, and
189 message texts, names of files to play or display, commands to execute
190 or email subjects. (For a recurring alarm, the time shown is its next
191 scheduled trigger time. For an alarm with a reminder, the time shown
192 is the time of the alarm proper, not the reminder time.) An icon at
193 the left of each alarm text/file/command/email subject indicates the
194 type of alarm.</para>
196 <screenshot>
197 <screeninfo>Screenshot of the &kalarm; main window</screeninfo>
198 <mediaobject>
199 <imageobject>
200 <imagedata fileref="mainwindow.png" format="PNG"/>
201 </imageobject>
202 <textobject>
203 <phrase>Main window</phrase>
204 </textobject>
205 </mediaobject>
206 </screenshot>
208 <para>For a repeated alarm, the list shows its next scheduled trigger
209 time and its basic repetition interval (&eg; <quote>1 Day</quote> for
210 a daily recurrence, <quote>3 Weeks</quote> for a recurrence which
211 triggers on Monday and Wednesday every third week,
212 <quote>Login</quote> for a repeat-at-login alarm).</para>
214 <para>If an execution error occurred the last time a command alarm
215 triggered, or the last time a display alarm's pre- or post-alarm
216 command was executed, an error indication is shown in the color
217 column, as described in <link linkend="errors">Error Handling</link>
218 above.</para>
220 <sect2 id="listappear">
221 <title>Changing the Alarm List Appearance</title>
223 <para>The alarms may be ordered by date/time, repeat interval, color,
224 type or text by clicking on the titlebar for the appropriate column.
225 To reverse the sort order, click the column titlebar again.</para>
227 <para>You can optionally show the remaining time until each alarm is
228 due, together with, or instead of, the alarm's scheduled time.
229 To show or hide the alarm time column, select
230 <menuchoice><guimenu>View</guimenu><guimenuitem>Show Alarm
231 Times</guimenuitem></menuchoice>.
232 To show or hide the time-to-alarm column, select
233 <menuchoice><guimenu>View</guimenu><guimenuitem>Show Time To
234 Alarms</guimenuitem></menuchoice>. At least one of these columns is
235 always shown.</para>
237 <para>If you use multiple alarm calendars, you can color code alarms
238 according to which calendar they belong to, by selecting a different
239 background color for each calendar.</para>
241 </sect2>
243 <sect2 id="expired">
244 <title>Archived Alarms</title>
246 <para>By default, &kalarm; archives alarms for a limited period once
247 they have expired or been deleted. (But note that alarms which you
248 delete are stored only if they have already triggered at least once.)
249 You can control whether &kalarm; archives expired alarms, and for how
250 long, in the
251 <link linkend="preferences-storage">Configuration dialog</link>.</para>
253 <para>Archived alarms may be shown in the alarm list by selecting
254 <menuchoice><guimenu>View</guimenu><guimenuitem>Show Archived
255 Alarms</guimenuitem></menuchoice>. To hide them again, deselect
256 <menuchoice><guimenu>View</guimenu><guimenuitem>Show Archived
257 Alarms</guimenuitem></menuchoice>.</para>
259 </sect2>
261 <sect2 id="search">
262 <title>Searching the Alarm List</title>
264 <para>You can search through the alarm list to find alarms containing
265 a search text. To invoke this, select <menuchoice>
266 <guimenu>Edit</guimenu><guimenuitem>Find...</guimenuitem></menuchoice>.
267 In the search dialog, select the alarm types which you wish to search.
268 To continue searching for more alarms which match, use <menuchoice>
269 <guimenu>Edit</guimenu><guimenuitem>Find Next</guimenuitem></menuchoice>
270 or <menuchoice>
271 <guimenu>Edit</guimenu><guimenuitem>Find Previous</guimenuitem>
272 </menuchoice>.</para>
274 <para>Searching is performed as follows:</para>
276 <itemizedlist>
277 <listitem>
278 <para>Text message alarms: the message text is searched.</para>
279 </listitem>
281 <listitem>
282 <para>File display alarms: the file path/&URL; is searched.</para>
283 </listitem>
285 <listitem>
286 <para>Command alarms: the command line or command script is
287 searched.</para>
288 </listitem>
290 <listitem>
291 <para>Email alarms: in addition to the subject and body of the email,
292 the recipients and the URLs of attachments are searched.</para>
293 </listitem>
295 <listitem>
296 <para>Audio alarms: the file path/&URL; is searched.</para>
297 </listitem>
298 </itemizedlist>
300 <note><para>Only alarms currently shown in the alarm list can be
301 selected for searching. So if you want to search archived alarms, you
302 must first display them as described in the section above.</para></note>
303 </sect2>
304 </sect1>
306 <sect1 id="create-edit">
307 <title>Creating and Manipulating Alarms</title>
309 <sect2>
310 <title>Creating a New Alarm</title>
312 <para>To create a new alarm, do one of the following, and then select
313 the type of alarm from the list which appears. This displays the
314 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> through which
315 you configure the alarm.</para>
317 <itemizedlist>
318 <listitem>
319 <para>Select <menuchoice><guimenu>File</guimenu>
320 <guimenuitem>New</guimenuitem></menuchoice>.</para>
321 </listitem>
323 <listitem>
324 <para><mousebutton>Right</mousebutton> click on the system tray icon
325 and choose
326 <menuchoice><guimenuitem>New Alarm</guimenuitem></menuchoice>
327 from the context menu.</para>
328 </listitem>
330 <listitem>
331 <para><mousebutton>Right</mousebutton> click in the alarm list and
332 choose <menuchoice><guimenuitem>New</guimenuitem></menuchoice> from
333 the context menu.</para>
334 </listitem>
335 </itemizedlist>
337 <para>Alternatively, you can create new alarms preconfigured from
338 various sources:</para>
340 <itemizedlist>
341 <listitem>
342 <para>To base your new alarm on an alarm template, follow the
343 instructions in the <link linkend="templates">Alarm Templates</link>
344 section.</para>
345 </listitem>
347 <listitem>
348 <para>To base your new alarm on an existing one, highlight the existing
349 alarm in the list and select <menuchoice>
350 <guimenu>File</guimenu><guimenuitem>Copy</guimenuitem></menuchoice>.
351 This opens the <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>
352 already filled in with a copy of the selected alarm's details.</para>
353 </listitem>
355 <listitem>
356 <para>To create a new alarm which displays an existing email message,
357 drag the email from &kmail; onto &kalarm;'s main window or system tray
358 icon. This opens the <link linkend="alarm-edit-dlg">Alarm Edit
359 dialog</link> with the entire email message (including sender,
360 recipient, &etc;) as the alarm text.</para>
361 </listitem>
363 <listitem>
364 <para>To create a new email alarm to send a copy of an existing email
365 message, drag the email from &kmail; onto &kalarm;'s main window or
366 system tray icon. Then select the <guilabel>Email</guilabel> option.
367 The <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> is preset
368 with the entire email message except sender.</para>
369 </listitem>
371 <listitem>
372 <para>To create a new alarm which displays a summary of an existing
373 to-do, drag the to-do from &korganizer; or other application onto
374 &kalarm;'s main window or system tray icon. This opens the
375 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> with the
376 to-do contents as the alarm text.</para>
377 </listitem>
379 <listitem>
380 <para>Dragging any piece of text onto &kalarm;'s main window or system
381 tray icon opens the <link linkend="alarm-edit-dlg">Alarm Edit
382 dialog</link> and sets the alarm text.</para>
383 </listitem>
385 <listitem>
386 <para>To create a file display alarm, drag a text or image file &URL;
387 onto &kalarm;'s main window or system tray icon. This opens the
388 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> and sets the
389 file name.</para>
390 </listitem>
392 <listitem>
393 <para>To create an audio alarm, drag an audio file &URL; onto
394 &kalarm;'s main window or system tray icon. This opens the
395 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> and sets the
396 file name.</para>
397 </listitem>
399 <listitem>
400 <para>You can automatically create birthday alarms for people in
401 &kaddressbook; as described in <link linkend="birthdays">Importing
402 Birthdays from &kaddressbook;</link>.</para>
403 </listitem>
405 </itemizedlist>
407 </sect2>
409 <sect2 id="edit-alarm">
410 <title>Modifying an Existing Alarm</title>
412 <para>To modify an existing pending alarm (expired alarms cannot be
413 amended), do one of the following:</para>
415 <itemizedlist>
416 <listitem>
417 <para>Double click on its entry in the alarm list.</para>
418 </listitem>
420 <listitem>
421 <para>Select it by clicking on its entry in the alarm list. Then
422 choose <menuchoice><guimenu>Edit</guimenu>
423 <guimenuitem>Edit</guimenuitem></menuchoice>.</para>
424 </listitem>
426 <listitem>
427 <para><mousebutton>Right</mousebutton> click on its entry in the alarm
428 list and choose
429 <menuchoice><guimenuitem>Edit</guimenuitem></menuchoice> from the
430 context menu.</para>
431 </listitem>
432 </itemizedlist>
434 <para>This displays the <link linkend="alarm-edit-dlg">Alarm Edit
435 dialog</link>.</para>
437 </sect2>
439 <sect2>
440 <title>Deleting/Reactivating an Alarm</title>
442 <para>To delete existing alarms, select one or more by clicking on
443 their entries in the alarm list. Then do one of the following:</para>
445 <itemizedlist>
446 <listitem>
447 <para>Choose <menuchoice>
448 <guimenu>Edit</guimenu><guimenuitem>Delete</guimenuitem>
449 </menuchoice>.</para>
450 </listitem>
451 <listitem>
452 <para><mousebutton>Right</mousebutton> click on the selected entries
453 and choose
454 <menuchoice><guimenuitem>Delete</guimenuitem></menuchoice>
455 from the context menu.</para>
456 </listitem>
457 <listitem>
458 <para>To delete them without a confirmation prompt, type
459 &Shift;-<keycap>Delete</keycap>.</para>
460 </listitem>
461 </itemizedlist>
463 <para>When you delete an active alarm, it is archived, provided that
464 it has triggered at least once before being deleted, and provided that
465 expired alarms are archived at all. (Use the
466 <link linkend="preferences-storage">Configuration dialog</link> to
467 control whether and for how long archived alarms are stored.) When you
468 delete an archived alarm, or an active alarm which has not yet
469 triggered, it is removed permanently.</para>
471 <para>You can reactivate a deleted alarm from the archived alarms list,
472 provided that it has not yet expired. To do this, first display
473 archived alarms, as described in
474 <link linkend="expired">Archived Alarms</link>. Then:</para>
476 <itemizedlist>
477 <listitem>
478 <para>Select one or more appropriate archived alarms by clicking on
479 their entries in the alarm list. Then choose <menuchoice>
480 <guimenu>Actions</guimenu><guimenuitem>Reactivate</guimenuitem>
481 </menuchoice>.</para>
482 </listitem>
483 <listitem>
484 <para><mousebutton>Right</mousebutton> click on the desired entries in
485 the archived alarm list and choose
486 <menuchoice><guimenuitem>Reactivate</guimenuitem></menuchoice>
487 from the context menu.</para>
488 </listitem>
489 </itemizedlist>
491 </sect2>
493 <sect2>
494 <title>Enabling/Disabling an Alarm</title>
496 <para>See <link linkend="enable-disable">Enabling and Disabling Alarms</link>
497 for how to enable and disable alarms, either individually or as a whole.</para>
499 </sect2>
501 <sect2>
502 <title>Acknowledging an Alarm</title>
504 <para>See <link linkend="message-window">Alarm Message Window</link>
505 for how to acknowledge alarms.</para>
507 </sect2>
509 <sect2 id="templates">
510 <title>Alarm Templates</title>
512 <para>If you frequently want to set up similar alarms, you can create
513 an alarm template to avoid having to enter all the details from
514 scratch each time. A template can contain all the details which an
515 alarm can contain, apart from the start date.</para>
517 <para>As an example, you may regularly want to set an
518 alarm to remind you about a television program whose time varies
519 from week to week. The template would contain all the alarm details
520 (message text, whether to play a sound, &etc;) except for the time and
521 date. Now, to create the alarm, all you need to do is open the
522 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> with that
523 template and then enter the time and date.</para>
525 <para>To create an alarm based on a template, open the
526 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> preset with
527 the template details:</para>
529 <itemizedlist>
530 <listitem>
531 <para>Select the <menuchoice>
532 <guimenu>File</guimenu><guimenuitem>New From Template</guimenuitem>
533 </menuchoice> menu item, and then select the desired template.</para>
534 </listitem>
536 <listitem>
537 <para><mousebutton>Right</mousebutton> click on the system tray icon
538 and choose
539 <menuchoice><guimenuitem>New Alarm From Template</guimenuitem></menuchoice>
540 from the context menu. Then select the desired template.</para>
541 </listitem>
543 <listitem>
544 <para>Open the <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>
545 in the usual way, and click the
546 <guibutton>Load Template...</guibutton> button to select a template to
547 preset the dialog with.</para>
548 </listitem>
549 </itemizedlist>
551 <sect3>
552 <title>Configuring Templates</title>
554 <para>You can create, modify or delete templates using the Alarm
555 Templates dialog, or you can create a new alarm template based on an
556 existing alarm.</para>
558 <para>To create a new alarm template, do one of the following:</para>
560 <itemizedlist>
561 <listitem>
562 <para>Display the Alarm Templates dialog by selecting the <menuchoice>
563 <guimenu>File</guimenu><guimenuitem>Templates...</guimenuitem>
564 </menuchoice> menu item, clicking <guibutton>New</guibutton>, and
565 choosing the alarm type from the list which appears. This displays a
566 blank Template Edit dialog.</para>
567 </listitem>
569 <listitem>
570 <para>Display the Alarm Templates dialog by selecting the <menuchoice>
571 <guimenu>File</guimenu><guimenuitem>Templates...</guimenuitem>
572 </menuchoice> menu item, select an existing template from the list and
573 click <guibutton>Copy</guibutton>. This opens the Template Edit dialog
574 already filled in with a copy of the existing template's
575 details.</para>
576 </listitem>
578 <listitem>
579 <para>Highlight an alarm in the alarm list and select <menuchoice>
580 <guimenu>File</guimenu><guimenuitem>Create Template...</guimenuitem>
581 </menuchoice>. This opens the Template Edit dialog already filled in
582 with a copy of the selected alarm's details.</para>
583 </listitem>
584 </itemizedlist>
586 <para>To modify an existing template, display the Alarm Templates
587 dialog by selecting the <menuchoice>
588 <guimenu>File</guimenu><guimenuitem>Templates...</guimenuitem>
589 </menuchoice> menu item and click <guibutton>Edit</guibutton>. This
590 displays the Template Edit dialog which is described below.</para>
592 <para>To delete existing templates, display the Alarm Templates
593 dialog by selecting the <menuchoice>
594 <guimenu>File</guimenu><guimenuitem>Templates...</guimenuitem>
595 </menuchoice> menu item, select one or more templates and click
596 <guibutton>Delete</guibutton>. A confirmation prompt is issued to
597 prevent accidental deletions.</para>
599 </sect3>
601 <sect3>
602 <title>Template Edit Dialog</title>
604 <para>The Template Edit dialog is similar to the
605 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>. The
606 following controls are different:</para>
608 <itemizedlist>
609 <listitem>
610 <para>Enter the template's name in <guilabel>Template name</guilabel>.
611 It is the template's name which is displayed in template selection
612 lists, so it is best to choose a name which will remind you of its
613 function. Each template's name must be unique.</para>
614 </listitem>
616 <listitem>
617 <para>In the <guilabel>Time</guilabel> group box, select one of:</para>
619 <itemizedlist>
620 <listitem>
621 <para><guilabel>Default time</guilabel> if you do not wish to specify
622 any trigger time. Alarms based on this template will initially
623 use the normal default trigger time for new alarms.</para>
624 </listitem>
626 <listitem>
627 <para>Check <guilabel>Time</guilabel> to enter a time when the alarm
628 is to be triggered.</para>
629 </listitem>
631 <listitem>
632 <para>Check <guilabel>Date only</guilabel> to specify that the alarm
633 should only have a date, not a time.</para>
634 </listitem>
636 <listitem>
637 <para>Check <guilabel>Time from now</guilabel> to enter how long (in
638 hours and minutes) after the alarm is created, that it should be
639 triggered.</para>
640 </listitem>
641 </itemizedlist>
642 </listitem>
644 <listitem>
645 <para>In the <guilabel>Recurrence Rule</guilabel> group box in the
646 <guilabel>Recurrence</guilabel> tab, no day or month need be selected
647 for weekly or yearly recurrences, respectively.</para>
648 </listitem>
649 </itemizedlist>
651 </sect3>
653 </sect2>
655 <sect2 id="calendars">
656 <title>Alarm Calendars</title>
658 <para>If you only use one computer and work independently, it may not
659 matter to you where &kalarm; stores its alarms. But if you need to
660 access alarms on more than one computer, or in more than one location
661 on your local computer, you can define <quote>alarm calendars</quote>
662 to tell &kalarm; to use other alarm calendars additional to, or in
663 place of, its default ones.</para>
665 <para>You can view and manipulate calendars via the calendar list,
666 which can be displayed alongside the alarm list in &kalarm;'s main
667 window. Alarms from all alarm calendars are shown merged together in
668 the alarm list. When you save a new alarm, you can set a configuration
669 option to determine whether it is automatically saved into the default
670 calendar, or whether you will be prompted to choose a calendar. When
671 you edit an existing alarm, it is automatically saved back into its
672 original alarm calendar.</para>
674 <screenshot>
675 <screeninfo>Screenshot of the &kalarm; main window, showing the
676 calendar list</screeninfo>
677 <mediaobject>
678 <imageobject>
679 <imagedata fileref="mainwindow-calendars.png" format="PNG"/>
680 </imageobject>
681 <textobject>
682 <phrase>Main window showing the calendar list</phrase>
683 </textobject>
684 </mediaobject>
685 </screenshot>
687 <sect3>
688 <title>Calendar Types and Options</title>
690 <para>Alarm calendars are categorized by alarm type and storage type.
691 They can be disabled, set read-only, or made the default calendar for
692 their alarm type.</para>
694 <variablelist>
695 <varlistentry>
696 <term>Alarm type</term>
697 <listitem>
698 <para>The three alarm entity types &ndash; active alarms, archived
699 alarms and alarm templates &ndash;
700 are stored in separate alarm calendars. &kalarm; therefore has three
701 standard default calendars, one for each type (see
702 <link linkend="faq">Questions and Answers</link> for details), which
703 you can change if you wish.</para>
704 </listitem>
705 </varlistentry>
707 <varlistentry>
708 <term>Storage type</term>
709 <listitem>
710 <para>&kalarm; handles three alarm calendar storage
711 types:</para>
713 <itemizedlist>
714 <listitem><para>Local file: Alarms are stored in a single local file
715 in iCalendar format. &kalarm; uses local file calendars by default
716 (see <link linkend="faq">Questions and Answers</link> for details).
717 <quote>Local files</quote>, in addition to files on the local
718 computer, can include alarm calendars on the local network as long as
719 their location can be represented by a path name starting with
720 <literal>/</literal>.</para>
721 </listitem>
723 <listitem><para>Local directory: Alarms are stored in a local folder,
724 each alarm being stored in a separate iCalendar file within the
725 folder. This storage method has the advantage that in the event of
726 file corruption, you should lose only one alarm, not the entire
727 calendar.</para>
728 </listitem>
730 <listitem><para>Remote file: Alarms are stored in a single remote
731 file in iCalendar format. This storage method allows you to access
732 your alarm data remotely no matter where you are, or enables alarm
733 calendars to be viewed by other people. When using remote files,
734 &kalarm; works with a local cache of the data.</para>
736 <warning><para>If a remote alarm calendar is shared between users,
737 changes made by one person may not be automatically made available to
738 another user, or there could be a time delay before the other user
739 sees it. So one user could make a change which is then overwritten by
740 another user without either person noticing what has happened. The
741 technical reason for this is that a change made by person A will only
742 be available to person B after person A's cached copy has first been
743 saved to the remote file, and then person B's cached copy
744 of the remote file has been reloaded. When and if the calendar is
745 saved and reloaded depends on the calendar configuration parameters
746 which each user has set for that alarm calendar.</para>
748 <para>Ways to avoid this problem include adjusting the calendar save
749 and reload configuration parameters, or adopting a policy that users
750 other than the alarm calendar's owner should open it in read-only
751 mode.</para></warning>
752 </listitem>
753 </itemizedlist>
754 </listitem>
755 </varlistentry>
757 <varlistentry>
758 <term>Enabled/disabled status</term>
759 <listitem>
760 <para>Disabling a calendar has the same
761 effect as removing it, except that it still appears in the calendar
762 list for easy re-enabling. When disabled, its alarms are ignored and
763 do not appear in the alarm list or list of templates. When it is
764 re-enabled, its alarms are once again shown and, if it is an active
765 alarm calendar, made active.</para>
766 </listitem>
767 </varlistentry>
769 <varlistentry>
770 <term>Read-only status</term>
771 <listitem>
772 <para>A read-only calendar's alarms cannot be
773 changed or added to. So you cannot edit its alarms, or save new alarms
774 to it. Also, it is not possible to defer its alarms, since to do so
775 would need the deferral time to be saved into the alarm. After its
776 alarms trigger, they are not removed from the calendar and archived
777 until you or another user accesses the calendar in read-write
778 mode.</para>
780 <para>You can set the read-only status of a calendar in the calendar
781 configuration dialog. However, some calendars cannot be made
782 writeable, for various reasons:</para>
784 <itemizedlist>
785 <listitem><para>If a calendar was created by another application, it
786 would be unsafe to allow &kalarm; to update it, since differences in
787 data format might make it unusable by the creating application.</para>
788 </listitem>
790 <listitem><para>If the calendar was created by a later version of
791 &kalarm;, data might be lost if your version of &kalarm; updated
792 it.</para>
793 </listitem>
795 <listitem><para>If the calendar was created by a previous version of
796 &kalarm;, data could be lost or it could be made unusable for the
797 previous &kalarm; version if your version of &kalarm; updated it. You
798 will be prompted whether to convert its format so as to make it
799 writeable, bearing in mind the potential compatibility problems if the
800 previous &kalarm; version needs to access it again.</para>
801 </listitem>
803 <listitem><para>If you do not have permission to write to the
804 calendar file or folder.</para>
805 </listitem>
806 </itemizedlist>
808 <para>If you need write access to alarms in a calendar which cannot be
809 made writeable, you can copy its alarms by importing them into a
810 writeable calendar using the latter calendar's
811 <menuchoice><guimenuitem>Import...</guimenuitem></menuchoice> context
812 menu option (see <link linkend="import">Importing Alarms from External
813 Calendars</link>).</para>
814 </listitem>
815 </varlistentry>
817 <varlistentry>
818 <term>Default calendar status</term>
819 <listitem>
820 <para>One calendar of each alarm type can optionally be made the
821 default calendar for that alarm type. New alarms are automatically
822 saved to the default calendar for the appropriate alarm type, unless
823 you have selected the prompt option for new alarms and templates in the
824 <link linkend="preferences-storage">Configuration dialog</link>.</para>
825 </listitem>
826 </varlistentry>
827 </variablelist>
829 </sect3>
831 <sect3>
832 <title>Using Calendars</title>
834 <para>You can view and manipulate calendars via the calendar list,
835 which can be displayed or hidden by <menuchoice>
836 <guimenu>View</guimenu><guimenuitem>Show Calendars</guimenuitem>
837 </menuchoice>. When using the calendar list, first select the alarm
838 type using the combo box above the list. Then either click on one of
839 the buttons below the list, or <mousebutton>Right</mousebutton> click
840 on the appropriate calendar in the list and choose an item from the
841 context menu. The actions available are:</para>
843 <variablelist>
844 <varlistentry>
845 <term><menuchoice><guimenuitem>Add...</guimenuitem></menuchoice></term>
846 <listitem>
847 <para>Add a calendar of the selected type to the list. You are asked
848 to choose a storage type, following which the calendar configuration
849 dialog is displayed, where you can enter the location of the calendar
850 and its characteristics. If there is no existing alarm calendar in
851 the specified location, a new one will be created.</para>
852 </listitem>
853 </varlistentry>
855 <varlistentry>
856 <term><menuchoice><guimenuitem>Remove</guimenuitem></menuchoice></term>
857 <listitem>
858 <para>Remove the selected calendar from the list. The calendar itself
859 is left intact; it is simply removed from the list, and may
860 subsequently be reinstated in the list if desired.</para>
861 </listitem>
862 </varlistentry>
864 <varlistentry>
865 <term><menuchoice><guimenuitem>Edit...</guimenuitem></menuchoice></term>
866 <listitem>
867 <para>Edit the selected calendar. This displays the configuration
868 dialog for the selected calendar.</para>
869 </listitem>
870 </varlistentry>
872 <varlistentry>
873 <term><menuchoice><guimenuitem>Reload</guimenuitem></menuchoice></term>
874 <listitem>
875 <para>Reload the selected calendar. The calendar is re-read from its
876 storage location, ensuring that there is no discrepancy between what
877 &kalarm; displays and the current state of the calendar. If the
878 calendar is shared with other users, any changes which they have made
879 will now be seen by &kalarm;.</para>
881 <warning><para>If you reload a remote calendar, any changes to alarms
882 which you have made since the calendar was last saved will be lost.
883 Also, any alarms which have expired since the last save may be
884 retriggered.</para></warning>
885 </listitem>
886 </varlistentry>
888 <varlistentry>
889 <term><menuchoice><guimenuitem>Save</guimenuitem></menuchoice></term>
890 <listitem>
891 <para>Save any changes to the selected calendar. The calendar is
892 updated with any alarm changes which have occurred since the last time
893 the calendar was saved or reloaded. This is only useful for remote
894 calendars, since local calendars are automatically saved after every
895 change. You can configure when and how frequently a remote calendar
896 should be automatically saved, using its configuration dialog (via
897 the <menuchoice><guimenuitem>Edit...</guimenuitem></menuchoice>
898 context menu option).</para>
900 <warning><para>If you save a remote calendar which is shared with other
901 users, any changes which they have made since you last reloaded the
902 calendar (automatically or manually) will be lost.</para></warning>
903 </listitem>
904 </varlistentry>
906 <varlistentry>
907 <term><menuchoice><guimenuitem>Import...</guimenuitem></menuchoice></term>
908 <listitem>
909 <para>Import alarms from an external calendar file into the selected
910 calendar. This is described in
911 <link linkend="import">Importing Alarms from External Calendars</link>.
912 This option is not available for disabled or read-only
913 calendars.</para>
914 </listitem>
915 </varlistentry>
917 <varlistentry>
918 <term><menuchoice><guimenuitem>Export...</guimenuitem></menuchoice></term>
919 <listitem>
920 <para>Export all the alarms in the selected calendar to an external calendar
921 file. This is described in
922 <link linkend="export">Exporting Alarms to External Calendars</link>.
923 This option is not available for disabled calendars.</para>
924 </listitem>
925 </varlistentry>
927 <varlistentry>
928 <term><menuchoice><guimenuitem>Show Details</guimenuitem></menuchoice></term>
929 <listitem>
930 <para>Display details about the selected calendar. This shows the
931 calendar's location, storage type and status information.
932 </para>
933 </listitem>
934 </varlistentry>
936 <varlistentry>
937 <term><menuchoice><guimenuitem>Use as Default</guimenuitem></menuchoice></term>
938 <listitem>
939 <para>Make the selected calendar the default calendar for the selected
940 calendar type. This option is not available for disabled or read-only
941 calendars.</para>
942 </listitem>
943 </varlistentry>
945 <varlistentry>
946 <term><menuchoice><guimenuitem>Set Color...</guimenuitem></menuchoice></term>
947 <listitem>
948 <para>Select a background color for highlighting this calendar's alarms
949 in the alarm list. This enables you to see at a glance which alarms
950 belong to a particular calendar.</para>
951 </listitem>
952 </varlistentry>
954 <varlistentry>
955 <term><menuchoice><guimenuitem>Clear Color</guimenuitem></menuchoice></term>
956 <listitem>
957 <para>Clear color highlighting for this calendar's alarms in the alarm
958 list.</para>
959 </listitem>
960 </varlistentry>
961 </variablelist>
963 </sect3>
965 </sect2>
967 <sect2 id="import">
968 <title>Importing Alarms from External Calendars</title>
970 <para>You can import alarms from other calendar files into &kalarm;.
971 The import function scans the selected calendar
972 file for events containing alarms, and copies them (with new unique
973 IDs) into &kalarm;'s calendar. Events without alarms, and calendar
974 entries other than events, are ignored. There are two ways to import
975 alarms:</para>
977 <itemizedlist>
978 <listitem>
979 <para>Use <menuchoice><guimenu>File</guimenu>
980 <guimenuitem>Import Alarms...</guimenuitem></menuchoice> to import
981 alarms of all types (active alarms, archived alarms and alarm
982 templates) from the calendar.</para>
984 <para>If you have configured
985 <link linkend="calendars">alarm calendars</link>, alarms of each type
986 will be added to the appropriate default calendar, or if you have
987 selected the prompt option for new alarms and templates in the
988 <link linkend="preferences-storage">Configuration dialog</link>, you will
989 be prompted for the calendar to use.</para>
990 </listitem>
992 <listitem>
993 <para><mousebutton>Right</mousebutton> click on a calendar in the
994 calendar list, and choose
995 <menuchoice><guimenuitem>Import...</guimenuitem></menuchoice> from the
996 context menu. This imports alarms of the currently selected type into
997 that calendar. For example, if the selected calendar type is alarm
998 templates, alarm templates (and not active alarms or archived alarms)
999 will be imported.</para>
1000 </listitem>
1001 </itemizedlist>
1003 <warning><para>If you import alarms from calendar files which were
1004 created by applications other than &kalarm;, the alarms may be changed
1005 by the import process &ndash; even alarm times may change. This depends
1006 on the data storage conventions used by the other application, and is
1007 unavoidable if those conventions differ from what &kalarm; expects.
1008 Always check imported alarms for unexpected changes, and adjust them
1009 as necessary.</para></warning>
1011 </sect2>
1013 <sect2 id="export">
1014 <title>Exporting Alarms to External Calendars</title>
1016 <para>You can export alarms from &kalarm; to other calendar files,
1017 either the alarms currently selected in the alarm list, or all the
1018 alarms from an alarm calendar. The methods to do this are given below.
1019 Whichever method is used, you can either create a new calendar file
1020 or append the exported alarms to an existing calendar file. To append
1021 the alarms, check <guilabel>Append to existing file</guilabel> in the
1022 file selection dialog; otherwise, any existing file is
1023 overwritten.</para>
1025 <itemizedlist>
1026 <listitem>
1027 <para>To export the alarms currently selected in the alarm list,
1028 <mousebutton>Right</mousebutton> click on the selection and choose
1029 <menuchoice><guimenuitem>Export...</guimenuitem></menuchoice> from the
1030 context menu, or use <menuchoice><guimenu>File</guimenu>
1031 <guimenuitem>Export Selected Alarms...</guimenuitem></menuchoice> in
1032 the main menu.</para>
1033 </listitem>
1035 <listitem>
1036 <para>To export all the alarms from a calendar,
1037 <mousebutton>Right</mousebutton> click on a calendar in the calendar
1038 list, and choose
1039 <menuchoice><guimenuitem>Export...</guimenuitem></menuchoice> from the
1040 context menu.</para>
1041 </listitem>
1042 </itemizedlist>
1044 </sect2>
1046 <sect2 id="birthdays">
1047 <title>Importing Birthdays from &kaddressbook;</title>
1049 <para>You can set up display alarms for birthdays stored in
1050 &kaddressbook;, by <menuchoice><guimenu>File</guimenu>
1051 <guimenuitem>Import Birthdays...</guimenuitem></menuchoice>. This
1052 displays a dialog which allows you to select which birthdays to create
1053 alarms for.</para>
1055 <itemizedlist>
1056 <listitem>
1057 <para>In the <guilabel>Alarm Text</guilabel> group box, you can set up
1058 the text to be displayed in the birthday alarm messages. The message
1059 text is created by combining the <guilabel>Prefix</guilabel> text
1060 followed by the person's name followed by the
1061 <guilabel>Suffix</guilabel> text. No spaces are added, so remember to
1062 include any necessary trailing space in <guilabel>Prefix</guilabel>
1063 and leading space in <guilabel>Suffix</guilabel>.</para>
1065 <note><para>If you change the alarm text, the birthday selection list
1066 will be re-evaluated.</para></note>
1067 </listitem>
1069 <listitem>
1070 <para>In the <guilabel>Select Birthdays</guilabel> list, select the
1071 birthdays which you want to create alarms for. Note that the list
1072 shows only those entries in &kaddressbook; which contain a birthday
1073 and which do not already have a birthday alarm in the format currently
1074 defined in the <guilabel>Alarm Text</guilabel> group box.</para>
1075 </listitem>
1077 <listitem>
1078 <para>The remaining controls are the same as for
1079 <guilabel>Text</guilabel> alarms in the
1080 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>.</para>
1081 </listitem>
1082 </itemizedlist>
1084 <para>If you have configured
1085 <link linkend="calendars">alarm calendars</link>, the alarms will be
1086 added to the default active alarm calendar, or if you have selected the
1087 prompt option for new alarms and templates in the
1088 <link linkend="preferences-storage">Configuration dialog</link>, you will
1089 be prompted for the calendar to use.</para>
1091 </sect2>
1093 <sect2 id="undo">
1094 <title>Undo / Redo</title>
1096 <para>You can undo and redo the most recent changes which you have
1097 made during the current session of &kalarm;. Most actions can be
1098 undone, including creation, edit and deletion of alarms and alarm
1099 templates, and reactivation of alarms. To prevent excessive resources
1100 being used by the undo history, the number of changes stored is
1101 limited to the last 12.</para>
1103 <para>To undo the last change, select <menuchoice>
1104 <guimenu>Edit</guimenu><guimenuitem>Undo</guimenuitem></menuchoice>.
1105 To redo the last change which was undone, select <menuchoice>
1106 <guimenu>Edit</guimenu><guimenuitem>Redo</guimenuitem>
1107 </menuchoice>.</para>
1109 <para>To undo a change other than the last one, click on the
1110 <guibutton>Undo</guibutton> button in the toolbar and hold the mouse
1111 button down. A list of actions will be displayed from which you can
1112 choose the one to undo. If you don't see the action which you are
1113 looking for, remember that you may need to undo more recent changes
1114 first, which the desired change depends on. For example, if you edited
1115 an alarm and then deleted it, you cannot undo the edit until you have
1116 first undone the deletion.</para>
1118 <para>Redoing a change other than the last one can be done in a
1119 similar manner, using the <guibutton>Redo</guibutton> toolbar
1120 button.</para>
1122 </sect2>
1123 </sect1>
1125 <sect1 id="alarm-edit-dlg">
1126 <title>The Alarm Edit Dialog</title>
1128 <para>The Alarm Edit dialog enables you to view and edit an alarm.
1129 When you first use &kalarm;, a simplified form of the dialog is
1130 displayed, with only a small number of options visible. To see all
1131 options, click the <guibutton>More Options</guibutton> button; to
1132 revert to the simplified dialog, click the
1133 <guibutton>Less Options</guibutton> button. &kalarm; always remembers
1134 your last display choice whenever the Alarm Edit dialog is
1135 redisplayed.</para>
1137 <para>You can configure the default values of many of the settings in
1138 the Alarm Edit dialog using the
1139 <link linkend="preferences-edit">Configuration dialog's Edit tab</link>.</para>
1141 <screenshot>
1142 <screeninfo>Screenshot of the simplified Alarm Edit dialog</screeninfo>
1143 <mediaobject>
1144 <imageobject>
1145 <imagedata fileref="editwindow-simple.png" format="PNG"/>
1146 </imageobject>
1147 <textobject>
1148 <phrase>Simplified Alarm Edit dialog for a display alarm</phrase>
1149 </textobject>
1150 <caption><para>Simplified Alarm Edit dialog for a display alarm</para></caption>
1151 </mediaobject>
1152 </screenshot>
1154 <screenshot>
1155 <screeninfo>Screenshot of the Alarm Edit dialog showing all options</screeninfo>
1156 <mediaobject>
1157 <imageobject>
1158 <imagedata fileref="editwindow.png" format="PNG"/>
1159 </imageobject>
1160 <textobject>
1161 <phrase>Alarm Edit dialog for a display alarm, showing all options</phrase>
1162 </textobject>
1163 <caption><para>Alarm Edit dialog for a display alarm, showing all options</para></caption>
1164 </mediaobject>
1165 </screenshot>
1167 <sect2>
1168 <title>Alarm Action</title>
1170 <para>The controls in the <guilabel>Action</guilabel> group box vary
1171 depending on the type of alarm being edited.</para>
1173 <sect3>
1174 <title>Display Alarms</title>
1176 <para>Display alarms display a window when the alarm triggers. Select
1177 the method used to generate the alarm window contents, using the combo
1178 box at the top:</para>
1180 <itemizedlist>
1181 <listitem>
1182 <para><guilabel>Text message</guilabel> in order to enter an alarm
1183 message text (which may include newlines) in the edit box.</para>
1184 </listitem>
1186 <listitem>
1187 <para><guilabel>File contents</guilabel> to enter the path or &URL; of
1188 a text or image file whose contents are to be displayed in the alarm
1189 message. Use the button beside the edit box to display a file selection
1190 dialog. The <guilabel>Speak</guilabel> option is not available for this
1191 type of alarm.</para>
1192 </listitem>
1194 <listitem>
1195 <para><guilabel>Command output</guilabel> to specify that the alarm
1196 message text will be generated by a command which is executed when the
1197 alarm triggers. See
1198 <link linkend="command-alarm">Command Alarms</link> below for details
1199 of how to enter the command or command script to execute.</para>
1200 </listitem>
1201 </itemizedlist>
1203 <para>The controls available for display alarms are:</para>
1205 <itemizedlist>
1206 <listitem>
1207 <para>The <guilabel>Sound</guilabel> option allows you to select
1208 whether an audible alarm should sound when the alarm message is
1209 displayed. Choose:</para>
1211 <itemizedlist>
1212 <listitem>
1213 <para><guilabel>None</guilabel> to display the alarm silently.</para>
1214 </listitem>
1216 <listitem>
1217 <para><guilabel>Beep</guilabel> to sound a beep.</para>
1218 </listitem>
1220 <listitem>
1221 <para><guilabel>Speak</guilabel> to have the alarm message spoken as
1222 well as being displayed. This option is only available if you have
1223 &jovie; (from the kdeaccessibility package) installed and configured,
1224 together with a compatible speech synthesizer, &eg;
1225 <application>Festival</application>.</para>
1226 </listitem>
1228 <listitem>
1229 <para><guilabel>Sound file</guilabel> to play an audio file. Use the
1230 button on the right to display the Sound File dialog which lets you
1231 select a file to play and set volume and repetition options. If you
1232 hover the mouse over the selector, a tooltip will display the audio file
1233 currently selected.</para>
1235 <para>In the Sound File dialog:</para>
1237 <itemizedlist>
1238 <listitem>
1239 <para>Enter the sound file path, or use the button beside the
1240 edit box to display a file selection dialog. You can listen to the
1241 selected file by clicking the play button to the left of the edit
1242 field. That button then changes function to allow you to stop playing
1243 when you have heard enough.</para>
1244 </listitem>
1246 <listitem>
1247 <para>Check <guilabel>Repeat</guilabel> to continually repeat the
1248 audio file for as long as the alarm is displayed. (The alarm message
1249 window contains a button to stop playing the sound should you need
1250 silence but still want to display the alarm.)</para>
1251 </listitem>
1253 <listitem>
1254 <para>Check <guilabel>Volume</guilabel> and adjust the slider
1255 control if you want to adjust the volume at which the audio file is
1256 played.</para>
1257 </listitem>
1259 <listitem>
1260 <para>If you wish, you can fade the volume. Fading means to start
1261 playing the audio file at one volume and gradually change to the final
1262 volume, over a specified time interval. The final volume is that
1263 entered in <guilabel>Volume</guilabel> above. To enable fade, check
1264 <guilabel>Fade</guilabel>, and then enter the fade period in seconds
1265 in the <guilabel>Fade time</guilabel> field, and adjust the
1266 <guilabel>Initial volume</guilabel> slider.</para>
1267 </listitem>
1268 </itemizedlist>
1270 <tip><para>You can use the <guibutton>Try</guibutton> button to test out
1271 the selected sound levels.</para></tip>
1272 </listitem>
1273 </itemizedlist>
1274 </listitem>
1276 <listitem>
1277 <para>Use the <guibutton>Font &amp; Color...</guibutton> button to
1278 select a font, and foreground and background colors, for the alarm
1279 message. In the <guilabel>Choose Alarm Font &amp; Color</guilabel>
1280 dialog, check <guilabel>Use default font</guilabel> to display the
1281 message in whatever font is configured as the default at the time
1282 the message is displayed. To choose a specific font for the message,
1283 uncheck <guilabel>Use default font</guilabel>. (The default font and
1284 colors can be set in the
1285 <link linkend="preferences-edit">Configuration dialog</link>.)</para>
1287 <para>The selected colors are shown in the alarm message text entry
1288 field.</para>
1289 </listitem>
1291 <listitem>
1292 <para>Use the <guibutton>Special Actions...</guibutton> button to
1293 specify shell commands to execute before or after displaying the
1294 alarm. In the <guilabel>Special Alarm Actions</guilabel>
1295 dialog:</para>
1297 <itemizedlist>
1298 <listitem>
1299 <para>In the <guilabel>Pre-alarm action</guilabel> field, enter a
1300 shell command to execute before the alarm is displayed. Note that
1301 &kalarm; will wait for the command to complete before displaying the
1302 alarm.</para>
1304 <para>A pre-alarm action is only executed once when the alarm message
1305 is initially displayed, including when a reminder message is replaced
1306 by the actual alarm message. It is <emphasis>not</emphasis> executed
1307 in any of the following circumstances:</para>
1309 <itemizedlist>
1310 <listitem><para>When a reminder message is displayed.</para></listitem>
1311 <listitem><para>When the message is redisplayed after deferring the
1312 alarm.</para></listitem>
1313 <listitem><para>When the message was displaying at the time you logged
1314 off and is then restored when you log back in.</para></listitem>
1315 <listitem><para>When a recurring alarm triggers but the alarm message
1316 (or a deferred alarm message) from a previous occurrence of the alarm
1317 is still visible; in other words, when the previous occurrence of the
1318 alarm has not yet been acknowledged.</para></listitem>
1319 </itemizedlist>
1321 <para>The pre-alarm action can be used to control whether to display
1322 the alarm message:</para>
1324 <itemizedlist>
1325 <listitem><para>Check <guilabel>Cancel alarm on error</guilabel> to
1326 cancel the alarm if the pre-alarm command returns an error status.
1327 This will prevent the alarm message from being displayed, and any
1328 post-alarm action from being executed.</para></listitem>
1330 <listitem><para>Normally, if the pre-alarm command returns an error,
1331 an error message is displayed and an error indication is shown in the
1332 alarm list. These error notifications can be prevented by checking
1333 <guilabel>Do not notify errors</guilabel>.</para></listitem>
1334 </itemizedlist>
1335 </listitem>
1337 <listitem>
1338 <para>In the <guilabel>Post-alarm action</guilabel> field, enter a
1339 shell command to execute when the alarm is acknowledged (whether by
1340 clicking <guibutton>Close</guibutton> or by using the close button
1341 in the window's titlebar). It is <emphasis>not</emphasis>
1342 executed in any of the following circumstances:</para>
1344 <itemizedlist>
1345 <listitem><para>When a reminder message is closed.</para></listitem>
1346 <listitem><para>When you defer the alarm, except when the deferred
1347 alarm is finally acknowledged.</para></listitem>
1348 <listitem><para>When the alarm message is closed due to logging
1349 out.</para></listitem>
1350 </itemizedlist>
1351 </listitem>
1352 </itemizedlist>
1354 <para>See <link linkend="command-alarm">Command Alarms</link> below
1355 for details of how shell commands are executed.</para>
1357 </listitem>
1358 </itemizedlist>
1359 </sect3>
1361 <sect3 id="command-alarm">
1362 <title>Command Alarms</title>
1364 <para>Command alarms execute a command without displaying any alarm
1365 message.</para>
1367 <note><para>This alarm type is not available if &kde; is running in
1368 kiosk mode.</para></note>
1370 <para>When the command is executed, the environment variable
1371 <envar>KALARM_UID</envar> contains the event UID for the alarm. Note
1372 that when the command is executed from the Alarm Edit dialog's
1373 <guibutton>Try</guibutton> button, <envar>KALARM_UID</envar> will be
1374 blank if it is a new alarm, or if the alarm has been modified in the
1375 dialog, because the alarm only acquires a UID when it is saved in the
1376 alarm calendar.</para>
1378 <para>The controls available for command alarms are:</para>
1380 <itemizedlist>
1381 <listitem>
1382 <para>The <guilabel>Enter a script</guilabel> check box lets you choose
1383 whether to enter a shell command line or a script.</para>
1385 <para>If this option is unchecked, you can enter a shell command line
1386 to execute. The command is passed straight to the default shell (defined
1387 by the <envar>SHELL</envar> environment variable), and may include
1388 whatever options, parameters, piped commands, &etc; are permitted by
1389 the shell in a single line command.</para>
1391 <para>If this option is checked, you can enter the text of a script to
1392 execute. Remember to include a first line such as
1393 <literal>#!/bin/bash</literal> to ensure that the correct command
1394 interpreter is invoked.</para>
1395 </listitem>
1397 <listitem>
1398 <para>Use the <guilabel>Command Output</guilabel> group box to specify
1399 what you want to be done with any terminal output which the command
1400 produces when it executes.</para>
1402 <itemizedlist>
1403 <listitem>
1404 <para>Check <guilabel>Execute in terminal window</guilabel> to cause
1405 the command to be executed in a terminal window. You can choose
1406 which type of terminal window should be used in the
1407 <link linkend="preferences-general">Configuration dialog</link>.</para>
1408 </listitem>
1410 <listitem>
1411 <para>Check <guilabel>Log to file</guilabel> to save the command's
1412 output in a file. The output, prefixed by a heading showing the time
1413 at which the command was scheduled to run, will be appended to any
1414 existing contents of the file. Enter the file name in the edit box, or
1415 use the button beside the edit box to display a file selection
1416 dialog.</para>
1417 </listitem>
1419 <listitem>
1420 <para>Check <guilabel>Discard</guilabel> to throw away the command's
1421 output.</para>
1422 </listitem>
1423 </itemizedlist>
1424 </listitem>
1425 </itemizedlist>
1426 </sect3>
1428 <sect3>
1429 <title>Email Alarms</title>
1431 <para>Email alarms send an email without displaying any alarm
1432 message.</para>
1434 <para>Fill in the recipients' addresses, the email subject line and the
1435 message body in the three edit fields. Use the button beside the
1436 addressee edit box to display your &kde; address book from which you
1437 can select email recipients. Attachments may be added using the
1438 <guibutton>Add...</guibutton> button. Note that attached files must
1439 still exist when the alarm is triggered; no copy is stored at the time
1440 the alarm is configured. To remove an attachment, highlight it in the
1441 drop-down list and click the <guibutton>Remove</guibutton>
1442 button.</para>
1444 <para>Set the following options:</para>
1446 <itemizedlist>
1447 <listitem>
1448 <para>The <guilabel>From</guilabel> combo box allows you to select
1449 which &kmail; identity to use as your email address for sending the
1450 email. This option only appears if your <guilabel>From</guilabel>
1451 email address in the
1452 <link linkend="preferences-email">Configuration dialog</link> is set to
1453 <guilabel>Use &kmail; identities</guilabel>. Otherwise your email
1454 address is preset in the
1455 <link linkend="preferences-email">Configuration dialog</link>, rendering
1456 this option inapplicable.</para>
1457 </listitem>
1459 <listitem>
1460 <para>Check <guilabel>Copy email to self</guilabel> to send a blind
1461 copy of the email to yourself when the alarm is triggered. The email
1462 address to which the copy will be sent may be set in the
1463 <link linkend="preferences-email">Configuration dialog</link>, the
1464 default being your email address set in the &kde; System
1465 Settings.</para>
1466 </listitem>
1467 </itemizedlist>
1469 </sect3>
1471 <sect3>
1472 <title>Audio Alarms</title>
1474 <para>Audio alarms play an audio file without displaying any alarm
1475 message.</para>
1477 <para>Set the following options:</para>
1479 <itemizedlist>
1480 <listitem>
1481 <para>Enter the sound file path, or use the button beside the
1482 edit box to display a file selection dialog.</para>
1483 </listitem>
1485 <listitem>
1486 <para>Check <guilabel>Repeat</guilabel> to continually repeat the
1487 audio file until the <guilabel>Stop Play</guilabel> option is
1488 selected. To stop playing the file, select the
1489 <menuchoice><guimenu>Actions</guimenu>
1490 <guimenuitem>Stop Play</guimenuitem></menuchoice> menu option, or
1491 <mousebutton>Right</mousebutton> click on the system tray icon
1492 and choose
1493 <menuchoice><guimenuitem>Stop Play</guimenuitem></menuchoice>
1494 from the context menu. If you wish, you can set up a global
1495 shortcut key for this action.</para>
1496 </listitem>
1498 <listitem>
1499 <para>Check <guilabel>Volume</guilabel> and adjust the slider
1500 control if you want to adjust the volume at which the audio file is
1501 played.</para>
1502 </listitem>
1504 <listitem>
1505 <para>If you wish, you can fade the volume. Fading means to start
1506 playing the audio file at one volume and gradually change to the final
1507 volume, over a specified time interval. The final volume is that
1508 entered in <guilabel>Volume</guilabel> above. To enable fade, check
1509 <guilabel>Fade</guilabel>, and then enter the fade period in seconds
1510 in the <guilabel>Fade time</guilabel> field, and adjust the
1511 <guilabel>Initial volume</guilabel> slider.</para>
1512 </listitem>
1513 </itemizedlist>
1514 </sect3>
1515 </sect2>
1517 <sect2>
1518 <title>Deferral</title>
1520 <para>If the alarm is a recurring alarm and it was deferred after it
1521 was last displayed, the <guilabel>Deferred Alarm</guilabel> group box
1522 shows the time the alarm was deferred to.
1523 <guibutton>Change...</guibutton> displays a dialog which allows you to
1524 change the deferred time or to cancel the deferral.</para>
1526 </sect2>
1528 <sect2>
1529 <title>Time</title>
1531 <para>In the <guilabel>Time</guilabel> group box, select either</para>
1533 <itemizedlist>
1534 <listitem>
1535 <para><guilabel>At date/time</guilabel> to enter the date and time
1536 when the alarm is to be triggered. Check <guilabel>Any time</guilabel>
1537 if you want to specify only a date for the alarm: in this case the
1538 alarm will be displayed at the first opportunity on or after the
1539 configured start-of-day time, on the specified date.
1540 (<link linkend="preferences-time">Configuring &kalarm;</link>
1541 describes how to set the start-of-day time.)</para>
1543 <para>For a non-recurring alarm, the date/time which you enter must be
1544 in the future, or if you enter only a date it must be today or later.
1545 For a recurring alarm, there are no such restrictions since the start
1546 date/time will be automatically adjusted to the first recurrence due
1547 after the current time.</para>
1548 </listitem>
1550 <listitem>
1551 <para><guilabel>Time from now</guilabel> to enter how long after now
1552 (in hours and minutes) the alarm should be triggered.</para>
1553 </listitem>
1554 </itemizedlist>
1556 <para>If desired, choose a time zone to apply to the alarm. This time
1557 zone is used for all dates and times relating to this alarm, including
1558 recurrence and exception dates and times. Normally, you should leave
1559 the time zone controls unchanged unless you have a good reason to
1560 change them.</para>
1562 <para>The time zone controls are displayed only when the selected time
1563 zone is different from the default time zone set in the
1564 <link linkend="preferences-time">Configuration dialog</link>, or if
1565 you click the <guibutton>Time Zone...</guibutton> button.</para>
1567 <itemizedlist>
1568 <listitem>
1569 <para>In the combo box, choose the time zone which this alarm is to
1570 use. When creating a new alarm, this is initially set to the time zone
1571 selected in the
1572 <link linkend="preferences-time">Configuration dialog</link>, which
1573 will be your computer's time zone unless you have changed it.</para>
1574 </listitem>
1576 <listitem>
1577 <para>Check <guilabel>Ignore time zone</guilabel> if you want to use
1578 the local computer time (on whichever computer &kalarm; happens to be
1579 running on at the time), ignoring time zones.</para>
1581 <warning><para>You are recommended not to select this option if the
1582 alarm has a recurrence specified in hours and minutes; if you do, the
1583 alarm may occur at unexpected times after daylight saving time
1584 shifts.</para></warning>
1585 </listitem>
1586 </itemizedlist>
1588 </sect2>
1590 <sect2>
1591 <title>Reminder</title>
1593 <para>For a display alarm, check <guilabel>Reminder</guilabel> if you
1594 want to display a reminder either before or after the main alarm and
1595 each of its recurrences (if any). Enter how long in advance or
1596 afterwards, using the edit controls beside the check box. Note that
1597 if the alarm recurs, the reminder period is normally limited to
1598 being less than the recurrence or sub-repetition interval.</para>
1600 <note><para>Reminders are not displayed for sub-repetitions within a
1601 recurrence. Reminders are only shown for each main recurrence of the
1602 alarm.</para></note>
1604 <para>If the alarm recurs, check <guilabel>Reminder for first
1605 recurrence only</guilabel> if you only want a reminder for the alarm's
1606 first recurrence. If this is checked, and it is an advance reminder,
1607 the reminder period is not subject to the normal limit of being less
1608 than the recurrence or sub-repetition interval.</para>
1611 </sect2>
1613 <sect2>
1614 <title>Cancelation</title>
1616 <para>The late-cancelation options determine how an alarm is treated
1617 after its scheduled time:</para>
1619 <itemizedlist>
1620 <listitem>
1621 <para>The <guilabel>Cancel if late</guilabel> check box determines what
1622 happens if the alarm cannot be triggered at its scheduled time.</para>
1624 <para>Check this box to cancel the alarm if it cannot be triggered
1625 within a specified time period after the right time. The time period
1626 is selected using controls which appear when you check the box. For
1627 example, if you enter a time period of 1 hour, the alarm will be
1628 triggered at the first opportunity up to an hour after it is due, but
1629 if it cannot be triggered within an hour its activation will be
1630 canceled.</para>
1632 <note><para>The lateness of date-only alarms, &ie; ones for which the
1633 <guilabel>Any time</guilabel> option is selected, is calculated from
1634 the start-of-day time on the alarm's scheduled date.</para></note>
1636 <para>Leave the box unchecked to trigger the alarm at the first
1637 opportunity starting at the scheduled time, regardless of how late it
1638 is.</para>
1640 <note><para>An alarm can only be triggered while you are logged in,
1641 and while both X and &kalarm; are running.</para></note>
1642 </listitem>
1644 <listitem>
1645 <para>Check <guilabel>Auto-close window after this time</guilabel> if
1646 you want the alarm window to be automatically closed if it is still
1647 showing at the expiry of the late-cancelation time.</para>
1648 </listitem>
1649 </itemizedlist>
1651 </sect2>
1653 <sect2>
1654 <title>Recurrence</title>
1656 <para>Specify whether or how the alarm should be repeated using the
1657 <guilabel>Recurrence</guilabel> tab.</para>
1659 <note><para>The alarm's basic repetition characteristics are displayed
1660 for convenience in the title of the <guilabel>Recurrence</guilabel>
1661 tab. The recurrence interval is shown first, followed by any
1662 sub-repetition interval set up using the
1663 <guibutton>Sub-Repetition</guibutton> button.</para></note>
1665 <para>In the <guilabel>Recurrence Rule</guilabel> group box, set the
1666 recurrence type or time period as follows:</para>
1668 <itemizedlist>
1669 <listitem><para>To trigger the alarm once only, select <guilabel>No
1670 recurrence</guilabel>.</para></listitem>
1672 <listitem><para>Select <guilabel>At login</guilabel> to trigger the
1673 alarm whenever you log in, until its scheduled end time. Then, at its
1674 scheduled end time it will finally be triggered one last time. (Note
1675 that an alarm repeated at login will also be triggered any time you
1676 restart &kalarm;.)</para></listitem>
1678 <listitem>
1679 <para>To make the alarm recur at regular intervals, select one of the
1680 time period types and then enter in the
1681 <guilabel>Recur every</guilabel> box how many time periods should
1682 elapse between recurrences. For example, to repeat
1683 every fortnight, you could select <guilabel>Daily</guilabel> and enter
1684 a value of 14, or select <guilabel>Weekly</guilabel> and enter a value
1685 of 2. Depending on the time period type selected, you may have further
1686 options:</para>
1688 <itemizedlist>
1689 <listitem>
1690 <para>For a weekly recurrence, check each day in the week on which you
1691 wish to trigger the alarm.</para>
1692 </listitem>
1694 <listitem>
1695 <para>For a monthly recurrence, you may select either a fixed date, or
1696 a position (&eg; the second Tuesday).</para>
1697 </listitem>
1699 <listitem>
1700 <para>For a yearly recurrence, you may select either a fixed day in
1701 the month, or a position in a month (&eg; the last Saturday in
1702 May). Check each month of the year in which you wish to trigger the
1703 alarm.</para>
1705 <para>If you set up a yearly recurrence for February 29th, you can
1706 specify how it is to be handled in non-leap years by selecting the
1707 appropriate
1708 <guilabel>February 29th alarm in non-leap years</guilabel>
1709 option:</para>
1711 <itemizedlist>
1712 <listitem><para><guilabel>None</guilabel>: the alarm will occur on
1713 February 29th in leap years, but will be suppressed in non-leap
1714 years.</para>
1715 </listitem>
1717 <listitem><para><guilabel>28 Feb</guilabel>: the alarm will occur on
1718 February 29th in leap years, and on February 28th in non-leap
1719 years.</para>
1720 </listitem>
1722 <listitem><para><guilabel>1 Mar</guilabel>: the alarm will occur on
1723 February 29th in leap years, and on March 1st in non-leap
1724 years.</para>
1725 </listitem>
1726 </itemizedlist>
1727 </listitem>
1728 </itemizedlist>
1730 <tip><para>To set a daily alarm to occur only on weekdays, use a
1731 weekly recurrence and check each weekday.</para></tip>
1733 </listitem>
1734 </itemizedlist>
1736 <para>In the <guilabel>Recurrence End</guilabel> group box, set the
1737 overall recurrence time span as follows:</para>
1739 <itemizedlist>
1740 <listitem><para>Select <guilabel>No end</guilabel> to continue the
1741 repetitions indefinitely.</para></listitem>
1743 <listitem><para>Select <guilabel>End after</guilabel> to specify the
1744 total number of occurrences of the alarm.</para></listitem>
1746 <listitem><para>Select <guilabel>End by</guilabel> to specify the
1747 date/time until which the alarm will be repeated. Note that this uses
1748 the same time zone as the alarm's start time.</para>
1750 <note><para>The end date/time determines when the last main recurrence
1751 will be, but does not limit sub-repetitions. If sub-repetitions are
1752 configured, they will trigger as normal after the last main recurrence,
1753 regardless of the end date/time.</para></note>
1754 </listitem>
1755 </itemizedlist>
1757 <para>The <guilabel>Exceptions</guilabel> group box allows you to
1758 exclude certain date/times from the recurrence which you have set up.
1759 Note that these controls are not shown in the simplified form of the
1760 Alarm Edit dialog: to see them, click
1761 <guibutton>More Options</guibutton>.</para>
1763 <itemizedlist>
1764 <listitem>
1765 <para>The list of exceptions (&ie; excluded date/times) is shown on
1766 the left. To add a new exception, enter a date on the right and press
1767 <guibutton>Add</guibutton>. To change an exception, highlight it in
1768 the list, enter the new date on the right and press
1769 <guibutton>Change</guibutton>. To delete an exception, highlight it
1770 in the list and press <guibutton>Delete</guibutton>.</para>
1771 </listitem>
1773 <listitem>
1774 <para>You can restrict an alarm not to occur on holidays by checking
1775 <guilabel>Exclude holidays</guilabel>. This does not change the way
1776 the alarm is scheduled; it simply suppresses the alarm whenever it
1777 happens to trigger on a holiday. You can select your holiday country
1778 or region in the
1779 <link linkend="preferences-time">Configuration dialog</link>.</para>
1780 </listitem>
1782 <listitem>
1783 <para>You can restrict an alarm to occur only during working time by
1784 checking <guilabel>Only during working hours</guilabel>. This does not
1785 change the way the alarm is scheduled; it simply suppresses the alarm
1786 whenever it happens to trigger outside working hours. Work days and
1787 working hours are set in the
1788 <link linkend="preferences-time">Configuration dialog</link>.</para>
1789 </listitem>
1790 </itemizedlist>
1792 <sect3>
1793 <title>Sub-Repetition</title>
1795 <para>You can use the <guibutton>Sub-Repetition</guibutton> button to
1796 set up a repetition within a repetition. In this case, each time the
1797 alarm is due as specified in the main recurrence, instead of being
1798 triggered just once it is triggered repeatedly in accordance with your
1799 sub-repetition specification. For example, to set up an alarm which
1800 repeats every hour from noon to 6 pm each Thursday, you would set up a
1801 weekly recurrence on Thursday at 12:00, and use the Sub-Repetition
1802 dialog to specify an interval of 1 hour and either a count of 6 or a
1803 duration of 6 hours.</para>
1805 <para>In the Sub-Repetition dialog which is displayed when you click
1806 the <guibutton>Sub-Repetition</guibutton> button, check
1807 <guilabel>Repeat every</guilabel> to set up a repetition, or uncheck
1808 it to remove the repetition. If <guilabel>Repeat every</guilabel> is
1809 checked, set up the repetition as follows:</para>
1811 <itemizedlist>
1812 <listitem><para>Enter the time interval between repetitions in the
1813 controls beside <guilabel>Repeat every</guilabel>. Select the desired
1814 time units (&eg; <guilabel>days</guilabel>) and then enter the number
1815 of units.</para>
1816 </listitem>
1818 <listitem><para>Specify either the repetition count or its
1819 duration:</para>
1821 <itemizedlist>
1822 <listitem><para>Select <guilabel>Number of times</guilabel> to enter
1823 how many times the alarm should be triggered after the main
1824 recurrence. So, for example, to make the alarm occur 4 times at each
1825 main recurrence, &ie; 3 additional times, you should enter 3
1826 here.</para>
1827 </listitem>
1829 <listitem><para>Select <guilabel>Duration</guilabel> to enter the
1830 total time period during which the alarm should be repeated. This need
1831 not be an exact multiple of the repetition interval; it will
1832 automatically be rounded down when you click
1833 <guibutton>OK</guibutton>.</para>
1834 </listitem>
1835 </itemizedlist>
1836 </listitem>
1837 </itemizedlist>
1839 <note><para>To prevent overlapping sub-repetitions for the same alarm,
1840 a sub-repetition's duration is restricted to be less than the longest
1841 interval between main recurrences. Each time the alarm recurs as
1842 specified in the main recurrence, any still active sub-repetition
1843 which started at the previous recurrence is automatically
1844 cancelled.</para></note>
1846 </sect3>
1847 </sect2>
1849 <sect2>
1850 <title>Other Controls</title>
1852 <para>For display alarms, the
1853 <guilabel>Confirm acknowledgment</guilabel> check box lets you specify
1854 whether you will be prompted for confirmation when you close the alarm
1855 message window. This may be used as a safeguard against accidental
1856 acknowledgment of alarms.</para>
1858 <para>Select <guilabel>Show in &korganizer;</guilabel> to add the
1859 alarm to &korganizer;'s active calendar, where it will appear as an
1860 event without an alarm. This option allows you to track alarms in
1861 &korganizer; while still making use of &kalarm;'s functions.</para>
1863 <note><para>If you later modify or delete the alarm in &kalarm;, the
1864 &korganizer; event will be modified or deleted correspondingly. But
1865 if you change the event in &korganizer;, the alarm in &kalarm; will
1866 not be affected.</para></note>
1868 <para>Press the <guibutton>Load Template</guibutton> button to select
1869 a template to preset the dialog with, as described in <link
1870 linkend="create-edit">Creating and Manipulating Alarms</link>. </para>
1872 <para>Press the <guibutton>Try</guibutton> button to test the alarm
1873 and check whether it works correctly. The alarm is executed just as
1874 if it had been scheduled in the normal way.</para>
1876 <para>Press the <guibutton>OK</guibutton> button
1877 when all details are correct, to add the alarm to the scheduled
1878 list. Note that when editing an existing alarm, the
1879 <guibutton>OK</guibutton> button is disabled while no changes have
1880 been made.</para>
1882 </sect2>
1883 </sect1>
1885 <sect1 id="message-window">
1886 <title>Alarm Message Window</title>
1888 <para>When an alarm message is due, it is displayed on each &kde;
1889 desktop and cannot be covered by ordinary windows, to ensure that
1890 you see it. The message window shows the time for which the alarm was
1891 scheduled, so that you can see when it popped up if you were away from
1892 the computer at the time. If the alarm's scheduled time is in a
1893 different time zone from your local computer's setting, its time zone
1894 will also be displayed. (For reminder messages, the date/time shown is
1895 that for the main alarm or its recurrence, not the reminder message
1896 time, and the window title is <quote>Reminder</quote>.)</para>
1898 <para>Alarm message windows remain visible until you acknowledge them,
1899 unless <guilabel>Auto-close window after late-cancelation
1900 time</guilabel> was checked in the <link
1901 linkend="alarm-edit-dlg">Alarm Edit dialog</link>. In the case of a
1902 recurring alarm, if an unacknowledged message window remains from a
1903 previous occurrence of the alarm, the existing window is simply popped
1904 up when the alarm recurs. This avoids having to acknowledge multiple
1905 copies of the same message should you not wish, or be unable, to
1906 acknowledge a message at the time it appears.</para>
1908 <para>The alarm message window provides whichever of the following
1909 options are applicable to the displayed alarm:</para>
1911 <itemizedlist>
1912 <listitem>
1913 <para>Acknowledge the alarm by clicking the
1914 <guibutton>Close</guibutton> button. This closes the window (after a
1915 prompt for confirmation, if you selected
1916 <guilabel>Confirm acknowledgment</guilabel>).</para>
1917 </listitem>
1919 <listitem>
1920 <para>Edit the alarm by clicking the <guibutton>Edit...</guibutton>
1921 button. This displays the
1922 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>.</para>
1923 </listitem>
1925 <listitem>
1926 <para>Display options to defer the alarm until later by clicking the
1927 <guibutton>Defer...</guibutton> button. Then select
1928 <guilabel>Defer to date/time</guilabel> to enter the date and time
1929 when the message is to be redisplayed, or select <guilabel>Defer for
1930 time interval</guilabel> to enter how long after now (in hours and
1931 minutes) the message should be redisplayed. Then click
1932 <guibutton>OK</guibutton> to defer the alarm message and close its
1933 window.</para>
1935 <note><para>The time the alarm is deferred to must be earlier than its
1936 next scheduled occurrence or next advance reminder. For this reason,
1937 the <guibutton>Defer...</guibutton> button in the alarm message window
1938 and the <guibutton>OK</guibutton> button in the Deferral dialog are
1939 disabled one minute before the next occurrence or advance
1940 reminder.</para>
1941 <para>Note that if a reminder is configured <emphasis>after</emphasis>
1942 the alarm, you <emphasis>can</emphasis> defer the alarm past its
1943 reminder time. In this case, the reminder will be
1944 suppressed.</para></note>
1946 <note><para>The <guibutton>Defer...</guibutton> button is not
1947 available for alarms which are displayed at login due to the
1948 <guilabel>Repeat at login</guilabel> option having been
1949 selected.</para></note>
1950 </listitem>
1952 <listitem>
1953 <para>Stop playing the alarm's sound file by clicking the button
1954 showing the <quote>stop playing</quote> symbol.</para>
1955 </listitem>
1957 <listitem>
1958 <para>If the alarm message was created by dragging an email from
1959 &kmail;, you can directly access the email in &kmail; by clicking the
1960 button showing the &kmail; icon. This will select and highlight the
1961 email in &kmail;'s folder list.</para>
1963 <warning><para>If &kmail;'s indexes are regenerated, the link to the
1964 email in &kmail; will be lost.</para></warning>
1965 </listitem>
1967 <listitem>
1968 <para>The button showing the <guiicon>&kalarm;</guiicon> icon provides
1969 a convenient way to activate &kalarm;.</para>
1970 </listitem>
1971 </itemizedlist>
1973 <para>You can choose in the
1974 <link linkend="preferences-view">Configuration dialog</link> which of
1975 two different modes should be used to display alarm message
1976 windows:</para>
1978 <itemizedlist>
1979 <listitem>
1980 <para>As a normal window. In this mode, the keyboard focus is taken
1981 by the alarm message window when it appears, so if you are typing at
1982 the time your keystrokes will be diverted to it rather than your
1983 original application.</para>
1984 </listitem>
1986 <listitem>
1987 <para>As a non-modal window. In this mode, the keyboard focus is
1988 unaffected when the alarm message window appears, so it will not
1989 interfere with your typing. However in this mode the window has no
1990 titlebar or frame, so you cannot move it or resize it.</para>
1991 </listitem>
1992 </itemizedlist>
1994 <note><para>When an alarm is displayed on top of a full screen
1995 application, it is shown as a non-modal window regardless of this
1996 configuration setting. This is due to a limitation of the window
1997 system.</para></note>
1999 <sect2>
2000 <title>Positioning of Message Windows</title>
2002 <para>You can choose in the
2003 <link linkend="preferences-view">Configuration dialog</link> which of
2004 two schemes should be used to position alarm message windows:</para>
2006 <itemizedlist>
2007 <listitem>
2008 <para>The windows are displayed as far away from the current mouse
2009 cursor as possible. This minimizes disruption to your work flow and
2010 minimizes the possibility of accidentally acknowledging the
2011 alarm.</para>
2012 </listitem>
2014 <listitem>
2015 <para>The windows are displayed in the center of the screen. To reduce
2016 the chance of accidentally acknowledging the alarm, the buttons on the
2017 window are initially disabled, becoming active only after a
2018 configurable delay.</para>
2019 </listitem>
2020 </itemizedlist>
2022 <para>If you have several alarm message windows, or error messages,
2023 displayed, you can spread the windows out across the screen to make
2024 them all visible, or group them all together again in the top left
2025 corner of the screen, by means of the <menuchoice>
2026 <guimenu>View</guimenu><guimenuitem>Spread Windows</guimenuitem>
2027 </menuchoice> menu option. If you wish, you can set up a global
2028 shortcut key for this action.</para>
2030 </sect2>
2031 </sect1>
2033 <sect1 id="system-tray">
2034 <title>System Tray Operation</title>
2036 <para>&kalarm; by default displays an icon in the system tray. The icon
2037 provides both control and an alarm monitoring status indication. A
2038 normal &kalarm; icon indicates that alarms are being monitored, while
2039 a gray icon indicates that alarms are not being monitored. If some
2040 individual alarms are disabled, a small cross is overlaid on the
2041 icon.</para>
2043 <para>If you hover the mouse cursor over the system tray icon, a
2044 summary of the first few message alarms due in the next 24 hours are
2045 displayed as a tooltip. You can switch this feature off, or configure
2046 the number of alarms to display and their format, in the
2047 <link linkend="preferences-view">Configuration dialog</link>.</para>
2049 <para><mousebutton>Left</mousebutton> click on the system tray icon to
2050 toggle between displaying and hiding the &kalarm; main window.</para>
2052 <para><mousebutton>Right</mousebutton> click on the system tray icon to
2053 display its context menu:</para>
2055 <variablelist>
2056 <varlistentry>
2057 <term><menuchoice><guimenuitem>Enable Alarms</guimenuitem></menuchoice></term>
2058 <listitem><para><action>Enables or disables monitoring of alarms.</action></para>
2059 <para>See
2060 <link linkend="enable-disable">Enabling and Disabling Alarms</link>
2061 for details.</para>
2062 </listitem>
2063 </varlistentry>
2065 <varlistentry>
2066 <term><menuchoice><guimenuitem>New Alarm</guimenuitem></menuchoice></term>
2067 <listitem><para><action>After you select the alarm type from the list
2068 which appears, opens the Alarm Edit dialog to create a new
2069 alarm.</action></para>
2070 </listitem>
2071 </varlistentry>
2073 <varlistentry>
2074 <term><menuchoice><guimenuitem>New Alarm From Template</guimenuitem></menuchoice></term>
2075 <listitem><para><action>Displays the list of alarm templates in a
2076 menu. When you select one, the Alarm Edit dialog is opened, preset
2077 with that template's details.</action></para>
2078 </listitem>
2079 </varlistentry>
2081 <varlistentry>
2082 <term><menuchoice><guimenuitem>Stop Play</guimenuitem></menuchoice></term>
2083 <listitem><para><action>Halts playback of the audio file currently
2084 playing.</action></para>
2085 </listitem>
2086 </varlistentry>
2088 <varlistentry>
2089 <term><menuchoice><guimenuitem>Spread Windows</guimenuitem></menuchoice></term>
2090 <listitem><para><action>Spreads alarm and error message windows across
2091 the screen, or groups them together again.</action></para>
2092 </listitem>
2093 </varlistentry>
2095 <varlistentry>
2096 <term><menuchoice><guimenuitem>Configure &kalarm;...</guimenuitem></menuchoice></term>
2097 <listitem><para><action>Displays the &kalarm; Configuration dialog.</action></para>
2098 <para>The Configuration dialog is described in
2099 <link linkend="preferences">Configuring &kalarm;</link>. It
2100 includes options relating to the &kalarm; system tray icon.</para>
2101 </listitem>
2102 </varlistentry>
2104 <varlistentry>
2105 <term><menuchoice><guimenuitem>Restore / Minimize</guimenuitem></menuchoice></term>
2106 <listitem><para><action>Restores or minimizes the main &kalarm; window.</action></para>
2107 </listitem>
2108 </varlistentry>
2110 <varlistentry>
2111 <term><menuchoice><guimenuitem>Quit</guimenuitem></menuchoice></term>
2112 <listitem><para><action>Closes the &kalarm; system tray
2113 icon and main windows.</action></para>
2114 <para>Quits &kalarm; if no alarm message windows are displayed.</para>
2115 </listitem>
2116 </varlistentry>
2117 </variablelist>
2119 <sect2>
2120 <title>Displaying &kalarm; in the System Tray</title>
2122 <para>You must be running the &kde; desktop or another suitable window
2123 manager in order to display &kalarm; in the system tray.</para>
2125 <para>To display &kalarm; in the system tray, select <menuchoice>
2126 <guimenu>View</guimenu><guimenuitem>Show in System Tray</guimenuitem>
2127 </menuchoice>.</para>
2129 <para>To remove &kalarm; from the system tray, deselect
2130 <menuchoice><guimenu>View</guimenu>
2131 <guimenuitem>Show in System Tray</guimenuitem></menuchoice>.</para>
2133 <para>To choose whether or not &kalarm; will be shown at startup in
2134 the system tray, use the <link linkend="preferences-view">View</link>
2135 tab of the Configuration dialog.</para>
2136 </sect2>
2137 </sect1>
2139 <sect1 id="refreshing">
2140 <title>Refreshing Alarms</title>
2142 <para>If in the unlikely event that any alarm was not triggered when
2143 it should have been, you can refresh the alarm list and trigger any
2144 missed alarms by selecting
2145 <menuchoice>
2146 <guimenu>Actions</guimenu><guimenuitem>Refresh Alarms</guimenuitem>
2147 </menuchoice>. This causes &kalarm; to reload all alarm
2148 calendars.</para>
2150 <para>You can reload an individual calendar and refresh its alarms in
2151 the alarm list by
2152 <mousebutton>Right</mousebutton> clicking the calendar in the
2153 calendars list and selecting the
2154 <menuchoice><guimenuitem>Reload</guimenuitem></menuchoice> menu
2155 option. See <link linkend="calendars">Alarm Calendars</link> for
2156 details.</para>
2158 </sect1>
2160 <sect1 id="enable-disable">
2161 <title>Enabling and Disabling Alarms</title>
2163 <para>Alarms may be enabled and disabled either as a whole or
2164 individually:</para>
2166 <itemizedlist>
2167 <listitem>
2168 <para><quote>Alarm monitoring</quote> applies to alarms as a whole.
2169 While alarm monitoring is disabled, no alarms are triggered at all.
2170 While alarm monitoring is enabled (the normal situation), all alarms
2171 which are not individually disabled will trigger at the appropriate
2172 times.</para>
2174 <para>When alarm monitoring is re-enabled, alarms which would have
2175 triggered while it was disabled are now triggered (unless any
2176 late-cancel option prevents this). In other words, disabling alarm
2177 monitoring has the same effect as stopping &kalarm; &ndash; alarms are
2178 postponed until it is re-enabled.</para>
2179 </listitem>
2181 <listitem>
2182 <para>Alarms may be individually enabled and disabled, independently
2183 of the alarm monitoring status. So the enabled/disabled status of
2184 individual alarms will be unchanged by disabling and then re-enabling
2185 alarm monitoring. Unlike alarm monitoring which could potentially be
2186 disabled due to &kalarm; not running, individual alarms can only be
2187 disabled if you use menu commands to do so.</para>
2189 <para>When an alarm is individually re-enabled, it is not now
2190 triggered if it became due while disabled. In other words, disabling
2191 an individual alarm cancels all its occurrences until it is
2192 re-enabled.</para>
2194 <para>An alarm's individual enabled/disabled status is indicated by
2195 its color in the alarm list (the color being configurable in the
2196 <link linkend="preferences-view">View</link> tab of the Configuration
2197 dialog).</para>
2198 </listitem>
2199 </itemizedlist>
2201 <para>For an alarm to trigger, it must be individually enabled as well
2202 as alarm monitoring being enabled.</para>
2204 <sect2>
2205 <title>Enabling Alarm Monitoring</title>
2207 <para>For alarm monitoring to occur, &kalarm; must be running. Once you
2208 run &kalarm;, it will from then on start automatically whenever you log
2209 in unless you later disable it in the
2210 <link linkend="preferences-general">General</link> tab of the
2211 Configuration dialog.</para>
2213 <para>If alarm monitoring is currently disabled, do one of the
2214 following to enable alarms:</para>
2216 <itemizedlist>
2217 <listitem>
2218 <para>Select <menuchoice><guimenu>Actions</guimenu>
2219 <guimenuitem>Enable Alarms</guimenuitem></menuchoice>.</para>
2220 </listitem>
2222 <listitem>
2223 <para><mousebutton>Right</mousebutton> click on the system tray icon
2224 and choose
2225 <menuchoice><guimenuitem>Enable Alarms</guimenuitem></menuchoice>
2226 from the context menu.</para>
2227 </listitem>
2228 </itemizedlist>
2230 </sect2>
2232 <sect2>
2233 <title>Disabling Alarm Monitoring</title>
2235 <para>You can temporarily disable alarm monitoring, which prevents
2236 &kalarm; from checking any alarms either until you re-enable alarms, or
2237 &ndash; assuming that &kalarm; is configured to start at login &ndash;
2238 until the next time you log in.</para>
2240 <itemizedlist>
2241 <listitem>
2242 <para>Unselect <menuchoice><guimenu>Actions</guimenu>
2243 <guimenuitem>Enable Alarms</guimenuitem></menuchoice>.</para>
2244 </listitem>
2246 <listitem>
2247 <para><mousebutton>Right</mousebutton> click on the system tray icon
2248 and uncheck
2249 <menuchoice><guimenuitem>Enable Alarms</guimenuitem></menuchoice>
2250 from the context menu.</para>
2251 </listitem>
2253 <listitem>
2254 <para>Run &kalarm; with the command line option
2255 <option>--disable-all</option>.</para>
2256 </listitem>
2258 <listitem>
2259 <para>Stop &kalarm; as described in
2260 <link linkend="quitting">Quitting &kalarm;</link>.</para>
2261 </listitem>
2262 </itemizedlist>
2264 <para>Alarms may be permanently disabled by preventing &kalarm; from
2265 being started at login using the
2266 <link linkend="preferences-general">General</link> tab of the
2267 Configuration dialog.</para>
2269 </sect2>
2271 <sect2>
2272 <title>Enabling and Disabling Individual Alarms</title>
2274 <para>To enable individual alarms which are currently disabled, do
2275 one of the following:</para>
2277 <itemizedlist>
2278 <listitem>
2279 <para>Select one or more alarms by clicking on their entries in the
2280 alarm list. Then choose <menuchoice>
2281 <guimenu>Actions</guimenu><guimenuitem>Enable</guimenuitem>
2282 </menuchoice>.</para>
2283 </listitem>
2285 <listitem>
2286 <para><mousebutton>Right</mousebutton> click on the desired entries in
2287 the alarm list and choose
2288 <menuchoice><guimenuitem>Enable</guimenuitem></menuchoice>
2289 from the context menu.</para>
2290 </listitem>
2291 </itemizedlist>
2293 <para>To disable individual alarms which are currently enabled, do one
2294 of the following:</para>
2296 <itemizedlist>
2297 <listitem>
2298 <para>Select one or more alarms by clicking on their entries in the
2299 alarm list. Then choose <menuchoice>
2300 <guimenu>Actions</guimenu><guimenuitem>Disable</guimenuitem>
2301 </menuchoice>.</para>
2302 </listitem>
2304 <listitem>
2305 <para><mousebutton>Right</mousebutton> click on the desired entries in
2306 the alarm list and choose
2307 <menuchoice><guimenuitem>Disable</guimenuitem></menuchoice>
2308 from the context menu.</para>
2309 </listitem>
2310 </itemizedlist>
2312 </sect2>
2313 </sect1>
2315 <sect1 id="quitting">
2316 <title>Quitting &kalarm;</title>
2318 <para>Quit &kalarm; by selecting <menuchoice>
2319 <guimenu>File</guimenu><guimenuitem>Quit</guimenuitem></menuchoice>,
2320 or <menuchoice><guimenuitem>Quit</guimenuitem></menuchoice> in the
2321 system tray icon context menu. Alternatively, if the system tray icon
2322 is not visible, close all &kalarm;'s windows.</para>
2324 </sect1>
2325 </chapter>
2327 <chapter id="preferences">
2328 <title>Configuring &kalarm;</title>
2330 <para>To configure &kalarm;'s operation to suit your system and your
2331 personal preferences, select <menuchoice><guimenu>Settings</guimenu>
2332 <guimenuitem>Configure &kalarm;...</guimenuitem></menuchoice>.
2333 This displays the Configuration dialog.</para>
2335 <sect1 id="preferences-general">
2336 <title>General</title>
2338 <para>The <guilabel>General</guilabel> section lets you control
2339 &kalarm;'s overall behavior:</para>
2341 <itemizedlist>
2342 <listitem>
2343 <para><guilabel>Start at login</guilabel>: &kalarm; will be started
2344 automatically at &kde; session login, ensuring that &kalarm; runs at
2345 all times unless you manually quit.</para>
2347 <warning><para>This option should always be checked unless you intend
2348 to discontinue use of &kalarm;.</para></warning>
2350 <note><para>This option is automatically reselected whenever &kalarm;
2351 is run. So if you have unchecked this option and want to continue to
2352 prevent &kalarm; from running at login, you need to uncheck this
2353 option again each time you run &kalarm;.</para></note>
2354 </listitem>
2356 <listitem>
2357 <para><guilabel>Warn before quitting</guilabel>: When alarms are
2358 disabled while &kalarm; is not running, selecting this option prompts
2359 you for confirmation if you attempt to terminate &kalarm; using the
2360 system tray icon's <menuchoice><guimenu>Quit</guimenu></menuchoice>
2361 option. This prevents accidental disabling of alarms. For safety, this
2362 option is automatically re-enabled by default whenever you change run
2363 mode.</para>
2364 </listitem>
2366 <listitem><para><guilabel>Confirm alarm deletions</guilabel>: Specify
2367 whether you should be prompted for confirmation each time you delete
2368 an alarm.</para>
2369 </listitem>
2371 <listitem><para><guilabel>Default defer time interval</guilabel>:
2372 Enter the default time interval, in hours and minutes, to show
2373 initially when the Defer Alarm dialog is displayed. Note that if an
2374 alarm has been deferred previously, the interval shown initially in the
2375 Defer Alarm dialog will be equal to the deferral interval used the last
2376 time that alarm was deferred.</para>
2377 </listitem>
2379 <listitem><para><guilabel>Terminal for Command Alarms</guilabel>:
2380 Here, you can select which type of terminal window should be used for
2381 command alarms which are executed in a terminal window. Some of the
2382 most common terminal window applications are preconfigured, &eg;
2383 <application>xterm</application>, &konsole;, although only those
2384 which are installed on your system will be shown here. You can view
2385 the actual command options used for each application by displaying the
2386 context help for its radio button.</para>
2388 <para>If you want to use another application, or want to use one of
2389 those listed but with different command options, select
2390 <guilabel>Other</guilabel> and enter the command to invoke the
2391 terminal window. By default, the alarm's command string will be
2392 appended to what you specify. Alternatively, you may specify where the
2393 alarm's command string should be inserted, by use of the following
2394 codes:</para>
2396 <variablelist>
2397 <varlistentry>
2398 <term>%c</term>
2399 <listitem>
2400 <para>The alarm's command string will be substituted.</para>
2401 </listitem>
2402 </varlistentry>
2403 <varlistentry>
2404 <term>%w</term>
2405 <listitem>
2406 <para>The alarm's command string will be substituted, with a <literal>sleep</literal> appended.</para>
2407 </listitem>
2408 </varlistentry>
2409 <varlistentry>
2410 <term>%C</term>
2411 <listitem>
2412 <para>A temporary command file containing the alarm's command string will be created, and the command to execute the file will be substituted.</para>
2413 </listitem>
2414 </varlistentry>
2415 <varlistentry>
2416 <term>%W</term>
2417 <listitem>
2418 <para>A temporary command file containing the alarm's command string will be created with a <literal>sleep</literal> appended, and the command to execute the file will be substituted.</para>
2419 </listitem>
2420 </varlistentry>
2421 </variablelist>
2423 <para>When the command alarm is triggered, its command string will be
2424 quoted before being inserted into the terminal window command.</para>
2425 </listitem>
2427 </itemizedlist>
2428 </sect1>
2430 <sect1 id="preferences-time">
2431 <title>Time and Date</title>
2433 <para>The <guilabel>Time and Date</guilabel> section lets you set
2434 options relating to time and date:</para>
2436 <itemizedlist>
2437 <listitem><para><guilabel>Time zone</guilabel>: Select your time zone.
2438 &kalarm; uses this time zone throughout, except when you override it
2439 for individual alarms.</para>
2440 </listitem>
2442 <listitem><para><guilabel>Holiday region</guilabel>: Select which
2443 country's or region's holidays to use. This affects recurring alarms
2444 for which the option to exclude holidays is selected.</para>
2445 </listitem>
2447 <listitem><para><guilabel>Start of day for date-only
2448 alarms</guilabel>: Set the start-of-day time for the purposes of
2449 triggering date-only alarms, &ie; ones for which the <guilabel>Any
2450 time</guilabel> option was selected. On the date when they are due,
2451 such alarms will be output at the earliest opportunity during the
2452 24 hours starting from the start-of-day time.</para>
2453 </listitem>
2455 <listitem><para><guilabel>Working Hours</guilabel> group box: These
2456 options let you define your working hours, needed when the
2457 <guilabel>Only during working hours</guilabel> option is selected for
2458 a recurrence in the
2459 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>.</para>
2461 <itemizedlist>
2462 <listitem><para>Check each day which is a working day.</para>
2463 </listitem>
2465 <listitem><para><guilabel>Daily start time</guilabel>: enter the time
2466 at which you start work each day.</para>
2467 </listitem>
2469 <listitem><para><guilabel>Daily end time</guilabel>: enter the time
2470 at which you finish work each day.</para>
2471 </listitem>
2472 </itemizedlist>
2473 </listitem>
2475 <listitem><para><guilabel>KOrganizer event duration</guilabel>: Enter
2476 the event duration to set in &korganizer; for alarms which are copied to
2477 &korganizer;. The default duration is zero.</para>
2478 </listitem>
2480 </itemizedlist>
2481 </sect1>
2483 <sect1 id="preferences-storage">
2484 <title>Storage</title>
2486 <para>The <guilabel>Storage</guilabel> section lets you choose options
2487 for saving and archiving alarms:</para>
2489 <itemizedlist>
2490 <listitem>
2491 <para><guilabel>New Alarms &amp; Templates</guilabel>: Specify which
2492 calendar to store new alarms and alarm templates in when using
2493 multiple alarm calendars:</para>
2495 <itemizedlist>
2496 <listitem>
2497 <para><guilabel>Store in default calendar</guilabel>: New alarms and
2498 alarm templates are automatically added to the default alarm calendar
2499 without prompting for confirmation.</para>
2500 </listitem>
2502 <listitem>
2503 <para><guilabel>Prompt for which calendar to store in</guilabel>:
2504 When you create a new alarm or alarm template and there is more than
2505 one writeable alarm calendar, you will be prompted to choose which
2506 calendar to save it in. Note that when alarms are saved on expiry,
2507 they are always stored in the default archived alarm calendar without
2508 prompting.</para>
2509 </listitem>
2510 </itemizedlist>
2511 </listitem>
2513 <listitem><para><guilabel>Archived Alarms</guilabel> group box: These
2514 options control the storage of archived alarms in the default archived
2515 alarm calendar.</para>
2517 <itemizedlist>
2518 <listitem><para><guilabel>Keep alarms after expiry</guilabel>:
2519 Select this option to archive expired and deleted alarms. Deselect it
2520 to keep no record of alarms once they cease to be active. Note that
2521 deleted alarms are only archived if they have previously been
2522 triggered. If you delete an alarm before it ever triggers, it is
2523 discarded.</para>
2524 </listitem>
2526 <listitem><para><guilabel>Discard archived alarms after</guilabel>:
2527 Set the number of days to store expired and deleted alarms in the
2528 archive, after which they are permanently deleted.</para>
2529 </listitem>
2531 <listitem><para><guibutton>Clear archived alarms</guibutton>: This
2532 button discards all currently archived alarms from the default archived
2533 alarm calendar. (Other archived alarm calendars are left unchanged in
2534 case they are shared with other people.) This has no effect on
2535 alarms which subsequently expire or are deleted; they will continue to
2536 be archived according to the selected options.</para>
2537 </listitem>
2538 </itemizedlist>
2539 </listitem>
2541 </itemizedlist>
2542 </sect1>
2544 <sect1 id="preferences-email">
2545 <title>Email</title>
2547 <para>The <guilabel>Email</guilabel> section lets you choose options
2548 for sending and addressing email alarms:</para>
2550 <itemizedlist>
2551 <listitem>
2552 <para><guilabel>Email client</guilabel>: Specify the email
2553 client to be used to send email alarms:</para>
2555 <itemizedlist>
2556 <listitem><para><guilabel>KMail</guilabel>: When an email alarm is
2557 triggered, the email is sent using &kmail; (which is started first if
2558 necessary) as follows:</para>
2560 <itemizedlist>
2561 <listitem><para>If &kmail; is version 1.7 or later, the email is sent
2562 automatically.</para>
2563 </listitem>
2565 <listitem><para>If &kmail; is an older version, the email is added to
2566 &kmail;'s <filename>outbox</filename> folder for later
2567 transmission.</para>
2568 </listitem>
2569 </itemizedlist>
2570 </listitem>
2572 <listitem><para><guilabel>Sendmail</guilabel>: When an email alarm is
2573 triggered, the email is sent automatically using
2574 &Sendmail;. This option will only work if
2575 your system is configured to use &Sendmail;,
2576 or a &Sendmail; compatible mail transport
2577 agent such as <application>postfix</application> or
2578 <application>qmail</application>.</para>
2579 </listitem>
2580 </itemizedlist>
2581 </listitem>
2583 <listitem>
2584 <para><guilabel>Copy sent emails into &kmail;'s sent-items folder</guilabel>:
2585 Select this option if, every time an email alarm is triggered, you
2586 want a copy of the transmitted email to be stored in &kmail;'s
2587 <filename>sent-items</filename> folder.</para>
2589 <note><para>This option is not available when &kmail; is selected as
2590 the email client, since &kmail; automatically does this.</para></note>
2591 </listitem>
2593 <listitem>
2594 <para><guilabel>Notify when remote emails are queued</guilabel>:
2595 Select this option to display a notification whenever an email alarm
2596 queues an email for sending to a remote system. This may be useful
2597 if, for example, you have a dial-up connection, or email is queued in
2598 &kmail;'s <filename>outbox</filename> folder, so that you can
2599 ensure that you do whatever is needed to actually transmit
2600 the email.</para>
2601 </listitem>
2603 <listitem>
2604 <para>Select your email address to be used as the sender's address in
2605 email alarms:</para>
2607 <itemizedlist>
2608 <listitem><para>Select <guilabel>From</guilabel> to enter an email
2609 address.</para>
2610 </listitem>
2612 <listitem><para>Select <guilabel>Use address from System
2613 Settings</guilabel> to use the email address which is configured in the
2614 &kde; System Settings.</para>
2615 </listitem>
2617 <listitem><para>Select <guilabel>Use &kmail; identities</guilabel> to
2618 be able to choose at the time you configure an email alarm which of
2619 &kmail;'s email identities to use. &kmail;'s default identity will be
2620 used for alarms which were already configured before you selected this
2621 option.</para>
2622 </listitem>
2623 </itemizedlist>
2624 </listitem>
2626 <listitem>
2627 <para>Select your email address to be used for sending blind copies of
2628 email alarms to yourself when the
2629 <guilabel>Copy email to self</guilabel> option is selected:</para>
2631 <itemizedlist>
2632 <listitem><para>Select <guilabel>Bcc</guilabel> to enter an email
2633 address. If blind copies are to be sent to your account on the
2634 computer which &kalarm; runs on, you could simply enter your user
2635 login name here.</para>
2636 </listitem>
2638 <listitem><para>Select <guilabel>Use address from System
2639 Settings</guilabel> to use the email address which is configured in the
2640 &kde; System Settings.</para>
2641 </listitem>
2642 </itemizedlist>
2643 </listitem>
2644 </itemizedlist>
2645 </sect1>
2647 <sect1 id="preferences-view">
2648 <title>View</title>
2650 <para>The <guilabel>View</guilabel> section lets you control some
2651 aspects of &kalarm;'s appearance. In the <guilabel>General</guilabel>
2652 tab:</para>
2653 <itemizedlist>
2655 <listitem>
2656 <para><guilabel>Show in system tray</guilabel>: When selected, the
2657 system tray icon is displayed while &kalarm; is running. In this mode,
2658 closing the system tray icon closes all &kalarm; main windows, and if
2659 no message windows are visible, quits the application.</para>
2660 </listitem>
2662 <listitem>
2663 <para><guilabel>System Tray Tooltip</guilabel> group box: These options
2664 control what information is shown in the tooltip which appears when the
2665 mouse cursor hovers over &kalarm;'s system tray icon.</para>
2667 <itemizedlist>
2668 <listitem>
2669 <para><guilabel>Show next 24 hours' alarms</guilabel>: When selected,
2670 a summary of the first few alarms due in the next 24 hours is
2671 displayed.</para>
2672 </listitem>
2674 <listitem>
2675 <para><guilabel>Maximum number of alarms to show</guilabel>: Deselect
2676 this option to display all of the next 24 hours' alarms. Select it to
2677 set the maximum number of alarms which will be displayed.</para>
2678 </listitem>
2680 <listitem>
2681 <para><guilabel>Show alarm time</guilabel>: Select this option to show
2682 the time at which each alarm is scheduled.</para>
2683 </listitem>
2685 <listitem>
2686 <para><guilabel>Show time until alarm</guilabel>: Select this option to
2687 show the length of time remaining before each alarm's next scheduled
2688 occurrence. The length of time is shown in hours and minutes.</para>
2690 <itemizedlist>
2691 <listitem>
2692 <para><guilabel>Prefix</guilabel>: Specify a symbol or text to show in
2693 front of the length of time until the alarm, to distinguish it from the
2694 time at which the alarm is scheduled.</para>
2695 </listitem>
2696 </itemizedlist>
2697 </listitem>
2698 </itemizedlist>
2699 </listitem>
2701 <listitem>
2702 <para>The <guilabel>Alarm List</guilabel> group box allows the
2703 selection of the colors used in the alarm list in &kalarm;'s main
2704 window, to show disabled and archived alarms.</para>
2705 </listitem>
2706 </itemizedlist>
2708 <para>The <guilabel>Alarm Windows</guilabel> tab contains options to control
2709 the appearance of alarm message windows.</para>
2711 <itemizedlist>
2712 <listitem>
2713 <para><guilabel>Position windows far from mouse cursor</guilabel>:
2714 Select this option to display alarm message windows as far away from
2715 the current mouse cursor position as possible. This minimizes the
2716 chance of accidentally acknowledging an alarm by unintentionally
2717 clicking on a button just as the message window appears.</para>
2718 </listitem>
2720 <listitem>
2721 <para><guilabel>Center windows, delay activating window buttons</guilabel>:
2722 Select this option to display alarm message windows in the center of
2723 the screen. To reduce the chance of accidentally acknowledging the
2724 alarm, the window's buttons are initially disabled. The delay in
2725 seconds before they become active is set in
2726 <guilabel>Button activation delay (seconds)</guilabel>.</para>
2727 </listitem>
2729 <listitem>
2730 <para><guilabel>Message windows have a titlebar and take keyboard focus</guilabel>: This
2731 option controls whether alarm message windows are modal or not, &ie;
2732 whether they grab the keyboard focus when they appear. See the
2733 <link linkend="message-window">Alarm Message Window</link> section for
2734 details.</para>
2735 </listitem>
2736 </itemizedlist>
2737 </sect1>
2739 <sect1 id="preferences-edit">
2740 <title>Edit</title>
2742 <para>The <guilabel>Edit</guilabel> section lets you choose
2743 default values for the options in the
2744 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>:</para>
2746 <itemizedlist>
2747 <listitem><para>The <guilabel>General</guilabel> tab contains options
2748 which apply to all alarm types.</para>
2750 <itemizedlist>
2751 <listitem><para>Set the default states for the <guilabel>Show in
2752 KOrganizer</guilabel> and <guilabel>Cancel if late</guilabel> check
2753 boxes.</para>
2754 </listitem>
2756 <listitem><para>Set the default recurrence type.</para>
2757 </listitem>
2759 <listitem><para>Select the default handling in non-leap years of
2760 yearly recurrences scheduled for February 29th.</para>
2761 </listitem>
2762 </itemizedlist>
2763 </listitem>
2765 <listitem><para>The <guilabel>Alarm Types</guilabel> tab contains
2766 options which apply to specific types of alarm.</para>
2768 <itemizedlist>
2769 <listitem>
2770 <para>For display alarms:</para>
2772 <itemizedlist>
2773 <listitem><para>Set the default states for the
2774 <guilabel>Auto-close window after this time</guilabel> and
2775 <guilabel>Confirm acknowledgment</guilabel> check boxes.</para>
2776 </listitem>
2778 <listitem><para>Set the default reminder period units.</para>
2779 </listitem>
2781 <listitem><para>Set the default special display alarm actions.</para>
2782 </listitem>
2784 <listitem><para>Set the default sound options. Note that a default
2785 sound file may be specified even if the sound type is not set to
2786 <guilabel>Sound file</guilabel>.</para>
2787 </listitem>
2788 </itemizedlist>
2789 </listitem>
2791 <listitem>
2792 <para>For command alarms:</para>
2794 <itemizedlist>
2795 <listitem><para>Set the default states for the <guilabel>Enter a
2796 script</guilabel> and <guilabel>Execute in terminal window</guilabel>
2797 check boxes.</para>
2798 </listitem>
2799 </itemizedlist>
2800 </listitem>
2802 <listitem>
2803 <para>For email alarms:</para>
2805 <itemizedlist>
2806 <listitem><para>Set the default state for the <guilabel>Copy email to
2807 self</guilabel> check box.</para>
2808 </listitem>
2809 </itemizedlist>
2810 </listitem>
2811 </itemizedlist>
2812 </listitem>
2814 <listitem><para>The <guilabel>Font &amp; Color</guilabel> tab lets you
2815 set the default appearance of alarm messages. Select their default
2816 font, and foreground and background colors.</para>
2817 </listitem>
2818 </itemizedlist>
2819 </sect1>
2821 </chapter>
2823 <chapter id="cmdline-operation">
2824 <title>Command Line Operation</title>
2826 <para>When command line parameters are supplied, &kalarm; does not
2827 display the list of scheduled alarms as described in <link
2828 linkend="using-kalarm">Using &kalarm;</link> above. Command line
2829 options specific to &kalarm; may be used to perform the following
2830 operations:</para>
2832 <itemizedlist>
2833 <listitem><para>schedule a new alarm</para>
2834 </listitem>
2835 <listitem><para>control &kalarm;'s display mode</para>
2836 </listitem>
2837 <listitem><para>obtain help</para>
2838 </listitem>
2839 </itemizedlist>
2841 <para>Additional command line options are provided primarily to enable
2842 other programs to interface to &kalarm;. They are described in the
2843 chapter <link linkend="cmdline-interface">Developer's Guide to
2844 &kalarm;</link>.</para>
2846 <para>The command line must only contain options applicable to one
2847 &kalarm; operation. If you want to perform multiple operations, you
2848 must invoke &kalarm; multiple times with a single set of options each
2849 time.</para>
2851 <sect1 id="cmdline-schedule">
2852 <title>Schedule a New Alarm</title>
2854 <para>The following options are used to schedule a new alarm:</para>
2856 <informaltable>
2857 <tgroup cols="2">
2858 <thead>
2859 <row>
2860 <entry>Option</entry>
2861 <entry>Description</entry>
2862 </row>
2863 </thead>
2864 <tbody>
2865 <row>
2866 <entry><option>-a</option>, <option>--ack-confirm</option></entry>
2867 <entry>Prompt for confirmation when the alarm message is
2868 acknowledged.</entry>
2869 </row>
2870 <row>
2871 <entry><option>-A</option>, <option>--attach <replaceable>URL</replaceable></option></entry>
2872 <entry>Specify the path or &URL; of a file which is to be attached
2873 to the email. This option may be repeated as necessary.
2874 <option>--mail</option> must be specified with this option.</entry>
2875 </row>
2876 <row>
2877 <entry><option>--auto-close</option></entry>
2878 <entry>Automatically close the alarm window after the expiry of the
2879 <option>--late-cancel</option> period.
2880 <option>--late-cancel</option> must be specified with this
2881 option.</entry>
2882 </row>
2883 <row>
2884 <entry><option>-b</option>, <option>--beep</option></entry>
2885 <entry>Make an audible beep when the message is displayed.
2886 <option>--speak</option>, <option>--play</option> and
2887 <option>--play-repeat</option> cannot be specified with this
2888 option.</entry>
2889 </row>
2890 <row>
2891 <entry><option>--bcc</option></entry>
2892 <entry>Blind copy the email to yourself.
2893 <option>--mail</option> must be specified with this option.</entry>
2894 </row>
2895 <row>
2896 <entry><option>-c</option>, <option>--color</option>, <option>--colour
2897 <replaceable>color</replaceable></option></entry>
2898 <entry>Set the message background color to the specified &Qt;
2899 color name or hex code 0xRRGGBB.</entry>
2900 </row>
2901 <row>
2902 <entry><option>-C</option>, <option>--colorfg</option>, <option>--colourfg
2903 <replaceable>color</replaceable></option></entry>
2904 <entry>Set the message foreground color to the specified &Qt;
2905 color name or hex code 0xRRGGBB.</entry>
2906 </row>
2907 <row>
2908 <entry><option>-d</option>, <option>--disable</option></entry>
2909 <entry>Disable the alarm. It will not trigger until it has been
2910 manually enabled.</entry>
2911 </row>
2912 <row>
2913 <entry><option>-d</option>, <option>--disable-all</option></entry>
2914 <entry>Disable alarm monitoring. This prevents any alarms from
2915 being triggered until you re-enable alarms or restart &kalarm;, &eg;
2916 at next login.
2917 <option>--triggerEvent</option> cannot be specified with this
2918 option.</entry>
2919 </row>
2920 <row>
2921 <entry><option>-e</option>, <option>--exec <replaceable>commandline</replaceable></option></entry>
2922 <entry>Specify a shell command to execute. If specified, this option
2923 must be the last &kalarm; option in &kalarm;'s command line. All
2924 subsequent command parameters and options are interpreted as
2925 forming the command line to execute. <option>--file</option> and
2926 <option>--exec-display</option> and <option>--mail</option> cannot
2927 be specified with this option.
2928 <option>--ack-confirm</option>, <option>--beep</option>,
2929 <option>--color</option> and <option>--colorfg</option> are ignored
2930 with this option.</entry>
2931 </row>
2932 <row>
2933 <entry><option>-E</option>, <option>--exec-display <replaceable>commandline</replaceable></option></entry>
2934 <entry>Specify a shell command to execute to generate the alarm
2935 message text. If specified, this option must be the last &kalarm;
2936 option in &kalarm;'s command line. All subsequent command parameters
2937 and options are interpreted as forming the command line to execute.
2938 <option>--exec</option>, <option>--file</option> and
2939 <option>--mail</option> cannot be specified with this option.</entry>
2940 </row>
2941 <row>
2942 <entry><option>-f</option>, <option>--file <replaceable>URL</replaceable></option></entry>
2943 <entry>Specify the path or &URL; of a text or image file whose
2944 contents are to form the alarm message. <option>--exec</option>,
2945 <option>--exec-display</option> and <option>--mail</option> cannot
2946 be specified, and <replaceable>message</replaceable> must not be
2947 present with this option.</entry>
2948 </row>
2949 <row>
2950 <entry><option>-F</option>, <option>--from-id
2951 <replaceable>ID</replaceable></option></entry>
2952 <entry>Use the specified &kmail; identity as the sender of the
2953 email. <option>--mail</option> must be specified with this
2954 option.</entry>
2955 </row>
2956 <row>
2957 <entry><option>-i</option>, <option>--interval
2958 <replaceable>period</replaceable></option></entry>
2959 <entry>Set the interval between repetitions of the alarm.
2960 Hours/minutes are specified in the format
2961 <replaceable>nHnM</replaceable>, where <replaceable>n</replaceable>
2962 is a number, &eg; 3H30M. Other time periods are specified in the
2963 format <replaceable>nX</replaceable>, where
2964 <replaceable>n</replaceable> is a number and
2965 <replaceable>X</replaceable> is one of the following letters: Y
2966 (years), M (months), W (weeks), D (days). If
2967 <option>--recurrence</option> is also specified, Y (years) and M
2968 (months) are not allowed.
2969 Mandatory if <option>--repeat</option> or <option>--until</option>
2970 is specified.</entry>
2971 </row>
2972 <row>
2973 <entry><option>-k</option>, <option>--korganizer</option></entry>
2974 <entry>Show the alarm as an event in &korganizer;'s active
2975 calendar.</entry>
2976 </row>
2977 <row>
2978 <entry><option>-l</option>, <option>--late-cancel
2979 <replaceable>period</replaceable></option></entry>
2980 <entry>Cancel the alarm if it cannot be triggered within the
2981 specified <replaceable>period</replaceable> after the correct time.
2982 Hours/minutes are specified in the format
2983 <replaceable>nHnM</replaceable>, where <replaceable>n</replaceable>
2984 is a number, &eg; 3H30M. Other time periods are specified in the
2985 format <replaceable>nX</replaceable>, where
2986 <replaceable>n</replaceable> is a number and
2987 <replaceable>X</replaceable> is one of the following letters: W
2988 (weeks), D (days). To specify a reminder after the alarm, prefix
2989 <replaceable>period</replaceable> with <replaceable>+</replaceable>, &eg; +3D.
2990 The default value of <replaceable>period</replaceable> is 1
2991 minute.</entry>
2992 </row>
2993 <row>
2994 <entry><option>-L</option>, <option>--login</option></entry>
2995 <entry>Trigger the alarm every time you log in.
2996 <option>--interval</option>, <option>--repeat</option> and
2997 <option>--until</option> cannot be specified with this
2998 option.</entry>
2999 </row>
3000 <row>
3001 <entry><option>-m</option>, <option>--mail
3002 <replaceable>address</replaceable></option></entry>
3003 <entry>Send an email to the specified address. This option may be
3004 repeated as necessary. <option>--exec</option>,
3005 <option>--exec-display</option> and <option>--file</option> cannot
3006 be specified with this option.
3007 <option>--ack-confirm</option>, <option>--beep</option>,
3008 <option>--color</option> and <option>--colorfg</option> are ignored
3009 with this option.</entry>
3010 </row>
3011 <row>
3012 <entry><option>-p</option>, <option>--play <replaceable>URL</replaceable></option></entry>
3013 <entry>Specify the path or &URL; of an audio file to be played once,
3014 either as an audio alarm or when the alarm message is displayed.
3015 <option>--play-repeat</option>, <option>--beep</option> and
3016 <option>--speak</option> cannot be specified with this
3017 option.</entry>
3018 </row>
3019 <row>
3020 <entry><option>-P</option>, <option>--play-repeat <replaceable>URL</replaceable></option></entry>
3021 <entry>Specify the path or &URL; of an audio file to be played
3022 repeatedly, either until <guilabel>Stop Play</guilabel> is used, or
3023 for as long as the alarm message is displayed.
3024 <option>--play</option>, <option>--beep</option> and
3025 <option>--speak</option> cannot be specified with this
3026 option.</entry>
3027 </row>
3028 <row>
3029 <entry><option>--recurrence
3030 <replaceable>spec</replaceable></option></entry>
3031 <entry>Set the alarm to recur. Specify the recurrence using iCalendar
3032 syntax (defined in
3033 <ulink url="http://www.w3.org/2002/12/cal/rfc2445.html">RFC2445</ulink>),
3034 &eg; <quote>FREQ=MONTHLY;COUNT=4;INTERVAL=3;BYDAY=-1MO</quote>.
3035 <option>--until</option> cannot be specified with this
3036 option.</entry>
3037 </row>
3038 <row>
3039 <entry><option>-r</option>, <option>--repeat
3040 <replaceable>count</replaceable></option></entry>
3041 <entry>Set the number of times the alarm should be triggered, or if
3042 a recurrence is specified with <option>--recurrence</option>, the
3043 number of times the alarm should be triggered each time
3044 <option>--recurrence</option> activates it (&ie; a repetition within
3045 a recurrence). If <option>--recurrence</option> is not present,
3046 specify -1 to repeat the alarm indefinitely.
3047 <option>--interval</option> must be, and <option>--until</option>
3048 cannot be, specified with this option.</entry>
3049 </row>
3050 <row>
3051 <entry><option>-R</option>, <option>--reminder
3052 <replaceable>period</replaceable></option></entry>
3053 <entry>Output a reminder alarm the specified length of time before
3054 or after the main alarm and each of its recurrences (if any).
3055 The <replaceable>period</replaceable> is specified in
3056 the same format as described for <option>--late-cancel</option>.
3057 By default, the reminder will occur before the alarm. To specify a
3058 reminder after the alarm, prefix <replaceable>period</replaceable>
3059 with <replaceable>+</replaceable>, &eg; +3D. This option cannot be
3060 specified with <option>--exec</option>, <option>--mail</option> or
3061 <option>--reminder-once</option>.</entry>
3062 </row>
3063 <row>
3064 <entry><option>--reminder-once
3065 <replaceable>period</replaceable></option></entry>
3066 <entry>Output a reminder alarm once, the specified length of time
3067 before or after the first recurrence of the alarm. No reminder will
3068 be displayed before or after subsequent recurrences (if any). The
3069 <replaceable>period</replaceable> is specified in the same format as
3070 described for <option>--reminder</option>. This option cannot
3071 be specified with <option>--exec</option>, <option>--mail</option>
3072 or <option>--reminder</option>.</entry>
3073 </row>
3074 <row>
3075 <entry><option>-s</option>, <option>--speak</option></entry>
3076 <entry>Speak the message when it is displayed. This option requires
3077 &jovie; to be installed and configured, together with a compatible
3078 speech synthesizer. <option>--beep</option>, <option>--play</option>
3079 and <option>--play-repeat</option> cannot be specified with this
3080 option.</entry>
3081 </row>
3082 <row>
3083 <entry><option>-S</option>, <option>--subject
3084 <replaceable>subject</replaceable></option></entry>
3085 <entry>The subject line of the email. <option>--mail</option> must
3086 be specified with this option.</entry>
3087 </row>
3088 <row>
3089 <entry><option>-t</option>, <option>--time
3090 <replaceable>date/time</replaceable></option></entry>
3091 <entry>Trigger alarm on the date or at the date/time specified.
3092 Specify a date without a time in the format
3093 <replaceable>yyyy-mm-dd [TZ]</replaceable>; specify a date and time
3094 by <replaceable>[[[yyyy-]mm-]dd-]hh:mm [TZ]</replaceable> (where
3095 omitted, date fields default to the values for today).
3096 If no time zone is specified, the local system time zone is
3097 assumed. If a time zone specifier <replaceable>TZ</replaceable> is
3098 present, it may be the name of a system time zone (&eg;
3099 <userinput>Europe/London</userinput>), <userinput>UTC</userinput>
3100 representing the UTC time zone, or <userinput>Clock</userinput> to
3101 use the local computer clock and ignore time zones.</entry>
3102 </row>
3103 <row>
3104 <entry><option>-v</option>, <option>--volume
3105 <replaceable>percentage</replaceable></option></entry>
3106 <entry>Set the audio volume for playing the audio file. This option
3107 can only be used when <option>--play</option> or
3108 <option>--play-repeat</option> is specified.</entry>
3109 </row>
3110 <row>
3111 <entry><option>-u</option>, <option>--until
3112 <replaceable>date/time</replaceable></option></entry>
3113 <entry>Repeat the alarm until the date or date/time specified.
3114 Specify the date or date/time using the same syntax as for
3115 <option>--time</option>. Note that if <option>--time</option> is
3116 specified, the time zone will be taken from its value and no time
3117 zone may be included in the <option>--until</option> value.
3118 <option>--interval</option> must be, and
3119 <option>--repeat</option> and <option>--recurrence</option> cannot
3120 be, specified with this option.</entry>
3121 </row>
3122 <row>
3123 <entry><replaceable>message</replaceable></entry>
3124 <entry>Message text to display or, if <option>--mail</option> is
3125 specified, the body of the email message.</entry>
3126 </row>
3127 </tbody>
3128 </tgroup>
3129 </informaltable>
3131 <para>Either a message text, <option>--file</option>,
3132 <option>--exec</option>, <option>--exec-display</option>,
3133 <option>--play</option> or <option>--play-repeat</option> must be
3134 specified; except as noted above, all the options are optional.</para>
3136 <para>Two alternative examples which display a multi-line message with
3137 a red background at 10 p.m. on the 27th of this month are:</para>
3139 <informalexample><screen>
3140 <prompt>%</prompt> <userinput><command>kalarm</command> <option>-c <replaceable>red</replaceable></option> <option>-t <replaceable>27-22:00</replaceable></option> <option><replaceable>"Remember to\nSTOP"</replaceable></option></userinput>
3141 <prompt>%</prompt> <userinput><command>kalarm</command> <option>-c <replaceable>0xFF0000</replaceable></option> <option>-t <replaceable>27-22:00</replaceable></option> <option><replaceable>"Remember to\nSTOP"</replaceable></option></userinput>
3142 </screen>
3143 </informalexample>
3145 </sect1>
3147 <sect1 id="cmdline-other">
3148 <title>Other Options</title>
3150 <para>The following options are used to display the
3151 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>, or to control
3152 &kalarm;'s display mode.</para>
3154 <informaltable>
3155 <tgroup cols="2">
3156 <thead>
3157 <row>
3158 <entry>Option</entry>
3159 <entry>Description</entry>
3160 </row>
3161 </thead>
3162 <tbody>
3163 <row>
3164 <entry><option>--edit <replaceable>eventID</replaceable></option></entry>
3165 <entry>Display the Alarm Edit dialog to edit the alarm with the
3166 specified event ID.</entry>
3167 </row>
3168 <row>
3169 <entry><option>--edit-new-audio</option></entry>
3170 <entry>Display the Alarm Edit dialog, in order to edit a new audio
3171 alarm.</entry>
3172 </row>
3173 <row>
3174 <entry><option>--edit-new-command</option></entry>
3175 <entry>Display the Alarm Edit dialog, in order to edit a new command
3176 alarm.</entry>
3177 </row>
3178 <row>
3179 <entry><option>--edit-new-display</option></entry>
3180 <entry>Display the Alarm Edit dialog, in order to edit a new display
3181 alarm.</entry>
3182 </row>
3183 <row>
3184 <entry><option>--edit-new-email</option></entry>
3185 <entry>Display the Alarm Edit dialog, in order to edit a new email
3186 alarm.</entry>
3187 </row>
3188 <row>
3189 <entry><option>--edit-new-preset <replaceable>templateName</replaceable></option></entry>
3190 <entry>Display the Alarm Edit dialog, preset with the alarm template
3191 of the specified name, in order to edit a new alarm.</entry>
3192 </row>
3193 <row>
3194 <entry><option>--tray</option></entry>
3195 <entry>Display &kalarm; as an icon in the system tray.</entry>
3196 </row>
3197 </tbody>
3198 </tgroup>
3199 </informaltable>
3201 </sect1>
3203 <sect1 id="cmdline-help">
3204 <title>Help Options</title>
3206 <para>The following help options are common to all
3207 &kde; programs:</para>
3209 <informaltable>
3210 <tgroup cols="2">
3211 <thead>
3212 <row>
3213 <entry>Option</entry>
3214 <entry>Description</entry>
3215 </row>
3216 </thead>
3217 <tbody>
3218 <row>
3219 <entry><option>--help</option></entry>
3220 <entry>Shows a brief options help text.</entry>
3221 </row>
3222 <row>
3223 <entry><option>--help-qt</option></entry>
3224 <entry>Shows numerous generic &Qt;-specific options.</entry>
3225 </row>
3226 <row>
3227 <entry><option>--help-kde</option></entry>
3228 <entry>Shows numerous generic &kde;-specific options.</entry>
3229 </row>
3230 <row>
3231 <entry><option>--help-all</option></entry>
3232 <entry>Shows all options.</entry>
3233 </row>
3234 <row>
3235 <entry><option>--author</option></entry>
3236 <entry>Shows the names and email addresses of &kalarm; authors.</entry>
3237 </row>
3238 <row>
3239 <entry><option>-v</option>, <option>--version</option></entry>
3240 <entry>Shows the running versions of the &Qt; library , &kde; and
3241 &kalarm;.</entry>
3242 </row>
3243 <row>
3244 <entry><option>--license</option></entry>
3245 <entry>Show license information.</entry>
3246 </row>
3247 </tbody>
3248 </tgroup>
3249 </informaltable>
3251 </sect1>
3252 </chapter>
3254 <chapter id="developers">
3255 <title>Developer's Guide to &kalarm;</title>
3257 <para>&kalarm; provides an interface to allow other applications to
3258 request the following functions:</para>
3260 <itemizedlist>
3261 <listitem><para>schedule a new alarm</para></listitem>
3262 <listitem><para>cancel an already scheduled alarm</para></listitem>
3263 <listitem><para>trigger an already scheduled alarm</para></listitem>
3264 <listitem><para>display the Alarm Edit dialog</para></listitem>
3265 </itemizedlist>
3267 <para>Each of the above functions is implemented both by a &DBus; call
3268 and by the command line. &DBus; calls should be used in preference if
3269 &kalarm; is already running.</para>
3271 <sect1 id="dbus-interface">
3272 <title>&DBus; Interface</title>
3274 <para>The &DBus; calls described in this document are all implemented
3275 in &kalarm;'s <constant>/kalarm</constant> &DBus; object path. The
3276 interface is defined in the files
3277 <filename>org.kde.kalarm.kalarm.xml</filename> and
3278 <filename>kalarmiface.h</filename>.</para>
3280 <refentry id="cancelEvent">
3281 <refmeta>
3282 <refentrytitle>cancelEvent</refentrytitle>
3283 </refmeta>
3284 <refnamediv>
3285 <refname>cancelEvent</refname>
3286 <refpurpose>cancel an already scheduled alarm.</refpurpose>
3287 </refnamediv>
3288 <refsynopsisdiv>
3289 <synopsis>
3290 void cancelEvent(const QString&amp; <replaceable>eventID</replaceable>)
3291 </synopsis>
3293 <refsect2>
3294 <title>Parameters</title>
3295 <variablelist>
3296 <varlistentry>
3297 <term><parameter>eventID</parameter></term>
3298 <listitem>
3299 <para>Specifies the unique ID of the event to be canceled.</para>
3300 </listitem>
3301 </varlistentry>
3302 </variablelist>
3303 </refsect2>
3304 </refsynopsisdiv>
3306 <refsect1>
3307 <title>Description</title>
3309 <para><function>cancelEvent()</function> is a &DBus; call to cancel
3310 the specified alarm. &kalarm; deletes the alarm from the calendar
3311 without displaying or executing it.</para>
3313 </refsect1>
3314 </refentry>
3316 <refentry id="triggerEvent">
3317 <refmeta>
3318 <refentrytitle>triggerEvent</refentrytitle>
3319 </refmeta>
3320 <refnamediv>
3321 <refname>triggerEvent</refname>
3322 <refpurpose>trigger an already scheduled alarm.</refpurpose>
3323 </refnamediv>
3324 <refsynopsisdiv>
3325 <synopsis>
3326 void triggerEvent(const QString&amp; <replaceable>eventID</replaceable>)
3327 </synopsis>
3329 <refsect2>
3330 <title>Parameters</title>
3331 <variablelist>
3332 <varlistentry>
3333 <term><parameter>eventID</parameter></term>
3334 <listitem>
3335 <para>Specifies the unique ID of the event to be triggered.</para>
3336 </listitem>
3337 </varlistentry>
3338 </variablelist>
3339 </refsect2>
3340 </refsynopsisdiv>
3342 <refsect1>
3343 <title>Description</title>
3345 <para><function>triggerEvent()</function> is a &DBus; call to trigger
3346 the immediate display or execution of the specified alarm (regardless
3347 of what time it is scheduled for). &kalarm; retrieves the alarm from
3348 the calendar and then displays or executes it.</para>
3350 <para>If the alarm is already due, &kalarm; then deletes all scheduled
3351 occurrences of the alarm up to the current time, and if no repetitions
3352 of the alarm still remain, the alarm is deleted from the calendar. If
3353 the alarm is not due yet, its scheduled occurrences are left
3354 unchanged.</para>
3356 </refsect1>
3357 </refentry>
3359 <refentry id="scheduleMessage">
3360 <refmeta>
3361 <refentrytitle>scheduleMessage</refentrytitle>
3362 </refmeta>
3363 <refnamediv>
3364 <refname>scheduleMessage</refname>
3365 <refpurpose>schedule a new alarm message.</refpurpose>
3366 </refnamediv>
3367 <refsynopsisdiv>
3368 <synopsis>
3369 bool scheduleMessage(const QString&amp; <replaceable>message</replaceable>,
3370 const QString&amp; <replaceable>startDateTime</replaceable>,
3371 int <replaceable>lateCancel</replaceable>,
3372 unsigned <replaceable>flags</replaceable>,
3373 const QString&amp; <replaceable>bgColor</replaceable>,
3374 const QString&amp; <replaceable>fgColor</replaceable>,
3375 const QString&amp; <replaceable>font</replaceable>,
3376 const QString&amp; <replaceable>audioURL</replaceable>,
3377 int <replaceable>reminderMins</replaceable>,
3378 const QString&amp; <replaceable>recurrence</replaceable>,
3379 int <replaceable>subRepeatInterval</replaceable>,
3380 int <replaceable>subRepeatCount</replaceable>)
3381 </synopsis>
3382 <synopsis>
3383 bool scheduleMessage(const QString&amp; <replaceable>message</replaceable>,
3384 const QString&amp; <replaceable>startDateTime</replaceable>,
3385 int <replaceable>lateCancel</replaceable>,
3386 unsigned <replaceable>flags</replaceable>,
3387 const QString&amp; <replaceable>bgColor</replaceable>,
3388 const QString&amp; <replaceable>fgColor</replaceable>,
3389 const QString&amp; <replaceable>font</replaceable>,
3390 const QString&amp; <replaceable>audioURL</replaceable>,
3391 int <replaceable>reminderMins</replaceable>,
3392 int <replaceable>recurType</replaceable>,
3393 int <replaceable>recurInterval</replaceable>,
3394 int <replaceable>recurCount</replaceable>)
3395 </synopsis>
3396 <synopsis>
3397 bool scheduleMessage(const QString&amp; <replaceable>message</replaceable>,
3398 const QString&amp; <replaceable>startDateTime</replaceable>,
3399 int <replaceable>lateCancel</replaceable>,
3400 unsigned <replaceable>flags</replaceable>,
3401 const QString&amp; <replaceable>bgColor</replaceable>,
3402 const QString&amp; <replaceable>fgColor</replaceable>,
3403 const QString&amp; <replaceable>font</replaceable>,
3404 const QString&amp; <replaceable>audioURL</replaceable>,
3405 int <replaceable>reminderMins</replaceable>,
3406 int <replaceable>recurType</replaceable>,
3407 int <replaceable>recurInterval</replaceable>,
3408 const QString&amp; <replaceable>endDateTime</replaceable>)
3409 </synopsis>
3411 <refsect2>
3412 <title>Parameters</title>
3413 <variablelist>
3414 <varlistentry>
3415 <term><parameter>message</parameter></term>
3416 <listitem>
3417 <para>Specifies the text of the message to be scheduled, or if
3418 <parameter>flags</parameter> has the
3419 <userinput>DISPLAY_COMMAND</userinput> bit set, specifies the command
3420 line to execute to generate the message text.</para>
3421 </listitem>
3422 </varlistentry>
3424 <varlistentry>
3425 <term><parameter>startDateTime</parameter></term>
3426 <listitem>
3427 <para>Specifies the scheduled date, or date and time, at which the
3428 message should be displayed. For a date-only alarm, the string should
3429 be in the format <replaceable>YYYY-MM-DD [TZ]</replaceable> (as
3430 returned by <methodname>QDate::toString(Qt::ISODate)</methodname>). For
3431 an alarm with a date and time, the string should be in the format
3432 <replaceable>YYYY-MM-DDTHH:MM[:SS] [TZ]</replaceable> (as returned by
3433 <methodname>QDateTime::toString(Qt::ISODate)</methodname>) or
3434 <replaceable>HH:MM[:SS] [Clock]</replaceable> (as returned by
3435 <methodname>QTime::toString(Qt::ISODate)</methodname>). If no date is
3436 specified, today's date is used. Note that any seconds value is
3437 ignored.</para>
3439 <para>If no time zone is specified, the local system time zone is
3440 assumed. If a time zone specifier <replaceable>TZ</replaceable> is
3441 present, it may be the name of a system time zone (&eg;
3442 <userinput>Europe/London</userinput>), <userinput>UTC</userinput>
3443 representing the UTC time zone, or <userinput>Clock</userinput> to use
3444 the local computer clock and ignore time zones.</para>
3445 </listitem>
3446 </varlistentry>
3448 <varlistentry>
3449 <term><parameter>lateCancel</parameter></term>
3450 <listitem>
3451 <para>Causes the alarm to be canceled if it cannot be triggered within
3452 the specified number of minutes after the alarm's scheduled time. If
3453 the value is 0, the alarm will not be canceled no matter how late it
3454 is triggered.</para>
3455 </listitem>
3456 </varlistentry>
3458 <varlistentry>
3459 <term><parameter>flags</parameter></term>
3460 <listitem>
3461 <para>Specifies the logical OR of the desired alarm flags. The flag
3462 bits are those defined in class <classname>KAlarmIface</classname> in
3463 <filename>kalarmiface.h</filename>. Note that not all flag bits are
3464 applicable to message alarms.</para>
3465 </listitem>
3466 </varlistentry>
3468 <varlistentry>
3469 <term><parameter>bgColor</parameter></term>
3470 <listitem>
3471 <para>Specifies the background color for displaying the message. The
3472 string may be in the format <quote>#RRGGBB</quote> (as returned by
3473 <methodname>QColor::name()</methodname>) where RR, GG and BB are
3474 two-digit hexadecimal values for red, green and blue. Alternatively
3475 the string may be in any of the other formats accepted by
3476 <methodname>QColor::setNamedColor()</methodname>, such as a name from
3477 the X color database (&eg; <quote>red</quote> or
3478 <quote>steelblue</quote>). Set the string to null to specify the
3479 current default background color.</para>
3480 </listitem>
3481 </varlistentry>
3483 <varlistentry>
3484 <term><parameter>fgColor</parameter></term>
3485 <listitem>
3486 <para>Specifies the foreground color for displaying the message. The
3487 format of the string is the same as for
3488 <parameter>bgColor</parameter>, or alternatively set the string to
3489 null to specify the current default foreground color.</para>
3490 </listitem>
3491 </varlistentry>
3493 <varlistentry>
3494 <term><parameter>font</parameter></term>
3495 <listitem>
3496 <para>Specifies the font for displaying the message. The format of the
3497 string is that output by <methodname>QFont::toString()</methodname>.
3498 Set the string to null to use the default message font current at the
3499 time the message is displayed.</para>
3500 </listitem>
3501 </varlistentry>
3503 <varlistentry>
3504 <term><parameter>audioURL</parameter></term>
3505 <listitem>
3506 <para>Specifies the audio file which is to be played when the message
3507 is displayed. Set the value to null if no audio file is to be
3508 played.</para>
3509 </listitem>
3510 </varlistentry>
3512 <varlistentry>
3513 <term><parameter>reminderMins</parameter></term>
3514 <listitem>
3515 <para>Specifies the number of minutes in advance of the main alarm and
3516 of each of its recurrences (if any) at which a reminder alarm should
3517 be displayed. Specify a negative value for a reminder to be displayed
3518 after the main alarm. Specify 0 if no reminder is required.</para>
3519 </listitem>
3520 </varlistentry>
3522 <varlistentry>
3523 <term><parameter>recurrence</parameter></term>
3524 <listitem>
3525 <para>Specifies a regular recurrence for the alarm, using iCalendar
3526 syntax as defined in
3527 <ulink url="http://www.w3.org/2002/12/cal/rfc2445.html">RFC2445</ulink>.
3528 For example, <quote>FREQ=MONTHLY;COUNT=4;INTERVAL=3;BYDAY=-1MO</quote>
3529 would specify 4 repetitions at 3-monthly intervals on the last Monday
3530 of the month. For a non-recurring alarm, specify an empty
3531 string.</para>
3532 </listitem>
3533 </varlistentry>
3535 <varlistentry>
3536 <term><parameter>recurType</parameter></term>
3537 <listitem>
3538 <para>Specifies the recurrence type for the alarm. The permissible
3539 values are MINUTELY, DAILY, WEEKLY, MONTHLY, YEARLY. These
3540 are defined in class <classname>KAlarmIface</classname> in
3541 <filename>kalarmiface.h</filename>. Monthly recurrences are of the
3542 day of the month type, and yearly recurrences are of the date in
3543 the year type, with the date in both cases taken from the
3544 <parameter>startDateTime</parameter> parameter.</para>
3545 </listitem>
3546 </varlistentry>
3548 <varlistentry>
3549 <term><parameter>recurInterval</parameter></term>
3550 <listitem>
3551 <para>Specifies the number of periods
3552 (minutes/days/weeks/months/years as specified by
3553 <parameter>recurType</parameter>) between recurrences of the
3554 alarm.</para>
3555 </listitem>
3556 </varlistentry>
3558 <varlistentry>
3559 <term><parameter>recurCount</parameter></term>
3560 <listitem>
3561 <para>Specifies the number of times that the alarm should be
3562 repeated. Specify -1 to repeat the alarm indefinitely.</para>
3563 </listitem>
3564 </varlistentry>
3566 <varlistentry>
3567 <term><parameter>endDateTime</parameter></term>
3568 <listitem>
3569 <para>Specifies the end date, or date and time, for recurrences of the
3570 alarm. If <parameter>startDateTime</parameter> includes a time, this
3571 parameter must also include a time; if <parameter>startDateTime</parameter>
3572 contains only a date, this parameter must also contain only a
3573 date. It must not contain a time zone specifier; the same time zone as
3574 for <parameter>startDateTime</parameter> is used to interpret this
3575 parameter's value.</para>
3576 </listitem>
3577 </varlistentry>
3579 <varlistentry>
3580 <term><parameter>subRepeatInterval</parameter></term>
3581 <listitem>
3582 <para>Specifies the number of minutes between sub-repetitions of
3583 the alarm. Specify 0 for no sub-repetition. Ignored if no recurrence
3584 is specified.</para>
3585 </listitem>
3586 </varlistentry>
3588 <varlistentry>
3589 <term><parameter>subRepeatCount</parameter></term>
3590 <listitem>
3591 <para>Specifies the number of sub-repetitions of the alarm,
3592 including the initial occurrence.</para>
3593 </listitem>
3594 </varlistentry>
3595 </variablelist>
3596 </refsect2>
3597 </refsynopsisdiv>
3599 <refsect1 id="scheduleMessage-descrip">
3600 <title>Description</title>
3601 <para><function>scheduleMessage()</function> is a &DBus; call to
3602 schedule the specified alarm message for display at the specified date
3603 and time. It has three forms. The most general form allows an
3604 arbitrary recurrence to be specified &ndash; use this also for
3605 non-repeating alarms. The other forms provide convenient access to a
3606 restricted set of alarm recurrence types, one specifying a repetition
3607 count and the other an end time.</para>
3609 <para>If the scheduled time (including any repetitions) has already
3610 passed, &kalarm; immediately displays the message (unless the
3611 <parameter>lateCancel</parameter> value indicates that it is now too
3612 late to display the alarm, in which case &kalarm; ignores the
3613 request). If the scheduled time (or a repetition) is in the future,
3614 &kalarm; adds the alarm message to the default active alarm calendar
3615 for later display.</para>
3616 </refsect1>
3617 </refentry>
3619 <refentry id="scheduleFile">
3620 <refmeta>
3621 <refentrytitle>scheduleFile</refentrytitle>
3622 </refmeta>
3623 <refnamediv>
3624 <refname>scheduleFile</refname>
3625 <refpurpose>schedule a new alarm which displays the contents of a
3626 text or image file.</refpurpose>
3627 </refnamediv>
3628 <refsynopsisdiv>
3629 <synopsis>
3630 bool scheduleFile(const QString&amp; <replaceable>URL</replaceable>,
3631 const QString&amp; <replaceable>startDateTime</replaceable>,
3632 int <replaceable>lateCancel</replaceable>,
3633 unsigned <replaceable>flags</replaceable>,
3634 const QString&amp; <replaceable>bgColor</replaceable>,
3635 const QString&amp; <replaceable>audioURL</replaceable>,
3636 int <replaceable>reminderMins</replaceable>,
3637 const QString&amp; <replaceable>recurrence</replaceable>,
3638 int <replaceable>subRepeatInterval</replaceable>,
3639 int <replaceable>subRepeatCount</replaceable>)
3640 </synopsis>
3641 <synopsis>
3642 bool scheduleFile(const QString&amp; <replaceable>URL</replaceable>,
3643 const QString&amp; <replaceable>startDateTime</replaceable>,
3644 int <replaceable>lateCancel</replaceable>,
3645 unsigned <replaceable>flags</replaceable>,
3646 const QString&amp; <replaceable>bgColor</replaceable>,
3647 const QString&amp; <replaceable>audioURL</replaceable>,
3648 int <replaceable>reminderMins</replaceable>,
3649 int <replaceable>recurType</replaceable>,
3650 int <replaceable>recurInterval</replaceable>,
3651 int <replaceable>recurCount</replaceable>)
3652 </synopsis>
3653 <synopsis>
3654 bool scheduleFile(const QString&amp; <replaceable>URL</replaceable>,
3655 const QString&amp; <replaceable>startDateTime</replaceable>,
3656 int <replaceable>lateCancel</replaceable>,
3657 unsigned <replaceable>flags</replaceable>,
3658 const QString&amp; <replaceable>bgColor</replaceable>,
3659 const QString&amp; <replaceable>audioURL</replaceable>,
3660 int <replaceable>reminderMins</replaceable>,
3661 int <replaceable>recurType</replaceable>,
3662 int <replaceable>recurInterval</replaceable>,
3663 const QString&amp; <replaceable>endDateTime</replaceable>)
3664 </synopsis>
3666 <refsect2>
3667 <title>Parameters</title>
3668 <variablelist>
3669 <varlistentry>
3670 <term><parameter>URL</parameter></term>
3671 <listitem>
3672 <para>Specifies the text or image file whose contents are to be
3673 displayed in the message to be scheduled.</para>
3674 </listitem>
3675 </varlistentry>
3677 <varlistentry>
3678 <term><parameter>startDateTime</parameter></term>
3679 <listitem>
3680 <para>Specifies the scheduled date, or date and time, at which the
3681 message should be displayed. For a date-only alarm, the string should
3682 be in the format <replaceable>YYYY-MM-DD [TZ]</replaceable> (as
3683 returned by <methodname>QDate::toString(Qt::ISODate)</methodname>). For
3684 an alarm with a date and time, the string should be in the format
3685 <replaceable>YYYY-MM-DDTHH:MM[:SS] [TZ]</replaceable> (as returned by
3686 <methodname>QDateTime::toString(Qt::ISODate)</methodname>) or
3687 <replaceable>HH:MM[:SS] [Clock]</replaceable> (as returned by
3688 <methodname>QTime::toString(Qt::ISODate)</methodname>). If no date is
3689 specified, today's date is used. Note that any seconds value is
3690 ignored.</para>
3692 <para>If no time zone is specified, the local system time zone is
3693 assumed. If a time zone specifier <replaceable>TZ</replaceable> is
3694 present, it may be the name of a system time zone (&eg;
3695 <userinput>Europe/London</userinput>), <userinput>UTC</userinput>
3696 representing the UTC time zone, or <userinput>Clock</userinput> to use
3697 the local computer clock and ignore time zones.</para>
3698 </listitem>
3699 </varlistentry>
3701 <varlistentry>
3702 <term><parameter>lateCancel</parameter></term>
3703 <listitem>
3704 <para>Causes the alarm to be canceled if it cannot be triggered within
3705 the specified number of minutes after the alarm's scheduled time. If
3706 the value is 0, the alarm will not be canceled no matter how late it
3707 is triggered.</para>
3708 </listitem>
3709 </varlistentry>
3711 <varlistentry>
3712 <term><parameter>flags</parameter></term>
3713 <listitem>
3714 <para>Specifies the logical OR of the desired alarm flags. The flag
3715 bits are those defined in class <classname>KAlarmIface</classname> in
3716 <filename>kalarmiface.h</filename>. Note that not all flag bits are
3717 applicable to file alarms.</para>
3718 </listitem>
3719 </varlistentry>
3721 <varlistentry>
3722 <term><parameter>bgColor</parameter></term>
3723 <listitem>
3724 <para>Specifies the background color for displaying the file. The
3725 string may be in the format <quote>#RRGGBB</quote> (as returned by
3726 <methodname>QColor::name()</methodname>) where RR, GG and BB are
3727 two-digit hexadecimal values for red, green and blue. Alternatively
3728 the string may be in any of the other formats accepted by
3729 <methodname>QColor::setNamedColor()</methodname>, such as a name from
3730 the X color database (&eg; <quote>red</quote> or
3731 <quote>steelblue</quote>). Set the string to null to specify the
3732 current default background color.</para>
3733 </listitem>
3734 </varlistentry>
3736 <varlistentry>
3737 <term><parameter>audioURL</parameter></term>
3738 <listitem>
3739 <para>Specifies the audio file which is to be played when the message
3740 is displayed. Set the value to null if no audio file is to be
3741 played.</para>
3742 </listitem>
3743 </varlistentry>
3745 <varlistentry>
3746 <term><parameter>reminderMins</parameter></term>
3747 <listitem>
3748 <para>Specifies the number of minutes in advance of the main alarm and
3749 of each of its recurrences (if any) at which a reminder alarm should
3750 be displayed. Specify a negative value for a reminder to be displayed
3751 after the main alarm. Specify 0 if no reminder is required.</para>
3752 </listitem>
3753 </varlistentry>
3755 <varlistentry>
3756 <term><parameter>recurrence</parameter></term>
3757 <listitem>
3758 <para>Specifies a regular recurrence for the alarm, using iCalendar
3759 syntax as defined in
3760 <ulink url="http://www.w3.org/2002/12/cal/rfc2445.html">RFC2445</ulink>.
3761 For example, <quote>FREQ=MONTHLY;COUNT=4;INTERVAL=3;BYDAY=-1MO</quote>
3762 would specify 4 repetitions at 3-monthly intervals on the last Monday
3763 of the month. For a non-recurring alarm, specify an empty
3764 string.</para>
3765 </listitem>
3766 </varlistentry>
3768 <varlistentry>
3769 <term><parameter>recurType</parameter></term>
3770 <listitem>
3771 <para>Specifies the recurrence type for the alarm. The permissible
3772 values are MINUTELY, DAILY, WEEKLY, MONTHLY, YEARLY. These
3773 are defined in class <classname>KAlarmIface</classname> in
3774 <filename>kalarmiface.h</filename>. Monthly recurrences are of the
3775 day of the month type, and yearly recurrences are of the date in
3776 the year type, with the date in both cases taken from the
3777 <parameter>startDateTime</parameter> parameter.</para>
3778 </listitem>
3779 </varlistentry>
3781 <varlistentry>
3782 <term><parameter>recurInterval</parameter></term>
3783 <listitem>
3784 <para>Specifies the number of periods
3785 (minutes/days/weeks/months/years as specified by
3786 <parameter>recurType</parameter>) between recurrences of the
3787 alarm.</para>
3788 </listitem>
3789 </varlistentry>
3791 <varlistentry>
3792 <term><parameter>recurCount</parameter></term>
3793 <listitem>
3794 <para>Specifies the number of times that the alarm should be
3795 repeated. Specify -1 to repeat the alarm indefinitely.</para>
3796 </listitem>
3797 </varlistentry>
3799 <varlistentry>
3800 <term><parameter>endDateTime</parameter></term>
3801 <listitem>
3802 <para>Specifies the end date, or date and time, for recurrences of the
3803 alarm. If <parameter>startDateTime</parameter> includes a time, this
3804 parameter must also include a time; if <parameter>startDateTime</parameter>
3805 contains only a date, this parameter must also contain only a
3806 date. It must not contain a time zone specifier; the same time zone as
3807 for <parameter>startDateTime</parameter> is used to interpret this
3808 parameter's value.</para>
3809 </listitem>
3810 </varlistentry>
3812 <varlistentry>
3813 <term><parameter>subRepeatInterval</parameter></term>
3814 <listitem>
3815 <para>Specifies the number of minutes between sub-repetitions of
3816 the alarm. Specify 0 for no sub-repetition. Ignored if no recurrence
3817 is specified.</para>
3818 </listitem>
3819 </varlistentry>
3821 <varlistentry>
3822 <term><parameter>subRepeatCount</parameter></term>
3823 <listitem>
3824 <para>Specifies the number of sub-repetitions of the alarm,
3825 including the initial occurrence.</para>
3826 </listitem>
3827 </varlistentry>
3828 </variablelist>
3829 </refsect2>
3830 </refsynopsisdiv>
3832 <refsect1>
3833 <title>Description</title>
3834 <para><function>scheduleFile()</function> is a &DBus; call to schedule
3835 the specified text or image file for display at the specified date and
3836 time. Apart from specifying a file path or &URL; and omitting the
3837 foreground color and font, its usage is identical to
3838 <link linkend="scheduleMessage-descrip"><function>scheduleMessage</function></link>
3839 - see the description of that function for further details.</para>
3840 </refsect1>
3841 </refentry>
3844 <refentry id="scheduleCommand">
3845 <refmeta>
3846 <refentrytitle>scheduleCommand</refentrytitle>
3847 </refmeta>
3848 <refnamediv>
3849 <refname>scheduleCommand</refname>
3850 <refpurpose>schedule a new alarm which executes a shell
3851 command.</refpurpose>
3852 </refnamediv>
3853 <refsynopsisdiv>
3854 <synopsis>
3855 bool scheduleCommand(const QString&amp; <replaceable>commandLine</replaceable>,
3856 const QString&amp; <replaceable>startDateTime</replaceable>,
3857 int <replaceable>lateCancel</replaceable>,
3858 unsigned <replaceable>flags</replaceable>,
3859 const QString&amp; <replaceable>recurrence</replaceable>,
3860 int <replaceable>subRepeatInterval</replaceable>,
3861 int <replaceable>subRepeatCount</replaceable>)
3862 </synopsis>
3863 <synopsis>
3864 bool scheduleCommand(const QString&amp; <replaceable>commandLine</replaceable>,
3865 const QString&amp; <replaceable>startDateTime</replaceable>,
3866 int <replaceable>lateCancel</replaceable>,
3867 unsigned <replaceable>flags</replaceable>,
3868 int <replaceable>recurType</replaceable>,
3869 int <replaceable>recurInterval</replaceable>,
3870 int <replaceable>recurCount</replaceable>)
3871 </synopsis>
3872 <synopsis>
3873 bool scheduleCommand(const QString&amp; <replaceable>commandLine</replaceable>,
3874 const QString&amp; <replaceable>startDateTime</replaceable>,
3875 int <replaceable>lateCancel</replaceable>,
3876 unsigned <replaceable>flags</replaceable>,
3877 int <replaceable>recurType</replaceable>,
3878 int <replaceable>recurInterval</replaceable>,
3879 const QString&amp; <replaceable>endDateTime</replaceable>)
3880 </synopsis>
3882 <refsect2>
3883 <title>Parameters</title>
3884 <variablelist>
3885 <varlistentry>
3886 <term><parameter>commandLine</parameter></term>
3887 <listitem>
3888 <para>Specifies the command whose execution is to be scheduled. The
3889 <parameter>flags</parameter> parameter indicates whether this
3890 parameter contains a shell command line or a command script.</para>
3891 </listitem>
3892 </varlistentry>
3894 <varlistentry>
3895 <term><parameter>startDateTime</parameter></term>
3896 <listitem>
3897 <para>Specifies the scheduled date, or date and time, at which the
3898 message should be displayed. For a date-only alarm, the string should
3899 be in the format <replaceable>YYYY-MM-DD [TZ]</replaceable> (as
3900 returned by <methodname>QDate::toString(Qt::ISODate)</methodname>). For
3901 an alarm with a date and time, the string should be in the format
3902 <replaceable>YYYY-MM-DDTHH:MM[:SS] [TZ]</replaceable> (as returned by
3903 <methodname>QDateTime::toString(Qt::ISODate)</methodname>) or
3904 <replaceable>HH:MM[:SS] [Clock]</replaceable> (as returned by
3905 <methodname>QTime::toString(Qt::ISODate)</methodname>). If no date is
3906 specified, today's date is used. Note that any seconds value is
3907 ignored.</para>
3909 <para>If no time zone is specified, the local system time zone is
3910 assumed. If a time zone specifier <replaceable>TZ</replaceable> is
3911 present, it may be the name of a system time zone (&eg;
3912 <userinput>Europe/London</userinput>), <userinput>UTC</userinput>
3913 representing the UTC time zone, or <userinput>Clock</userinput> to use
3914 the local computer clock and ignore time zones.</para>
3915 </listitem>
3916 </varlistentry>
3918 <varlistentry>
3919 <term><parameter>lateCancel</parameter></term>
3920 <listitem>
3921 <para>Causes the alarm to be canceled if it cannot be triggered within
3922 the specified number of minutes after the alarm's scheduled time. If
3923 the value is 0, the alarm will not be canceled no matter how late it
3924 is triggered.</para>
3925 </listitem>
3926 </varlistentry>
3928 <varlistentry>
3929 <term><parameter>flags</parameter></term>
3930 <listitem>
3931 <para>Specifies the logical OR of the desired alarm flags. The flag
3932 bits are those defined in class <classname>KAlarmIface</classname> in
3933 <filename>kalarmiface.h</filename>. Note that not all flag bits are
3934 applicable to command alarms.</para>
3935 </listitem>
3936 </varlistentry>
3938 <varlistentry>
3939 <term><parameter>recurrence</parameter></term>
3940 <listitem>
3941 <para>Specifies a regular recurrence for the alarm, using iCalendar
3942 syntax as defined in
3943 <ulink url="http://www.w3.org/2002/12/cal/rfc2445.html">RFC2445</ulink>.
3944 For example, <quote>FREQ=MONTHLY;COUNT=4;INTERVAL=3;BYDAY=-1MO</quote>
3945 would specify 4 repetitions at 3-monthly intervals on the last Monday
3946 of the month. For a non-recurring alarm, specify an empty
3947 string.</para>
3948 </listitem>
3949 </varlistentry>
3951 <varlistentry>
3952 <term><parameter>recurType</parameter></term>
3953 <listitem>
3954 <para>Specifies the recurrence type for the alarm. The permissible
3955 values are MINUTELY, DAILY, WEEKLY, MONTHLY, YEARLY. These
3956 are defined in class <classname>KAlarmIface</classname> in
3957 <filename>kalarmiface.h</filename>. Monthly recurrences are of the
3958 day of the month type, and yearly recurrences are of the date in
3959 the year type, with the date in both cases taken from the
3960 <parameter>startDateTime</parameter> parameter.</para>
3961 </listitem>
3962 </varlistentry>
3964 <varlistentry>
3965 <term><parameter>recurInterval</parameter></term>
3966 <listitem>
3967 <para>Specifies the number of periods
3968 (minutes/days/weeks/months/years as specified by
3969 <parameter>recurType</parameter>) between recurrences of the
3970 alarm.</para>
3971 </listitem>
3972 </varlistentry>
3974 <varlistentry>
3975 <term><parameter>recurCount</parameter></term>
3976 <listitem>
3977 <para>Specifies the number of times that the alarm should be
3978 repeated. Specify -1 to repeat the alarm indefinitely.</para>
3979 </listitem>
3980 </varlistentry>
3982 <varlistentry>
3983 <term><parameter>endDateTime</parameter></term>
3984 <listitem>
3985 <para>Specifies the end date, or date and time, for recurrences of the
3986 alarm. If <parameter>startDateTime</parameter> includes a time, this
3987 parameter must also include a time; if <parameter>startDateTime</parameter>
3988 contains only a date, this parameter must also contain only a
3989 date. It must not contain a time zone specifier; the same time zone as
3990 for <parameter>startDateTime</parameter> is used to interpret this
3991 parameter's value.</para>
3992 </listitem>
3993 </varlistentry>
3995 <varlistentry>
3996 <term><parameter>subRepeatInterval</parameter></term>
3997 <listitem>
3998 <para>Specifies the number of minutes between sub-repetitions of
3999 the alarm. Specify 0 for no sub-repetition. Ignored if no recurrence
4000 is specified.</para>
4001 </listitem>
4002 </varlistentry>
4004 <varlistentry>
4005 <term><parameter>subRepeatCount</parameter></term>
4006 <listitem>
4007 <para>Specifies the number of sub-repetitions of the alarm,
4008 including the initial occurrence.</para>
4009 </listitem>
4010 </varlistentry>
4011 </variablelist>
4012 </refsect2>
4013 </refsynopsisdiv>
4015 <refsect1>
4016 <title>Description</title>
4017 <para><function>scheduleCommand()</function> is a &DBus; call to
4018 schedule the specified shell command line, or command script, for
4019 execution at the specified date and time. Apart from specifying a
4020 command and omitting the message color, font and audio file
4021 parameters, its usage is identical to
4022 <link linkend="scheduleMessage-descrip"><function>scheduleMessage</function></link>
4023 - see the description of that function for further details.</para>
4024 </refsect1>
4025 </refentry>
4028 <refentry id="scheduleEmail">
4029 <refmeta>
4030 <refentrytitle>scheduleEmail</refentrytitle>
4031 </refmeta>
4032 <refnamediv>
4033 <refname>scheduleEmail</refname>
4034 <refpurpose>schedule a new alarm which sends an email.</refpurpose>
4035 </refnamediv>
4036 <refsynopsisdiv>
4037 <synopsis>
4038 bool scheduleEmail(const QString&amp; <replaceable>fromID</replaceable>,
4039 const QString&amp; <replaceable>addresses</replaceable>,
4040 const QString&amp; <replaceable>subject</replaceable>,
4041 const QString&amp; <replaceable>message</replaceable>,
4042 const QString&amp; <replaceable>attachments</replaceable>,
4043 const QString&amp; <replaceable>startDateTime</replaceable>,
4044 int <replaceable>lateCancel</replaceable>,
4045 unsigned <replaceable>flags</replaceable>,
4046 const QString&amp; <replaceable>recurrence</replaceable>,
4047 int <replaceable>subRepeatInterval</replaceable>,
4048 int <replaceable>subRepeatCount</replaceable>)
4049 </synopsis>
4050 <synopsis>
4051 bool scheduleEmail(const QString&amp; <replaceable>fromID</replaceable>,
4052 const QString&amp; <replaceable>addresses</replaceable>,
4053 const QString&amp; <replaceable>subject</replaceable>,
4054 const QString&amp; <replaceable>message</replaceable>,
4055 const QString&amp; <replaceable>attachments</replaceable>,
4056 const QString&amp; <replaceable>startDateTime</replaceable>,
4057 int <replaceable>lateCancel</replaceable>,
4058 unsigned <replaceable>flags</replaceable>,
4059 int <replaceable>recurType</replaceable>,
4060 int <replaceable>recurInterval</replaceable>,
4061 int <replaceable>recurCount</replaceable>)
4062 </synopsis>
4063 <synopsis>
4064 bool scheduleEmail(const QString&amp; <replaceable>fromID</replaceable>,
4065 const QString&amp; <replaceable>addresses</replaceable>,
4066 const QString&amp; <replaceable>subject</replaceable>,
4067 const QString&amp; <replaceable>message</replaceable>,
4068 const QString&amp; <replaceable>attachments</replaceable>,
4069 const QString&amp; <replaceable>startDateTime</replaceable>,
4070 int <replaceable>lateCancel</replaceable>,
4071 unsigned <replaceable>flags</replaceable>,
4072 int <replaceable>recurType</replaceable>,
4073 int <replaceable>recurInterval</replaceable>,
4074 const QString&amp; <replaceable>endTime</replaceable>)
4075 </synopsis>
4077 <refsect2>
4078 <title>Parameters</title>
4079 <variablelist>
4080 <varlistentry>
4081 <term><parameter>fromID</parameter></term>
4082 <listitem>
4083 <para>The &kmail; identity to use as the sender of the email. If
4084 empty, the sender's email address will be that configured in
4085 &kalarm;'s
4086 <link linkend="preferences-email">Email preferences</link>.</para>
4087 </listitem>
4088 </varlistentry>
4090 <varlistentry>
4091 <term><parameter>addresses</parameter></term>
4092 <listitem>
4093 <para>A comma separated list of recipients' email addresses.</para>
4094 </listitem>
4095 </varlistentry>
4097 <varlistentry>
4098 <term><parameter>subject</parameter></term>
4099 <listitem>
4100 <para>Specifies the subject line of the email.</para>
4101 </listitem>
4102 </varlistentry>
4104 <varlistentry>
4105 <term><parameter>message</parameter></term>
4106 <listitem>
4107 <para>Specifies the email message body.</para>
4108 </listitem>
4109 </varlistentry>
4111 <varlistentry>
4112 <term><parameter>attachments</parameter></term>
4113 <listitem>
4114 <para>A comma-separated list of paths or &URL;s of files to send as
4115 email attachments.</para>
4116 </listitem>
4117 </varlistentry>
4119 <varlistentry>
4120 <term><parameter>startDateTime</parameter></term>
4121 <listitem>
4122 <para>Specifies the scheduled date, or date and time, at which the
4123 message should be displayed. For a date-only alarm, the string should
4124 be in the format <replaceable>YYYY-MM-DD [TZ]</replaceable> (as
4125 returned by <methodname>QDate::toString(Qt::ISODate)</methodname>). For
4126 an alarm with a date and time, the string should be in the format
4127 <replaceable>YYYY-MM-DDTHH:MM[:SS] [TZ]</replaceable> (as returned by
4128 <methodname>QDateTime::toString(Qt::ISODate)</methodname>) or
4129 <replaceable>HH:MM[:SS] [Clock]</replaceable> (as returned by
4130 <methodname>QTime::toString(Qt::ISODate)</methodname>). If no date is
4131 specified, today's date is used. Note that any seconds value is
4132 ignored.</para>
4134 <para>If no time zone is specified, the local system time zone is
4135 assumed. If a time zone specifier <replaceable>TZ</replaceable> is
4136 present, it may be the name of a system time zone (&eg;
4137 <userinput>Europe/London</userinput>), <userinput>UTC</userinput>
4138 representing the UTC time zone, or <userinput>Clock</userinput> to use
4139 the local computer clock and ignore time zones.</para>
4140 </listitem>
4141 </varlistentry>
4143 <varlistentry>
4144 <term><parameter>lateCancel</parameter></term>
4145 <listitem>
4146 <para>Causes the alarm to be canceled if it cannot be triggered within
4147 the specified number of minutes after the alarm's scheduled time. If
4148 the value is 0, the alarm will not be canceled no matter how late it
4149 is triggered.</para>
4150 </listitem>
4151 </varlistentry>
4153 <varlistentry>
4154 <term><parameter>flags</parameter></term>
4155 <listitem>
4156 <para>Specifies the logical OR of the desired alarm flags. The flag
4157 bits are those defined in class <classname>KAlarmIface</classname> in
4158 <filename>kalarmiface.h</filename>. Note that not all flag bits are
4159 applicable to email alarms.</para>
4160 </listitem>
4161 </varlistentry>
4163 <varlistentry>
4164 <term><parameter>recurrence</parameter></term>
4165 <listitem>
4166 <para>Specifies a regular recurrence for the alarm, using iCalendar
4167 syntax as defined in
4168 <ulink url="http://www.w3.org/2002/12/cal/rfc2445.html">RFC2445</ulink>.
4169 For example, <quote>FREQ=MONTHLY;COUNT=4;INTERVAL=3;BYDAY=-1MO</quote>
4170 would specify 4 repetitions at 3-monthly intervals on the last Monday
4171 of the month. For a non-recurring alarm, specify an empty
4172 string.</para>
4173 </listitem>
4174 </varlistentry>
4176 <varlistentry>
4177 <term><parameter>recurType</parameter></term>
4178 <listitem>
4179 <para>Specifies the recurrence type for the alarm. The permissible
4180 values are MINUTELY, DAILY, WEEKLY, MONTHLY, YEARLY. These
4181 are defined in class <classname>KAlarmIface</classname> in
4182 <filename>kalarmiface.h</filename>. Monthly recurrences are of the
4183 day of the month type, and yearly recurrences are of the date in
4184 the year type, with the date in both cases taken from the
4185 <parameter>startDateTime</parameter> parameter.</para>
4186 </listitem>
4187 </varlistentry>
4189 <varlistentry>
4190 <term><parameter>recurInterval</parameter></term>
4191 <listitem>
4192 <para>Specifies the number of periods
4193 (minutes/days/weeks/months/years as specified by
4194 <parameter>recurType</parameter>) between recurrences of the
4195 alarm.</para>
4196 </listitem>
4197 </varlistentry>
4199 <varlistentry>
4200 <term><parameter>recurCount</parameter></term>
4201 <listitem>
4202 <para>Specifies the number of times that the alarm should be
4203 repeated. Specify -1 to repeat the alarm indefinitely.</para>
4204 </listitem>
4205 </varlistentry>
4207 <varlistentry>
4208 <term><parameter>endDateTime</parameter></term>
4209 <listitem>
4210 <para>Specifies the end date, or date and time, for recurrences of the
4211 alarm. If <parameter>startDateTime</parameter> includes a time, this
4212 parameter must also include a time; if <parameter>startDateTime</parameter>
4213 contains only a date, this parameter must also contain only a
4214 date. It must not contain a time zone specifier; the same time zone as
4215 for <parameter>startDateTime</parameter> is used to interpret this
4216 parameter's value.</para>
4217 </listitem>
4218 </varlistentry>
4220 <varlistentry>
4221 <term><parameter>subRepeatInterval</parameter></term>
4222 <listitem>
4223 <para>Specifies the number of minutes between sub-repetitions of
4224 the alarm. Specify 0 for no sub-repetition. Ignored if no recurrence
4225 is specified.</para>
4226 </listitem>
4227 </varlistentry>
4229 <varlistentry>
4230 <term><parameter>subRepeatCount</parameter></term>
4231 <listitem>
4232 <para>Specifies the number of sub-repetitions of the alarm,
4233 including the initial occurrence.</para>
4234 </listitem>
4235 </varlistentry>
4236 </variablelist>
4237 </refsect2>
4238 </refsynopsisdiv>
4240 <refsect1>
4241 <title>Description</title>
4242 <para><function>scheduleEmail()</function> is a &DBus; call to
4243 schedule the specified email for sending at the specified date and
4244 time. Apart from specifying the email header and contents and omitting
4245 the message color, font and audio file parameters, its usage is
4246 identical to
4247 <link linkend="scheduleMessage-descrip"><function>scheduleMessage</function></link>
4248 - see the description of that function for further details.</para>
4249 </refsect1>
4250 </refentry>
4253 <refentry id="scheduleAudio">
4254 <refmeta>
4255 <refentrytitle>scheduleAudio</refentrytitle>
4256 </refmeta>
4257 <refnamediv>
4258 <refname>scheduleAudio</refname>
4259 <refpurpose>schedule a new alarm which executes a shell
4260 command.</refpurpose>
4261 </refnamediv>
4262 <refsynopsisdiv>
4263 <synopsis>
4264 bool scheduleAudio(const QString&amp; <replaceable>audioURL</replaceable>,
4265 int <replaceable>volumePercent</replaceable>,
4266 const QString&amp; <replaceable>startDateTime</replaceable>,
4267 int <replaceable>lateCancel</replaceable>,
4268 unsigned <replaceable>flags</replaceable>,
4269 const QString&amp; <replaceable>recurrence</replaceable>,
4270 int <replaceable>subRepeatInterval</replaceable>,
4271 int <replaceable>subRepeatCount</replaceable>)
4272 </synopsis>
4273 <synopsis>
4274 bool scheduleAudio(const QString&amp; <replaceable>audioURL</replaceable>,
4275 int <replaceable>volumePercent</replaceable>,
4276 const QString&amp; <replaceable>startDateTime</replaceable>,
4277 int <replaceable>lateCancel</replaceable>,
4278 unsigned <replaceable>flags</replaceable>,
4279 int <replaceable>recurType</replaceable>,
4280 int <replaceable>recurInterval</replaceable>,
4281 int <replaceable>recurCount</replaceable>)
4282 </synopsis>
4283 <synopsis>
4284 bool scheduleAudio(const QString&amp; <replaceable>audioURL</replaceable>,
4285 int <replaceable>volumePercent</replaceable>,
4286 const QString&amp; <replaceable>startDateTime</replaceable>,
4287 int <replaceable>lateCancel</replaceable>,
4288 unsigned <replaceable>flags</replaceable>,
4289 int <replaceable>recurType</replaceable>,
4290 int <replaceable>recurInterval</replaceable>,
4291 const QString&amp; <replaceable>endDateTime</replaceable>)
4292 </synopsis>
4294 <refsect2>
4295 <title>Parameters</title>
4296 <variablelist>
4297 <varlistentry>
4298 <term><parameter>audioURL</parameter></term>
4299 <listitem>
4300 <para>Specifies the audio file which is to be played.</para>
4301 </listitem>
4302 </varlistentry>
4304 <varlistentry>
4305 <term><parameter>volumePercent</parameter></term>
4306 <listitem>
4307 <para>Specifies the volume level to use, as a percentage of full
4308 volume. Specify -1 to use the default volume.</para>
4309 </listitem>
4310 </varlistentry>
4312 <varlistentry>
4313 <term><parameter>startDateTime</parameter></term>
4314 <listitem>
4315 <para>Specifies the scheduled date, or date and time, at which the
4316 message should be displayed. For a date-only alarm, the string should
4317 be in the format <replaceable>YYYY-MM-DD [TZ]</replaceable> (as
4318 returned by <methodname>QDate::toString(Qt::ISODate)</methodname>). For
4319 an alarm with a date and time, the string should be in the format
4320 <replaceable>YYYY-MM-DDTHH:MM[:SS] [TZ]</replaceable> (as returned by
4321 <methodname>QDateTime::toString(Qt::ISODate)</methodname>) or
4322 <replaceable>HH:MM[:SS] [Clock]</replaceable> (as returned by
4323 <methodname>QTime::toString(Qt::ISODate)</methodname>). If no date is
4324 specified, today's date is used. Note that any seconds value is
4325 ignored.</para>
4327 <para>If no time zone is specified, the local system time zone is
4328 assumed. If a time zone specifier <replaceable>TZ</replaceable> is
4329 present, it may be the name of a system time zone (&eg;
4330 <userinput>Europe/London</userinput>), <userinput>UTC</userinput>
4331 representing the UTC time zone, or <userinput>Clock</userinput> to use
4332 the local computer clock and ignore time zones.</para>
4333 </listitem>
4334 </varlistentry>
4336 <varlistentry>
4337 <term><parameter>lateCancel</parameter></term>
4338 <listitem>
4339 <para>Causes the alarm to be canceled if it cannot be triggered within
4340 the specified number of minutes after the alarm's scheduled time. If
4341 the value is 0, the alarm will not be canceled no matter how late it
4342 is triggered.</para>
4343 </listitem>
4344 </varlistentry>
4346 <varlistentry>
4347 <term><parameter>flags</parameter></term>
4348 <listitem>
4349 <para>Specifies the logical OR of the desired alarm flags. The flag
4350 bits are those defined in class <classname>KAlarmIface</classname> in
4351 <filename>kalarmiface.h</filename>. Note that not all flag bits are
4352 applicable to command alarms.</para>
4353 </listitem>
4354 </varlistentry>
4356 <varlistentry>
4357 <term><parameter>recurrence</parameter></term>
4358 <listitem>
4359 <para>Specifies a regular recurrence for the alarm, using iCalendar
4360 syntax as defined in
4361 <ulink url="http://www.w3.org/2002/12/cal/rfc2445.html">RFC2445</ulink>.
4362 For example, <quote>FREQ=MONTHLY;COUNT=4;INTERVAL=3;BYDAY=-1MO</quote>
4363 would specify 4 repetitions at 3-monthly intervals on the last Monday
4364 of the month. For a non-recurring alarm, specify an empty
4365 string.</para>
4366 </listitem>
4367 </varlistentry>
4369 <varlistentry>
4370 <term><parameter>recurType</parameter></term>
4371 <listitem>
4372 <para>Specifies the recurrence type for the alarm. The permissible
4373 values are MINUTELY, DAILY, WEEKLY, MONTHLY, YEARLY. These
4374 are defined in class <classname>KAlarmIface</classname> in
4375 <filename>kalarmiface.h</filename>. Monthly recurrences are of the
4376 day of the month type, and yearly recurrences are of the date in
4377 the year type, with the date in both cases taken from the
4378 <parameter>startDateTime</parameter> parameter.</para>
4379 </listitem>
4380 </varlistentry>
4382 <varlistentry>
4383 <term><parameter>recurInterval</parameter></term>
4384 <listitem>
4385 <para>Specifies the number of periods
4386 (minutes/days/weeks/months/years as specified by
4387 <parameter>recurType</parameter>) between recurrences of the
4388 alarm.</para>
4389 </listitem>
4390 </varlistentry>
4392 <varlistentry>
4393 <term><parameter>recurCount</parameter></term>
4394 <listitem>
4395 <para>Specifies the number of times that the alarm should be
4396 repeated. Specify -1 to repeat the alarm indefinitely.</para>
4397 </listitem>
4398 </varlistentry>
4400 <varlistentry>
4401 <term><parameter>endDateTime</parameter></term>
4402 <listitem>
4403 <para>Specifies the end date, or date and time, for recurrences of the
4404 alarm. If <parameter>startDateTime</parameter> includes a time, this
4405 parameter must also include a time; if <parameter>startDateTime</parameter>
4406 contains only a date, this parameter must also contain only a
4407 date. It must not contain a time zone specifier; the same time zone as
4408 for <parameter>startDateTime</parameter> is used to interpret this
4409 parameter's value.</para>
4410 </listitem>
4411 </varlistentry>
4413 <varlistentry>
4414 <term><parameter>subRepeatInterval</parameter></term>
4415 <listitem>
4416 <para>Specifies the number of minutes between sub-repetitions of
4417 the alarm. Specify 0 for no sub-repetition. Ignored if no recurrence
4418 is specified.</para>
4419 </listitem>
4420 </varlistentry>
4422 <varlistentry>
4423 <term><parameter>subRepeatCount</parameter></term>
4424 <listitem>
4425 <para>Specifies the number of sub-repetitions of the alarm,
4426 including the initial occurrence.</para>
4427 </listitem>
4428 </varlistentry>
4429 </variablelist>
4430 </refsect2>
4431 </refsynopsisdiv>
4433 <refsect1>
4434 <title>Description</title>
4435 <para><function>scheduleAudio()</function> is a &DBus; call to
4436 schedule the specified audio file to be played at the specified date
4437 and time. Apart from specifying a volume and omitting the message
4438 color and font parameters, its usage is identical to
4439 <link linkend="scheduleMessage-descrip"><function>scheduleMessage</function></link>
4440 - see the description of that function for further details.</para>
4441 </refsect1>
4442 </refentry>
4444 <refentry id="dbus_edit">
4445 <refmeta>
4446 <refentrytitle>edit</refentrytitle>
4447 </refmeta>
4448 <refnamediv>
4449 <refname>edit</refname>
4450 <refpurpose>Display the <link linkend="alarm-edit-dlg">Alarm Edit
4451 dialog</link> to edit an alarm.</refpurpose>
4452 </refnamediv>
4453 <refsynopsisdiv>
4454 <synopsis>
4455 bool edit(const QString&amp; <replaceable>eventID</replaceable>)
4456 </synopsis>
4458 <refsect2>
4459 <title>Parameters</title>
4460 <variablelist>
4461 <varlistentry>
4462 <term><parameter>eventID</parameter></term>
4463 <listitem>
4464 <para>Specifies the unique ID of the event to be edited.</para>
4465 </listitem>
4466 </varlistentry>
4467 </variablelist>
4468 </refsect2>
4470 <refsect2>
4471 <title>Return value</title>
4472 <para><returnvalue>false</returnvalue> if the specified
4473 alarm could not be found or is read-only,
4474 <returnvalue>true</returnvalue> otherwise.</para>
4475 </refsect2>
4476 </refsynopsisdiv>
4478 <refsect1>
4479 <title>Description</title>
4481 <para><function>edit()</function> is a &DBus; call to display the
4482 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> to edit the
4483 specified alarm.</para>
4485 </refsect1>
4486 </refentry>
4488 <refentry id="dbus_editnew">
4489 <refmeta>
4490 <refentrytitle>editNew</refentrytitle>
4491 </refmeta>
4492 <refnamediv>
4493 <refname>editNew</refname>
4494 <refpurpose>Display the <link linkend="alarm-edit-dlg">Alarm Edit
4495 dialog</link> to edit a new alarm.</refpurpose>
4496 </refnamediv>
4497 <refsynopsisdiv>
4498 <synopsis>
4499 bool editNew(int <replaceable>type</replaceable>)
4500 </synopsis>
4501 <synopsis>
4502 bool editNew(const QString&amp; <replaceable>templateName</replaceable>)
4503 </synopsis>
4505 <refsect2>
4506 <title>Parameters</title>
4507 <variablelist>
4508 <varlistentry>
4509 <term><parameter>type</parameter></term>
4510 <listitem>
4511 <para>Specifies the alarm type. The permissible values are DISPLAY,
4512 COMMAND, EMAIL, AUDIO. These are defined in class
4513 <classname>KAlarmIface</classname> in
4514 <filename>kalarmiface.h</filename>.</para>
4515 </listitem>
4516 </varlistentry>
4518 <varlistentry>
4519 <term><parameter>templateName</parameter></term>
4520 <listitem>
4521 <para>Specifies the name of an alarm template to base the new alarm
4522 on.</para>
4523 </listitem>
4524 </varlistentry>
4525 </variablelist>
4526 </refsect2>
4528 <refsect2>
4529 <title>Return value</title>
4530 <para><returnvalue>false</returnvalue> if <parameter>type</parameter>
4531 has an invalid value, or if no template with the name
4532 <parameter>templateName</parameter> can be found;
4533 <returnvalue>true</returnvalue> otherwise.</para>
4534 </refsect2>
4535 </refsynopsisdiv>
4537 <refsect1>
4538 <title>Description</title>
4540 <para><function>editNew()</function> is a &DBus; call to display the
4541 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> to edit a new
4542 alarm. If an alarm type is specified as a parameter, a blank dialog is
4543 displayed. Alternatively, if an alarm template name is specified as a
4544 parameter, the dialog is preset with details from the template.</para>
4546 </refsect1>
4547 </refentry>
4549 </sect1>
4551 <sect1 id="cmdline-interface">
4552 <title>Command Line Interface</title>
4554 <para>Command line options are provided to enable other programs to
4555 start up &kalarm; if it is not already running, in order to trigger or
4556 cancel scheduled alarms, or schedule new alarms. The reason for using
4557 command line options for this purpose is that if &kalarm; were started
4558 without any command line parameters and then sent &DBus; requests, it
4559 would start in its default graphical mode, which is clearly undesirable
4560 for an inter-program request.</para>
4562 <note><para>Programs should first check whether &kalarm; is already
4563 running; if it is, they should instead use &DBus; calls to request these
4564 operations.</para></note>
4566 <para>The command line options for scheduling a new alarm are as
4567 described in the chapter <link linkend="cmdline-operation">Command Line
4568 Operation</link>. The options for triggering and canceling scheduled
4569 alarms are as follows:</para>
4571 <note><para>Normal users may also if they wish use these command line
4572 options (assuming that they can supply the necessary parameter
4573 information).</para></note>
4575 <informaltable>
4576 <tgroup cols="2">
4577 <thead>
4578 <row>
4579 <entry>Option</entry>
4580 <entry>Description</entry>
4581 </row>
4582 </thead>
4583 <tbody>
4584 <row>
4585 <entry><option>--cancelEvent <replaceable>eventID</replaceable></option></entry>
4586 <entry>Cancel the alarm with the specified event ID.
4587 <option>--triggerEvent</option> cannot be specified with this
4588 option.</entry>
4589 </row>
4590 <row>
4591 <entry><option>--triggerEvent <replaceable>eventID</replaceable></option></entry>
4592 <entry>Trigger the alarm with the specified event ID. The action
4593 taken is the same as for the
4594 <link linkend="triggerEvent">triggerEvent()</link> &DBus; call.
4595 <option>--cancelEvent</option> cannot be specified with this
4596 option.</entry>
4597 </row>
4598 </tbody>
4599 </tgroup>
4600 </informaltable>
4602 <para>Examples are:</para>
4604 <informalexample><screen>
4605 <prompt>%</prompt> <userinput><command>kalarm</command> <option>--triggerEvent <replaceable>&kalarm;-387486299.702</replaceable></option></userinput>
4606 <prompt>%</prompt> <userinput><command>kalarm</command> <option>--cancelEvent <replaceable>&kalarm;-388886299.793</replaceable></option></userinput>
4607 </screen>
4608 </informalexample>
4610 </sect1>
4611 </chapter>
4614 <chapter id="faq">
4615 <title>Questions and Answers</title>
4617 &reporting.bugs;
4618 &updating.documentation;
4620 <qandaset id="faqlist">
4621 <qandaentry>
4622 <question>
4623 <para>What configuration files does &kalarm; use?</para>
4624 </question>
4625 <answer>
4626 <para><filename>$KDEHOME/share/config/kalarmrc</filename>
4627 holds your &kalarm; preferences.</para>
4628 <para>
4629 <filename>$KDEHOME/share/config/kresources/alarms/stdrc</filename>
4630 holds your alarm calendar configuration.</para>
4632 <para>($<envar>KDEHOME</envar> is usually
4633 <filename class="directory">&tilde;/.kde</filename> or similar.)</para>
4634 </answer>
4635 </qandaentry>
4637 <qandaentry>
4638 <question>
4639 <para>Where does &kalarm; store its alarms?</para>
4640 </question>
4641 <answer>
4643 <para>The names of the calendar files which &kalarm; creates the first
4644 time it is run are as follows (but these may be overridden by entries
4645 in the <parameter>General</parameter> section of &kalarm;'s preferences
4646 file):</para>
4648 <itemizedlist>
4649 <listitem>
4650 <para><filename>$KDEHOME/share/apps/kalarm/calendar.ics</filename>
4651 holds active alarms (overridable by the
4652 <parameter>Calendar</parameter> entry).</para>
4653 </listitem>
4655 <listitem>
4656 <para><filename>$KDEHOME/share/apps/kalarm/expired.ics</filename>
4657 holds archived alarms (overridable by the
4658 <parameter>ExpiredCalendar</parameter> entry).</para>
4659 </listitem>
4661 <listitem>
4662 <para><filename>$KDEHOME/share/apps/kalarm/template.ics</filename>
4663 holds alarm templates (overridable by the
4664 <parameter>TemplateCalendar</parameter> entry).</para>
4665 </listitem>
4666 </itemizedlist>
4668 <para>You can find out which calendar files are currently in use by
4669 viewing each calendar's details in the alarm calendars list. The file
4670 names are stored in the alarm calendar configuration file.</para>
4672 <para>Details of alarms currently being displayed are stored in the
4673 calendar file
4674 <filename>$KDEHOME/share/apps/kalarm/displaying.ics</filename>.</para>
4675 </answer>
4676 </qandaentry>
4678 <qandaentry>
4679 <question>
4680 <para>What format are alarms stored in?</para>
4681 </question>
4682 <answer>
4683 <para>The calendar files in which &kalarm; stores its alarms are text
4684 files whose format is defined by the document
4685 <ulink url="http://www.w3.org/2002/12/cal/rfc2445.html">RFC2445 -
4686 Internet Calendaring and Scheduling Core Object Specification
4687 (iCalendar)</ulink>. This is the standard format used by all kdepim
4688 applications. &kalarm; uses certain non-standard properties, in
4689 conformance with RFC2445. These are documented in the
4690 <filename>DESIGN.html</filename> file which is distributed with
4691 &kalarm;.</para>
4692 </answer>
4693 </qandaentry>
4695 <qandaentry>
4696 <question>
4697 <para>What is the program <application>kalarmautostart</application>?</para>
4698 </question>
4699 <answer>
4700 <para><application>kalarmautostart</application> is a little helper
4701 program whose function is to autostart &kalarm; at login.</para>
4703 <para>&kalarm; is usually restored by the session manager at login
4704 (to redisplay its windows in the same state as they were when you
4705 logged off). But if it was not running when you logged off, it would
4706 not be started by the session manager and therefore needs to be
4707 autostarted. The problem is that when an application is both session
4708 managed and autostarted, there is no guarantee as to which will occur
4709 first. If autostart gets in first, it will prevent the session manager
4710 from restoring the application's state.</para>
4712 <para>To avoid this problem,
4713 <application>kalarmautostart</application> is autostarted at login
4714 instead of &kalarm;. All it does is wait for a short time (to ensure
4715 that the session manager has time to do its job) before starting
4716 &kalarm;, at which point it terminates.</para>
4717 </answer>
4718 </qandaentry>
4720 </qandaset>
4721 </chapter>
4724 <chapter id="credits">
4726 <title>Credits and License</title>
4728 <para>
4729 &kalarm;
4730 </para>
4731 <para>
4732 Program copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 &David.Jarvie; &David.Jarvie.mail;
4733 </para>
4735 <para>
4736 Documentation copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 &David.Jarvie; &David.Jarvie.mail;
4737 </para>
4739 <!-- TRANS:CREDIT_FOR_TRANSLATORS -->
4741 &underFDL; <!-- FDL: do not remove -->
4743 &underGPL; <!-- GPL License -->
4745 <para>Thanks go to the author of the &kde; 1 KAlarm application,
4746 Stefan Nikolaus <email>stefan.nikolaus@stuco.uni-oldenburg.de</email>,
4747 who kindly agreed to allow the name &kalarm; to be used by this
4748 application, which has been available for &kde; 2 onwards.
4749 </para>
4751 </chapter>
4753 <appendix id="installation">
4754 <title>Installation</title>
4756 <sect1 id="getting-kalarm">
4757 <title>How to Obtain &kalarm;</title>
4759 &install.intro.documentation;
4761 <para>&kalarm; is also available as a standalone package for &kde; 4,
4762 as well as older versions for &kde; 3 and &kde; 2, from
4763 <ulink url="http://www.astrojar.org.uk/kalarm">http://www.astrojar.org.uk/kalarm</ulink>
4764 </para>
4766 </sect1>
4768 <sect1 id="requirements">
4769 <title>Requirements</title>
4771 <para>&kalarm; requires the standard &kde; libraries to be installed
4772 (the <filename>kdelibs</filename> and <filename>kdepimlibs</filename>
4773 packages), plus the <filename>kdebase/runtime</filename> package. To
4774 compile from source, you also need the relevant library development
4775 packages, and the &Qt; development package.</para>
4777 <para>The following optional packages enhance &kalarm; at runtime if
4778 they are installed:</para>
4780 <itemizedlist>
4781 <listitem><para>&jovie; (from kdeaccessibility package): if installed
4782 and configured, together with a compatible speech synthesizer package,
4783 it allows &kalarm; to speak alarm messages when they are
4784 displayed.</para>
4785 </listitem>
4786 </itemizedlist>
4788 <para>You can find a list of changes in the
4789 <filename>Changelog</filename> file, or at <ulink
4790 url="http://www.astrojar.org.uk/kalarm">http://www.astrojar.org.uk/kalarm</ulink>.</para>
4791 </sect1>
4793 <sect1 id="compilation">
4794 <title>Compilation and Installation</title>
4796 <para>If you cannot obtain a suitable precompiled binary package, you
4797 need to compile &kalarm; yourself from source files. Get the source
4798 package file <filename>kdepim-x.x.tar.bz2</filename> or
4799 <filename>kalarm-x.x.tar.bz2</filename> (or similar), depending on
4800 whether you want to install &package; or just &kalarm;. Unpack it in a
4801 new folder using a command similar to
4802 <userinput><command>tar</command> <option>xvfj
4803 <replaceable>package.tar.bz2</replaceable></option></userinput>, and
4804 change to the folder which has been created.</para>
4806 &install.compile.documentation;
4808 <warning><para>If you install &kalarm; into a folder different from
4809 where &kde; is installed, it will not run correctly unless you make
4810 its location known to &kde;. To do this, you must prefix the
4811 <envar>KDEDIRS</envar> environment variable with &kalarm;'s location,
4812 each time before you start &kde;.</para>
4814 <para>For example, if &kde; is installed in
4815 <literal>/opt/kde</literal>, <envar>KDEDIRS</envar> might normally
4816 be set to <literal>/etc/opt/kde:/opt/kde</literal>. If you install
4817 &kalarm; into <literal>/usr/local</literal>, you would need to set
4818 <envar>KDEDIRS</envar> to
4819 <literal>/usr/local:/etc/opt/kde:/opt/kde</literal> before starting
4820 &kde;.</para></warning>
4822 <para>The standalone version of &kalarm; has a special configuration
4823 option which allows you to select which languages documentation is to
4824 be installed for by specifying a language code, or a list of language
4825 codes, as a parameter to <command>./configure</command>. By default,
4826 documentation in all available languages is installed. A list of
4827 documentation languages included in the package, together with their
4828 codes, is in the <filename>DOC-LANGUAGES</filename> file. For example,
4829 to install only French and British English documentation:</para>
4831 <para><userinput><command>./configure</command> --enable-doc-language=<replaceable>"fr en_GB"</replaceable></userinput></para>
4833 <para>Note that this option has no effect on which user interface
4834 translations are installed.</para>
4836 </sect1>
4838 <sect1 id="configuration">
4839 <title>Configuration</title>
4841 <para>No special configuration is required to set up &kalarm; to run
4842 on the &kde; desktop. Once you have run &kalarm; for the first time,
4843 it will start every time you log in, in order to monitor scheduled
4844 alarms.</para>
4846 <para>To run &kalarm; on a non-&kde; desktop, the main requirement is
4847 to ensure that &kalarm; is run automatically whenever you log in. More
4848 detailed instructions are contained in the
4849 <filename>INSTALL</filename> file which is distributed with
4850 &kalarm;.</para>
4852 </sect1>
4854 </appendix>
4856 &documentation.index;
4857 </book>
4858 <!--
4859 Local Variables:
4860 mode: sgml
4861 sgml-minimize-attributes:nil
4862 sgml-general-insert-case:lower
4863 sgml-indent-step:0
4864 sgml-indent-data:nil
4865 End: