Warning, /pim/kalarm/doc/index.docbook is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" ?>
0002 <!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
0003   <!ENTITY % addindex "IGNORE">
0004   <!ENTITY % English "INCLUDE"><!-- change language only here -->
0005 ]>
0006 
0007 <!-- The language must NOT be changed here. -->
0008 
0009 <book id="kalarm" lang="&language;">
0010 
0011 <bookinfo id="kalarminfo">
0012 <title>The &kalarm; Handbook</title>
0013 
0014 <authorgroup>
0015 <author>
0016 <firstname>David</firstname>
0017 <surname>Jarvie</surname>
0018 <affiliation>
0019 <address>&David.Jarvie.mail;</address>
0020 </affiliation>
0021 </author>
0022 
0023 <othercredit role="developer">
0024 <firstname>David</firstname>
0025 <surname>Jarvie</surname>
0026 <affiliation><address>&David.Jarvie.mail;</address></affiliation>
0027 <contrib>Developer</contrib>
0028 </othercredit>
0029 
0030 <!-- TRANS:ROLES_OF_TRANSLATORS -->
0031 </authorgroup>
0032 
0033 <copyright>
0034 <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><year>2012</year><year>2013</year><year>2016</year><year>2018</year><year>2019</year><year>2020</year><year>2021</year><year>2022</year><year>2023</year><year>2024</year>
0035 <holder>&David.Jarvie;</holder>
0036 </copyright>
0037 
0038 <legalnotice>&FDLNotice;</legalnotice>
0039 
0040 <!-- Don't change format of date and version of the documentation -->
0041 
0042 <date>2024-2-9</date>
0043 <releaseinfo>3.7.0 (KDE Gear 24.02)</releaseinfo>
0044 
0045 <abstract>
0046 <para>&kalarm; is a personal alarm message, command and email scheduler by &kde;.</para>
0047 </abstract>
0048 
0049 
0050 <keywordset>
0051 <keyword>KDE</keyword>
0052 <keyword>kdepim</keyword>
0053 <keyword>kalarm</keyword>
0054 <keyword>alarm</keyword>
0055 <keyword>reminder</keyword>
0056 <keyword>scheduler</keyword>
0057 </keywordset>
0058 
0059 </bookinfo>
0060 
0061 
0062 <chapter id="introduction">
0063 <title>Introduction</title>
0064 
0065 <para>&kalarm; lets you schedule the display of personal alarm
0066 messages, the playing of sound files, the execution of commands and
0067 the sending of emails.</para>
0068 
0069 <para>&kalarm; displays the list of pending alarms, showing their
0070 times and details.  You can create new alarms, or you can select
0071 existing alarms for modification or deletion. You can also optionally
0072 view expired alarms.</para>
0073 
0074 <para>When configuring an alarm, you can choose whether it should
0075 repeat, and whether the alarm should be canceled if it cannot be
0076 triggered at its scheduled time. For display alarms, you can type in
0077 a message text, specify a text or image file to display, or specify a
0078 command whose output should be displayed. You can also choose the
0079 color of the alarm message, and whether to play a sound or speak the
0080 message.</para>
0081 
0082 <para>Alarms may also be scheduled from the command line, or via &DBus;
0083 calls from programs.</para>
0084 
0085 <para>When an alarm message is due, if the windowing system permits, it
0086 is displayed on each desktop to ensure that you don't miss it. The
0087 message window shows the time for which the alarm was scheduled. It
0088 usually has a defer option to ask for the alarm to be displayed again
0089 later. An example of an alarm message:</para>
0090 
0091 <screenshot>
0092 <screeninfo>Screenshot of the &kalarm; message window</screeninfo>
0093 <mediaobject>
0094 <imageobject>
0095 <imagedata fileref="alarmmessage.png" format="PNG"/>
0096 </imageobject>
0097 <textobject>
0098 <phrase>Alarm message</phrase>
0099 </textobject>
0100 </mediaobject>
0101 </screenshot>
0102 
0103 <para>Optionally, an alarm message may be displayed as a notification
0104 instead of in a window.</para>
0105 
0106 <para>When the alarm specifies a command to execute or an email to
0107 send, &kalarm; displays nothing.</para>
0108 
0109 <para>&kalarm; usually shows an icon in the system tray, although this
0110 can be hidden if desired.</para>
0111 
0112 </chapter>
0113 
0114 <chapter id="using-kalarm">
0115 <title>Using &kalarm;</title>
0116 
0117 <para>When it is run with no command line parameters, &kalarm; starts
0118 in graphical mode, and displays the current list of outstanding
0119 alarms.</para>
0120 
0121 <tip><para>All spin boxes in &kalarm; have an acceleration facility.
0122 To make the value change by larger steps, hold down the
0123 &Shift; key while you click on the spin arrow
0124 buttons.</para>
0125 
0126 <mediaobject>
0127 <imageobject>
0128 <imagedata fileref="spinbox.png" format="PNG"/>
0129 </imageobject>
0130 </mediaobject>
0131 </tip>
0132 
0133 <sect1 id="alarm-types">
0134 <title>Alarm Types</title>
0135 
0136 <para>The basic functions available from the different alarm types
0137 which &kalarm; provides are:</para>
0138 
0139 <itemizedlist>
0140 <listitem>
0141 <para>Display alarms display either a text message which you type in,
0142 or the contents of a text or image file, or the textual output from a
0143 command which is run when the alarm triggers. In addition to
0144 displaying one of these items, they can also play audio files, have
0145 their text spoken, or emit a simple beep. You can also specify
0146 commands to be executed before and after the alarm message is
0147 displayed.</para>
0148 </listitem>
0149 
0150 <listitem>
0151 <para>Command alarms execute either a command or a shell script which
0152 you can type in. Nothing is displayed unless an error occurs.</para>
0153 </listitem>
0154 
0155 <listitem>
0156 <para>Email alarms send a email. Nothing is displayed unless an error
0157 occurs.</para>
0158 </listitem>
0159 
0160 <listitem>
0161 <para>Audio alarms play an audio file. Nothing is displayed unless an
0162 error occurs.</para>
0163 </listitem>
0164 </itemizedlist>
0165 
0166 <sect2 id="errors">
0167 <title>Error Handling</title>
0168 
0169 <para>If an error occurs when an alarm triggers, an error message will
0170 be displayed (unless you have previously specified not to show that
0171 type of message again).</para>
0172 
0173 <para>If an execution error occurred the last time a command alarm
0174 triggered, a white on red exclamation mark is shown in the message
0175 color column. Details of the error are displayed in a tooltip if you
0176 position the cursor over that line in the alarm list. The same error
0177 indications are shown for display alarms if an execution error
0178 occurred for a pre- or post-alarm command specified in the Special
0179 Actions dialog, except that the color column is not changed to a red
0180 background.</para>
0181 
0182 </sect2>
0183 </sect1>
0184 
0185 <sect1 id="alarm-list">
0186 <title>Alarm List</title>
0187 
0188 <para>The main &kalarm; window displays the current list of pending
0189 alarms, showing their times, repetition intervals, colors, names, and
0190 message texts, names of files to play or display, commands to execute
0191 or email subjects. (For a recurring alarm, the time shown is its next
0192 scheduled trigger time. For an alarm with a reminder, the time shown
0193 is the time of the alarm proper, not the reminder time.) An icon at
0194 the left of each alarm text/file/command/email subject indicates the
0195 type of alarm.</para>
0196 
0197 <para>Note that the <guilabel>Name</guilabel> column only exists if
0198 the use of alarm names is enabled in the
0199 <link linkend="preferences-general">General</link> tab of the
0200 Configuration dialog.</para>
0201 
0202 <screenshot>
0203 <screeninfo>Screenshot of the &kalarm; main window</screeninfo>
0204 <mediaobject>
0205 <imageobject>
0206 <imagedata fileref="mainwindow.png" format="PNG"/>
0207 </imageobject>
0208 <textobject>
0209 <phrase>Main window</phrase>
0210 </textobject>
0211 </mediaobject>
0212 </screenshot>
0213 
0214 <para>For a repeated alarm, the list shows its next scheduled trigger
0215 time and its basic repetition interval (&eg; <quote>1 Day</quote> for
0216 a daily recurrence, <quote>3 Weeks</quote> for a recurrence which
0217 triggers on Monday and Wednesday every third week,
0218 <quote>Login</quote> for a repeat-at-login alarm).</para>
0219 
0220 <para>If an execution error occurred the last time a command alarm
0221 triggered, or the last time a display alarm's pre- or post-alarm
0222 command was executed, an error indication is shown in the color
0223 column, as described in <link linkend="errors">Error Handling</link>
0224 above.</para>
0225 
0226 <sect2 id="listappear">
0227 <title>Changing the Alarm List Appearance</title>
0228 
0229 <para>The alarms may be ordered by date/time, repeat interval, color,
0230 type, name or text by clicking on the titlebar for the appropriate
0231 column. To reverse the sort order, click the column titlebar
0232 again.</para>
0233 
0234 <para>You can optionally show the remaining time until each alarm is
0235 due, together with, or instead of, the alarm's scheduled time.</para>
0236 
0237 <para>You can select which columns to display or hide by
0238 <mousebutton>Right</mousebutton> clicking on the column headings and
0239 using the context menu to set the columns to show. But note that at
0240 least one of the <guilabel>Name</guilabel> or
0241 <guilabel>Message, File or Command</guilabel> columns, and at least
0242 one of the <guilabel>Time</guilabel> or <guilabel>Time To</guilabel>
0243 columns, are always shown.</para>
0244 
0245 <para>If you use multiple alarm calendars, you can color code alarms
0246 according to which calendar they belong to, by selecting a different
0247 background color for each calendar (see
0248 <link linkend="using-calendars">Using Calendars</link>).</para>
0249 
0250 </sect2>
0251 
0252 <sect2 id="expired">
0253 <title>Archived Alarms</title>
0254 
0255 <para>By default, &kalarm; archives alarms for a limited period once
0256 they have expired or been deleted. (But note that alarms which you
0257 delete are stored only if they have already triggered at least once.)
0258 You can control whether &kalarm; archives expired alarms, and for how
0259 long, in the
0260 <link linkend="preferences-storage">Configuration dialog</link>.</para>
0261 
0262 <para>Archived alarms may be shown in the alarm list by selecting
0263 <menuchoice><guimenu>View</guimenu><guimenuitem>Show Archived
0264 Alarms</guimenuitem></menuchoice>. To hide them again, deselect
0265 <menuchoice><guimenu>View</guimenu><guimenuitem>Show Archived
0266 Alarms</guimenuitem></menuchoice>.</para>
0267 
0268 </sect2>
0269 
0270 <sect2 id="datepicker">
0271 <title>Filtering the Alarm List by Date</title>
0272 
0273 <para>You can restrict the alarm list to show only alarms which are
0274 scheduled to occur on a selected date. This is achieved by means of
0275 the alarm date selector, which can be displayed or hidden by
0276 <menuchoice><guimenu>View</guimenu>
0277 <guimenuitem>Show Date Selector</guimenuitem>
0278 </menuchoice>. Select a date by clicking on it in the date selector,
0279 or deselect it by clicking on it again. The date selector displays a
0280 single month. To display a different month, use the arrow controls in
0281 the date selector, or the mouse wheel.</para>
0282 
0283 </sect2>
0284 
0285 <sect2 id="search">
0286 <title>Searching the Alarm List</title>
0287 
0288 <para>You can search through the alarm list to find alarms containing
0289 a search text. To invoke this, select <menuchoice>
0290 <guimenu>Edit</guimenu><guimenuitem>Find...</guimenuitem></menuchoice>.
0291 In the search dialog, select the alarm types which you wish to search.
0292 To continue searching for more alarms which match, use <menuchoice>
0293 <guimenu>Edit</guimenu><guimenuitem>Find Next</guimenuitem></menuchoice>
0294 or <menuchoice>
0295 <guimenu>Edit</guimenu><guimenuitem>Find Previous</guimenuitem>
0296 </menuchoice>.</para>
0297 
0298 <para>Searching is performed as follows:</para>
0299 
0300 <itemizedlist>
0301 <listitem>
0302 <para>Text message alarms: the message text is searched.</para>
0303 </listitem>
0304 
0305 <listitem>
0306 <para>File display alarms: the file path/&URL; is searched.</para>
0307 </listitem>
0308 
0309 <listitem>
0310 <para>Command alarms: the command line or command script is
0311 searched.</para>
0312 </listitem>
0313 
0314 <listitem>
0315 <para>Email alarms: in addition to the subject and body of the email,
0316 the recipients and the URLs of attachments are searched.</para>
0317 </listitem>
0318 
0319 <listitem>
0320 <para>Audio alarms: the file path/&URL; is searched.</para>
0321 </listitem>
0322 </itemizedlist>
0323 
0324 <note><para>Only alarms currently shown in the alarm list can be
0325 selected for searching. So if you want to search archived alarms, you
0326 must first display them as described in the section above.</para></note>
0327 </sect2>
0328 </sect1>
0329 
0330 <sect1 id="create-edit">
0331 <title>Creating and Manipulating Alarms</title>
0332 
0333 <sect2>
0334 <title>Creating a New Alarm</title>
0335 
0336 <para>To create a new alarm, do one of the following, and then select
0337 the type of alarm from the list which appears. This displays the
0338 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> through which
0339 you configure the alarm.</para>
0340 
0341 <itemizedlist>
0342 <listitem>
0343 <para>Select <menuchoice><guimenu>File</guimenu>
0344 <guimenuitem>New</guimenuitem></menuchoice>.</para>
0345 </listitem>
0346 
0347 <listitem>
0348 <para><mousebutton>Right</mousebutton> click on the system tray icon
0349 and choose
0350 <menuchoice><guimenuitem>New Alarm</guimenuitem></menuchoice>
0351 from the context menu.</para>
0352 </listitem>
0353 
0354 <listitem>
0355 <para><mousebutton>Right</mousebutton> click in the alarm list and
0356 choose <menuchoice><guimenuitem>New</guimenuitem></menuchoice> from
0357 the context menu.</para>
0358 </listitem>
0359 </itemizedlist>
0360 
0361 <para>Alternatively, you can create new alarms preconfigured from
0362 various sources:</para>
0363 
0364 <itemizedlist>
0365 <listitem>
0366 <para>To preset the alarm's date in the
0367 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>,
0368 <mousebutton>right</mousebutton> click on the desired date in the alarm
0369 date selector (see <link linkend="datepicker">Filtering the Alarm List
0370 by Date</link>) and select the appropriate alarm type from the context
0371 menu.</para>
0372 </listitem>
0373 
0374 <listitem>
0375 <para>To base your new alarm on an alarm template, follow the
0376 instructions in the <link linkend="templates">Alarm Templates</link>
0377 section.</para>
0378 </listitem>
0379 
0380 <listitem>
0381 <para>To base your new alarm on an existing one, highlight the existing
0382 alarm in the list and select <menuchoice>
0383 <guimenu>File</guimenu><guimenuitem>Copy</guimenuitem></menuchoice>.
0384 This opens the <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>
0385 already filled in with a copy of the selected alarm's details.</para>
0386 </listitem>
0387 
0388 <listitem>
0389 <para>To create a new alarm which displays an existing email message,
0390 drag the email from &kmail; onto &kalarm;'s main window. Then select
0391 the <guilabel>Display Alarm</guilabel> option. This opens the
0392 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> with the
0393 entire email message (including sender, recipient, &etc;) as the alarm
0394 text.</para>
0395 </listitem>
0396 
0397 <listitem>
0398 <para>To create a new email alarm to send a copy of an existing email
0399 message, drag the email from &kmail; onto &kalarm;'s main window. Then
0400 select the <guilabel>Email Alarm</guilabel> option. The
0401 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> is preset with
0402 the entire email message except sender.</para>
0403 </listitem>
0404 
0405 <listitem>
0406 <para>To create a new alarm which displays a summary of an existing
0407 to-do, drag the to-do from &korganizer; or other application onto
0408 &kalarm;'s main window. This opens the
0409 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> with the
0410 to-do contents as the alarm text.</para>
0411 </listitem>
0412 
0413 <listitem>
0414 <para>To create a new command alarm, drag the text of a script
0415 starting with <quote>#!</quote> onto &kalarm;'s main window. Then
0416 select the <guilabel>Command Alarm</guilabel> option. This opens the
0417 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> preset with
0418 the script text.</para>
0419 </listitem>
0420 
0421 <listitem>
0422 <para>To create a file display alarm, drag a text or image file &URL;
0423 onto &kalarm;'s main window. This opens the
0424 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> and sets the
0425 file name.</para>
0426 </listitem>
0427 
0428 <listitem>
0429 <para>To create an audio alarm, drag an audio file &URL; onto
0430 &kalarm;'s main window. This opens the
0431 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> and sets the
0432 file name.</para>
0433 </listitem>
0434 
0435 <listitem>
0436 <para>To create a text message alarm, drag any piece of text onto
0437 &kalarm;'s main window. If prompted, select the
0438 <guilabel>Display Alarm</guilabel> option. This opens the
0439 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> preset with
0440 the alarm text.</para>
0441 </listitem>
0442 
0443 <listitem>
0444 <para>You can automatically create birthday alarms for people in
0445 &kaddressbook; as described in <link linkend="birthdays">Importing
0446 Birthdays from &kaddressbook;</link>.</para>
0447 </listitem>
0448 
0449 </itemizedlist>
0450 
0451 </sect2>
0452 
0453 <sect2 id="edit-alarm">
0454 <title>Modifying an Existing Alarm</title>
0455 
0456 <para>To modify an existing pending alarm (expired alarms cannot be
0457 amended), do one of the following:</para>
0458 
0459 <itemizedlist>
0460 <listitem>
0461 <para>Double click on its entry in the alarm list.</para>
0462 </listitem>
0463 
0464 <listitem>
0465 <para>Select it by clicking on its entry in the alarm list. Then
0466 choose <menuchoice><guimenu>Edit</guimenu>
0467 <guimenuitem>Edit</guimenuitem></menuchoice>.</para>
0468 </listitem>
0469 
0470 <listitem>
0471 <para><mousebutton>Right</mousebutton> click on its entry in the alarm
0472 list and choose
0473 <menuchoice><guimenuitem>Edit</guimenuitem></menuchoice> from the
0474 context menu.</para>
0475 </listitem>
0476 </itemizedlist>
0477 
0478 <para>This displays the <link linkend="alarm-edit-dlg">Alarm Edit
0479 dialog</link>.</para>
0480 
0481 </sect2>
0482 
0483 <sect2>
0484 <title>Deleting/Reactivating an Alarm</title>
0485 
0486 <para>To delete existing alarms, select one or more by clicking on
0487 their entries in the alarm list. Then do one of the following:</para>
0488 
0489 <itemizedlist>
0490 <listitem>
0491 <para>Choose <menuchoice>
0492 <guimenu>Edit</guimenu><guimenuitem>Delete</guimenuitem>
0493 </menuchoice>.</para>
0494 </listitem>
0495 <listitem>
0496 <para><mousebutton>Right</mousebutton> click on the selected entries
0497 and choose
0498 <menuchoice><guimenuitem>Delete</guimenuitem></menuchoice>
0499 from the context menu.</para>
0500 </listitem>
0501 <listitem>
0502 <para>To delete them without a confirmation prompt, type
0503 &Shift;-<keycap>Delete</keycap>.</para>
0504 </listitem>
0505 </itemizedlist>
0506 
0507 <para>When you delete an active alarm, it is archived, provided that
0508 it has triggered at least once before being deleted, and provided that
0509 expired alarms are archived at all. (Use the
0510 <link linkend="preferences-storage">Configuration dialog</link> to
0511 control whether and for how long archived alarms are stored.) When you
0512 delete an archived alarm, or an active alarm which has not yet
0513 triggered, it is removed permanently.</para>
0514 
0515 <para>You can reactivate a deleted alarm from the archived alarms list,
0516 provided that it has not yet expired. To do this, first display
0517 archived alarms, as described in
0518 <link linkend="expired">Archived Alarms</link>. Then:</para>
0519 
0520 <itemizedlist>
0521 <listitem>
0522 <para>Select one or more appropriate archived alarms by clicking on
0523 their entries in the alarm list. Then choose <menuchoice>
0524 <guimenu>Actions</guimenu><guimenuitem>Reactivate</guimenuitem>
0525 </menuchoice>.</para>
0526 </listitem>
0527 <listitem>
0528 <para><mousebutton>Right</mousebutton> click on the desired entries in
0529 the archived alarm list and choose
0530 <menuchoice><guimenuitem>Reactivate</guimenuitem></menuchoice>
0531 from the context menu.</para>
0532 </listitem>
0533 </itemizedlist>
0534 
0535 </sect2>
0536 
0537 <sect2>
0538 <title>Enabling/Disabling an Alarm</title>
0539 
0540 <para>See <link linkend="enable-disable">Enabling and Disabling Alarms</link>
0541 for how to enable and disable alarms, either individually or as a whole.</para>
0542 
0543 </sect2>
0544 
0545 <sect2>
0546 <title>Setting an Alarm to Wake from Suspend</title>
0547 
0548 <para>See <link linkend="wake-suspend">Wake From Suspend</link> for
0549 how to configure an alarm to wake up your system from suspension or
0550 hibernation.</para>
0551 
0552 </sect2>
0553 
0554 <sect2>
0555 <title>Acknowledging an Alarm</title>
0556 
0557 <para>See <link linkend="message-display">Alarm Message Display</link>
0558 for how to acknowledge alarms.</para>
0559 
0560 </sect2>
0561 
0562 <sect2 id="templates">
0563 <title>Alarm Templates</title>
0564 
0565 <para>If you frequently want to set up similar alarms, you can create
0566 an alarm template to avoid having to enter all the details from
0567 scratch each time. A template can contain all the details which an
0568 alarm can contain, apart from the start date.</para>
0569 
0570 <para>As an example, you may regularly want to set an
0571 alarm to remind you about a television program whose time varies
0572 from week to week. The template would contain all the alarm details
0573 (message text, whether to play a sound, &etc;) except for the time and
0574 date. Now, to create the alarm, all you need to do is open the
0575 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> with that
0576 template and then enter the time and date.</para>
0577 
0578 <para>To create an alarm based on a template, open the
0579 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> preset with
0580 the template details:</para>
0581 
0582 <itemizedlist>
0583 <listitem>
0584 <para>Select the <menuchoice>
0585 <guimenu>File</guimenu><guimenuitem>New</guimenuitem>
0586 <guimenuitem>New Alarm From Template</guimenuitem>
0587 </menuchoice> menu item, and then select the desired template.</para>
0588 </listitem>
0589 
0590 <listitem>
0591 <para><mousebutton>Right</mousebutton> click on the system tray icon
0592 and choose
0593 <menuchoice><guimenuitem>New Alarm</guimenuitem>
0594 <guimenuitem>New Alarm From Template</guimenuitem></menuchoice>
0595 from the context menu. Then select the desired template.</para>
0596 </listitem>
0597 
0598 <listitem>
0599 <para>Open the <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>
0600 in the usual way, and click the
0601 <guibutton>Load Template...</guibutton> button to select a template to
0602 preset the dialog with.</para>
0603 </listitem>
0604 </itemizedlist>
0605 
0606 <sect3>
0607 <title>Configuring Templates</title>
0608 
0609 <para>You can create, modify or delete templates using the Alarm
0610 Templates dialog, or you can create a new alarm template based on an
0611 existing alarm.</para>
0612 
0613 <para>To create a new alarm template, do one of the following:</para>
0614 
0615 <itemizedlist>
0616 <listitem>
0617 <para>Display the Alarm Templates dialog by selecting the <menuchoice>
0618 <guimenu>File</guimenu><guimenuitem>Templates...</guimenuitem>
0619 </menuchoice> menu item, clicking <guibutton>New</guibutton>, and
0620 choosing the alarm type from the list which appears. This displays a
0621 blank Template Edit dialog.</para>
0622 </listitem>
0623 
0624 <listitem>
0625 <para>Display the Alarm Templates dialog by selecting the <menuchoice>
0626 <guimenu>File</guimenu><guimenuitem>Templates...</guimenuitem>
0627 </menuchoice> menu item, select an existing template from the list and
0628 click <guibutton>Copy</guibutton>. This opens the Template Edit dialog
0629 already filled in with a copy of the existing template's
0630 details.</para>
0631 </listitem>
0632 
0633 <listitem>
0634 <para>Highlight an alarm in the alarm list and select <menuchoice>
0635 <guimenu>File</guimenu><guimenuitem>Create Template...</guimenuitem>
0636 </menuchoice>. This opens the Template Edit dialog already filled in
0637 with a copy of the selected alarm's details.</para>
0638 </listitem>
0639 </itemizedlist>
0640 
0641 <para>To modify an existing template, display the Alarm Templates
0642 dialog by selecting the <menuchoice>
0643 <guimenu>File</guimenu><guimenuitem>Templates...</guimenuitem>
0644 </menuchoice> menu item and click <guibutton>Edit</guibutton>. This
0645 displays the Template Edit dialog which is described below.</para>
0646 
0647 <para>To delete existing templates, display the Alarm Templates
0648 dialog by selecting the <menuchoice>
0649 <guimenu>File</guimenu><guimenuitem>Templates...</guimenuitem>
0650 </menuchoice> menu item, select one or more templates and click
0651 <guibutton>Delete</guibutton>. A confirmation prompt is issued to
0652 prevent accidental deletions.</para>
0653 
0654 </sect3>
0655 
0656 <sect3>
0657 <title>Template Edit Dialog</title>
0658 
0659 <para>The Template Edit dialog is similar to the
0660 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>. The
0661 following controls are different:</para>
0662 
0663 <itemizedlist>
0664 <listitem>
0665 <para>Enter the template's name in <guilabel>Template name</guilabel>.
0666 It is the template's name which is displayed in template selection
0667 lists, so it is best to choose a name which will remind you of its
0668 function. Each template's name must be unique.</para>
0669 </listitem>
0670 
0671 <listitem>
0672 <para>In the <guilabel>Time</guilabel> group box, select one of:</para>
0673 
0674 <itemizedlist>
0675 <listitem>
0676 <para><guilabel>Default time</guilabel> if you do not wish to specify
0677 any trigger time. Alarms based on this template will initially
0678 use the normal default trigger time for new alarms.</para>
0679 </listitem>
0680 
0681 <listitem>
0682 <para>Check <guilabel>Time</guilabel> to enter a time when the alarm
0683 is to be triggered.</para>
0684 </listitem>
0685 
0686 <listitem>
0687 <para>Check <guilabel>Date only</guilabel> to specify that the alarm
0688 should only have a date, not a time.</para>
0689 </listitem>
0690 
0691 <listitem>
0692 <para>Check <guilabel>Time from now</guilabel> to enter how long (in
0693 hours and minutes) after the alarm is created, that it should be
0694 triggered.</para>
0695 </listitem>
0696 </itemizedlist>
0697 </listitem>
0698 
0699 <listitem>
0700 <para>In the <guilabel>Recurrence Rule</guilabel> group box in the
0701 <guilabel>Recurrence</guilabel> tab, no day or month need be selected
0702 for weekly or yearly recurrences, respectively.</para>
0703 </listitem>
0704 </itemizedlist>
0705 
0706 </sect3>
0707 
0708 </sect2>
0709 
0710 <sect2 id="calendars">
0711 <title>Alarm Calendars</title>
0712 
0713 <para>If you only use one computer and work independently, it may not
0714 matter to you where &kalarm; stores its alarms. But if you need to
0715 access alarms on more than one computer, or in more than one location
0716 on your local computer, you can define <quote>alarm calendars</quote>
0717 to tell &kalarm; to use other alarm calendars additional to, or in
0718 place of, its default ones.</para>
0719 
0720 <para>You can view and manipulate calendars via the calendar list,
0721 which can be displayed alongside the alarm list in &kalarm;'s main
0722 window. Alarms from all alarm calendars are shown merged together in
0723 the alarm list. When you save a new alarm, you can set a configuration
0724 option to determine whether it is automatically saved into the default
0725 calendar, or whether you will be prompted to choose a calendar. When
0726 you edit an existing alarm, it is automatically saved back into its
0727 original alarm calendar.</para>
0728 
0729 <screenshot>
0730 <screeninfo>Screenshot of the &kalarm; main window, showing the
0731 calendar list</screeninfo>
0732 <mediaobject>
0733 <imageobject>
0734 <imagedata fileref="mainwindow-calendars.png" format="PNG"/>
0735 </imageobject>
0736 <textobject>
0737 <phrase>Main window showing the calendar list</phrase>
0738 </textobject>
0739 </mediaobject>
0740 </screenshot>
0741 
0742 <sect3>
0743 <title>Calendar Types and Options</title>
0744 
0745 <para>Alarm calendars are categorized by alarm type and storage type.
0746 They can be disabled, set read-only, or made the default calendar for
0747 their alarm type.</para>
0748 
0749 <variablelist>
0750 <varlistentry>
0751 <term>Alarm type</term>
0752 <listitem>
0753 <para>The three alarm entity types &ndash; active alarms, archived
0754 alarms and alarm templates &ndash;
0755 are stored in separate alarm calendars. &kalarm; therefore has three
0756 standard default calendars, one for each type (see 
0757 <link linkend="faq">Questions and Answers</link> for details), which
0758 you can change if you wish.</para>
0759 </listitem>
0760 </varlistentry>
0761 
0762 <varlistentry>
0763 <term>Storage type</term>
0764 <listitem>
0765 <!--FIXME not in kf5?
0766 <para>&kalarm; handles two alarm calendar storage
0767 types:</para>
0768 -->
0769 
0770 <itemizedlist>
0771 <listitem><para>Local file: Alarms are stored in a single local file
0772 in iCalendar format. &kalarm; uses local file calendars by default
0773 (see <link linkend="faq">Questions and Answers</link> for details).
0774 <quote>Local files</quote>, in addition to files on the local
0775 computer, can include alarm calendars on the local network as long as
0776 their location can be represented by a path name starting with
0777 <literal>/</literal>.</para>
0778 </listitem>
0779 <!--FIXME not in kf5?
0780 <listitem><para>Remote file: Alarms are stored in a single remote
0781 file in iCalendar format. This storage method allows you to access
0782 your alarm data remotely no matter where you are, or enables alarm
0783 calendars to be viewed by other people. When using remote files,
0784 &kalarm; works with a local cache of the data.</para>
0785 
0786 <warning><para>If a remote alarm calendar is shared between users,
0787 changes made by one person may not be automatically made available to
0788 another user, or there could be a time delay before the other user
0789 sees it. So one user could make a change which is then overwritten by
0790 another user without either person noticing what has happened. The
0791 technical reason for this is that a change made by person A will only
0792 be available to person B after person A's cached copy has first been
0793 saved to the remote file, and then person B's cached copy
0794 of the remote file has been reloaded. When and if the calendar is
0795 saved and reloaded depends on the calendar configuration parameters
0796 which each user has set for that alarm calendar.</para>
0797 
0798 <para>Ways to avoid this problem include adjusting the calendar save
0799 and reload configuration parameters, or adopting a policy that users
0800 other than the alarm calendar's owner should open it in read-only
0801 mode.</para></warning>
0802 </listitem>
0803 -->
0804 </itemizedlist>
0805 </listitem>
0806 </varlistentry>
0807 
0808 <varlistentry>
0809 <term>Enabled/disabled status</term>
0810 <listitem>
0811 <para>Disabling a calendar has the same
0812 effect as removing it, except that it still appears in the calendar
0813 list for easy re-enabling. When disabled, its alarms are ignored and
0814 do not appear in the alarm list or list of templates. When it is
0815 re-enabled, its alarms are once again shown and, if it is an active
0816 alarm calendar, made active.</para>
0817 </listitem>
0818 </varlistentry>
0819 
0820 <varlistentry>
0821 <term>Read-only status</term>
0822 <listitem>
0823 <para>A read-only calendar's alarms cannot be
0824 changed or added to. So you cannot edit its alarms, or save new alarms
0825 to it. Also, it is not possible to defer its alarms, since to do so
0826 would need the deferral time to be saved into the alarm. After its
0827 alarms trigger, they are not removed from the calendar and archived
0828 until you or another user accesses the calendar in read-write
0829 mode.</para>
0830 
0831 <para>You can set the read-only status of a calendar in the calendar
0832 configuration dialog. However, some calendars cannot be made
0833 writeable, for various reasons:</para>
0834 
0835 <itemizedlist>
0836 <listitem><para>If a calendar was created by another application, it
0837 would be unsafe to allow &kalarm; to update it, since differences in
0838 data format might make it unusable by the creating application.</para>
0839 </listitem>
0840 
0841 <listitem><para>If the calendar was created by a later version of
0842 &kalarm;, data might be lost if your version of &kalarm; updated
0843 it.</para>
0844 </listitem>
0845 
0846 <listitem><para>If the calendar was created by a previous version of
0847 &kalarm;, data could be lost or it could be made unusable for the
0848 previous &kalarm; version if your version of &kalarm; updated it. You
0849 will be prompted whether to convert its format so as to make it
0850 writeable, bearing in mind the potential compatibility problems if the
0851 previous &kalarm; version needs to access it again.</para>
0852 </listitem>
0853 
0854 <listitem><para>If you do not have permission to write to the
0855 calendar file or folder.</para>
0856 </listitem>
0857 </itemizedlist>
0858 
0859 <para>If you need write access to alarms in a calendar which cannot be
0860 made writeable, you can copy its alarms by importing them into a
0861 writeable calendar using the latter calendar's
0862 <menuchoice><guimenuitem>Import...</guimenuitem></menuchoice> context
0863 menu option (see <link linkend="import">Importing Alarms from External
0864 Calendars</link>).</para>
0865 </listitem>
0866 </varlistentry>
0867 
0868 <varlistentry>
0869 <term>Default calendar status</term>
0870 <listitem>
0871 <para>One calendar of each alarm type can optionally be made the
0872 default calendar for that alarm type. New alarms are automatically
0873 saved to the default calendar for the appropriate alarm type, unless
0874 you have selected the prompt option for new alarms and templates in the
0875 <link linkend="preferences-storage">Configuration dialog</link>.</para>
0876 </listitem>
0877 </varlistentry>
0878 </variablelist>
0879 
0880 </sect3>
0881 
0882 <sect3 id="using-calendars">
0883 <title>Using Calendars</title>
0884 
0885 <para>You can view and manipulate calendars via the calendar list,
0886 which can be displayed or hidden by <menuchoice>
0887 <guimenu>View</guimenu><guimenuitem>Show Calendars</guimenuitem>
0888 </menuchoice>. When using the calendar list, first select the alarm
0889 type using the combo box above the list. Then either click on one of
0890 the buttons below the list, or <mousebutton>Right</mousebutton> click
0891 on the appropriate calendar in the list and choose an item from the
0892 context menu. The actions available are:</para>
0893 
0894 <variablelist>
0895 <varlistentry>
0896 <term><menuchoice><guimenuitem>Add...</guimenuitem></menuchoice></term>
0897 <listitem>
0898 <para>Add a calendar of the selected type to the list. You are asked
0899 to choose a storage type, following which the calendar configuration
0900 dialog is displayed, where you can enter the location of the calendar
0901 and its characteristics. If there is no existing alarm calendar in
0902 the specified location, a new one will be created.</para>
0903 </listitem>
0904 </varlistentry>
0905 
0906 <varlistentry>
0907 <term><menuchoice><guimenuitem>Remove</guimenuitem></menuchoice></term>
0908 <listitem>
0909 <para>Remove the selected calendar from the list. The calendar itself
0910 is left intact; it is simply removed from the list, and may
0911 subsequently be reinstated in the list if desired.</para>
0912 </listitem>
0913 </varlistentry>
0914 
0915 <varlistentry>
0916 <term><menuchoice><guimenuitem>Edit...</guimenuitem></menuchoice></term>
0917 <listitem>
0918 <para>Edit the selected calendar. This displays the configuration
0919 dialog for the selected calendar.</para>
0920 </listitem>
0921 </varlistentry>
0922 
0923 <varlistentry>
0924 <term><menuchoice><guimenuitem>Reload</guimenuitem></menuchoice></term>
0925 <listitem>
0926 <para>Reload the selected calendar. The calendar is re-read from its
0927 storage location, ensuring that there is no discrepancy between what
0928 &kalarm; displays and the current state of the calendar. If the
0929 calendar is shared with other users, any changes which they have made
0930 will now be seen by &kalarm;.</para>
0931 
0932 <warning><para>If you reload a remote calendar, any changes to alarms
0933 which you have made since the calendar was last saved will be lost.
0934 Also, any alarms which have expired since the last save may be
0935 retriggered.</para></warning>
0936 </listitem>
0937 </varlistentry>
0938 
0939 <varlistentry>
0940 <term><menuchoice><guimenuitem>Import...</guimenuitem></menuchoice></term>
0941 <listitem>
0942 <para>Import alarms from external calendar files into the selected
0943 calendar. This is described in
0944 <link linkend="import">Importing Alarms from External Calendars</link>.
0945 This option is not available for disabled or read-only
0946 calendars.</para>
0947 </listitem>
0948 </varlistentry>
0949 
0950 <varlistentry>
0951 <term><menuchoice><guimenuitem>Export...</guimenuitem></menuchoice></term>
0952 <listitem>
0953 <para>Export all the alarms in the selected calendar to an external calendar
0954 file. This is described in
0955 <link linkend="export">Exporting Alarms to External Calendars</link>.
0956 This option is not available for disabled calendars.</para>
0957 </listitem>
0958 </varlistentry>
0959 
0960 <varlistentry>
0961 <term><menuchoice><guimenuitem>Show Details</guimenuitem></menuchoice></term>
0962 <listitem>
0963 <para>Display details about the selected calendar. This shows the
0964 calendar's location, storage type and status information.
0965 </para>
0966 </listitem>
0967 </varlistentry>
0968 
0969 <varlistentry>
0970 <term><menuchoice><guimenuitem>Use as Default</guimenuitem></menuchoice></term>
0971 <listitem>
0972 <para>Make the selected calendar the default calendar for the selected
0973 calendar type. This option is not available for disabled or read-only
0974 calendars.</para>
0975 </listitem>
0976 </varlistentry>
0977 
0978 <varlistentry>
0979 <term><menuchoice><guimenuitem>Set Color...</guimenuitem></menuchoice></term>
0980 <listitem>
0981 <para>Select a background color for highlighting this calendar's alarms
0982 in the alarm list. This enables you to see at a glance which alarms
0983 belong to a particular calendar.</para>
0984 </listitem>
0985 </varlistentry>
0986 
0987 <varlistentry>
0988 <term><menuchoice><guimenuitem>Clear Color</guimenuitem></menuchoice></term>
0989 <listitem>
0990 <para>Clear color highlighting for this calendar's alarms in the alarm
0991 list. The option only appears after <guimenuitem>Set Color</guimenuitem> has
0992 been used on this calendar.</para>
0993 </listitem>
0994 </varlistentry>
0995 
0996 </variablelist>
0997 
0998 </sect3>
0999 
1000 </sect2>
1001 
1002 <sect2 id="import">
1003 <title>Importing Alarms from External Calendars</title>
1004 
1005 <para>You can import alarms from other calendar files into &kalarm;.
1006 The import function scans the selected calendar
1007 files for events containing alarms, and copies them (with new unique
1008 IDs) into &kalarm;'s calendar. Events without alarms, and calendar
1009 entries other than events, are ignored. There are two ways to import
1010 alarms:</para>
1011 
1012 <itemizedlist>
1013 <listitem>
1014 <para>Use <menuchoice><guimenu>File</guimenu>
1015 <guimenuitem>Import Alarms...</guimenuitem></menuchoice> to import
1016 alarms of all types (active alarms, archived alarms and alarm
1017 templates) from the calendar files.</para>
1018 
1019 <para>If you have configured 
1020 <link linkend="calendars">alarm calendars</link>, alarms of each type
1021 will be added to the appropriate default calendar, or if you have
1022 selected the prompt option for new alarms and templates in the
1023 <link linkend="preferences-storage">Configuration dialog</link>, you will
1024 be prompted for the calendar to use.</para>
1025 </listitem>
1026 
1027 <listitem>
1028 <para><mousebutton>Right</mousebutton> click on a calendar in the
1029 calendar list, and choose
1030 <menuchoice><guimenuitem>Import...</guimenuitem></menuchoice> from the
1031 context menu. This imports alarms of the currently selected type into
1032 that calendar. For example, if the selected calendar type is alarm
1033 templates, alarm templates (and not active alarms or archived alarms)
1034 will be imported.</para>
1035 </listitem>
1036 </itemizedlist>
1037 
1038 <warning><para>If you import alarms from calendar files which were
1039 created by applications other than &kalarm;, the alarms may be changed
1040 by the import process &ndash; even alarm times may change. This depends
1041 on the data storage conventions used by the other application, and is
1042 unavoidable if those conventions differ from what &kalarm; expects.
1043 Always check imported alarms for unexpected changes, and adjust them
1044 as necessary.</para></warning>
1045 
1046 </sect2>
1047 
1048 <sect2 id="export">
1049 <title>Exporting Alarms to External Calendars</title>
1050 
1051 <para>You can export alarms from &kalarm; to other calendar files,
1052 either the alarms currently selected in the alarm list, or all the
1053 alarms from an alarm calendar. The methods to do this are given below.
1054 Whichever method is used, you can either create a new calendar file
1055 or append the exported alarms to an existing calendar file. To append
1056 the alarms, check <guilabel>Append to existing file</guilabel> in the
1057 file selection dialog; otherwise, any existing file is
1058 overwritten.</para>
1059 
1060 <itemizedlist>
1061 <listitem>
1062 <para>To export the alarms currently selected in the alarm list,
1063 <mousebutton>Right</mousebutton> click on the selection and choose
1064 <menuchoice><guimenuitem>Export...</guimenuitem></menuchoice> from the
1065 context menu, or use <menuchoice><guimenu>File</guimenu>
1066 <guimenuitem>Export Selected Alarms...</guimenuitem></menuchoice> in
1067 the main menu.</para>
1068 </listitem>
1069 
1070 <listitem>
1071 <para>To export all the alarms from a calendar,
1072 <mousebutton>Right</mousebutton> click on a calendar in the calendar
1073 list, and choose
1074 <menuchoice><guimenuitem>Export...</guimenuitem></menuchoice> from the
1075 context menu.</para>
1076 </listitem>
1077 </itemizedlist>
1078 
1079 </sect2>
1080 
1081 <sect2 id="birthdays">
1082 <title>Importing Birthdays from &kaddressbook;</title>
1083 
1084 <note><para>This function is only available if &kalarm;'s
1085 <link linkend="akonadi-plugin">Akonadi plugin</link> is
1086 installed and enabled.</para>
1087 </note>
1088 
1089 <para>You can set up display alarms for birthdays stored in
1090 &kaddressbook;, by <menuchoice><guimenu>File</guimenu>
1091 <guimenuitem>Import Birthdays...</guimenuitem></menuchoice>. This
1092 displays a dialog which allows you to select which birthdays to create
1093 alarms for.</para>
1094 
1095 <itemizedlist>
1096 <listitem>
1097 <para>In the <guilabel>Alarm Text</guilabel> group box, you can set up
1098 the text to be displayed in the birthday alarm messages. The message
1099 text is created by combining the <guilabel>Prefix</guilabel> text
1100 followed by the person's name followed by the
1101 <guilabel>Suffix</guilabel> text. No spaces are added, so remember to
1102 include any necessary trailing space in <guilabel>Prefix</guilabel>
1103 and leading space in <guilabel>Suffix</guilabel>.</para>
1104 
1105 <note><para>If you change the alarm text, the birthday selection list
1106 will be re-evaluated.</para></note>
1107 </listitem>
1108 
1109 <listitem>
1110 <para>In the <guilabel>Select Birthdays</guilabel> list, select the
1111 birthdays which you want to create alarms for. Note that the list
1112 shows only those entries in &kaddressbook; which contain a birthday
1113 and which do not already have a birthday alarm in the format currently
1114 defined in the <guilabel>Alarm Text</guilabel> group box.</para>
1115 </listitem>
1116 
1117 <listitem>
1118 <para>The remaining controls are the same as for
1119 <guilabel>Text</guilabel> alarms in the
1120 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>.</para>
1121 </listitem>
1122 </itemizedlist>
1123 
1124 <para>If you have configured 
1125 <link linkend="calendars">alarm calendars</link>, the alarms will be
1126 added to the default active alarm calendar, or if you have selected the
1127 prompt option for new alarms and templates in the
1128 <link linkend="preferences-storage">Configuration dialog</link>, you will
1129 be prompted for the calendar to use.</para>
1130 </sect2>
1131 
1132 <sect2 id="undo">
1133 <title>Undo / Redo</title>
1134 
1135 <para>You can undo and redo the most recent changes which you have
1136 made during the current session of &kalarm;. Most actions can be
1137 undone, including creation, edit and deletion of alarms and alarm
1138 templates, and reactivation of alarms. To prevent excessive resources
1139 being used by the undo history, the number of changes stored is
1140 limited to the last 12.</para>
1141 
1142 <para>To undo the last change, select <menuchoice>
1143 <guimenu>Edit</guimenu><guimenuitem>Undo</guimenuitem></menuchoice>.
1144 To redo the last change which was undone, select <menuchoice>
1145 <guimenu>Edit</guimenu><guimenuitem>Redo</guimenuitem>
1146 </menuchoice>.</para>
1147 
1148 <para>To undo a change other than the last one, click on the
1149 <guibutton>Undo</guibutton> button in the toolbar and hold the mouse
1150 button down. A list of actions will be displayed from which you can
1151 choose the one to undo. If you don't see the action which you are
1152 looking for, remember that you may need to undo more recent changes
1153 first, which the desired change depends on. For example, if you edited
1154 an alarm and then deleted it, you cannot undo the edit until you have
1155 first undone the deletion.</para>
1156 
1157 <para>Redoing a change other than the last one can be done in a
1158 similar manner, using the <guibutton>Redo</guibutton> toolbar
1159 button.</para>
1160 
1161 </sect2>
1162 </sect1>
1163 
1164 <sect1 id="alarm-edit-dlg">
1165 <title>The Alarm Edit Dialog</title>
1166 
1167 <para>The Alarm Edit dialog enables you to view and edit an alarm.
1168 When you first use &kalarm;, a simplified form of the dialog is
1169 displayed, with only a small number of options visible. To see all
1170 options, click the <guibutton>More Options</guibutton> button; to
1171 revert to the simplified dialog, click the
1172 <guibutton>Less Options</guibutton> button. &kalarm; always remembers
1173 your last display choice whenever the Alarm Edit dialog is
1174 redisplayed.</para>
1175 
1176 <para>You can configure the default values of many of the settings in
1177 the Alarm Edit dialog using the
1178 <link linkend="preferences-edit">Configuration dialog's Edit tab</link>.</para>
1179 
1180 <screenshot>
1181 <screeninfo>Screenshot of the simplified Alarm Edit dialog</screeninfo>
1182 <mediaobject>
1183 <imageobject>
1184 <imagedata fileref="editwindow-simple.png" format="PNG"/>
1185 </imageobject>
1186 <textobject>
1187 <phrase>Simplified Alarm Edit dialog for a display alarm</phrase>
1188 </textobject>
1189 <caption><para>Simplified Alarm Edit dialog for a display alarm</para></caption>
1190 </mediaobject>
1191 </screenshot>
1192 
1193 <screenshot>
1194 <screeninfo>Screenshot of the Alarm Edit dialog showing all options</screeninfo>
1195 <mediaobject>
1196 <imageobject>
1197 <imagedata fileref="editwindow.png" format="PNG"/>
1198 </imageobject>
1199 <textobject>
1200 <phrase>Alarm Edit dialog for a display alarm, showing all options</phrase>
1201 </textobject>
1202 <caption><para>Alarm Edit dialog for a display alarm, showing all options</para></caption>
1203 </mediaobject>
1204 </screenshot>
1205 
1206 <sect2>
1207 <title>Alarm Name</title>
1208 
1209 <para>You can give a name to the alarm in the
1210 <guilabel>Alarm name</guilabel> field. This is a convenience to help
1211 you identify the alarm more easily. You do not have to enter a name,
1212 and it need not be unique.</para>
1213 
1214 <para>Note that this field is only displayed if the use of alarm
1215 names is enabled in the
1216 <link linkend="preferences-general">General</link> tab of the
1217 Configuration dialog.</para>
1218 
1219 </sect2>
1220 
1221 <sect2>
1222 <title>Alarm Action</title>
1223 
1224 <para>The controls in the <guilabel>Action</guilabel> group box vary
1225 depending on the type of alarm being edited.</para>
1226 
1227 <sect3>
1228 <title>Display Alarms</title>
1229 
1230 <para>Display alarms display a window when the alarm triggers. Select
1231 the method used to generate the alarm window contents, using the combo
1232 box at the top:</para>
1233 
1234 <itemizedlist>
1235 <listitem>
1236 <para><guilabel>Text message</guilabel> in order to enter an alarm
1237 message text (which may include newlines) in the edit box.</para>
1238 </listitem>
1239 
1240 <listitem>
1241 <para><guilabel>File contents</guilabel> to enter the path or &URL; of
1242 a text or image file whose contents are to be displayed in the alarm
1243 message. Use the button beside the edit box to display a file selection
1244 dialog. The <guilabel>Speak</guilabel> option is not available for this
1245 type of alarm.</para>
1246 </listitem>
1247 
1248 <listitem>
1249 <para><guilabel>Command output</guilabel> to specify that the alarm
1250 message text will be generated by a command which is executed when the
1251 alarm triggers. See
1252 <link linkend="command-alarm">Command Alarms</link> below for details
1253 of how to enter the command or command script to execute.</para>
1254 </listitem>
1255 </itemizedlist>
1256 
1257 <para>The controls available for display alarms are:</para>
1258 
1259 <itemizedlist>
1260 <listitem>
1261 <para>The <guilabel>Sound</guilabel> option allows you to select
1262 whether an audible alarm should sound when the alarm message is
1263 displayed. Choose:</para>
1264 
1265 <itemizedlist>
1266 <listitem>
1267 <para><guilabel>None</guilabel> to display the alarm silently.</para>
1268 </listitem>
1269 
1270 <listitem>
1271 <para><guilabel>Beep</guilabel> to sound a beep.</para>
1272 </listitem>
1273 
1274 <listitem>
1275 <para><guilabel>Speak</guilabel> to have the alarm message spoken as
1276 well as being displayed. This option is only available if &kalarm; was
1277 built with speech enabled and you have the &Qt; Speech module installed
1278 and working.</para>
1279 </listitem>
1280 
1281 <listitem>
1282 <para><guilabel>Sound file</guilabel> to play an audio file. Use the
1283 button on the right to display the Sound File dialog which lets you
1284 select a file to play and set volume and repetition options. If you
1285 hover the mouse over the selector, a tooltip will display the audio file
1286 currently selected.</para>
1287 
1288 <para>In the Sound File dialog:</para>
1289 
1290 <itemizedlist>
1291 <listitem>
1292 <para>Enter the sound file path, or use the button beside the
1293 edit box to display a file selection dialog. You can listen to the
1294 selected file by clicking the play button to the left of the edit
1295 field. That button then changes function to allow you to stop playing
1296 when you have heard enough.</para>
1297 </listitem>
1298 
1299 <listitem>
1300 <para>Check <guilabel>Repeat</guilabel> to continually repeat the
1301 audio file for as long as the alarm is displayed. (The alarm message
1302 window contains a button to stop playing the sound should you need
1303 silence but still want to display the alarm.)</para>
1304 </listitem>
1305 
1306 <listitem>
1307 <para>Check <guilabel>Volume</guilabel> and adjust the slider
1308 control if you want to adjust the volume at which the audio file is
1309 played.</para>
1310 </listitem>
1311 
1312 <listitem>
1313 <para>If the &phonon; audio backend currently in use supports it, you
1314 can fade the volume. Fading means to start
1315 playing the audio file at one volume and gradually change to the final
1316 volume, over a specified time interval. The final volume is that
1317 entered in <guilabel>Volume</guilabel> above. To enable fade, check
1318 <guilabel>Fade</guilabel>, and then enter the fade period in seconds
1319 in the <guilabel>Fade time</guilabel> field, and adjust the
1320 <guilabel>Initial volume</guilabel> slider.</para>
1321 </listitem>
1322 </itemizedlist>
1323 
1324 <tip><para>You can use the <guibutton>Try</guibutton> button to test out
1325 the selected sound levels.</para></tip>
1326 </listitem>
1327 </itemizedlist>
1328 </listitem>
1329 
1330 <listitem>
1331 <para>Use the <guibutton>Font &amp; Color...</guibutton> button to
1332 select a font, and foreground and background colors, for the alarm
1333 message. In the <guilabel>Choose Alarm Font &amp; Color</guilabel>
1334 dialog, check <guilabel>Use default font</guilabel> to display the
1335 message in whatever font is configured as the default at the time
1336 the message is displayed. To choose a specific font for the message,
1337 uncheck <guilabel>Use default font</guilabel>. (The default font and
1338 colors can be set in the
1339 <link linkend="preferences-edit">Configuration dialog</link>.)</para>
1340 
1341 <para>The selected colors are shown in the alarm message text entry
1342 field.</para>
1343 </listitem>
1344 
1345 <listitem>
1346 <para>The <guilabel>Display method</guilabel> option lets you select
1347 how to display the alarm. Choose:</para>
1348 
1349 <itemizedlist>
1350 <listitem>
1351 <para><guilabel>Window</guilabel> to display the alarm in a window.
1352 This option allows the full range of options to be used when
1353 configuring the alarm.</para>
1354 </listitem>
1355 
1356 <listitem>
1357 <para><guilabel>Notification</guilabel> to use the standard
1358 notification system to display the alarm message. Due to the
1359 limitations of the notification system, the following alarm
1360 configuration options cannot be used with notifications: setting font
1361 and color; setting an audio file to play when the alarm is displayed;
1362 confirmation of alarm acknowledgement; automatic closing of the
1363 display on expiry of the late-cancellation time.</para>
1364 </listitem>
1365 </itemizedlist>
1366 
1367 <para>See the
1368 <link linkend="message-display">Alarm Message Display</link> section
1369 for further details about how alarm messages are displayed.</para>
1370 </listitem>
1371 
1372 <listitem>
1373 <para>Use the <guibutton>Special Actions...</guibutton> button to
1374 specify shell commands to execute before or after displaying the
1375 alarm. In the <guilabel>Special Alarm Actions</guilabel>
1376 dialog:</para>
1377 
1378 <itemizedlist>
1379 <listitem>
1380 <para>In the <guilabel>Pre-alarm action</guilabel> field, enter a
1381 shell command to execute before the alarm is displayed.  Note that
1382 &kalarm; will wait for the command to complete before displaying the
1383 alarm.</para>
1384 
1385 <para>A pre-alarm action is only executed once when the alarm message
1386 is initially displayed, including when a reminder message is replaced
1387 by the actual alarm message. It is <emphasis>not</emphasis> executed
1388 in any of the following circumstances:</para>
1389 
1390 <itemizedlist>
1391 <listitem><para>When a reminder message is displayed.</para></listitem>
1392 <listitem><para>When the message is redisplayed after deferring the
1393 alarm, unless <guilabel>Execute for deferred alarms</guilabel> is
1394 checked.</para></listitem>
1395 <listitem><para>When the message was displaying at the time you logged
1396 off and is then restored when you log back in.</para></listitem>
1397 <listitem><para>When a recurring alarm triggers but the alarm message
1398 (or a deferred alarm message) from a previous occurrence of the alarm
1399 is still visible; in other words, when the previous occurrence of the
1400 alarm has not yet been acknowledged.</para></listitem>
1401 </itemizedlist>
1402 
1403 <para>The pre-alarm action can be used to control whether to display
1404 the alarm message:</para>
1405 
1406 <itemizedlist>
1407 <listitem><para>Check <guilabel>Cancel alarm on error</guilabel> to
1408 cancel the alarm if the pre-alarm command returns an error status.
1409 This will prevent the alarm message from being displayed, and any
1410 post-alarm action from being executed.</para></listitem>
1411 
1412 <listitem><para>Normally, if the pre-alarm command returns an error,
1413 an error message is displayed and an error indication is shown in the
1414 alarm list. These error notifications can be prevented by checking
1415 <guilabel>Do not notify errors</guilabel>.</para></listitem>
1416 </itemizedlist>
1417 </listitem>
1418 
1419 <listitem>
1420 <para>In the <guilabel>Post-alarm action</guilabel> field, enter a
1421 shell command to execute when the alarm is acknowledged (whether by
1422 clicking <guibutton>Close</guibutton> or by using the close button
1423 in the window's titlebar). It is <emphasis>not</emphasis>
1424 executed in any of the following circumstances:</para>
1425 
1426 <itemizedlist>
1427 <listitem><para>When a reminder message is closed.</para></listitem>
1428 <listitem><para>When you defer the alarm, except when the deferred
1429 alarm is finally acknowledged.</para></listitem>
1430 <listitem><para>When the alarm message is closed due to logging
1431 out.</para></listitem>
1432 </itemizedlist>
1433 </listitem>
1434 </itemizedlist>
1435 
1436 <para>See <link linkend="command-alarm">Command Alarms</link> below
1437 for details of how shell commands are executed.</para>
1438 
1439 </listitem>
1440 </itemizedlist>
1441 </sect3>
1442 
1443 <sect3 id="command-alarm">
1444 <title>Command Alarms</title>
1445 
1446 <para>Command alarms execute a command without displaying any alarm
1447 message.</para>
1448 
1449 <note><para>This alarm type is not available if &kde; is running in
1450 kiosk mode.</para></note>
1451 
1452 <para>When the command is executed, the environment variable
1453 <envar>KALARM_UID</envar> contains the event UID for the alarm. Note
1454 that when the command is executed from the Alarm Edit dialog's
1455 <guibutton>Try</guibutton> button, <envar>KALARM_UID</envar> will be
1456 blank if it is a new alarm, or if the alarm has been modified in the
1457 dialog, because the alarm only acquires a UID when it is saved in the
1458 alarm calendar.</para>
1459 
1460 <para>The controls available for command alarms are:</para>
1461 
1462 <itemizedlist>
1463 <listitem>
1464 <para>The <guilabel>Enter a script</guilabel> check box lets you choose
1465 whether to enter a shell command line or a script.</para>
1466 
1467 <para>If this option is unchecked, you can enter a shell command line
1468 to execute. The command is passed straight to the default shell (defined
1469 by the <envar>SHELL</envar> environment variable), and may include
1470 whatever options, parameters, piped commands, &etc; are permitted by
1471 the shell in a single line command.</para>
1472 
1473 <para>If this option is checked, you can enter the text of a script to
1474 execute. Remember to include a first line such as
1475 <literal>#!/bin/bash</literal> to ensure that the correct command
1476 interpreter is invoked.</para>
1477 </listitem>
1478 
1479 <listitem><para>If the command returns an error, an error message is
1480 normally displayed, and an error indication is shown in the alarm
1481 list. The error notification message can be prevented by checking
1482 <guilabel>Do not notify errors</guilabel>.</para></listitem>
1483 
1484 <listitem>
1485 <para>Use the <guilabel>Command Output</guilabel> group box to specify
1486 what you want to be done with any terminal output which the command
1487 produces when it executes.</para>
1488 
1489 <itemizedlist>
1490 <listitem>
1491 <para>Check <guilabel>Execute in terminal window</guilabel> to cause
1492 the command to be executed in a terminal window. You can choose
1493 which type of terminal window should be used in the
1494 <link linkend="preferences-general">Configuration dialog</link>.</para>
1495 </listitem>
1496 
1497 <listitem>
1498 <para>Check <guilabel>Log to file</guilabel> to save the command's
1499 output in a file. The output, prefixed by a heading showing the time
1500 at which the command was scheduled to run, will be appended to any
1501 existing contents of the file. Enter the file name in the edit box, or
1502 use the button beside the edit box to display a file selection
1503 dialog.</para>
1504 </listitem>
1505 
1506 <listitem>
1507 <para>Check <guilabel>Discard</guilabel> to throw away the command's
1508 output.</para>
1509 </listitem>
1510 </itemizedlist>
1511 </listitem>
1512 </itemizedlist>
1513 </sect3>
1514 
1515 <sect3>
1516 <title>Email Alarms</title>
1517 
1518 <para>Email alarms send an email without displaying any alarm
1519 message.</para>
1520 
1521 <para>Fill in the recipients' addresses, the email subject line and the
1522 message body in the three edit fields. Use the button beside the
1523 addressee edit box to display your &kde; address book from which you
1524 can select email recipients. (Note that the button is only shown if
1525 &kalarm;'s
1526 <link linkend="akonadi-plugin">Akonadi plugin</link> is installed and
1527 enabled.)
1528 Attachments may be added using the <guibutton>Add...</guibutton>
1529 button. Note that attached files must still exist when the alarm is
1530 triggered; no copy is stored at the time the alarm is configured. To
1531 remove an attachment, highlight it in the drop-down list and click the
1532 <guibutton>Remove</guibutton> button.</para>
1533 
1534 <para>Set the following options:</para>
1535 
1536 <itemizedlist>
1537 <listitem>
1538 <para>The <guilabel>From</guilabel> combo box allows you to select
1539 which &kmail; identity to use as your email address for sending the
1540 email. This option only appears if your <guilabel>From</guilabel>
1541 email address in the
1542 <link linkend="preferences-email">Configuration dialog</link> is set to
1543 <guilabel>Use &kmail; identities</guilabel>. Otherwise your email
1544 address is preset in the
1545 <link linkend="preferences-email">Configuration dialog</link>, rendering
1546 this option inapplicable.</para>
1547 </listitem>
1548 
1549 <listitem>
1550 <para>Check <guilabel>Copy email to self</guilabel> to send a blind
1551 copy of the email to yourself when the alarm is triggered. The email
1552 address to which the copy will be sent may be set in the
1553 <link linkend="preferences-email">Configuration dialog</link>, the
1554 default being your email address set in &kmail;.</para>
1555 </listitem>
1556 </itemizedlist>
1557 
1558 </sect3>
1559 
1560 <sect3>
1561 <title>Audio Alarms</title>
1562 
1563 <para>Audio alarms play an audio file without displaying any alarm
1564 message.</para>
1565 
1566 <para>Set the following options:</para>
1567 
1568 <itemizedlist>
1569 <listitem>
1570 <para>Enter the sound file path, or use the button beside the
1571 edit box to display a file selection dialog.</para>
1572 </listitem>
1573 
1574 <listitem>
1575 <para>Check <guilabel>Repeat</guilabel> to continually repeat the
1576 audio file until the <guilabel>Stop Play</guilabel> option is
1577 selected. To stop playing the file, select the
1578 <menuchoice><guimenu>Actions</guimenu>
1579 <guimenuitem>Stop Play</guimenuitem></menuchoice> menu option, or
1580 <mousebutton>Right</mousebutton> click on the system tray icon
1581 and choose
1582 <menuchoice><guimenuitem>Stop Play</guimenuitem></menuchoice>
1583 from the context menu. If you wish, you can set up a global
1584 shortcut key for this action.</para>
1585 </listitem>
1586 
1587 <listitem>
1588 <para>Check <guilabel>Volume</guilabel> and adjust the slider
1589 control if you want to adjust the volume at which the audio file is
1590 played.</para>
1591 </listitem>
1592 
1593 <listitem>
1594 <para>If the &phonon; audio backend currently in use supports it, you
1595 can fade the volume. Fading means to start
1596 playing the audio file at one volume and gradually change to the final
1597 volume, over a specified time interval. The final volume is that
1598 entered in <guilabel>Volume</guilabel> above. To enable fade, check
1599 <guilabel>Fade</guilabel>, and then enter the fade period in seconds
1600 in the <guilabel>Fade time</guilabel> field, and adjust the
1601 <guilabel>Initial volume</guilabel> slider.</para>
1602 </listitem>
1603 </itemizedlist>
1604 </sect3>
1605 </sect2>
1606 
1607 <sect2>
1608 <title>Deferral</title>
1609 
1610 <para>If the alarm is a recurring alarm and it was deferred after it
1611 was last displayed, the <guilabel>Deferred Alarm</guilabel> group box
1612 shows the time the alarm was deferred to.
1613 <guibutton>Change...</guibutton> displays a dialog which allows you to
1614 change the deferred time or to cancel the deferral.</para>
1615 
1616 </sect2>
1617 
1618 <sect2>
1619 <title>Time</title>
1620 
1621 <para>In the <guilabel>Time</guilabel> group box, select either</para>
1622 
1623 <itemizedlist>
1624 <listitem>
1625 <para><guilabel>At date/time</guilabel> to enter the date and time
1626 when the alarm is to be triggered. Check <guilabel>Any time</guilabel>
1627 if you want to specify only a date for the alarm: in this case the
1628 alarm will be displayed at the first opportunity on or after the
1629 configured start-of-day time, on the specified date.
1630 (<link linkend="preferences-time">Configuring &kalarm;</link>
1631 describes how to set the start-of-day time.)</para>
1632 
1633 <para>For a non-recurring alarm, the date/time which you enter must be
1634 in the future, or if you enter only a date it must be today or later.
1635 For a recurring alarm, there are no such restrictions since the start
1636 date/time will be automatically adjusted to the first recurrence due
1637 after the current time.</para>
1638 </listitem>
1639 
1640 <listitem>
1641 <para><guilabel>Time from now</guilabel> to enter how long after now
1642 (in hours and minutes) the alarm should be triggered.</para>
1643 </listitem>
1644 </itemizedlist>
1645 
1646 <para>If desired, choose a time zone to apply to the alarm. This time
1647 zone is used for all dates and times relating to this alarm, including
1648 recurrence and exception dates and times. Normally, you should leave
1649 the time zone controls unchanged unless you have a good reason to
1650 change them.</para>
1651 
1652 <para>The time zone controls are displayed only when the selected time
1653 zone is different from the default time zone set in the
1654 <link linkend="preferences-time">Configuration dialog</link>, or if
1655 you click the <guibutton>Time Zone...</guibutton> button.</para>
1656 
1657 <itemizedlist>
1658 <listitem>
1659 <para>In the combo box, choose the time zone which this alarm is to
1660 use. When creating a new alarm, this is initially set to the time zone
1661 selected in the
1662 <link linkend="preferences-time">Configuration dialog</link>, which
1663 will be your computer's time zone unless you have changed it.</para>
1664 </listitem>
1665 
1666 <listitem>
1667 <para>Select <guilabel>System time zone</guilabel> if you want to use
1668 the local computer time zone (on whichever computer &kalarm; happens to
1669 be running on at the time).</para>
1670 </listitem>
1671 </itemizedlist>
1672 
1673 </sect2>
1674 
1675 <sect2>
1676 <title>Reminder</title>
1677 
1678 <para>For a display alarm, check <guilabel>Reminder</guilabel> if you
1679 want to display a reminder either before or after the main alarm and
1680 each of its recurrences (if any). Enter how long in advance or
1681 afterwards, using the edit controls beside the check box. Note that
1682 if the alarm recurs, the reminder period is normally limited to
1683 being less than the recurrence or sub-repetition interval.</para>
1684 
1685 <note><para>Reminders are not displayed for sub-repetitions within a
1686 recurrence. Reminders are only shown for each main recurrence of the
1687 alarm.</para></note>
1688 
1689 <para>If the alarm recurs, check <guilabel>Reminder for first
1690 recurrence only</guilabel> if you only want a reminder for the alarm's
1691 first recurrence. If this is checked, and it is an advance reminder,
1692 the reminder period is not subject to the normal limit of being less
1693 than the recurrence or sub-repetition interval.</para>
1694 
1695 
1696 </sect2>
1697 
1698 <sect2>
1699 <title>Cancelation</title>
1700 
1701 <para>The late-cancelation options determine how an alarm is treated
1702 after its scheduled time:</para>
1703 
1704 <itemizedlist>
1705 <listitem>
1706 <para>The <guilabel>Cancel if late</guilabel> check box determines what
1707 happens if the alarm cannot be triggered at its scheduled time.</para>
1708 
1709 <para>Check this box to cancel the alarm if it cannot be triggered
1710 within a specified time period after the right time. The time period
1711 is selected using controls which appear when you check the box. For
1712 example, if you enter a time period of 1 hour, the alarm will be
1713 triggered at the first opportunity up to an hour after it is due, but
1714 if it cannot be triggered within an hour its activation will be
1715 canceled.</para>
1716 
1717 <note><para>The lateness of date-only alarms, &ie; ones for which the
1718 <guilabel>Any time</guilabel> option is selected, is calculated from
1719 the start-of-day time on the alarm's scheduled date.</para></note>
1720 
1721 <para>Leave the box unchecked to trigger the alarm at the first
1722 opportunity starting at the scheduled time, regardless of how late it
1723 is.</para>
1724 
1725 <note><para>An alarm can only be triggered while you are logged in,
1726 and while both X and &kalarm; are running.</para></note>
1727 </listitem>
1728 
1729 <listitem>
1730 <para>Check <guilabel>Auto-close window after this time</guilabel> if
1731 you want the alarm window to be automatically closed if it is still
1732 showing at the expiry of the late-cancelation time.</para>
1733 </listitem>
1734 </itemizedlist>
1735 
1736 </sect2>
1737 
1738 <sect2>
1739 <title>Recurrence</title>
1740 
1741 <para>Specify whether or how the alarm should be repeated using the
1742 <guilabel>Recurrence</guilabel> tab.</para>
1743 
1744 <note><para>The alarm's basic repetition characteristics are displayed
1745 for convenience in the title of the <guilabel>Recurrence</guilabel>
1746 tab. The recurrence interval is shown first, followed by any
1747 sub-repetition interval set up using the
1748 <guibutton>Sub-Repetition</guibutton> button.</para></note>
1749 
1750 <para>In the <guilabel>Recurrence Rule</guilabel> group box, set the
1751 recurrence type or time period as follows:</para>
1752 
1753 <itemizedlist>
1754 <listitem><para>To trigger the alarm once only, select <guilabel>No
1755 recurrence</guilabel>.</para></listitem>
1756 
1757 <listitem><para>Select <guilabel>At login</guilabel> to trigger the
1758 alarm whenever you log in, until its scheduled end time. Then, at its
1759 scheduled end time it will finally be triggered one last time. (Note
1760 that an alarm repeated at login will also be triggered any time you
1761 restart &kalarm;.)</para></listitem>
1762 
1763 <listitem>
1764 <para>To make the alarm recur at regular intervals, select one of the
1765 time period types and then enter in the
1766 <guilabel>Recur every</guilabel> box how many time periods should
1767 elapse between recurrences. For example, to repeat
1768 every fortnight, you could select <guilabel>Daily</guilabel> and enter
1769 a value of 14, or select <guilabel>Weekly</guilabel> and enter a value
1770 of 2. Depending on the time period type selected, you may have further
1771 options:</para>
1772 
1773 <itemizedlist>
1774 <listitem>
1775 <para>For a weekly recurrence, check each day in the week on which you
1776 wish to trigger the alarm.</para>
1777 </listitem>
1778 
1779 <listitem>
1780 <para>For a monthly recurrence, you may select either a fixed date, or
1781 a position (&eg; the second Tuesday).</para>
1782 </listitem>
1783 
1784 <listitem>
1785 <para>For a yearly recurrence, you may select either a fixed day in
1786 the month, or a position in a month (&eg; the last Saturday in
1787 May). Check each month of the year in which you wish to trigger the
1788 alarm.</para>
1789 
1790 <para>If you set up a yearly recurrence for February 29th, you can
1791 specify how it is to be handled in non-leap years by selecting the
1792 appropriate
1793 <guilabel>February 29th alarm in non-leap years</guilabel>
1794 option:</para>
1795 
1796 <itemizedlist>
1797 <listitem><para><guilabel>None</guilabel>: the alarm will occur on
1798 February 29th in leap years, but will be suppressed in non-leap
1799 years.</para>
1800 </listitem>
1801 
1802 <listitem><para><guilabel>28 Feb</guilabel>: the alarm will occur on
1803 February 29th in leap years, and on February 28th in non-leap
1804 years.</para>
1805 </listitem>
1806 
1807 <listitem><para><guilabel>1 Mar</guilabel>: the alarm will occur on
1808 February 29th in leap years, and on March 1st in non-leap
1809 years.</para>
1810 </listitem>
1811 </itemizedlist>
1812 </listitem>
1813 </itemizedlist>
1814 
1815 <tip><para>To set a daily alarm to occur only on weekdays, use a
1816 weekly recurrence and check each weekday.</para></tip>
1817 
1818 </listitem>
1819 </itemizedlist>
1820 
1821 <para>In the <guilabel>Recurrence End</guilabel> group box, set the
1822 overall recurrence time span as follows:</para>
1823 
1824 <itemizedlist>
1825 <listitem><para>Select <guilabel>No end</guilabel> to continue the
1826 repetitions indefinitely.</para></listitem>
1827 
1828 <listitem><para>Select <guilabel>End after</guilabel> to specify the
1829 total number of occurrences of the alarm.</para></listitem>
1830 
1831 <listitem><para>Select <guilabel>End by</guilabel> to specify the
1832 date/time until which the alarm will be repeated. Note that this uses
1833 the same time zone as the alarm's start time.</para>
1834 
1835 <note><para>The end date/time determines when the last main recurrence
1836 will be, but does not limit sub-repetitions. If sub-repetitions are
1837 configured, they will trigger as normal after the last main recurrence,
1838 regardless of the end date/time.</para></note>
1839 </listitem>
1840 </itemizedlist>
1841 
1842 <para>The <guilabel>Exceptions</guilabel> group box allows you to
1843 exclude certain date/times from the recurrence which you have set up.
1844 Note that these controls are not shown in the simplified form of the
1845 Alarm Edit dialog: to see them, click
1846 <guibutton>More Options</guibutton>.</para>
1847 
1848 <itemizedlist>
1849 <listitem>
1850 <para>The list of exceptions (&ie; excluded date/times) is shown on
1851 the left. To add a new exception, enter a date on the right and press
1852 <guibutton>Add</guibutton>. To change an exception, highlight it in
1853 the list, enter the new date on the right and press
1854 <guibutton>Change</guibutton>. To delete an exception, highlight it
1855 in the list and press <guibutton>Delete</guibutton>.</para>
1856 </listitem>
1857 
1858 <listitem>
1859 <para>You can restrict an alarm not to occur on holidays by checking
1860 <guilabel>Exclude holidays</guilabel>. This does not change the way
1861 the alarm is scheduled; it simply suppresses the alarm whenever it
1862 happens to trigger on a holiday. You can select your holiday country
1863 or region in the
1864 <link linkend="preferences-time">Configuration dialog</link>.</para>
1865 </listitem>
1866 
1867 <listitem>
1868 <para>You can restrict an alarm to occur only during working time by
1869 checking <guilabel>Only during working hours</guilabel>. This does not
1870 change the way the alarm is scheduled; it simply suppresses the alarm
1871 whenever it happens to trigger outside working hours. Work days and
1872 working hours are set in the
1873 <link linkend="preferences-time">Configuration dialog</link>.</para>
1874 </listitem>
1875 </itemizedlist>
1876 
1877 <sect3>
1878 <title>Sub-Repetition</title>
1879 
1880 <para>You can use the <guibutton>Sub-Repetition</guibutton> button to
1881 set up a repetition within a repetition. In this case, each time the
1882 alarm is due as specified in the main recurrence, instead of being
1883 triggered just once it is triggered repeatedly in accordance with your
1884 sub-repetition specification. For example, to set up an alarm which
1885 repeats every hour from noon to 6 pm each Thursday, you would set up a
1886 weekly recurrence on Thursday at 12:00, and use the Sub-Repetition
1887 dialog to specify an interval of 1 hour and either a count of 6 or a
1888 duration of 6 hours.</para>
1889 
1890 <para>In the Sub-Repetition dialog which is displayed when you click
1891 the <guibutton>Sub-Repetition</guibutton> button, check
1892 <guilabel>Repeat every</guilabel> to set up a repetition, or uncheck
1893 it to remove the repetition. If <guilabel>Repeat every</guilabel> is
1894 checked, set up the repetition as follows:</para>
1895 
1896 <itemizedlist>
1897 <listitem><para>Enter the time interval between repetitions in the
1898 controls beside <guilabel>Repeat every</guilabel>. Select the desired
1899 time units (&eg; <guilabel>days</guilabel>) and then enter the number
1900 of units.</para>
1901 </listitem>
1902 
1903 <listitem><para>Specify either the repetition count or its
1904 duration:</para>
1905 
1906 <itemizedlist>
1907 <listitem><para>Select <guilabel>Number of times</guilabel> to enter
1908 how many times the alarm should be triggered after the main
1909 recurrence. So, for example, to make the alarm occur 4 times at each
1910 main recurrence, &ie; 3 additional times, you should enter 3
1911 here.</para>
1912 </listitem>
1913 
1914 <listitem><para>Select <guilabel>Duration</guilabel> to enter the
1915 total time period during which the alarm should be repeated. This need
1916 not be an exact multiple of the repetition interval; it will
1917 automatically be rounded down when you click
1918 <guibutton>OK</guibutton>.</para>
1919 </listitem>
1920 </itemizedlist>
1921 </listitem>
1922 </itemizedlist>
1923 
1924 <note><para>To prevent overlapping sub-repetitions for the same alarm,
1925 a sub-repetition's duration is restricted to be less than the longest
1926 interval between main recurrences. Each time the alarm recurs as
1927 specified in the main recurrence, any still active sub-repetition
1928 which started at the previous recurrence is automatically
1929 cancelled.</para></note>
1930 
1931 </sect3>
1932 </sect2>
1933 
1934 <sect2>
1935 <title>Other Controls</title>
1936 
1937 <para>If the system configuration allows multiple alarms to wake the
1938 system from suspension, you can select
1939 <guilabel>Wake from suspend</guilabel> to wake the system if it is
1940 currently suspended when the alarm becomes due. This function is not
1941 available for date-only alarms because their time is not defined. See 
1942 <link linkend="wake-suspend">Wake From Suspend</link> for more
1943 information.</para>
1944 
1945 <para>For display alarms, the
1946 <guilabel>Confirm acknowledgment</guilabel> check box lets you specify
1947 whether you will be prompted for confirmation when you close the alarm
1948 message window. This may be used as a safeguard against accidental
1949 acknowledgment of alarms.</para>
1950 
1951 <para>Select <guilabel>Show in &korganizer;</guilabel> to add the
1952 alarm to &korganizer;'s active calendar, where it will appear as an
1953 event without an alarm. This option allows you to track alarms in
1954 &korganizer; while still making use of &kalarm;'s functions.</para>
1955 
1956 <note><para>If you later modify or delete the alarm in &kalarm;, the
1957 &korganizer; event will be modified or deleted correspondingly. But
1958 if you change the event in &korganizer;, the alarm in &kalarm; will
1959 not be affected.</para></note>
1960 
1961 <para>Press the <guibutton>Load Template</guibutton> button to select
1962 a template to preset the dialog with, as described in <link
1963 linkend="create-edit">Creating and Manipulating Alarms</link>. </para>
1964 
1965 <para>Press the <guibutton>Try</guibutton> button to test the alarm
1966 and check whether it works correctly. The alarm is executed just as
1967 if it had been scheduled in the normal way. In the case of an audio
1968 alarm, press the <guibutton>Try</guibutton> button a second time to
1969 stop playing the sound file.</para>
1970 
1971 <para>Press the <guibutton>OK</guibutton> button
1972 when all details are correct, to add the alarm to the scheduled
1973 list. Note that when editing an existing alarm, the
1974 <guibutton>OK</guibutton> button is disabled while no changes have
1975 been made.</para>
1976 
1977 </sect2>
1978 </sect1>
1979 
1980 <sect1 id="message-display">
1981 <title>Alarm Message Display</title>
1982 
1983 <para>Alarm messages may be displayed in windows or as notifications,
1984 depending on the option chosen in the 
1985 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>. These two
1986 display options are described below.</para>
1987 
1988 <para>If you inhibit notifications for the desktop, the execution of
1989 display alarms will be suspended until notifications are re-enabled.
1990 Note that this applies to all display alarms, regardless of whether
1991 they are displayed in windows or as notifications.</para>
1992 
1993 <sect2 id="message-window">
1994 <title>Alarm Message Window</title>
1995 
1996 <para>Alarm messages which are displayed in windows provide the
1997 fullest functionality.</para>
1998 
1999 <para>When an alarm message is due, it is if possible displayed on
2000 each desktop and cannot be covered by ordinary windows, to ensure that
2001 you see it. (Note that only the X11 windowing system currently provides
2002 this facility.) The message window shows the time for which the alarm was
2003 scheduled, so that you can see when it popped up if you were away from
2004 the computer at the time. If the alarm's scheduled time is in a
2005 different time zone from your local computer's setting, its time zone
2006 will also be displayed. (For reminder messages, the date/time shown is
2007 that for the main alarm or its recurrence, not the reminder message
2008 time, and the window title is <quote>Reminder</quote>.)</para>
2009 
2010 <para>Alarm message windows remain visible until you acknowledge them,
2011 unless <guilabel>Auto-close window after late-cancelation
2012 time</guilabel> was checked in the <link
2013 linkend="alarm-edit-dlg">Alarm Edit dialog</link>. In the case of a
2014 recurring alarm, if an unacknowledged message window remains from a
2015 previous occurrence of the alarm, the existing window is simply popped
2016 up when the alarm recurs. This avoids having to acknowledge multiple
2017 copies of the same message should you not wish, or be unable, to
2018 acknowledge a message at the time it appears.</para>
2019 
2020 <para>The alarm message window provides whichever of the following
2021 options are applicable to the displayed alarm:</para>
2022 
2023 <itemizedlist>
2024 <listitem>
2025 <para>Acknowledge the alarm by clicking the
2026 <guibutton>Close</guibutton> button. This closes the window (after a
2027 prompt for confirmation, if you selected
2028 <guilabel>Confirm acknowledgment</guilabel>).</para>
2029 </listitem>
2030 
2031 <listitem>
2032 <para>Edit the alarm by clicking the <guibutton>Edit...</guibutton>
2033 button. This displays the
2034 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>.</para>
2035 </listitem>
2036 
2037 <listitem>
2038 <para>Display options to defer the alarm until later by clicking the
2039 <guibutton>Defer...</guibutton> button. Then select
2040 <guilabel>Defer for</guilabel> to enter how long after now the
2041 message should be redisplayed (the <guilabel>Preset</guilabel>
2042 button lets you select from a list of common time intervals), or
2043 select <guilabel>Defer until</guilabel> to enter the date and time
2044 when the message is to be redisplayed. Then click
2045 <guibutton>OK</guibutton> to defer the alarm message and close its
2046 window.</para>
2047 
2048 <note><para>The time the alarm is deferred to must be earlier than its
2049 next scheduled occurrence or next advance reminder. For this reason,
2050 the <guibutton>Defer...</guibutton> button in the alarm message window
2051 and the <guibutton>OK</guibutton> button in the Deferral dialog are
2052 disabled one minute before the next occurrence or advance
2053 reminder.</para>
2054 <para>Note that if a reminder is configured <emphasis>after</emphasis>
2055 the alarm, you <emphasis>can</emphasis> defer the alarm past its
2056 reminder time. In this case, the reminder will be
2057 suppressed.</para></note>
2058 
2059 <note><para>The <guibutton>Defer...</guibutton> button is not
2060 available for alarms which are displayed at login due to the
2061 <guilabel>Repeat at login</guilabel> option having been
2062 selected.</para></note>
2063 </listitem>
2064 
2065 <listitem>
2066 <para>Stop playing the alarm's sound file by clicking the button
2067 showing the <quote>stop playing</quote> symbol.</para>
2068 </listitem>
2069 
2070 <listitem>
2071 <para>If the alarm message was created by dragging an email from
2072 &kmail;, you can directly access the email in &kmail; by clicking the
2073 button showing the &kmail; icon. This will display the email and
2074 select the folder containing the email in &kmail;'s folder list.</para>
2075 
2076 <warning><para>If &kmail;'s indexes are regenerated, the link to the
2077 email in &kmail; will be lost.</para></warning>
2078 </listitem>
2079 
2080 <listitem>
2081 <para>The button showing the <guiicon>&kalarm;</guiicon> icon provides
2082 a convenient way to activate &kalarm;'s main window, with that alarm
2083 highlighted.</para>
2084 </listitem>
2085 </itemizedlist>
2086 
2087 <para>The way that alarm message windows are displayed depends on the
2088 windowing system in use.</para>
2089 
2090 <itemizedlist>
2091 <listitem>
2092 <para><application>X11 Windowing System</application></para>
2093 
2094 <para>You can choose in the
2095 <link linkend="preferences-view">Configuration dialog</link> which of
2096 two different modes should be used to display alarm message
2097 windows:</para>
2098 
2099 <itemizedlist>
2100 <listitem>
2101 <para>As a normal window. In this mode, the keyboard focus is taken
2102 by the alarm message window when it appears, so if you are typing at
2103 the time your keystrokes will be diverted to it rather than your
2104 original application.</para>
2105 </listitem>
2106 
2107 <listitem>
2108 <para>As a non-modal window. In this mode, the keyboard focus is
2109 unaffected when the alarm message window appears, so it will not
2110 interfere with your typing. However in this mode the window has no
2111 titlebar or frame, so you cannot move it or resize it.</para>
2112 </listitem>
2113 </itemizedlist>
2114 
2115 <note><para>When an alarm is displayed on top of a full screen
2116 application, it is shown as a non-modal window regardless of this
2117 configuration setting. This is due to a limitation of the window
2118 system.</para></note>
2119 
2120 <para>You can choose in the
2121 <link linkend="preferences-view">Configuration dialog</link> which of
2122 two schemes should be used to position alarm message windows:</para>
2123 
2124 <itemizedlist>
2125 <listitem>
2126 <para>The windows are displayed as far away from the current mouse
2127 cursor as possible. This minimizes disruption to your work flow and
2128 minimizes the possibility of accidentally acknowledging the
2129 alarm.</para>
2130 </listitem>
2131 
2132 <listitem>
2133 <para>The windows are displayed in the center of the screen. To reduce
2134 the chance of accidentally acknowledging the alarm, the buttons on the
2135 window are initially disabled, becoming active only after a
2136 configurable delay.</para>
2137 </listitem>
2138 </itemizedlist>
2139 
2140 <para>If you have several alarm message windows, or error messages,
2141 displayed, you can spread the windows out across the screen to make
2142 them all visible, or group them all together again in the top left
2143 corner of the screen, by means of the <menuchoice>
2144 <guimenu>View</guimenu><guimenuitem>Spread Windows</guimenuitem>
2145 </menuchoice> menu option. If you wish, you can set up a global
2146 shortcut key for this action.</para>
2147 
2148 </listitem>
2149 
2150 <listitem>
2151 <para><application>Wayland Windowing System</application></para>
2152 
2153 <para>The Wayland windowing system does not allow applications to
2154 control the position or decoration of their windows, so the display
2155 options are much more limited.</para>
2156 
2157 <para>To reduce the chance of accidentally acknowledging the alarm, the
2158 buttons on the window are initially disabled, becoming active only
2159 after a configurable delay.</para>
2160 
2161 </listitem>
2162 
2163 </itemizedlist>
2164 
2165 </sect2>
2166 
2167 <sect2>
2168 <title>Alarm Message Notifications</title>
2169 
2170 <para>Alarm messages which are displayed as notifications provide
2171 less functionality than those displayed in windows.</para>
2172 
2173 <para>When an alarm message is due, it is displayed as a notification.
2174 The notification shows the time for which the alarm was scheduled. If
2175 the alarm's scheduled time is in a different time zone
2176 from your local computer's setting, its time zone will also be
2177 displayed. (For reminder messages, the date/time shown is that for the
2178 main alarm or its recurrence, not the reminder message time, and a
2179 “Reminder” heading is shown.)</para>
2180 
2181 <para>The notification automatically closes after a  short time-out.
2182 (Note that the time-out is common to all applications; it can be
2183 changed in &systemsettings;.) After a notification times out, it can
2184 still be seen in the notification history until you remove it or
2185 until you log out. Because applications have no way to access the
2186 notification history, &kalarm; cannot remove or replace notifications
2187 in the history as it would for alarm windows. So the history may
2188 contain multiple notifications for the same alarm, including reminders
2189 and recurrences.</para>
2190 
2191 <para>The alarm message notification provides the following options.
2192 Note that selecting any option will immediately close the notification,
2193 and prevent it being shown in the notification history.
2194 Note also that these options are only available while the notification
2195 is active, before it times out. If you subsequently access the
2196 notification in the notification history, then due to the limitations
2197 of the notification system, the only interaction available is to
2198 remove it from the history.</para>
2199 
2200 <itemizedlist>
2201 <listitem>
2202 <para>Acknowledge the alarm by clicking the
2203 <guibutton>Close</guibutton> button. This closes the notification.</para>
2204 </listitem>
2205 
2206 <listitem>
2207 <para>Edit the alarm by clicking the <guibutton>Edit</guibutton>
2208 button. This displays the
2209 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>.</para>
2210 </listitem>
2211 
2212 <listitem>
2213 <para>Display options to defer the alarm until later by clicking the
2214 <guibutton>Defer</guibutton> button. This button is only shown if it
2215 is possible to defer the alarm. See the description of the defer
2216 option in the
2217 <link linkend="message-window">Alarm Message Window</link> section
2218 for details.</para>
2219 </listitem>
2220 
2221 <listitem>
2222 <para>Clicking the notification anywhere other than a button will
2223 activate &kalarm;'s main window, with that alarm highlighted.</para>
2224 </listitem>
2225 
2226 </itemizedlist>
2227 
2228 </sect2>
2229 </sect1>
2230 
2231 <sect1 id="system-tray">
2232 <title>System Tray Operation</title>
2233 
2234 <para>&kalarm; by default displays an icon in the system tray. The icon
2235 provides both control and an alarm monitoring status indication. A
2236 normal &kalarm; icon indicates that all alarms are being monitored,
2237 while two different modified icons indicate either that
2238 some alarms, or that all alarms, are not being monitored. The icon
2239 modifications depend on the icon theme being used.</para>
2240 
2241 <para>&kalarm;'s system tray icon is by default automatically hidden
2242 whenever there are no alarms due in the next 24 hours. You can change
2243 the auto-hide time limit, or always show the system tray icon, using
2244 the <link linkend="preferences-view">Configuration dialog</link>. To
2245 show the icon when it has been automatically hidden, click the arrow
2246 in the system tray to reveal hidden icons.</para>
2247 
2248 <para>If you hover the mouse cursor over the system tray icon, a
2249 summary of the first few message alarms due in the next 24 hours are
2250 displayed as a tooltip. You can switch this feature off, or configure
2251 the number of alarms to display and their format, in the
2252 <link linkend="preferences-view">Configuration dialog</link>.</para>
2253 
2254 <para><mousebutton>Left</mousebutton> click on the system tray icon to
2255 toggle between displaying and hiding the &kalarm; main window.</para>
2256 
2257 <para><mousebutton>Right</mousebutton> click on the system tray icon to
2258 display its context menu:</para>
2259 
2260 <variablelist>
2261 <varlistentry>
2262 <term><menuchoice><guimenuitem>Enable Alarms</guimenuitem></menuchoice></term>
2263 <listitem><para><action>Enables or disables monitoring of alarms.</action></para>
2264 <para>See
2265 <link linkend="enable-disable">Enabling and Disabling Alarms</link>
2266 for details.</para>
2267 </listitem>
2268 </varlistentry>
2269 
2270 <varlistentry>
2271 <term><menuchoice><guimenuitem>New Alarm</guimenuitem></menuchoice></term>
2272 <listitem><para><action>After you select the alarm type from the list
2273 which appears, opens the Alarm Edit dialog to create a new
2274 alarm.</action></para>
2275 </listitem>
2276 </varlistentry>
2277 
2278 <varlistentry>
2279 <term><menuchoice><guimenuitem>Stop Play</guimenuitem></menuchoice></term>
2280 <listitem><para><action>Halts playback of the audio file currently
2281 playing.</action></para>
2282 </listitem>
2283 </varlistentry>
2284 
2285 <varlistentry>
2286 <term><menuchoice><guimenuitem>Spread Windows</guimenuitem></menuchoice></term>
2287 <listitem><para><action>Spreads alarm and error message windows across
2288 the screen, or groups them together again.</action></para>
2289 </listitem>
2290 </varlistentry>
2291 
2292 <varlistentry>
2293 <term><menuchoice><guimenuitem>Configure &kalarm;...</guimenuitem></menuchoice></term>
2294 <listitem><para><action>Displays the &kalarm; Configuration dialog.</action></para>
2295 <para>The Configuration dialog is described in
2296 <link linkend="preferences">Configuring &kalarm;</link>. It
2297 includes options relating to the &kalarm; system tray icon.</para>
2298 </listitem>
2299 </varlistentry>
2300 
2301 <varlistentry>
2302 <term><menuchoice><guimenuitem>Restore / Minimize</guimenuitem></menuchoice></term>
2303 <listitem><para><action>Restores or minimizes the main &kalarm; window.</action></para>
2304 </listitem>
2305 </varlistentry>
2306 
2307 <varlistentry>
2308 <term><menuchoice><guimenuitem>Quit</guimenuitem></menuchoice></term>
2309 <listitem><para><action>Closes the &kalarm; system tray
2310 icon and main windows.</action></para>
2311 <para>Quits &kalarm; if no alarm message windows are displayed.</para>
2312 </listitem>
2313 </varlistentry>
2314 </variablelist>
2315 
2316 <sect2>
2317 <title>Displaying &kalarm; in the System Tray</title>
2318 
2319 <para>You must be running the &plasma; desktop or another suitable window
2320 manager in order to display &kalarm; in the system tray.</para>
2321 
2322 <para>Select <menuchoice><guimenu>View</guimenu>
2323 <guimenuitem>Show in System Tray</guimenuitem></menuchoice> to display
2324 &kalarm; in the system tray according to the preferences set in the
2325 <link linkend="preferences-view">View</link> tab of the Configuration
2326 dialog.</para>
2327 
2328 <para>To remove &kalarm; from the system tray, deselect
2329 <menuchoice><guimenu>View</guimenu>
2330 <guimenuitem>Show in System Tray</guimenuitem></menuchoice>.</para>
2331 
2332 <para>To choose whether or not &kalarm; will be shown at startup in
2333 the system tray, use the <link linkend="preferences-view">View</link>
2334 tab of the Configuration dialog.</para>
2335 </sect2>
2336 </sect1>
2337 
2338 <sect1 id="refreshing">
2339 <title>Refreshing Alarms</title>
2340 
2341 <para>If in the unlikely event that any alarm was not triggered when
2342 it should have been, you can refresh the alarm list and trigger any
2343 missed alarms by selecting
2344 <menuchoice>
2345 <guimenu>Actions</guimenu><guimenuitem>Refresh Alarms</guimenuitem>
2346 </menuchoice>. This causes &kalarm; to reload all alarm
2347 calendars.</para>
2348 
2349 <para>You can reload an individual calendar and refresh its alarms in
2350 the alarm list by
2351 <mousebutton>Right</mousebutton> clicking the calendar in the
2352 calendars list and selecting the
2353 <menuchoice><guimenuitem>Reload</guimenuitem></menuchoice> menu
2354 option. See <link linkend="calendars">Alarm Calendars</link> for
2355 details.</para>
2356 
2357 </sect1>
2358 
2359 <sect1 id="enable-disable">
2360 <title>Enabling and Disabling Alarms</title>
2361 
2362 <para>Alarms may be enabled and disabled either as a whole or
2363 individually:</para>
2364 
2365 <itemizedlist>
2366 <listitem>
2367 <para><quote>Alarm monitoring</quote> applies to alarms as a whole.
2368 While alarm monitoring is disabled, no alarms are triggered at all.
2369 While alarm monitoring is enabled (the normal situation), all alarms
2370 which are not individually disabled will trigger at the appropriate
2371 times.</para>
2372 
2373 <para>When alarm monitoring is re-enabled, alarms which would have
2374 triggered while it was disabled are now triggered (unless any
2375 late-cancel option prevents this). In other words, disabling alarm
2376 monitoring has the same effect as stopping &kalarm; &ndash; alarms are
2377 postponed until it is re-enabled.</para>
2378 </listitem>
2379 
2380 <listitem>
2381 <para>Alarms may be individually enabled and disabled, independently
2382 of the alarm monitoring status. So the enabled/disabled status of
2383 individual alarms will be unchanged by disabling and then re-enabling
2384 alarm monitoring. Unlike alarm monitoring which could potentially be
2385 disabled due to &kalarm; not running, individual alarms can only be
2386 disabled if you use menu commands to do so.</para>
2387 
2388 <para>When an alarm is individually re-enabled, it is not now
2389 triggered if it became due while disabled. In other words, disabling
2390 an individual alarm cancels all its occurrences until it is
2391 re-enabled.</para>
2392 
2393 <para>An alarm's individual enabled/disabled status is indicated by
2394 its color in the alarm list (the color being configurable in the
2395 <link linkend="preferences-view">View</link> tab of the Configuration
2396 dialog).</para>
2397 </listitem>
2398 </itemizedlist>
2399 
2400 <para>For an alarm to trigger, it must be individually enabled as well
2401 as alarm monitoring being enabled.</para>
2402 
2403 <sect2>
2404 <title>Enabling Alarm Monitoring</title>
2405 
2406 <para>For alarm monitoring to occur, &kalarm; must be running. Once you
2407 run &kalarm;, it will from then on start automatically whenever you log
2408 in unless you later disable it in the 
2409 <link linkend="preferences-general">General</link> tab of the
2410 Configuration dialog.</para>
2411 
2412 <para>If alarm monitoring is currently disabled, do one of the
2413 following to enable alarms:</para>
2414 
2415 <itemizedlist>
2416 <listitem>
2417 <para>Select <menuchoice><guimenu>Actions</guimenu>
2418 <guimenuitem>Enable Alarms</guimenuitem></menuchoice>.</para>
2419 </listitem>
2420 
2421 <listitem>
2422 <para><mousebutton>Right</mousebutton> click on the system tray icon
2423 and choose
2424 <menuchoice><guimenuitem>Enable Alarms</guimenuitem></menuchoice>
2425 from the context menu.</para>
2426 </listitem>
2427 </itemizedlist>
2428 
2429 </sect2>
2430 
2431 <sect2>
2432 <title>Disabling Alarm Monitoring</title>
2433 
2434 <para>You can temporarily disable alarm monitoring, which prevents
2435 &kalarm; from checking any alarms either until you re-enable alarms, or
2436 &ndash; assuming that &kalarm; is configured to start at login &ndash;
2437 until the next time you log in.</para>
2438 
2439 <itemizedlist>
2440 <listitem>
2441 <para>Unselect <menuchoice><guimenu>Actions</guimenu>
2442 <guimenuitem>Enable Alarms</guimenuitem></menuchoice>.</para>
2443 </listitem>
2444 
2445 <listitem>
2446 <para><mousebutton>Right</mousebutton> click on the system tray icon
2447 and uncheck
2448 <menuchoice><guimenuitem>Enable Alarms</guimenuitem></menuchoice>
2449 from the context menu.</para>
2450 </listitem>
2451 
2452 <listitem>
2453 <para>Run &kalarm; with the command line option
2454 <option>--disable-all</option>.</para>
2455 </listitem>
2456 
2457 <listitem>
2458 <para>Stop &kalarm; as described in
2459 <link linkend="quitting">Quitting &kalarm;</link>.</para>
2460 </listitem>
2461 </itemizedlist>
2462 
2463 <para>Alarms may be permanently disabled by preventing &kalarm; from
2464 being started at login using the
2465 <link linkend="preferences-general">General</link> tab of the
2466 Configuration dialog.</para>
2467 
2468 </sect2>
2469 
2470 <sect2>
2471 <title>Enabling and Disabling Individual Alarms</title>
2472 
2473 <para>To enable individual alarms which are currently disabled, do
2474 one of the following:</para>
2475 
2476 <itemizedlist>
2477 <listitem>
2478 <para>Select one or more alarms by clicking on their entries in the
2479 alarm list. Then choose <menuchoice>
2480 <guimenu>Actions</guimenu><guimenuitem>Enable</guimenuitem>
2481 </menuchoice>.</para>
2482 </listitem>
2483 
2484 <listitem>
2485 <para><mousebutton>Right</mousebutton> click on the desired entries in
2486 the alarm list and choose
2487 <menuchoice><guimenuitem>Enable</guimenuitem></menuchoice>
2488 from the context menu.</para>
2489 </listitem>
2490 </itemizedlist>
2491 
2492 <para>To disable individual alarms which are currently enabled, do one
2493 of the following:</para>
2494 
2495 <itemizedlist>
2496 <listitem>
2497 <para>Select one or more alarms by clicking on their entries in the
2498 alarm list. Then choose <menuchoice>
2499 <guimenu>Actions</guimenu><guimenuitem>Disable</guimenuitem>
2500 </menuchoice>.</para>
2501 </listitem>
2502 
2503 <listitem>
2504 <para><mousebutton>Right</mousebutton> click on the desired entries in
2505 the alarm list and choose
2506 <menuchoice><guimenuitem>Disable</guimenuitem></menuchoice>
2507 from the context menu.</para>
2508 </listitem>
2509 </itemizedlist>
2510 
2511 </sect2>
2512 </sect1>
2513 
2514 <sect1 id="wake-suspend">
2515 <title>Wake From Suspend</title>
2516 
2517 <para>Alarms can be configured to wake your computer from hibernation
2518 or suspension when the alarm triggers, so that the alarm action can
2519 occur even when the system is shut down. The mechanism used by
2520 &kalarm; to wake the system, and the user interface to control it,
2521 depend on the type of system and user permissions. There are two
2522 possibilities:</para>
2523 
2524 <sect2>
2525 <title>Linux Kernel Timer Wake From Suspend</title>
2526 
2527 <para>On Linux systems, if the user has kernel alarm timer
2528 (<literal>cap_wake_alarm</literal>) capability, any number of alarms
2529 can be set to wake from suspend. In this case, wake from suspend is
2530 configured for each individual alarm in the
2531 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> using its
2532 <guilabel>Wake from suspend</guilabel> option.</para>
2533 
2534 <para>You can configure how long before the alarm to wake from suspend,
2535 to ensure that the system has time to fully restore itself before the
2536 alarm triggers, in the 
2537 <link linkend="preferences-time">Configuration dialog</link>.</para>
2538 
2539 </sect2>
2540 
2541 <sect2>
2542 <title>RTC Wake From Suspend</title>
2543 
2544 <para>On non-Linux systems, or on Linux systems where the user does not
2545 have <literal>cap_wake_alarm</literal> capability, the real time clock
2546 (<acronym>RTC</acronym>) alarm is used. This can only be set for one
2547 alarm at a time. In this case, a special Wake From Suspend dialog is
2548 used to configure it. The dialog allows the Wake From Suspend alarm to
2549 be set, cancelled or displayed. To access the dialog, select
2550 <menuchoice><guimenu>Actions</guimenu>
2551 <guimenuitem>Wake From Suspend</guimenuitem></menuchoice>.</para>
2552 
2553 <para>Use of the Wake From Suspend function requires
2554 administrative privileges. You will be prompted for the root password
2555 when you set or cancel a Wake From Suspend alarm.</para>
2556 
2557 <note><para>Wake From Suspend is not supported on some computers,
2558 especially older ones, and some computers only support setting a
2559 wakeup time up to 24 hours ahead. There may also be restrictions on
2560 which suspend mode the function will wake from. You should consider
2561 setting up test alarms to check your system's capability before
2562 relying on this feature.</para></note>
2563 
2564 <warning><para>Your computer can only schedule a single Wake From
2565 Suspend at a time. If you use this function with &kalarm;, you must
2566 ensure that this does not conflict with any other application which
2567 also uses Wake From Suspend. Whenever an application schedules or
2568 clears Wake From Suspend, this cancels any previously set Wake From
2569 Suspend, no matter whether set by &kalarm; or any other
2570 application.</para></warning>
2571 
2572 <para>The Wake From Suspend dialog is used in conjunction with the
2573 alarm list in &kalarm;'s main window.</para>
2574 
2575 <itemizedlist>
2576 <listitem>
2577 <para><guibutton>Use highlighted alarm</guibutton>: this sets the
2578 alarm currently highlighted in the alarm list as the Wake From Suspend
2579 alarm. Any existing scheduled Wake From Suspend is cancelled, as
2580 explained above. The button is enabled only if exactly one alarm is
2581 highlighted.</para>
2582 </listitem>
2583 
2584 <listitem>
2585 <para><guibutton>Cancel wake from suspend</guibutton>: this cancels
2586 any existing Wake From Suspend (whether set by &kalarm; or any other
2587 application - see above). Note that this only cancels the wakeup
2588 function associated with the alarm; the alarm itself is not deleted
2589 and will continue to operate as normal.</para>
2590 </listitem>
2591 
2592 <listitem>
2593 <para><guibutton>Show current alarm</guibutton>: this highlights the
2594 current Wake From Suspend alarm in the alarm list, so that it can be
2595 identified. The button is disabled if no Wake From Suspend is
2596 currently configured.</para>
2597 </listitem>
2598 
2599 <listitem>
2600 <para>The <guilabel>Number of minutes before alarm to wake from
2601 suspend</guilabel> control allows you, if you wish, to ensure that the
2602 system has time to fully restore itself before the alarm triggers, so
2603 that the alarm can trigger at the correct time.</para>
2604 </listitem>
2605 </itemizedlist>
2606 
2607 </sect2>
2608 </sect1>
2609 
2610 <sect1 id="quitting">
2611 <title>Quitting &kalarm;</title>
2612 
2613 <para>Quit &kalarm; by selecting <menuchoice>
2614 <guimenu>File</guimenu><guimenuitem>Quit</guimenuitem></menuchoice>,
2615 or <menuchoice><guimenuitem>Quit</guimenuitem></menuchoice> in the
2616 system tray icon context menu. Alternatively, if the system tray icon
2617 is not visible, close all &kalarm;'s windows.</para>
2618 
2619 </sect1>
2620 </chapter>
2621 
2622 <chapter id="preferences">
2623 <title>Configuring &kalarm;</title>
2624 
2625 <para>To configure &kalarm;'s operation to suit your system and your
2626 personal preferences, select <menuchoice><guimenu>Settings</guimenu>
2627 <guimenuitem>Configure &kalarm;...</guimenuitem></menuchoice>.
2628 This displays the Configuration dialog.</para>
2629 
2630 <sect1 id="preferences-general">
2631 <title>General</title>
2632 
2633 <para>The <guilabel>General</guilabel> section lets you control
2634 &kalarm;'s overall behavior:</para>
2635 
2636 <itemizedlist>
2637 <listitem>
2638 <para><guilabel>Start at login</guilabel>: &kalarm; will be started
2639 automatically at session login, ensuring that &kalarm; runs at
2640 all times unless you manually quit.</para>
2641 
2642 <warning><para>This option should always be checked unless you intend
2643 to discontinue use of &kalarm;.</para></warning>
2644 
2645 <note><para>This option is automatically reselected whenever &kalarm;
2646 is run. So if you have unchecked this option and want to continue to
2647 prevent &kalarm; from running at login, you need to uncheck this
2648 option again each time you run &kalarm;.</para></note>
2649 </listitem>
2650 
2651 <listitem>
2652 <para><guilabel>Warn before quitting</guilabel>: When alarms are
2653 disabled while &kalarm; is not running, selecting this option prompts
2654 you for confirmation if you attempt to terminate &kalarm; using the
2655 system tray icon's <menuchoice><guimenu>Quit</guimenu></menuchoice>
2656 option. This prevents accidental disabling of alarms. For safety, this
2657 option is automatically re-enabled by default whenever you change run
2658 mode.</para>
2659 </listitem>
2660 
2661 <listitem><para><guilabel>Enable alarm names</guilabel>: Specify
2662 whether each alarm can be given a name to help you to identify it.
2663 This determines whether the <guilabel>Name</guilabel> column will be
2664 shown in the <link linkend="alarm-list">alarm list</link>, and
2665 whether the <guilabel>Alarm name</guilabel> field will appear in the
2666 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>.</para>
2667 </listitem>
2668 
2669 <listitem><para><guilabel>Confirm alarm deletions</guilabel>: Specify
2670 whether you should be prompted for confirmation each time you delete
2671 an alarm.</para>
2672 </listitem>
2673 
2674 <listitem><para><guilabel>Default defer time interval</guilabel>:
2675 Enter the default time interval, in hours and minutes, to show
2676 initially when the Defer Alarm dialog is displayed. Note that if an
2677 alarm has been deferred previously, the interval shown initially in the
2678 Defer Alarm dialog will be equal to the deferral interval used the last
2679 time that alarm was deferred.</para>
2680 </listitem>
2681 
2682 <listitem><para><guilabel>Terminal for Command Alarms</guilabel>:
2683 Here, you can select which type of terminal window should be used for
2684 command alarms which are executed in a terminal window. Some of the
2685 most common terminal window applications are preconfigured, &eg;
2686 <application>xterm</application>, &konsole;, although only those
2687 which are installed on your system will be shown here. You can view
2688 the actual command options used for each application by displaying the
2689 context help for its radio button.</para>
2690 
2691 <para>If you want to use another application, or want to use one of
2692 those listed but with different command options, select
2693 <guilabel>Other</guilabel> and enter the command to invoke the
2694 terminal window. By default, the alarm's command string will be
2695 appended to what you specify. Alternatively, you may specify where the
2696 alarm's command string should be inserted, by use of the following
2697 codes:</para>
2698 
2699 <variablelist>
2700 <varlistentry>
2701 <term>%c</term>
2702 <listitem>
2703 <para>The alarm's command string will be substituted.</para>
2704 </listitem>
2705 </varlistentry>
2706 <varlistentry>
2707 <term>%w</term>
2708 <listitem>
2709 <para>The alarm's command string will be substituted, with a <literal>sleep</literal> appended.</para>
2710 </listitem>
2711 </varlistentry>
2712 <varlistentry>
2713 <term>%C</term>
2714 <listitem>
2715 <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>
2716 </listitem>
2717 </varlistentry>
2718 <varlistentry>
2719 <term>%W</term>
2720 <listitem>
2721 <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>
2722 </listitem>
2723 </varlistentry>
2724 <varlistentry>
2725 <term>%t</term>
2726 <listitem>
2727 <para>&kalarm;'s name in the current language will be substituted.</para>
2728 </listitem>
2729 </varlistentry>
2730 </variablelist>
2731 
2732 <para>When the command alarm is triggered, its command string will be
2733 quoted before being inserted into the terminal window command.</para>
2734 </listitem>
2735 
2736 <listitem><para><guilabel>Enable Akonadi</guilabel>:
2737 Choose whether to use &akonadi; to provide features which depend on it.
2738 See <link linkend="akonadi-plugin">Akonadi plugin</link> for details.
2739 Note that this option is only shown if the Akonadi plugin is
2740 installed.</para>
2741 </listitem>
2742 
2743 </itemizedlist>
2744 </sect1>
2745 
2746 <sect1 id="preferences-time">
2747 <title>Time &amp; Date</title>
2748 
2749 <para>The <guilabel>Time &amp; Date</guilabel> section lets you set
2750 options relating to time and date:</para>
2751 
2752 <itemizedlist>
2753 <listitem><para><guilabel>Time zone</guilabel>: Select your time zone.
2754 &kalarm; uses this time zone throughout, except when you override it
2755 for individual alarms.</para>
2756 </listitem>
2757 
2758 <listitem><para><guilabel>Holiday region</guilabel>: Select which
2759 country's or region's holidays to use. This affects recurring alarms
2760 for which the option to exclude holidays is selected.</para>
2761 </listitem>
2762 
2763 <listitem><para><guilabel>Wake from suspend before alarm</guilabel>:
2764 Enter the number of minutes before the alarm trigger time to wake the
2765 system, for alarms set to wake from suspend. This allows you to ensure
2766 that the system has time to fully restore itself before the alarm
2767 triggers, so that the alarm can trigger at the correct time. This
2768 option is only shown if the system configuration allows multiple alarms
2769 to wake the system from suspension. See 
2770 <link linkend="wake-suspend">Wake From Suspend</link> for more
2771 information.</para>
2772 </listitem>
2773 
2774 <listitem><para><guilabel>Start of day for date-only
2775 alarms</guilabel>: Set the start-of-day time for the purposes of
2776 triggering date-only alarms, &ie; ones for which the <guilabel>Any
2777 time</guilabel> option was selected. On the date when they are due,
2778 such alarms will be output at the earliest opportunity during the
2779 24 hours starting from the start-of-day time.</para>
2780 </listitem>
2781 
2782 <listitem><para><guilabel>Working Hours</guilabel> group box: These
2783 options let you define your working hours, needed when the
2784 <guilabel>Only during working hours</guilabel> option is selected for
2785 a recurrence in the
2786 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>.</para>
2787 
2788 <itemizedlist>
2789 <listitem><para>Check each day which is a working day.</para>
2790 </listitem>
2791 
2792 <listitem><para><guilabel>Daily start time</guilabel>: enter the time
2793 at which you start work each day.</para>
2794 </listitem>
2795 
2796 <listitem><para><guilabel>Daily end time</guilabel>: enter the time
2797 at which you finish work each day.</para>
2798 </listitem>
2799 </itemizedlist>
2800 </listitem>
2801 
2802 <listitem><para><guilabel>KOrganizer event duration</guilabel>: Enter
2803 the event duration to set in &korganizer; for alarms which are copied to
2804 &korganizer;. The default duration is zero.</para>
2805 </listitem>
2806 
2807 </itemizedlist>
2808 </sect1>
2809 
2810 <sect1 id="preferences-storage">
2811 <title>Storage</title>
2812 
2813 <para>The <guilabel>Storage</guilabel> section lets you choose options
2814 for saving and archiving alarms:</para>
2815 
2816 <itemizedlist>
2817 <listitem>
2818 <para><guilabel>New Alarms &amp; Templates</guilabel>: Specify which
2819 calendar to store new alarms and alarm templates in when using
2820 multiple alarm calendars:</para>
2821 
2822 <itemizedlist>
2823 <listitem>
2824 <para><guilabel>Store in default calendar</guilabel>: New alarms and
2825 alarm templates are automatically added to the default alarm calendar
2826 without prompting for confirmation.</para>
2827 </listitem>
2828 
2829 <listitem>
2830 <para><guilabel>Prompt for which calendar to store in</guilabel>:
2831 When you create a new alarm or alarm template and there is more than
2832 one writeable alarm calendar, you will be prompted to choose which
2833 calendar to save it in. Note that when alarms are saved on expiry,
2834 they are always stored in the default archived alarm calendar without
2835 prompting.</para>
2836 </listitem>
2837 </itemizedlist>
2838 </listitem>
2839 
2840 <listitem><para><guilabel>Archived Alarms</guilabel> group box: These
2841 options control the storage of archived alarms in the default archived
2842 alarm calendar.</para>
2843 
2844 <itemizedlist>
2845 <listitem><para><guilabel>Keep alarms after expiry</guilabel>:
2846 Select this option to archive expired and deleted alarms. Deselect it
2847 to keep no record of alarms once they cease to be active. Note that
2848 deleted alarms are only archived if they have previously been
2849 triggered. If you delete an alarm before it ever triggers, it is
2850 discarded.</para>
2851 </listitem>
2852 
2853 <listitem><para><guilabel>Discard archived alarms after</guilabel>:
2854 Set the number of days to store expired and deleted alarms in the
2855 archive, after which they are permanently deleted.</para>
2856 </listitem>
2857 
2858 <listitem><para><guibutton>Clear archived alarms</guibutton>: This
2859 button discards all currently archived alarms from the default archived
2860 alarm calendar. (Other archived alarm calendars are left unchanged in
2861 case they are shared with other people.) This has no effect on
2862 alarms which subsequently expire or are deleted; they will continue to
2863 be archived according to the selected options.</para>
2864 </listitem>
2865 </itemizedlist>
2866 </listitem>
2867 
2868 </itemizedlist>
2869 </sect1>
2870 
2871 <sect1 id="preferences-email">
2872 <title>Email</title>
2873 
2874 <para>The <guilabel>Email</guilabel> section lets you choose options
2875 for sending and addressing email alarms:</para>
2876 
2877 <note><para>Options dependent on &kmail; are only available if &kalarm;'s
2878 <link linkend="akonadi-plugin">Akonadi plugin</link> is installed and
2879 enabled.</para>
2880 </note>
2881 
2882 <itemizedlist>
2883 <listitem>
2884 <para><guilabel>Email client</guilabel>: Specify the email
2885 client to be used to send email alarms:</para>
2886 
2887 <itemizedlist>
2888 <listitem><para><guilabel>KMail</guilabel>: When an email alarm is
2889 triggered, the email is sent automatically using &kmail;.</para>
2890 </listitem>
2891 
2892 <listitem><para><guilabel>Sendmail</guilabel>: When an email alarm is
2893 triggered, the email is sent automatically using
2894 &Sendmail;. This option will only work if
2895 your system is configured to use &Sendmail;,
2896 or a &Sendmail; compatible mail transport
2897 agent such as <application>postfix</application> or
2898 <application>qmail</application>.</para>
2899 </listitem>
2900 </itemizedlist>
2901 </listitem>
2902 
2903 <listitem>
2904 <para><guilabel>Copy sent emails into &kmail;'s "sent-mail" folder</guilabel>:
2905 Select this option if, every time an email alarm is triggered, you
2906 want a copy of the transmitted email to be stored in &kmail;'s
2907 <filename>sent-mail</filename> folder.</para>
2908 
2909 <note><para>This option is not available when &kmail; is selected as
2910 the email client, since &kmail; automatically does this.</para></note>
2911 </listitem>
2912 
2913 <listitem>
2914 <para><guilabel>Notify when remote emails are queued</guilabel>:
2915 Select this option to display a notification whenever an email alarm
2916 queues an email for sending to a remote system. This may be useful
2917 if, for example, you have a dial-up connection, or email is queued in
2918 &kmail;'s <filename>outbox</filename> folder, so that you can
2919 ensure that you do whatever is needed to actually transmit
2920 the email.</para>
2921 </listitem>
2922 
2923 <listitem>
2924 <para>Select your email address to be used as the sender's address in
2925 email alarms:</para>
2926 
2927 <itemizedlist>
2928 <listitem><para>Select <guilabel>From</guilabel> to enter an email
2929 address.</para>
2930 </listitem>
2931 
2932 <listitem><para>Select <guilabel>Use default KMail identity</guilabel>
2933 to use your default email address which is configured in &kmail;.</para>
2934 </listitem>
2935 
2936 <listitem><para>Select <guilabel>Use &kmail; identities</guilabel> to
2937 be able to choose at the time you configure an email alarm which of
2938 &kmail;'s email identities to use. &kmail;'s default identity will be
2939 used for alarms which were already configured before you selected this
2940 option.</para>
2941 </listitem>
2942 </itemizedlist>
2943 </listitem>
2944 
2945 <listitem>
2946 <para>Select your email address to be used for sending blind copies of
2947 email alarms to yourself when the
2948 <guilabel>Copy email to self</guilabel> option is selected:</para>
2949 
2950 <itemizedlist>
2951 <listitem><para>Select <guilabel>Bcc</guilabel> to enter an email
2952 address. If blind copies are to be sent to your account on the
2953 computer which &kalarm; runs on, you could simply enter your user
2954 login name here.</para>
2955 </listitem>
2956 
2957 <listitem><para>Select <guilabel>Use default KMail identity</guilabel>
2958 to use your default email address which is configured in &kmail;.</para>
2959 </listitem>
2960 </itemizedlist>
2961 </listitem>
2962 </itemizedlist>
2963 </sect1>
2964 
2965 <sect1 id="preferences-view">
2966 <title>View</title>
2967 
2968 <para>The <guilabel>View</guilabel> section lets you control some
2969 aspects of &kalarm;'s appearance. In the <guilabel>General</guilabel>
2970 tab:</para>
2971 <itemizedlist>
2972 
2973 <listitem>
2974 <para><guilabel>Show in system tray</guilabel> group box: When
2975 selected, the system tray icon is displayed while &kalarm; is running,
2976 subject to the selected option:</para>
2977 
2978 <itemizedlist>
2979 <listitem>
2980 <para><guilabel>Always show</guilabel>: The system tray icon is always
2981 displayed.</para>
2982 </listitem>
2983 
2984 <listitem>
2985 <para><guilabel>Automatically hide if no active alarms</guilabel>:
2986 The system tray icon is hidden if there are no active alarms.</para>
2987 </listitem>
2988 
2989 <listitem>
2990 <para><guilabel>Automatically hide if no alarm due within time period</guilabel>:
2991 The system tray icon is hidden if no alarm is due within the entered
2992 time period, starting from now.</para>
2993 </listitem>
2994 </itemizedlist>
2995 
2996 <para>When the system tray icon is automatically hidden, you can make
2997 it visible by means of the system tray option to show hidden icons.</para>
2998 
2999 <para>When <guilabel>Show in system tray</guilabel> is selected,
3000 closing the system tray icon closes all &kalarm; main windows, and if
3001 no message windows are visible, quits the application.</para>
3002 </listitem>
3003 
3004 <listitem>
3005 <para><guilabel>System Tray Tooltip</guilabel> group box: These options
3006 control what information is shown in the tooltip which appears when the
3007 mouse cursor hovers over &kalarm;'s system tray icon.</para>
3008 
3009 <itemizedlist>
3010 <listitem>
3011 <para><guilabel>Show next 24 hours' alarms</guilabel>: When selected,
3012 a summary of the first few alarms due in the next 24 hours is
3013 displayed.</para>
3014 </listitem>
3015 
3016 <listitem>
3017 <para><guilabel>Maximum number of alarms to show</guilabel>: Deselect
3018 this option to display all of the next 24 hours' alarms. Select it to
3019 set the maximum number of alarms which will be displayed.</para>
3020 </listitem>
3021 
3022 <listitem>
3023 <para><guilabel>Show alarm time</guilabel>: Select this option to show
3024 the time at which each alarm is scheduled.</para>
3025 </listitem>
3026 
3027 <listitem>
3028 <para><guilabel>Show time until alarm</guilabel>: Select this option to
3029 show the length of time remaining before each alarm's next scheduled
3030 occurrence. The length of time is shown in hours and minutes.</para>
3031 
3032 <itemizedlist>
3033 <listitem>
3034 <para><guilabel>Prefix</guilabel>: Specify a symbol or text to show in
3035 front of the length of time until the alarm, to distinguish it from the
3036 time at which the alarm is scheduled.</para>
3037 </listitem>
3038 </itemizedlist>
3039 </listitem>
3040 </itemizedlist>
3041 </listitem>
3042 
3043 <listitem>
3044 <para>The <guilabel>Alarm List</guilabel> group box allows the
3045 selection of the colors used in the alarm list in &kalarm;'s main
3046 window, to show disabled and archived alarms.</para>
3047 </listitem>
3048 </itemizedlist>
3049 
3050 <para>The <guilabel>Alarm Windows</guilabel> tab contains options to control
3051 the appearance of alarm message windows. The available options depend on the
3052 windowing system in use.</para>
3053 
3054 <itemizedlist>
3055 <listitem>
3056 <para><application>X11 Windowing System</application></para>
3057 
3058 <itemizedlist>
3059 <listitem>
3060 <para><guilabel>Position windows far from mouse cursor</guilabel>:
3061 Select this option to display alarm message windows as far away from
3062 the current mouse cursor position as possible. This minimizes the
3063 chance of accidentally acknowledging an alarm by unintentionally
3064 clicking on a button just as the message window appears.</para>
3065 </listitem>
3066 
3067 <listitem>
3068 <para><guilabel>Center windows, delay activating window buttons</guilabel>:
3069 Select this option to display alarm message windows in the center of
3070 the screen. To reduce the chance of accidentally acknowledging the
3071 alarm, the window's buttons are initially disabled. The delay in
3072 seconds before they become active is set in
3073 <guilabel>Button activation delay (seconds)</guilabel>.</para>
3074 </listitem>
3075 
3076 <listitem>
3077 <para><guilabel>Message windows have a titlebar and take keyboard focus</guilabel>:
3078 This option controls whether alarm message windows are modal or not,
3079 &ie; whether they grab the keyboard focus when they appear. See the
3080 <link linkend="message-display">Alarm Message Display</link> section
3081 for details.</para>
3082 </listitem>
3083 </itemizedlist>
3084 </listitem>
3085 
3086 <listitem>
3087 <para><application>Wayland Windowing System</application></para>
3088 
3089 <itemizedlist>
3090 <listitem>
3091 <para>To reduce the chance of accidentally acknowledging the
3092 alarm, the window's buttons are initially disabled. The delay in
3093 seconds before they become active is set in
3094 <guilabel>Button activation delay (seconds)</guilabel>.</para>
3095 </listitem>
3096 </itemizedlist>
3097 </listitem>
3098 </itemizedlist>
3099 
3100 </sect1>
3101 
3102 <sect1 id="preferences-edit">
3103 <title>Edit</title>
3104 
3105 <para>The <guilabel>Edit</guilabel> section lets you choose
3106 default values for the options in the
3107 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>:</para>
3108 
3109 <itemizedlist>
3110 <listitem><para>The <guilabel>General</guilabel> tab contains options
3111 which apply to all alarm types.</para>
3112 
3113 <itemizedlist>
3114 <listitem><para>Set the default method for displaying alarm
3115 messages.</para>
3116 </listitem>
3117 
3118 <listitem><para>Set the default states for the <guilabel>Show in
3119 KOrganizer</guilabel> and <guilabel>Cancel if late</guilabel> check
3120 boxes.</para>
3121 </listitem>
3122 
3123 <listitem><para>Set the default recurrence type.</para>
3124 </listitem>
3125 
3126 <listitem><para>Select the default handling in non-leap years of
3127 yearly recurrences scheduled for February 29th.</para>
3128 </listitem>
3129 </itemizedlist>
3130 </listitem>
3131 
3132 <listitem><para>The <guilabel>Alarm Types</guilabel> tab contains
3133 options which apply to specific types of alarm.</para>
3134 
3135 <itemizedlist>
3136 <listitem>
3137 <para>For display alarms:</para>
3138 
3139 <itemizedlist>
3140 <listitem><para>Set the default states for the
3141 <guilabel>Auto-close window after this time</guilabel> and
3142 <guilabel>Confirm acknowledgment</guilabel> check boxes.</para>
3143 </listitem>
3144 
3145 <listitem><para>Set the default reminder period units.</para>
3146 </listitem>
3147 
3148 <listitem><para>Set the default special display alarm actions.</para>
3149 </listitem>
3150 
3151 <listitem><para>Set the default sound options. Note that a default
3152 sound file may be specified even if the sound type is not set to
3153 <guilabel>Sound file</guilabel>.</para>
3154 </listitem>
3155 </itemizedlist>
3156 </listitem>
3157 
3158 <listitem>
3159 <para>For command alarms:</para>
3160 
3161 <itemizedlist>
3162 <listitem><para>Set the default states for the <guilabel>Enter a
3163 script</guilabel> and <guilabel>Execute in terminal window</guilabel>
3164 check boxes.</para>
3165 </listitem>
3166 </itemizedlist>
3167 </listitem>
3168 
3169 <listitem>
3170 <para>For email alarms:</para>
3171 
3172 <itemizedlist>
3173 <listitem><para>Set the default state for the <guilabel>Copy email to
3174 self</guilabel> check box.</para>
3175 </listitem>
3176 </itemizedlist>
3177 </listitem>
3178 </itemizedlist>
3179 </listitem>
3180 
3181 <listitem><para>The <guilabel>Font &amp; Color</guilabel> tab lets you
3182 set the default appearance of alarm messages. Select their default
3183 font, and foreground and background colors.</para>
3184 </listitem>
3185 </itemizedlist>
3186 </sect1>
3187 
3188 </chapter>
3189 
3190 <chapter id="cmdline-operation">
3191 <title>Command Line Operation</title>
3192 
3193 <para>When command line parameters are supplied, &kalarm; does not
3194 display the list of scheduled alarms as described in <link
3195 linkend="using-kalarm">Using &kalarm;</link> above. Command line
3196 options specific to &kalarm; may be used to perform the following
3197 operations:</para>
3198 
3199 <itemizedlist>
3200 <listitem><para>schedule a new alarm</para>
3201 </listitem>
3202 <listitem><para>control &kalarm;'s display mode</para>
3203 </listitem>
3204 <listitem><para>obtain help</para>
3205 </listitem>
3206 </itemizedlist>
3207 
3208 <para>Additional command line options are provided primarily to enable
3209 other programs to interface to &kalarm;. They are described in the
3210 chapter <link linkend="cmdline-interface">Developer's Guide to
3211 &kalarm;</link>.</para>
3212 
3213 <para>The command line must only contain options applicable to one
3214 &kalarm; operation. If you want to perform multiple operations, you
3215 must invoke &kalarm; multiple times with a single set of options each
3216 time.</para>
3217 
3218 <sect1 id="cmdline-schedule">
3219 <title>Schedule a New Alarm</title>
3220 
3221 <para>The following options are used to schedule a new alarm:</para>
3222 
3223 <informaltable>
3224 <tgroup cols="2">
3225 <thead>
3226 <row>
3227   <entry>Option</entry>
3228   <entry>Description</entry>
3229 </row>
3230 </thead>
3231 <tbody>
3232 <row>
3233   <entry><option>-a</option>, <option>--ack-confirm</option></entry>
3234   <entry>Prompt for confirmation when the alarm message is
3235   acknowledged.</entry>
3236 </row>
3237 <row>
3238   <entry><option>-A</option>, <option>--attach <replaceable>URL</replaceable></option></entry>
3239   <entry>Specify the path or &URL; of a file which is to be attached
3240   to the email. This option may be repeated as necessary.
3241   <option>--mail</option> must be specified with this option.</entry>
3242 </row>
3243 <row>
3244   <entry><option>--auto-close</option></entry>
3245   <entry>Automatically close the alarm window after the expiry of the
3246   <option>--late-cancel</option> period.
3247   <option>--late-cancel</option> must be specified with this
3248   option.</entry>
3249 </row>
3250 <row>
3251   <entry><option>-b</option>, <option>--beep</option></entry>
3252   <entry>Make an audible beep when the message is displayed.
3253   <option>--speak</option>, <option>--play</option> and
3254   <option>--play-repeat</option> cannot be specified with this
3255   option.</entry>
3256 </row>
3257 <row>
3258   <entry><option>--bcc</option></entry>
3259   <entry>Blind copy the email to yourself.
3260   <option>--mail</option> must be specified with this option.</entry>
3261 </row>
3262 <row>
3263   <entry><option>-c</option>, <option>--color</option>, <option>--colour
3264   <replaceable>color</replaceable></option></entry>
3265   <entry>Set the message background color to the specified &Qt;
3266   color name or hex code 0xRRGGBB.</entry>
3267 </row>
3268 <row>
3269   <entry><option>-C</option>, <option>--colorfg</option>, <option>--colourfg
3270   <replaceable>color</replaceable></option></entry>
3271   <entry>Set the message foreground color to the specified &Qt;
3272   color name or hex code 0xRRGGBB.</entry>
3273 </row>
3274 <row>
3275   <entry><option>-d</option>, <option>--disable</option></entry>
3276   <entry>Disable the alarm. It will not trigger until it has been
3277   manually enabled.</entry>
3278 </row>
3279 <row>
3280   <entry><option>--disable-all</option></entry>
3281   <entry>Disable alarm monitoring. This prevents any alarms from
3282   being triggered until you re-enable alarms or restart &kalarm;, &eg;
3283   at next login.
3284   <option>--triggerEvent</option> cannot be specified with this
3285   option.</entry>
3286 </row>
3287 <row>
3288   <entry><option>-e</option>, <option>--exec <replaceable>commandline</replaceable></option></entry>
3289   <entry>Specify a shell command to execute. If specified, this option
3290   must be the last &kalarm; option in &kalarm;'s command line. All
3291   subsequent command parameters and options  are interpreted as
3292   forming the command line to execute. <option>--file</option> and
3293   <option>--exec-display</option> and <option>--mail</option> cannot
3294   be specified with this option.
3295   <option>--ack-confirm</option>, <option>--beep</option>,
3296   <option>--color</option> and <option>--colorfg</option> are ignored
3297   with this option.</entry>
3298 </row>
3299 <row>
3300   <entry><option>-E</option>, <option>--exec-display <replaceable>commandline</replaceable></option></entry>
3301   <entry>Specify a shell command to execute to generate the alarm
3302   message text. If specified, this option must be the last &kalarm;
3303   option in &kalarm;'s command line. All subsequent command parameters
3304   and options  are interpreted as forming the command line to execute.
3305   <option>--exec</option>, <option>--file</option> and
3306   <option>--mail</option> cannot be specified with this option.</entry>
3307 </row>
3308 <row>
3309   <entry><option>-f</option>, <option>--file <replaceable>URL</replaceable></option></entry>
3310   <entry>Specify the path or &URL; of a text or image file whose
3311   contents are to form the alarm message. <option>--exec</option>,
3312   <option>--exec-display</option> and <option>--mail</option> cannot
3313   be specified, and <replaceable>message</replaceable> must not be
3314   present with this option.</entry>
3315 </row>
3316 <row>
3317   <entry><option>-F</option>, <option>--from-id
3318   <replaceable>ID</replaceable></option></entry>
3319   <entry>Use the specified &kmail; identity as the sender of the
3320   email. <option>--mail</option> must be specified with this
3321   option.</entry>
3322 </row>
3323 <row>
3324   <entry><option>-i</option>, <option>--interval
3325   <replaceable>period</replaceable></option></entry>
3326   <entry>Set the interval between repetitions of the alarm.
3327   Hours/minutes are specified in the format
3328   <replaceable>nHnM</replaceable>, where <replaceable>n</replaceable>
3329   is a number, &eg; 3H30M. Other time periods are specified in the
3330   format <replaceable>nX</replaceable>, where
3331   <replaceable>n</replaceable> is a number and
3332   <replaceable>X</replaceable> is one of the following letters: Y
3333   (years), M (months), W (weeks), D (days). If
3334   <option>--recurrence</option> is also specified, Y (years) and M
3335   (months) are not allowed.
3336   Mandatory if <option>--repeat</option> or <option>--until</option>
3337   is specified.</entry>
3338 </row>
3339 <row>
3340   <entry><option>-k</option>, <option>--korganizer</option></entry>
3341   <entry>Show the alarm as an event in &korganizer;'s active
3342   calendar.</entry>
3343 </row>
3344 <row>
3345   <entry><option>-l</option>, <option>--late-cancel
3346   <replaceable>period</replaceable></option></entry>
3347   <entry>Cancel the alarm if it cannot be triggered within the
3348   specified <replaceable>period</replaceable> after the correct time.
3349   Hours/minutes are specified in the format
3350   <replaceable>nHnM</replaceable>, where <replaceable>n</replaceable>
3351   is a number, &eg; 3H30M. Other time periods are specified in the
3352   format <replaceable>nX</replaceable>, where
3353   <replaceable>n</replaceable> is a number and
3354   <replaceable>X</replaceable> is one of the following letters: W
3355   (weeks), D (days).
3356   The default value of <replaceable>period</replaceable> is 1
3357   minute.</entry>
3358 </row>
3359 <row>
3360   <entry><option>-L</option>, <option>--login</option></entry>
3361   <entry>Trigger the alarm every time you log in.
3362   <option>--interval</option>, <option>--repeat</option> and
3363   <option>--until</option> cannot be specified with this
3364   option.</entry>
3365 </row>
3366 <row>
3367   <entry><option>-m</option>, <option>--mail
3368   <replaceable>address</replaceable></option></entry>
3369   <entry>Send an email to the specified address. This option may be
3370   repeated as necessary.  <option>--exec</option>,
3371   <option>--exec-display</option> and <option>--file</option> cannot
3372   be specified with this option.
3373   <option>--ack-confirm</option>, <option>--beep</option>,
3374   <option>--color</option> and <option>--colorfg</option> are ignored
3375   with this option.</entry>
3376 </row>
3377 <row>
3378   <entry><option>-n</option>, <option>--name <replaceable>name</replaceable></option></entry>
3379   <entry>Specify a name to help you to identify the alarm.</entry>
3380 </row>
3381 <row>
3382   <entry><option>-N</option>, <option>--notify</option></entry>
3383   <entry>Display the alarm as a notification, not in a window.
3384   <option>--color</option>, <option>--colorfg</option>,
3385   <option>--play</option>, <option>--ack-confirm</option> and
3386   <option>--auto-close</option> cannot be specified with this
3387   option.</entry>
3388 </row>
3389 <row>
3390   <entry><option>-p</option>, <option>--play <replaceable>URL</replaceable></option></entry>
3391   <entry>Specify the path or &URL; of an audio file to be played once,
3392   either as an audio alarm or when the alarm message is displayed. 
3393   <option>--play-repeat</option>, <option>--beep</option> and
3394   <option>--speak</option> cannot be specified with this
3395   option.</entry>
3396 </row>
3397 <row>
3398   <entry><option>-P</option>, <option>--play-repeat <replaceable>URL</replaceable></option></entry>
3399   <entry>Specify the path or &URL; of an audio file to be played
3400   repeatedly, either until <guilabel>Stop Play</guilabel> is used, or
3401   for as long as the alarm message is displayed.
3402   <option>--play</option>, <option>--beep</option> and
3403   <option>--speak</option> cannot be specified with this
3404   option.</entry>
3405 </row>
3406 <row>
3407   <entry><option>--recurrence
3408   <replaceable>spec</replaceable></option></entry>
3409   <entry>Set the alarm to recur. Specify the recurrence using iCalendar
3410   syntax (defined in
3411   <ulink url="http://www.w3.org/2002/12/cal/rfc2445.html">RFC2445</ulink>),
3412   &eg; <quote>FREQ=MONTHLY;COUNT=4;INTERVAL=3;BYDAY=-1MO</quote>.
3413   <option>--until</option> cannot be specified with this
3414   option.</entry>
3415 </row>
3416 <row>
3417   <entry><option>-r</option>, <option>--repeat
3418   <replaceable>count</replaceable></option></entry>
3419   <entry>Set the number of times the alarm should be triggered, or if
3420   a recurrence is specified with <option>--recurrence</option>, the
3421   number of times the alarm should be triggered each time
3422   <option>--recurrence</option> activates it (&ie; a repetition within
3423   a recurrence). If <option>--recurrence</option> is not present,
3424   specify -1 to repeat the alarm indefinitely.
3425   <option>--interval</option> must be, and <option>--until</option>
3426   cannot be, specified with this option.</entry>
3427 </row>
3428 <row>
3429   <entry><option>-R</option>, <option>--reminder
3430   <replaceable>period</replaceable></option></entry>
3431   <entry>Output a reminder alarm the specified length of time before
3432   or after the main alarm and each of its recurrences (if any).
3433   The <replaceable>period</replaceable> is specified in
3434   the same format as described for <option>--late-cancel</option>.
3435   By default, the reminder will occur before the alarm. To specify a
3436   reminder after the alarm, prefix <replaceable>period</replaceable>
3437   with <replaceable>+</replaceable>, &eg; +3D. This option cannot be
3438   specified with <option>--exec</option>, <option>--mail</option> or
3439   <option>--reminder-once</option>.</entry>
3440 </row>
3441 <row>
3442   <entry><option>--reminder-once
3443   <replaceable>period</replaceable></option></entry>
3444   <entry>Output a reminder alarm once, the specified length of time
3445   before or after the first recurrence of the alarm. No reminder will
3446   be displayed before or after subsequent recurrences (if any). The
3447   <replaceable>period</replaceable> is specified in the same format as
3448   described for <option>--reminder</option>. This option cannot
3449   be specified with <option>--exec</option>, <option>--mail</option>
3450   or <option>--reminder</option>.</entry>
3451 </row>
3452 <row>
3453   <entry><option>-s</option>, <option>--speak</option></entry>
3454   <entry>Speak the message when it is displayed. This option requires
3455   &kalarm; to have been built with speech enabled and the &Qt; Speech
3456   module to be installed and working. <option>--beep</option>,
3457   <option>--play</option> and <option>--play-repeat</option> cannot be
3458   specified with this option.</entry>
3459 </row>
3460 <row>
3461   <entry><option>-S</option>, <option>--subject
3462   <replaceable>subject</replaceable></option></entry>
3463   <entry>The subject line of the email. <option>--mail</option> must
3464   be specified with this option.</entry>
3465 </row>
3466 <!-- test-set-time time (debug mode)-->
3467 <row>
3468   <entry><option>-t</option>, <option>--time
3469   <replaceable>date/time</replaceable></option></entry>
3470   <entry>Trigger alarm on the date or at the date/time specified.
3471   Specify a date without a time in the format
3472   <replaceable>yyyy-mm-dd[ TZ]</replaceable>; specify a date and time
3473   by <replaceable>[[[yyyy-]mm-]dd-]hh:mm[ TZ]</replaceable> (where
3474   omitted, date fields default to the values for today).
3475   If no time zone is specified, the local system time zone is
3476   assumed. If a time zone specifier <replaceable>TZ</replaceable> is
3477   present, it may be the name of a system time zone (&eg;
3478   <userinput>Europe/London</userinput>), or <userinput>UTC</userinput>
3479   representing the UTC time zone.</entry>
3480 </row>
3481 <row>
3482   <entry><option>-v</option>, <option>--volume
3483   <replaceable>percentage</replaceable></option></entry>
3484   <entry>Set the audio volume for playing the audio file. This option
3485   can only be used when <option>--play</option> or
3486   <option>--play-repeat</option> is specified.</entry>
3487 </row>
3488 <row>
3489   <entry><option>-u</option>, <option>--until
3490   <replaceable>date/time</replaceable></option></entry>
3491   <entry>Repeat the alarm until the date or date/time specified.
3492   Specify the date or date/time using the same syntax as for
3493   <option>--time</option>. Note that if <option>--time</option> is
3494   specified, the time zone will be taken from its value and no time
3495   zone may be included in the <option>--until</option> value.
3496   <option>--interval</option> must be, and
3497   <option>--repeat</option> and <option>--recurrence</option> cannot
3498   be, specified with this option.</entry>
3499 </row>
3500 <row>
3501   <entry><replaceable>message</replaceable></entry>
3502   <entry>Message text to display or, if <option>--mail</option> is
3503   specified, the body of the email message.</entry>
3504 </row>
3505 </tbody>
3506 </tgroup>
3507 </informaltable>
3508 
3509 <para>Either a message text, <option>--file</option>,
3510 <option>--exec</option>, <option>--exec-display</option>,
3511 <option>--play</option> or <option>--play-repeat</option> must be
3512 specified; except as noted above, all the options are optional.</para>
3513 
3514 <para>Two alternative examples which display a multi-line message with
3515 a red background at 10 p.m. on the 27th of this month are:</para>
3516 
3517 <informalexample><screen>
3518 <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>
3519 <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>
3520 </screen>
3521 </informalexample>
3522 
3523 </sect1>
3524 
3525 <sect1 id="cmdline-other">
3526 <title>Other Options</title>
3527 
3528 <para>The following options are used to perform various functions,
3529 including displaying the
3530 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>.</para>
3531 
3532 <informaltable>
3533 <tgroup cols="2">
3534 <thead>
3535 <row>
3536   <entry>Option</entry>
3537   <entry>Description</entry>
3538 </row>
3539 </thead>
3540 <tbody>
3541 <row>
3542   <entry><option>--edit <replaceable>eventID</replaceable></option></entry>
3543   <entry>Display the Alarm Edit dialog to edit the alarm with the
3544   specified event ID. The event ID is the unique ID of the event, optionally
3545   prefixed by the configuration name or numeric ID of the resource containing
3546   the event, in the format
3547   <replaceable>[resourceID:]eventUID</replaceable>.</entry>
3548 </row>
3549 <row>
3550   <entry><option>--edit-new-audio</option></entry>
3551   <entry>Display the Alarm Edit dialog, in order to edit a new audio
3552   alarm.</entry>
3553 </row>
3554 <row>
3555   <entry><option>--edit-new-command</option></entry>
3556   <entry>Display the Alarm Edit dialog, in order to edit a new command
3557   alarm.</entry>
3558 </row>
3559 <row>
3560   <entry><option>--edit-new-display</option></entry>
3561   <entry>Display the Alarm Edit dialog, in order to edit a new display
3562   alarm.</entry>
3563 </row>
3564 <row>
3565   <entry><option>--edit-new-email</option></entry>
3566   <entry>Display the Alarm Edit dialog, in order to edit a new email
3567   alarm.</entry>
3568 </row>
3569 <row>
3570   <entry><option>--edit-new-preset <replaceable>templateName</replaceable></option></entry>
3571   <entry>Display the Alarm Edit dialog, preset with the alarm template
3572   of the specified name, in order to edit a new alarm.</entry>
3573 </row>
3574 <row>
3575   <entry><option>--list</option></entry>
3576   <entry>Output a list of scheduled alarms to <filename>stdout</filename>.
3577   The list shows brief details of each pending alarm: its resource
3578   identifier, UID, next scheduled time and message text or file.</entry>
3579 </row>
3580 <row>
3581   <entry><option>--tray</option></entry>
3582   <entry>Display &kalarm; as an icon in the system tray.</entry>
3583 </row>
3584 <row>
3585   <entry><option>--disable-all</option></entry>
3586   <entry>Disable monitoring of all alarms.</entry>
3587 </row>
3588 </tbody>
3589 </tgroup>
3590 </informaltable>
3591 
3592 <para>See also:</para>
3593 <simplelist>
3594 <member>kf5options(7)</member>
3595 <member>qt5options(7)</member>
3596 </simplelist>
3597 
3598 </sect1>
3599 
3600 </chapter>
3601 
3602 <chapter id="developers">
3603 <title>Developer's Guide to &kalarm;</title>
3604 
3605 <para>&kalarm; provides an interface to allow other applications to
3606 request the following functions:</para>
3607 
3608 <itemizedlist>
3609 <listitem><para>schedule a new alarm</para></listitem>
3610 <listitem><para>cancel an already scheduled alarm</para></listitem>
3611 <listitem><para>trigger an already scheduled alarm</para></listitem>
3612 <listitem><para>display the Alarm Edit dialog</para></listitem>
3613 <listitem><para>list scheduled alarms</para></listitem>
3614 </itemizedlist>
3615 
3616 <para>Each of the above functions is implemented both by a &DBus; call
3617 and by the command line. &DBus; calls should be used in preference if
3618 &kalarm; is already running.</para>
3619 
3620 <sect1 id="dbus-interface">
3621 <title>&DBus; Interface</title>
3622 
3623 <para>The &DBus; calls described in this document are all implemented
3624 in &kalarm;'s <constant>/kalarm</constant> &DBus; object path. The
3625 interface is defined in the files
3626 <filename>org.kde.kalarm.kalarm.xml</filename> and
3627 <filename>kalarmiface.h</filename>.</para>
3628 
3629 <refentry id="cancelEvent">
3630 <refmeta>
3631 <refentrytitle>cancelEvent</refentrytitle>
3632 </refmeta>
3633 <refnamediv>
3634 <refname>cancelEvent</refname>
3635 <refpurpose>cancel an already scheduled alarm.</refpurpose>
3636 </refnamediv>
3637 <refsynopsisdiv>
3638 <synopsis>
3639 void cancelEvent(const QString&amp; <replaceable>eventID</replaceable>)
3640 </synopsis>
3641 
3642 <refsect2>
3643 <title>Parameters</title>
3644 <variablelist>
3645 <varlistentry>
3646 <term><parameter>eventID</parameter></term>
3647 <listitem>
3648 <para>Specifies the unique ID of the event to be canceled, optionally
3649 prefixed by the configuration name or numeric ID of the resource containing
3650 the event, in the format
3651 <replaceable>[resourceID:]eventUID</replaceable>.</para>
3652 </listitem>
3653 </varlistentry>
3654 </variablelist>
3655 </refsect2>
3656 </refsynopsisdiv>
3657 
3658 <refsect1>
3659 <title>Description</title>
3660 
3661 <para><function>cancelEvent()</function> is a &DBus; call to cancel
3662 the specified alarm. &kalarm; deletes the alarm from the calendar 
3663 without displaying or executing it.</para>
3664 
3665 </refsect1>
3666 </refentry>
3667 
3668 <refentry id="triggerEvent">
3669 <refmeta>
3670 <refentrytitle>triggerEvent</refentrytitle>
3671 </refmeta>
3672 <refnamediv>
3673 <refname>triggerEvent</refname>
3674 <refpurpose>trigger an already scheduled alarm.</refpurpose>
3675 </refnamediv>
3676 <refsynopsisdiv>
3677 <synopsis>
3678 void triggerEvent(const QString&amp; <replaceable>eventID</replaceable>)
3679 </synopsis>
3680 
3681 <refsect2>
3682 <title>Parameters</title>
3683 <variablelist>
3684 <varlistentry>
3685 <term><parameter>eventID</parameter></term>
3686 <listitem>
3687 <para>Specifies the unique ID of the event to be triggered, optionally
3688 prefixed by the configuration name or numeric ID of the resource containing
3689 the event, in the format
3690 <replaceable>[resourceID:]eventUID</replaceable>.</para>
3691 </listitem>
3692 </varlistentry>
3693 </variablelist>
3694 </refsect2>
3695 </refsynopsisdiv>
3696 
3697 <refsect1>
3698 <title>Description</title>
3699 
3700 <para><function>triggerEvent()</function> is a &DBus; call to trigger
3701 the immediate display or execution of the specified alarm (regardless
3702 of what time it is scheduled for). &kalarm; retrieves the alarm from
3703 the calendar and then displays or executes it.</para>
3704 
3705 <para>If the alarm is already due, &kalarm; then deletes all scheduled
3706 occurrences of the alarm up to the current time, and if no repetitions
3707 of the alarm still remain, the alarm is deleted from the calendar. If
3708 the alarm is not due yet, its scheduled occurrences are left
3709 unchanged.</para>
3710 
3711 </refsect1>
3712 </refentry>
3713 
3714 <refentry id="scheduleMessage">
3715 <refmeta>
3716 <refentrytitle>scheduleMessage</refentrytitle>
3717 </refmeta>
3718 <refnamediv>
3719 <refname>scheduleMessage</refname>
3720 <refpurpose>schedule a new alarm message.</refpurpose>
3721 </refnamediv>
3722 <refsynopsisdiv>
3723 <synopsis>
3724 bool scheduleMessage(const QString&amp; <replaceable>name</replaceable>,
3725                      const QString&amp; <replaceable>message</replaceable>,
3726                      const QString&amp; <replaceable>startDateTime</replaceable>,
3727                      int <replaceable>lateCancel</replaceable>,
3728                      unsigned <replaceable>flags</replaceable>, 
3729                      const QString&amp; <replaceable>bgColor</replaceable>, 
3730                      const QString&amp; <replaceable>fgColor</replaceable>, 
3731                      const QString&amp; <replaceable>font</replaceable>, 
3732                      const QString&amp; <replaceable>audioURL</replaceable>, 
3733                      int <replaceable>reminderMins</replaceable>, 
3734                      const QString&amp; <replaceable>recurrence</replaceable>,
3735                      int <replaceable>subRepeatInterval</replaceable>, 
3736                      int <replaceable>subRepeatCount</replaceable>)
3737 </synopsis>
3738 <synopsis>
3739 bool scheduleMessage(const QString&amp; <replaceable>name</replaceable>,
3740                      const QString&amp; <replaceable>message</replaceable>,
3741                      const QString&amp; <replaceable>startDateTime</replaceable>, 
3742                      int <replaceable>lateCancel</replaceable>,
3743                      unsigned <replaceable>flags</replaceable>, 
3744                      const QString&amp; <replaceable>bgColor</replaceable>, 
3745                      const QString&amp; <replaceable>fgColor</replaceable>, 
3746                      const QString&amp; <replaceable>font</replaceable>, 
3747                      const QString&amp; <replaceable>audioURL</replaceable>, 
3748                      int <replaceable>reminderMins</replaceable>, 
3749                      int <replaceable>recurType</replaceable>, 
3750                      int <replaceable>recurInterval</replaceable>, 
3751                      int <replaceable>recurCount</replaceable>)
3752 </synopsis>
3753 <synopsis>
3754 bool scheduleMessage(const QString&amp; <replaceable>name</replaceable>,
3755                      const QString&amp; <replaceable>message</replaceable>,
3756                      const QString&amp; <replaceable>startDateTime</replaceable>, 
3757                      int <replaceable>lateCancel</replaceable>, 
3758                      unsigned <replaceable>flags</replaceable>, 
3759                      const QString&amp; <replaceable>bgColor</replaceable>, 
3760                      const QString&amp; <replaceable>fgColor</replaceable>, 
3761                      const QString&amp; <replaceable>font</replaceable>, 
3762                      const QString&amp; <replaceable>audioURL</replaceable>, 
3763                      int <replaceable>reminderMins</replaceable>, 
3764                      int <replaceable>recurType</replaceable>, 
3765                      int <replaceable>recurInterval</replaceable>, 
3766                      const QString&amp; <replaceable>endDateTime</replaceable>)
3767 </synopsis>
3768 
3769 <refsect2>
3770 <title>Parameters</title>
3771 <variablelist>
3772 <varlistentry>
3773 <term><parameter>name</parameter></term>
3774 <listitem>
3775 <para>Specifies an optional name for the alarm.</para>
3776 </listitem>
3777 </varlistentry>
3778 
3779 <varlistentry>
3780 <term><parameter>message</parameter></term>
3781 <listitem>
3782 <para>Specifies the text of the message to be scheduled, or if
3783 <parameter>flags</parameter> has the
3784 <userinput>DISPLAY_COMMAND</userinput> bit set, specifies the command
3785 line to execute to generate the message text.</para>
3786 </listitem>
3787 </varlistentry>
3788 
3789 <varlistentry>
3790 <term><parameter>startDateTime</parameter></term>
3791 <listitem>
3792 <para>Specifies the scheduled date, or date and time, at which the
3793 message should be displayed. For a date-only alarm, the string should
3794 be in the format <replaceable>YYYY-MM-DD[ TZ]</replaceable> (as
3795 returned by <methodname>QDate::toString(Qt::ISODate)</methodname>). For
3796 an alarm with a date and time, the string should be in the format
3797 <replaceable>YYYY-MM-DDTHH:MM[:SS][ TZ]</replaceable> (as returned by
3798 <methodname>QDateTime::toString(Qt::ISODate)</methodname>) or
3799 <replaceable>HH:MM[:SS]</replaceable> (as returned by
3800 <methodname>QTime::toString(Qt::ISODate)</methodname>). If no date is
3801 specified, today's date is used. Note that any seconds value is
3802 ignored.</para>
3803 
3804 <para>If no time zone is specified, the local system time zone is
3805 assumed. If a time zone specifier <replaceable>TZ</replaceable> is
3806 present, it may be the name of a system time zone (&eg;
3807 <userinput>Europe/London</userinput>), or <userinput>UTC</userinput>
3808 representing the UTC time zone.</para>
3809 </listitem>
3810 </varlistentry>
3811 
3812 <varlistentry>
3813 <term><parameter>lateCancel</parameter></term>
3814 <listitem>
3815 <para>Causes the alarm to be canceled if it cannot be triggered within
3816 the specified number of minutes after the alarm's scheduled time. If
3817 the value is 0, the alarm will not be canceled no matter how late it
3818 is triggered.</para>
3819 </listitem>
3820 </varlistentry>
3821 
3822 <varlistentry>
3823 <term><parameter>flags</parameter></term>
3824 <listitem>
3825 <para>Specifies the logical OR of the desired alarm flags. The flag
3826 bits are those defined in class <classname>KAlarmIface</classname> in
3827 <filename>kalarmiface.h</filename>. Note that not all flag bits are
3828 applicable to message alarms.</para>
3829 </listitem>
3830 </varlistentry>
3831 
3832 <varlistentry>
3833 <term><parameter>bgColor</parameter></term>
3834 <listitem>
3835 <para>Specifies the background color for displaying the message. The
3836 string may be in the format <quote>#RRGGBB</quote> (as returned by
3837 <methodname>QColor::name()</methodname>) where RR, GG and BB are
3838 two-digit hexadecimal values for red, green and blue. Alternatively
3839 the string may be in any of the other formats accepted by
3840 <methodname>QColor::setNamedColor()</methodname>, such as a name from
3841 the X color database (&eg; <quote>red</quote> or
3842 <quote>steelblue</quote>). Set the string to null to specify the
3843 current default background color.</para>
3844 </listitem>
3845 </varlistentry>
3846 
3847 <varlistentry>
3848 <term><parameter>fgColor</parameter></term>
3849 <listitem>
3850 <para>Specifies the foreground color for displaying the message. The
3851 format of the string is the same as for
3852 <parameter>bgColor</parameter>, or alternatively set the string to
3853 null to specify the current default foreground color.</para>
3854 </listitem>
3855 </varlistentry>
3856 
3857 <varlistentry>
3858 <term><parameter>font</parameter></term>
3859 <listitem>
3860 <para>Specifies the font for displaying the message. The format of the
3861 string is that output by <methodname>QFont::toString()</methodname>.
3862 Set the string to null to use the default message font current at the
3863 time the message is displayed.</para>
3864 </listitem>
3865 </varlistentry>
3866 
3867 <varlistentry>
3868 <term><parameter>audioURL</parameter></term>
3869 <listitem>
3870 <para>Specifies the audio file which is to be played when the message
3871 is displayed. Set the value to null if no audio file is to be
3872 played.</para>
3873 </listitem>
3874 </varlistentry>
3875 
3876 <varlistentry>
3877 <term><parameter>reminderMins</parameter></term>
3878 <listitem>
3879 <para>Specifies the number of minutes in advance of the main alarm and
3880 of each of its recurrences (if any) at which a reminder alarm should
3881 be displayed. Specify a negative value for a reminder to be displayed
3882 after the main alarm. Specify 0 if no reminder is required.</para>
3883 </listitem>
3884 </varlistentry>
3885 
3886 <varlistentry>
3887 <term><parameter>recurrence</parameter></term>
3888 <listitem>
3889 <para>Specifies a regular recurrence for the alarm, using iCalendar
3890 syntax as defined in
3891 <ulink url="http://www.w3.org/2002/12/cal/rfc2445.html">RFC2445</ulink>.
3892 For example, <quote>FREQ=MONTHLY;COUNT=4;INTERVAL=3;BYDAY=-1MO</quote>
3893 would specify 4 repetitions at 3-monthly intervals on the last Monday
3894 of the month. For a non-recurring alarm, specify an empty
3895 string.</para>
3896 </listitem>
3897 </varlistentry>
3898 
3899 <varlistentry>
3900 <term><parameter>recurType</parameter></term>
3901 <listitem>
3902 <para>Specifies the recurrence type for the alarm. The permissible
3903 values are MINUTELY, DAILY, WEEKLY, MONTHLY, YEARLY. These
3904 are defined in class <classname>KAlarmIface</classname> in
3905 <filename>kalarmiface.h</filename>. Monthly recurrences are of the
3906 day of the month type, and yearly recurrences are of the date in
3907 the year type, with the date in both cases taken from the
3908 <parameter>startDateTime</parameter> parameter.</para>
3909 </listitem>
3910 </varlistentry>
3911 
3912 <varlistentry>
3913 <term><parameter>recurInterval</parameter></term>
3914 <listitem>
3915 <para>Specifies the number of periods
3916 (minutes/days/weeks/months/years as specified by
3917 <parameter>recurType</parameter>) between recurrences of the
3918 alarm.</para>
3919 </listitem>
3920 </varlistentry>
3921 
3922 <varlistentry>
3923 <term><parameter>recurCount</parameter></term>
3924 <listitem>
3925 <para>Specifies the number of times that the alarm should be
3926 repeated. Specify -1 to repeat the alarm indefinitely.</para>
3927 </listitem>
3928 </varlistentry>
3929 
3930 <varlistentry>
3931 <term><parameter>endDateTime</parameter></term>
3932 <listitem>
3933 <para>Specifies the end date, or date and time, for recurrences of the
3934 alarm. If <parameter>startDateTime</parameter> includes a time, this
3935 parameter must also include a time; if <parameter>startDateTime</parameter>
3936 contains only a date, this parameter must also contain only a
3937 date. It must not contain a time zone specifier; the same time zone as
3938 for <parameter>startDateTime</parameter> is used to interpret this
3939 parameter's value.</para>
3940 </listitem>
3941 </varlistentry>
3942 
3943 <varlistentry>
3944 <term><parameter>subRepeatInterval</parameter></term>
3945 <listitem>
3946 <para>Specifies the number of minutes between sub-repetitions of
3947 the alarm. Specify 0 for no sub-repetition. Ignored if no recurrence
3948 is specified.</para>
3949 </listitem>
3950 </varlistentry>
3951 
3952 <varlistentry>
3953 <term><parameter>subRepeatCount</parameter></term>
3954 <listitem>
3955 <para>Specifies the number of sub-repetitions of the alarm,
3956 including the initial occurrence.</para>
3957 </listitem>
3958 </varlistentry>
3959 </variablelist>
3960 </refsect2>
3961 </refsynopsisdiv>
3962 
3963 <refsect1 id="scheduleMessage-descrip">
3964 <title>Description</title>
3965 <para><function>scheduleMessage()</function> is a &DBus; call to
3966 schedule the specified alarm message for display at the specified date
3967 and time. It has three forms. The most general form allows an
3968 arbitrary recurrence to be specified &ndash; use this also for
3969 non-repeating alarms. The other forms provide convenient access to a
3970 restricted set of alarm recurrence types, one specifying a repetition
3971 count and the other an end time.</para>
3972 
3973 <para>If the scheduled time (including any repetitions) has already
3974 passed, &kalarm; immediately displays the message (unless the
3975 <parameter>lateCancel</parameter> value indicates that it is now too
3976 late to display the alarm, in which case &kalarm; ignores the
3977 request). If the scheduled time (or a repetition) is in the future,
3978 &kalarm; adds the alarm message to the default active alarm calendar
3979 for later display.</para>
3980 </refsect1>
3981 </refentry>
3982 
3983 <refentry id="scheduleFile">
3984 <refmeta>
3985 <refentrytitle>scheduleFile</refentrytitle>
3986 </refmeta>
3987 <refnamediv>
3988 <refname>scheduleFile</refname>
3989 <refpurpose>schedule a new alarm which displays the contents of a
3990 text or image file.</refpurpose>
3991 </refnamediv>
3992 <refsynopsisdiv>
3993 <synopsis>
3994 bool scheduleFile(const QString&amp; <replaceable>name</replaceable>,
3995                   const QString&amp; <replaceable>URL</replaceable>,
3996                   const QString&amp; <replaceable>startDateTime</replaceable>,
3997                   int <replaceable>lateCancel</replaceable>,
3998                   unsigned <replaceable>flags</replaceable>,
3999                   const QString&amp; <replaceable>bgColor</replaceable>,
4000                   const QString&amp; <replaceable>audioURL</replaceable>,
4001                   int <replaceable>reminderMins</replaceable>,
4002                   const QString&amp; <replaceable>recurrence</replaceable>,
4003                   int <replaceable>subRepeatInterval</replaceable>, 
4004                   int <replaceable>subRepeatCount</replaceable>)
4005 </synopsis>
4006 <synopsis>
4007 bool scheduleFile(const QString&amp; <replaceable>name</replaceable>,
4008                   const QString&amp; <replaceable>URL</replaceable>,
4009                   const QString&amp; <replaceable>startDateTime</replaceable>,
4010                   int <replaceable>lateCancel</replaceable>,
4011                   unsigned <replaceable>flags</replaceable>,
4012                   const QString&amp; <replaceable>bgColor</replaceable>,
4013                   const QString&amp; <replaceable>audioURL</replaceable>,
4014                   int <replaceable>reminderMins</replaceable>,
4015                   int <replaceable>recurType</replaceable>,
4016                   int <replaceable>recurInterval</replaceable>,
4017                   int <replaceable>recurCount</replaceable>)
4018 </synopsis>
4019 <synopsis>
4020 bool scheduleFile(const QString&amp; <replaceable>name</replaceable>,
4021                   const QString&amp; <replaceable>URL</replaceable>,
4022                   const QString&amp; <replaceable>startDateTime</replaceable>,
4023                   int <replaceable>lateCancel</replaceable>,
4024                   unsigned <replaceable>flags</replaceable>,
4025                   const QString&amp; <replaceable>bgColor</replaceable>,
4026                   const QString&amp; <replaceable>audioURL</replaceable>,
4027                   int <replaceable>reminderMins</replaceable>,
4028                   int <replaceable>recurType</replaceable>,
4029                   int <replaceable>recurInterval</replaceable>,
4030                   const QString&amp; <replaceable>endDateTime</replaceable>)
4031 </synopsis>
4032 
4033 <refsect2>
4034 <title>Parameters</title>
4035 <variablelist>
4036 <varlistentry>
4037 <term><parameter>name</parameter></term>
4038 <listitem>
4039 <para>Specifies an optional name for the alarm.</para>
4040 </listitem>
4041 </varlistentry>
4042 
4043 <varlistentry>
4044 <term><parameter>URL</parameter></term>
4045 <listitem>
4046 <para>Specifies the text or image file whose contents are to be
4047 displayed in the message to be scheduled.</para>
4048 </listitem>
4049 </varlistentry>
4050 
4051 <varlistentry>
4052 <term><parameter>startDateTime</parameter></term>
4053 <listitem>
4054 <para>Specifies the scheduled date, or date and time, at which the
4055 message should be displayed. For a date-only alarm, the string should
4056 be in the format <replaceable>YYYY-MM-DD[ TZ]</replaceable> (as
4057 returned by <methodname>QDate::toString(Qt::ISODate)</methodname>). For
4058 an alarm with a date and time, the string should be in the format
4059 <replaceable>YYYY-MM-DDTHH:MM[:SS][ TZ]</replaceable> (as returned by
4060 <methodname>QDateTime::toString(Qt::ISODate)</methodname>) or
4061 <replaceable>HH:MM[:SS]</replaceable> (as returned by
4062 <methodname>QTime::toString(Qt::ISODate)</methodname>). If no date is
4063 specified, today's date is used. Note that any seconds value is
4064 ignored.</para>
4065 
4066 <para>If no time zone is specified, the local system time zone is
4067 assumed. If a time zone specifier <replaceable>TZ</replaceable> is
4068 present, it may be the name of a system time zone (&eg;
4069 <userinput>Europe/London</userinput>), or <userinput>UTC</userinput>
4070 representing the UTC time zone.</para>
4071 </listitem>
4072 </varlistentry>
4073 
4074 <varlistentry>
4075 <term><parameter>lateCancel</parameter></term>
4076 <listitem>
4077 <para>Causes the alarm to be canceled if it cannot be triggered within
4078 the specified number of minutes after the alarm's scheduled time. If
4079 the value is 0, the alarm will not be canceled no matter how late it
4080 is triggered.</para>
4081 </listitem>
4082 </varlistentry>
4083 
4084 <varlistentry>
4085 <term><parameter>flags</parameter></term>
4086 <listitem>
4087 <para>Specifies the logical OR of the desired alarm flags. The flag
4088 bits are those defined in class <classname>KAlarmIface</classname> in
4089 <filename>kalarmiface.h</filename>. Note that not all flag bits are
4090 applicable to file alarms.</para>
4091 </listitem>
4092 </varlistentry>
4093 
4094 <varlistentry>
4095 <term><parameter>bgColor</parameter></term>
4096 <listitem>
4097 <para>Specifies the background color for displaying the file. The
4098 string may be in the format <quote>#RRGGBB</quote> (as returned by
4099 <methodname>QColor::name()</methodname>) where RR, GG and BB are
4100 two-digit hexadecimal values for red, green and blue. Alternatively
4101 the string may be in any of the other formats accepted by
4102 <methodname>QColor::setNamedColor()</methodname>, such as a name from
4103 the X color database (&eg; <quote>red</quote> or
4104 <quote>steelblue</quote>). Set the string to null to specify the
4105 current default background color.</para>
4106 </listitem>
4107 </varlistentry>
4108 
4109 <varlistentry>
4110 <term><parameter>audioURL</parameter></term>
4111 <listitem>
4112 <para>Specifies the audio file which is to be played when the message
4113 is displayed. Set the value to null if no audio file is to be
4114 played.</para>
4115 </listitem>
4116 </varlistentry>
4117 
4118 <varlistentry>
4119 <term><parameter>reminderMins</parameter></term>
4120 <listitem>
4121 <para>Specifies the number of minutes in advance of the main alarm and
4122 of each of its recurrences (if any) at which a reminder alarm should
4123 be displayed. Specify a negative value for a reminder to be displayed
4124 after the main alarm. Specify 0 if no reminder is required.</para>
4125 </listitem>
4126 </varlistentry>
4127 
4128 <varlistentry>
4129 <term><parameter>recurrence</parameter></term>
4130 <listitem>
4131 <para>Specifies a regular recurrence for the alarm, using iCalendar
4132 syntax as defined in
4133 <ulink url="http://www.w3.org/2002/12/cal/rfc2445.html">RFC2445</ulink>.
4134 For example, <quote>FREQ=MONTHLY;COUNT=4;INTERVAL=3;BYDAY=-1MO</quote>
4135 would specify 4 repetitions at 3-monthly intervals on the last Monday
4136 of the month. For a non-recurring alarm, specify an empty
4137 string.</para>
4138 </listitem>
4139 </varlistentry>
4140 
4141 <varlistentry>
4142 <term><parameter>recurType</parameter></term>
4143 <listitem>
4144 <para>Specifies the recurrence type for the alarm. The permissible
4145 values are MINUTELY, DAILY, WEEKLY, MONTHLY, YEARLY. These
4146 are defined in class <classname>KAlarmIface</classname> in
4147 <filename>kalarmiface.h</filename>. Monthly recurrences are of the
4148 day of the month type, and yearly recurrences are of the date in
4149 the year type, with the date in both cases taken from the
4150 <parameter>startDateTime</parameter> parameter.</para>
4151 </listitem>
4152 </varlistentry>
4153 
4154 <varlistentry>
4155 <term><parameter>recurInterval</parameter></term>
4156 <listitem>
4157 <para>Specifies the number of periods
4158 (minutes/days/weeks/months/years as specified by
4159 <parameter>recurType</parameter>) between recurrences of the
4160 alarm.</para>
4161 </listitem>
4162 </varlistentry>
4163 
4164 <varlistentry>
4165 <term><parameter>recurCount</parameter></term>
4166 <listitem>
4167 <para>Specifies the number of times that the alarm should be
4168 repeated. Specify -1 to repeat the alarm indefinitely.</para>
4169 </listitem>
4170 </varlistentry>
4171 
4172 <varlistentry>
4173 <term><parameter>endDateTime</parameter></term>
4174 <listitem>
4175 <para>Specifies the end date, or date and time, for recurrences of the
4176 alarm. If <parameter>startDateTime</parameter> includes a time, this
4177 parameter must also include a time; if <parameter>startDateTime</parameter>
4178 contains only a date, this parameter must also contain only a
4179 date. It must not contain a time zone specifier; the same time zone as
4180 for <parameter>startDateTime</parameter> is used to interpret this
4181 parameter's value.</para>
4182 </listitem>
4183 </varlistentry>
4184 
4185 <varlistentry>
4186 <term><parameter>subRepeatInterval</parameter></term>
4187 <listitem>
4188 <para>Specifies the number of minutes between sub-repetitions of
4189 the alarm. Specify 0 for no sub-repetition. Ignored if no recurrence
4190 is specified.</para>
4191 </listitem>
4192 </varlistentry>
4193 
4194 <varlistentry>
4195 <term><parameter>subRepeatCount</parameter></term>
4196 <listitem>
4197 <para>Specifies the number of sub-repetitions of the alarm,
4198 including the initial occurrence.</para>
4199 </listitem>
4200 </varlistentry>
4201 </variablelist>
4202 </refsect2>
4203 </refsynopsisdiv>
4204 
4205 <refsect1>
4206 <title>Description</title>
4207 <para><function>scheduleFile()</function> is a &DBus; call to schedule
4208 the specified text or image file for display at the specified date and
4209 time. Apart from specifying a file path or &URL; and omitting the
4210 foreground color and font, its usage is identical to
4211 <link linkend="scheduleMessage-descrip"><function>scheduleMessage</function></link>
4212 - see the description of that function for further details.</para>
4213 </refsect1>
4214 </refentry>
4215 
4216 
4217 <refentry id="scheduleCommand">
4218 <refmeta>
4219 <refentrytitle>scheduleCommand</refentrytitle>
4220 </refmeta>
4221 <refnamediv>
4222 <refname>scheduleCommand</refname>
4223 <refpurpose>schedule a new alarm which executes a shell
4224 command.</refpurpose>
4225 </refnamediv>
4226 <refsynopsisdiv>
4227 <synopsis>
4228 bool scheduleCommand(const QString&amp; <replaceable>name</replaceable>,
4229                      const QString&amp; <replaceable>commandLine</replaceable>,
4230                      const QString&amp; <replaceable>startDateTime</replaceable>,
4231                      int <replaceable>lateCancel</replaceable>,
4232                      unsigned <replaceable>flags</replaceable>,
4233                      const QString&amp; <replaceable>recurrence</replaceable>,
4234                      int <replaceable>subRepeatInterval</replaceable>, 
4235                      int <replaceable>subRepeatCount</replaceable>)
4236 </synopsis>
4237 <synopsis>
4238 bool scheduleCommand(const QString&amp; <replaceable>name</replaceable>,
4239                      const QString&amp; <replaceable>commandLine</replaceable>,
4240                      const QString&amp; <replaceable>startDateTime</replaceable>,
4241                      int <replaceable>lateCancel</replaceable>,
4242                      unsigned <replaceable>flags</replaceable>,
4243                      int <replaceable>recurType</replaceable>,
4244                      int <replaceable>recurInterval</replaceable>,
4245                      int <replaceable>recurCount</replaceable>)
4246 </synopsis>
4247 <synopsis>
4248 bool scheduleCommand(const QString&amp; <replaceable>name</replaceable>,
4249                      const QString&amp; <replaceable>commandLine</replaceable>,
4250                      const QString&amp; <replaceable>startDateTime</replaceable>,
4251                      int <replaceable>lateCancel</replaceable>,
4252                      unsigned <replaceable>flags</replaceable>,
4253                      int <replaceable>recurType</replaceable>,
4254                      int <replaceable>recurInterval</replaceable>,
4255                      const QString&amp; <replaceable>endDateTime</replaceable>)
4256 </synopsis>
4257 
4258 <refsect2>
4259 <title>Parameters</title>
4260 <variablelist>
4261 <varlistentry>
4262 <term><parameter>name</parameter></term>
4263 <listitem>
4264 <para>Specifies an optional name for the alarm.</para>
4265 </listitem>
4266 </varlistentry>
4267 
4268 <varlistentry>
4269 <term><parameter>commandLine</parameter></term>
4270 <listitem>
4271 <para>Specifies the command whose execution is to be scheduled. The
4272 <parameter>flags</parameter> parameter indicates whether this
4273 parameter contains a shell command line or a command script.</para>
4274 </listitem>
4275 </varlistentry>
4276 
4277 <varlistentry>
4278 <term><parameter>startDateTime</parameter></term>
4279 <listitem>
4280 <para>Specifies the scheduled date, or date and time, at which the
4281 message should be displayed. For a date-only alarm, the string should
4282 be in the format <replaceable>YYYY-MM-DD[ TZ]</replaceable> (as
4283 returned by <methodname>QDate::toString(Qt::ISODate)</methodname>). For
4284 an alarm with a date and time, the string should be in the format
4285 <replaceable>YYYY-MM-DDTHH:MM[:SS][ TZ]</replaceable> (as returned by
4286 <methodname>QDateTime::toString(Qt::ISODate)</methodname>) or
4287 <replaceable>HH:MM[:SS]</replaceable> (as returned by
4288 <methodname>QTime::toString(Qt::ISODate)</methodname>). If no date is
4289 specified, today's date is used. Note that any seconds value is
4290 ignored.</para>
4291 
4292 <para>If no time zone is specified, the local system time zone is
4293 assumed. If a time zone specifier <replaceable>TZ</replaceable> is
4294 present, it may be the name of a system time zone (&eg;
4295 <userinput>Europe/London</userinput>), or <userinput>UTC</userinput>
4296 representing the UTC time zone.</para>
4297 </listitem>
4298 </varlistentry>
4299 
4300 <varlistentry>
4301 <term><parameter>lateCancel</parameter></term>
4302 <listitem>
4303 <para>Causes the alarm to be canceled if it cannot be triggered within
4304 the specified number of minutes after the alarm's scheduled time. If
4305 the value is 0, the alarm will not be canceled no matter how late it
4306 is triggered.</para>
4307 </listitem>
4308 </varlistentry>
4309 
4310 <varlistentry>
4311 <term><parameter>flags</parameter></term>
4312 <listitem>
4313 <para>Specifies the logical OR of the desired alarm flags. The flag
4314 bits are those defined in class <classname>KAlarmIface</classname> in
4315 <filename>kalarmiface.h</filename>. Note that not all flag bits are
4316 applicable to command alarms.</para>
4317 </listitem>
4318 </varlistentry>
4319 
4320 <varlistentry>
4321 <term><parameter>recurrence</parameter></term>
4322 <listitem>
4323 <para>Specifies a regular recurrence for the alarm, using iCalendar
4324 syntax as defined in
4325 <ulink url="http://www.w3.org/2002/12/cal/rfc2445.html">RFC2445</ulink>.
4326 For example, <quote>FREQ=MONTHLY;COUNT=4;INTERVAL=3;BYDAY=-1MO</quote>
4327 would specify 4 repetitions at 3-monthly intervals on the last Monday
4328 of the month. For a non-recurring alarm, specify an empty
4329 string.</para>
4330 </listitem>
4331 </varlistentry>
4332 
4333 <varlistentry>
4334 <term><parameter>recurType</parameter></term>
4335 <listitem>
4336 <para>Specifies the recurrence type for the alarm. The permissible
4337 values are MINUTELY, DAILY, WEEKLY, MONTHLY, YEARLY. These
4338 are defined in class <classname>KAlarmIface</classname> in
4339 <filename>kalarmiface.h</filename>. Monthly recurrences are of the
4340 day of the month type, and yearly recurrences are of the date in
4341 the year type, with the date in both cases taken from the
4342 <parameter>startDateTime</parameter> parameter.</para>
4343 </listitem>
4344 </varlistentry>
4345 
4346 <varlistentry>
4347 <term><parameter>recurInterval</parameter></term>
4348 <listitem>
4349 <para>Specifies the number of periods
4350 (minutes/days/weeks/months/years as specified by
4351 <parameter>recurType</parameter>) between recurrences of the
4352 alarm.</para>
4353 </listitem>
4354 </varlistentry>
4355 
4356 <varlistentry>
4357 <term><parameter>recurCount</parameter></term>
4358 <listitem>
4359 <para>Specifies the number of times that the alarm should be
4360 repeated. Specify -1 to repeat the alarm indefinitely.</para>
4361 </listitem>
4362 </varlistentry>
4363 
4364 <varlistentry>
4365 <term><parameter>endDateTime</parameter></term>
4366 <listitem>
4367 <para>Specifies the end date, or date and time, for recurrences of the
4368 alarm. If <parameter>startDateTime</parameter> includes a time, this
4369 parameter must also include a time; if <parameter>startDateTime</parameter>
4370 contains only a date, this parameter must also contain only a
4371 date. It must not contain a time zone specifier; the same time zone as
4372 for <parameter>startDateTime</parameter> is used to interpret this
4373 parameter's value.</para>
4374 </listitem>
4375 </varlistentry>
4376 
4377 <varlistentry>
4378 <term><parameter>subRepeatInterval</parameter></term>
4379 <listitem>
4380 <para>Specifies the number of minutes between sub-repetitions of
4381 the alarm. Specify 0 for no sub-repetition. Ignored if no recurrence
4382 is specified.</para>
4383 </listitem>
4384 </varlistentry>
4385 
4386 <varlistentry>
4387 <term><parameter>subRepeatCount</parameter></term>
4388 <listitem>
4389 <para>Specifies the number of sub-repetitions of the alarm,
4390 including the initial occurrence.</para>
4391 </listitem>
4392 </varlistentry>
4393 </variablelist>
4394 </refsect2>
4395 </refsynopsisdiv>
4396 
4397 <refsect1>
4398 <title>Description</title>
4399 <para><function>scheduleCommand()</function> is a &DBus; call to
4400 schedule the specified shell command line, or command script, for
4401 execution at the specified date and time. Apart from specifying a
4402 command and omitting the message color, font and audio file
4403 parameters, its usage is identical to
4404 <link linkend="scheduleMessage-descrip"><function>scheduleMessage</function></link>
4405 - see the description of that function for further details.</para>
4406 </refsect1>
4407 </refentry>
4408 
4409 
4410 <refentry id="scheduleEmail">
4411 <refmeta>
4412 <refentrytitle>scheduleEmail</refentrytitle>
4413 </refmeta>
4414 <refnamediv>
4415 <refname>scheduleEmail</refname>
4416 <refpurpose>schedule a new alarm which sends an email.</refpurpose>
4417 </refnamediv>
4418 <refsynopsisdiv>
4419 <synopsis>
4420 bool scheduleEmail(const QString&amp; <replaceable>name</replaceable>,
4421                    const QString&amp; <replaceable>fromID</replaceable>,
4422                    const QString&amp; <replaceable>addresses</replaceable>,
4423                    const QString&amp; <replaceable>subject</replaceable>,
4424                    const QString&amp; <replaceable>message</replaceable>,
4425                    const QString&amp; <replaceable>attachments</replaceable>,
4426                    const QString&amp; <replaceable>startDateTime</replaceable>,
4427                    int <replaceable>lateCancel</replaceable>,
4428                    unsigned <replaceable>flags</replaceable>,
4429                    const QString&amp; <replaceable>recurrence</replaceable>,
4430                    int <replaceable>subRepeatInterval</replaceable>, 
4431                    int <replaceable>subRepeatCount</replaceable>)
4432 </synopsis>
4433 <synopsis>
4434 bool scheduleEmail(const QString&amp; <replaceable>name</replaceable>,
4435                    const QString&amp; <replaceable>fromID</replaceable>,
4436                    const QString&amp; <replaceable>addresses</replaceable>,
4437                    const QString&amp; <replaceable>subject</replaceable>,
4438                    const QString&amp; <replaceable>message</replaceable>,
4439                    const QString&amp; <replaceable>attachments</replaceable>,
4440                    const QString&amp; <replaceable>startDateTime</replaceable>,
4441                    int <replaceable>lateCancel</replaceable>,
4442                    unsigned <replaceable>flags</replaceable>,
4443                    int <replaceable>recurType</replaceable>,
4444                    int <replaceable>recurInterval</replaceable>,
4445                    int <replaceable>recurCount</replaceable>)
4446 </synopsis>
4447 <synopsis>
4448 bool scheduleEmail(const QString&amp; <replaceable>name</replaceable>,
4449                    const QString&amp; <replaceable>fromID</replaceable>,
4450                    const QString&amp; <replaceable>addresses</replaceable>,
4451                    const QString&amp; <replaceable>subject</replaceable>,
4452                    const QString&amp; <replaceable>message</replaceable>,
4453                    const QString&amp; <replaceable>attachments</replaceable>,
4454                    const QString&amp; <replaceable>startDateTime</replaceable>,
4455                    int <replaceable>lateCancel</replaceable>, 
4456                    unsigned <replaceable>flags</replaceable>,
4457                    int <replaceable>recurType</replaceable>,
4458                    int <replaceable>recurInterval</replaceable>,
4459                    const QString&amp; <replaceable>endTime</replaceable>)
4460 </synopsis>
4461 
4462 <refsect2>
4463 <title>Parameters</title>
4464 <variablelist>
4465 <varlistentry>
4466 <term><parameter>name</parameter></term>
4467 <listitem>
4468 <para>Specifies an optional name for the alarm.</para>
4469 </listitem>
4470 </varlistentry>
4471 
4472 <varlistentry>
4473 <term><parameter>fromID</parameter></term>
4474 <listitem>
4475 <para>The &kmail; identity to use as the sender of the email. If
4476 empty, the sender's email address will be that configured in
4477 &kalarm;'s
4478 <link linkend="preferences-email">Email preferences</link>.</para>
4479 </listitem>
4480 </varlistentry>
4481 
4482 <varlistentry>
4483 <term><parameter>addresses</parameter></term>
4484 <listitem>
4485 <para>A comma separated list of recipients' email addresses.</para>
4486 </listitem>
4487 </varlistentry>
4488 
4489 <varlistentry>
4490 <term><parameter>subject</parameter></term>
4491 <listitem>
4492 <para>Specifies the subject line of the email.</para>
4493 </listitem>
4494 </varlistentry>
4495 
4496 <varlistentry>
4497 <term><parameter>message</parameter></term>
4498 <listitem>
4499 <para>Specifies the email message body.</para>
4500 </listitem>
4501 </varlistentry>
4502 
4503 <varlistentry>
4504 <term><parameter>attachments</parameter></term>
4505 <listitem>
4506 <para>A comma-separated list of paths or &URL;s of files to send as
4507 email attachments.</para>
4508 </listitem>
4509 </varlistentry>
4510 
4511 <varlistentry>
4512 <term><parameter>startDateTime</parameter></term>
4513 <listitem>
4514 <para>Specifies the scheduled date, or date and time, at which the
4515 message should be displayed. For a date-only alarm, the string should
4516 be in the format <replaceable>YYYY-MM-DD[ TZ]</replaceable> (as
4517 returned by <methodname>QDate::toString(Qt::ISODate)</methodname>). For
4518 an alarm with a date and time, the string should be in the format
4519 <replaceable>YYYY-MM-DDTHH:MM[:SS][ TZ]</replaceable> (as returned by
4520 <methodname>QDateTime::toString(Qt::ISODate)</methodname>) or
4521 <replaceable>HH:MM[:SS]</replaceable> (as returned by
4522 <methodname>QTime::toString(Qt::ISODate)</methodname>). If no date is
4523 specified, today's date is used. Note that any seconds value is
4524 ignored.</para>
4525 
4526 <para>If no time zone is specified, the local system time zone is
4527 assumed. If a time zone specifier <replaceable>TZ</replaceable> is
4528 present, it may be the name of a system time zone (&eg;
4529 <userinput>Europe/London</userinput>), or <userinput>UTC</userinput>
4530 representing the UTC time zone.</para>
4531 </listitem>
4532 </varlistentry>
4533 
4534 <varlistentry>
4535 <term><parameter>lateCancel</parameter></term>
4536 <listitem>
4537 <para>Causes the alarm to be canceled if it cannot be triggered within
4538 the specified number of minutes after the alarm's scheduled time. If
4539 the value is 0, the alarm will not be canceled no matter how late it
4540 is triggered.</para>
4541 </listitem>
4542 </varlistentry>
4543 
4544 <varlistentry>
4545 <term><parameter>flags</parameter></term>
4546 <listitem>
4547 <para>Specifies the logical OR of the desired alarm flags. The flag
4548 bits are those defined in class <classname>KAlarmIface</classname> in
4549 <filename>kalarmiface.h</filename>. Note that not all flag bits are
4550 applicable to email alarms.</para>
4551 </listitem>
4552 </varlistentry>
4553 
4554 <varlistentry>
4555 <term><parameter>recurrence</parameter></term>
4556 <listitem>
4557 <para>Specifies a regular recurrence for the alarm, using iCalendar
4558 syntax as defined in
4559 <ulink url="http://www.w3.org/2002/12/cal/rfc2445.html">RFC2445</ulink>.
4560 For example, <quote>FREQ=MONTHLY;COUNT=4;INTERVAL=3;BYDAY=-1MO</quote>
4561 would specify 4 repetitions at 3-monthly intervals on the last Monday
4562 of the month. For a non-recurring alarm, specify an empty
4563 string.</para>
4564 </listitem>
4565 </varlistentry>
4566 
4567 <varlistentry>
4568 <term><parameter>recurType</parameter></term>
4569 <listitem>
4570 <para>Specifies the recurrence type for the alarm. The permissible
4571 values are MINUTELY, DAILY, WEEKLY, MONTHLY, YEARLY. These
4572 are defined in class <classname>KAlarmIface</classname> in
4573 <filename>kalarmiface.h</filename>. Monthly recurrences are of the
4574 day of the month type, and yearly recurrences are of the date in
4575 the year type, with the date in both cases taken from the
4576 <parameter>startDateTime</parameter> parameter.</para>
4577 </listitem>
4578 </varlistentry>
4579 
4580 <varlistentry>
4581 <term><parameter>recurInterval</parameter></term>
4582 <listitem>
4583 <para>Specifies the number of periods
4584 (minutes/days/weeks/months/years as specified by
4585 <parameter>recurType</parameter>) between recurrences of the
4586 alarm.</para>
4587 </listitem>
4588 </varlistentry>
4589 
4590 <varlistentry>
4591 <term><parameter>recurCount</parameter></term>
4592 <listitem>
4593 <para>Specifies the number of times that the alarm should be
4594 repeated. Specify -1 to repeat the alarm indefinitely.</para>
4595 </listitem>
4596 </varlistentry>
4597 
4598 <varlistentry>
4599 <term><parameter>endDateTime</parameter></term>
4600 <listitem>
4601 <para>Specifies the end date, or date and time, for recurrences of the
4602 alarm. If <parameter>startDateTime</parameter> includes a time, this
4603 parameter must also include a time; if <parameter>startDateTime</parameter>
4604 contains only a date, this parameter must also contain only a
4605 date. It must not contain a time zone specifier; the same time zone as
4606 for <parameter>startDateTime</parameter> is used to interpret this
4607 parameter's value.</para>
4608 </listitem>
4609 </varlistentry>
4610 
4611 <varlistentry>
4612 <term><parameter>subRepeatInterval</parameter></term>
4613 <listitem>
4614 <para>Specifies the number of minutes between sub-repetitions of
4615 the alarm. Specify 0 for no sub-repetition. Ignored if no recurrence
4616 is specified.</para>
4617 </listitem>
4618 </varlistentry>
4619 
4620 <varlistentry>
4621 <term><parameter>subRepeatCount</parameter></term>
4622 <listitem>
4623 <para>Specifies the number of sub-repetitions of the alarm,
4624 including the initial occurrence.</para>
4625 </listitem>
4626 </varlistentry>
4627 </variablelist>
4628 </refsect2>
4629 </refsynopsisdiv>
4630 
4631 <refsect1>
4632 <title>Description</title>
4633 <para><function>scheduleEmail()</function> is a &DBus; call to
4634 schedule the specified email for sending at the specified date and
4635 time. Apart from specifying the email header and contents and omitting
4636 the message color, font and audio file parameters, its usage is
4637 identical to
4638 <link linkend="scheduleMessage-descrip"><function>scheduleMessage</function></link>
4639 - see the description of that function for further details.</para>
4640 </refsect1>
4641 </refentry>
4642 
4643 
4644 <refentry id="scheduleAudio">
4645 <refmeta>
4646 <refentrytitle>scheduleAudio</refentrytitle>
4647 </refmeta>
4648 <refnamediv>
4649 <refname>scheduleAudio</refname>
4650 <refpurpose>schedule a new alarm which executes a shell
4651 command.</refpurpose>
4652 </refnamediv>
4653 <refsynopsisdiv>
4654 <synopsis>
4655 bool scheduleAudio(const QString&amp; <replaceable>name</replaceable>,
4656                    const QString&amp; <replaceable>audioURL</replaceable>,
4657                    int <replaceable>volumePercent</replaceable>,
4658                    const QString&amp; <replaceable>startDateTime</replaceable>,
4659                    int <replaceable>lateCancel</replaceable>,
4660                    unsigned <replaceable>flags</replaceable>,
4661                    const QString&amp; <replaceable>recurrence</replaceable>,
4662                    int <replaceable>subRepeatInterval</replaceable>, 
4663                    int <replaceable>subRepeatCount</replaceable>)
4664 </synopsis>
4665 <synopsis>
4666 bool scheduleAudio(const QString&amp; <replaceable>name</replaceable>,
4667                    const QString&amp; <replaceable>audioURL</replaceable>,
4668                    int <replaceable>volumePercent</replaceable>,
4669                    const QString&amp; <replaceable>startDateTime</replaceable>,
4670                    int <replaceable>lateCancel</replaceable>,
4671                    unsigned <replaceable>flags</replaceable>,
4672                    int <replaceable>recurType</replaceable>,
4673                    int <replaceable>recurInterval</replaceable>,
4674                    int <replaceable>recurCount</replaceable>)
4675 </synopsis>
4676 <synopsis>
4677 bool scheduleAudio(const QString&amp; <replaceable>name</replaceable>,
4678                    const QString&amp; <replaceable>audioURL</replaceable>,
4679                    int <replaceable>volumePercent</replaceable>,
4680                    const QString&amp; <replaceable>startDateTime</replaceable>,
4681                    int <replaceable>lateCancel</replaceable>,
4682                    unsigned <replaceable>flags</replaceable>,
4683                    int <replaceable>recurType</replaceable>,
4684                    int <replaceable>recurInterval</replaceable>,
4685                    const QString&amp; <replaceable>endDateTime</replaceable>)
4686 </synopsis>
4687 
4688 <refsect2>
4689 <title>Parameters</title>
4690 <variablelist>
4691 <varlistentry>
4692 <term><parameter>name</parameter></term>
4693 <listitem>
4694 <para>Specifies an optional name for the alarm.</para>
4695 </listitem>
4696 </varlistentry>
4697 
4698 <varlistentry>
4699 <term><parameter>audioURL</parameter></term>
4700 <listitem>
4701 <para>Specifies the audio file which is to be played.</para>
4702 </listitem>
4703 </varlistentry>
4704 
4705 <varlistentry>
4706 <term><parameter>volumePercent</parameter></term>
4707 <listitem>
4708 <para>Specifies the volume level to use, as a percentage of full
4709 volume. Specify -1 to use the default volume.</para>
4710 </listitem>
4711 </varlistentry>
4712 
4713 <varlistentry>
4714 <term><parameter>startDateTime</parameter></term>
4715 <listitem>
4716 <para>Specifies the scheduled date, or date and time, at which the
4717 message should be displayed. For a date-only alarm, the string should
4718 be in the format <replaceable>YYYY-MM-DD[ TZ]</replaceable> (as
4719 returned by <methodname>QDate::toString(Qt::ISODate)</methodname>). For
4720 an alarm with a date and time, the string should be in the format
4721 <replaceable>YYYY-MM-DDTHH:MM[:SS][ TZ]</replaceable> (as returned by
4722 <methodname>QDateTime::toString(Qt::ISODate)</methodname>) or
4723 <replaceable>HH:MM[:SS]</replaceable> (as returned by
4724 <methodname>QTime::toString(Qt::ISODate)</methodname>). If no date is
4725 specified, today's date is used. Note that any seconds value is
4726 ignored.</para>
4727 
4728 <para>If no time zone is specified, the local system time zone is
4729 assumed. If a time zone specifier <replaceable>TZ</replaceable> is
4730 present, it may be the name of a system time zone (&eg;
4731 <userinput>Europe/London</userinput>), or <userinput>UTC</userinput>
4732 representing the UTC time zone.</para>
4733 </listitem>
4734 </varlistentry>
4735 
4736 <varlistentry>
4737 <term><parameter>lateCancel</parameter></term>
4738 <listitem>
4739 <para>Causes the alarm to be canceled if it cannot be triggered within
4740 the specified number of minutes after the alarm's scheduled time. If
4741 the value is 0, the alarm will not be canceled no matter how late it
4742 is triggered.</para>
4743 </listitem>
4744 </varlistentry>
4745 
4746 <varlistentry>
4747 <term><parameter>flags</parameter></term>
4748 <listitem>
4749 <para>Specifies the logical OR of the desired alarm flags. The flag
4750 bits are those defined in class <classname>KAlarmIface</classname> in
4751 <filename>kalarmiface.h</filename>. Note that not all flag bits are
4752 applicable to command alarms.</para>
4753 </listitem>
4754 </varlistentry>
4755 
4756 <varlistentry>
4757 <term><parameter>recurrence</parameter></term>
4758 <listitem>
4759 <para>Specifies a regular recurrence for the alarm, using iCalendar
4760 syntax as defined in
4761 <ulink url="http://www.w3.org/2002/12/cal/rfc2445.html">RFC2445</ulink>.
4762 For example, <quote>FREQ=MONTHLY;COUNT=4;INTERVAL=3;BYDAY=-1MO</quote>
4763 would specify 4 repetitions at 3-monthly intervals on the last Monday
4764 of the month. For a non-recurring alarm, specify an empty
4765 string.</para>
4766 </listitem>
4767 </varlistentry>
4768 
4769 <varlistentry>
4770 <term><parameter>recurType</parameter></term>
4771 <listitem>
4772 <para>Specifies the recurrence type for the alarm. The permissible
4773 values are MINUTELY, DAILY, WEEKLY, MONTHLY, YEARLY. These
4774 are defined in class <classname>KAlarmIface</classname> in
4775 <filename>kalarmiface.h</filename>. Monthly recurrences are of the
4776 day of the month type, and yearly recurrences are of the date in
4777 the year type, with the date in both cases taken from the
4778 <parameter>startDateTime</parameter> parameter.</para>
4779 </listitem>
4780 </varlistentry>
4781 
4782 <varlistentry>
4783 <term><parameter>recurInterval</parameter></term>
4784 <listitem>
4785 <para>Specifies the number of periods
4786 (minutes/days/weeks/months/years as specified by
4787 <parameter>recurType</parameter>) between recurrences of the
4788 alarm.</para>
4789 </listitem>
4790 </varlistentry>
4791 
4792 <varlistentry>
4793 <term><parameter>recurCount</parameter></term>
4794 <listitem>
4795 <para>Specifies the number of times that the alarm should be
4796 repeated. Specify -1 to repeat the alarm indefinitely.</para>
4797 </listitem>
4798 </varlistentry>
4799 
4800 <varlistentry>
4801 <term><parameter>endDateTime</parameter></term>
4802 <listitem>
4803 <para>Specifies the end date, or date and time, for recurrences of the
4804 alarm. If <parameter>startDateTime</parameter> includes a time, this
4805 parameter must also include a time; if <parameter>startDateTime</parameter>
4806 contains only a date, this parameter must also contain only a
4807 date. It must not contain a time zone specifier; the same time zone as
4808 for <parameter>startDateTime</parameter> is used to interpret this
4809 parameter's value.</para>
4810 </listitem>
4811 </varlistentry>
4812 
4813 <varlistentry>
4814 <term><parameter>subRepeatInterval</parameter></term>
4815 <listitem>
4816 <para>Specifies the number of minutes between sub-repetitions of
4817 the alarm. Specify 0 for no sub-repetition. Ignored if no recurrence
4818 is specified.</para>
4819 </listitem>
4820 </varlistentry>
4821 
4822 <varlistentry>
4823 <term><parameter>subRepeatCount</parameter></term>
4824 <listitem>
4825 <para>Specifies the number of sub-repetitions of the alarm,
4826 including the initial occurrence.</para>
4827 </listitem>
4828 </varlistentry>
4829 </variablelist>
4830 </refsect2>
4831 </refsynopsisdiv>
4832 
4833 <refsect1>
4834 <title>Description</title>
4835 <para><function>scheduleAudio()</function> is a &DBus; call to
4836 schedule the specified audio file to be played at the specified date
4837 and time. Apart from specifying a volume and omitting the message
4838 color and font parameters, its usage is identical to
4839 <link linkend="scheduleMessage-descrip"><function>scheduleMessage</function></link>
4840 - see the description of that function for further details.</para>
4841 </refsect1>
4842 </refentry>
4843 
4844 <refentry id="dbus_edit">
4845 <refmeta>
4846 <refentrytitle>edit</refentrytitle>
4847 </refmeta>
4848 <refnamediv>
4849 <refname>edit</refname>
4850 <refpurpose>Display the <link linkend="alarm-edit-dlg">Alarm Edit
4851 dialog</link> to edit an alarm.</refpurpose>
4852 </refnamediv>
4853 <refsynopsisdiv>
4854 <synopsis>
4855 bool edit(const QString&amp; <replaceable>eventID</replaceable>)
4856 </synopsis>
4857 
4858 <refsect2>
4859 <title>Parameters</title>
4860 <variablelist>
4861 <varlistentry>
4862 <term><parameter>eventID</parameter></term>
4863 <listitem>
4864 <para>Specifies the unique ID of the event to be edited, optionally
4865 prefixed by the configuration name or numeric ID of the resource containing
4866 the event, in the format
4867 <replaceable>[resourceID:]eventUID</replaceable>.</para>
4868 </listitem>
4869 </varlistentry>
4870 </variablelist>
4871 </refsect2>
4872 
4873 <refsect2>
4874 <title>Return value</title>
4875 <para><returnvalue>false</returnvalue> if the specified
4876 alarm could not be found or is read-only,
4877 <returnvalue>true</returnvalue> otherwise.</para>
4878 </refsect2>
4879 </refsynopsisdiv>
4880 
4881 <refsect1>
4882 <title>Description</title>
4883 
4884 <para><function>edit()</function> is a &DBus; call to display the
4885 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> to edit the
4886 specified alarm.</para>
4887 
4888 </refsect1>
4889 </refentry>
4890 
4891 <refentry id="dbus_editnew">
4892 <refmeta>
4893 <refentrytitle>editNew</refentrytitle>
4894 </refmeta>
4895 <refnamediv>
4896 <refname>editNew</refname>
4897 <refpurpose>Display the <link linkend="alarm-edit-dlg">Alarm Edit
4898 dialog</link> to edit a new alarm.</refpurpose>
4899 </refnamediv>
4900 <refsynopsisdiv>
4901 <synopsis>
4902 bool editNew(int <replaceable>type</replaceable>)
4903 </synopsis>
4904 <synopsis>
4905 bool editNew(const QString&amp; <replaceable>templateName</replaceable>)
4906 </synopsis>
4907 
4908 <refsect2>
4909 <title>Parameters</title>
4910 <variablelist>
4911 <varlistentry>
4912 <term><parameter>type</parameter></term>
4913 <listitem>
4914 <para>Specifies the alarm type. The permissible values are DISPLAY,
4915 COMMAND, EMAIL, AUDIO. These are defined in class
4916 <classname>KAlarmIface</classname> in
4917 <filename>kalarmiface.h</filename>.</para>
4918 </listitem>
4919 </varlistentry>
4920 
4921 <varlistentry>
4922 <term><parameter>templateName</parameter></term>
4923 <listitem>
4924 <para>Specifies the name of an alarm template to base the new alarm
4925 on.</para>
4926 </listitem>
4927 </varlistentry>
4928 </variablelist>
4929 </refsect2>
4930 
4931 <refsect2>
4932 <title>Return value</title>
4933 <para><returnvalue>false</returnvalue> if <parameter>type</parameter>
4934 has an invalid value, or if no template with the name
4935 <parameter>templateName</parameter> can be found;
4936 <returnvalue>true</returnvalue> otherwise.</para>
4937 </refsect2>
4938 </refsynopsisdiv>
4939 
4940 <refsect1>
4941 <title>Description</title>
4942 
4943 <para><function>editNew()</function> is a &DBus; call to display the
4944 <link linkend="alarm-edit-dlg">Alarm Edit dialog</link> to edit a new
4945 alarm. If an alarm type is specified as a parameter, a blank dialog is
4946 displayed. Alternatively, if an alarm template name is specified as a
4947 parameter, the dialog is preset with details from the template.</para>
4948 
4949 </refsect1>
4950 </refentry>
4951 
4952 <refentry id="dbus_list">
4953 <refmeta>
4954 <refentrytitle>list</refentrytitle>
4955 </refmeta>
4956 <refnamediv>
4957 <refname>list</refname>
4958 <refpurpose>Return a list of scheduled alarms.</refpurpose>
4959 </refnamediv>
4960 <refsynopsisdiv>
4961 <synopsis>
4962 QString list()
4963 </synopsis>
4964 
4965 <refsect2>
4966 <title>Return value</title>
4967 <para>List of alarms, separated by newlines, each in the format
4968 <returnvalue><replaceable>resource_id</replaceable>:<replaceable>UID</replaceable> <replaceable>time</replaceable> <replaceable>text</replaceable></returnvalue></para>
4969 </refsect2>
4970 </refsynopsisdiv>
4971 
4972 <refsect1>
4973 <title>Description</title>
4974 
4975 <para><function>list()</function> is a &DBus; call to return a string
4976 containing a summary of scheduled alarms. The list shows brief details
4977 of each pending alarm: its resource identifier, UID, next scheduled time
4978 and message text or file.</para>
4979 
4980 </refsect1>
4981 </refentry>
4982 
4983 </sect1>
4984 
4985 <sect1 id="cmdline-interface">
4986 <title>Command Line Interface</title>
4987 
4988 <para>Command line options are provided to enable other programs to
4989 start up &kalarm; if it is not already running, in order to trigger or
4990 cancel scheduled alarms, or schedule new alarms. The reason for using
4991 command line options for this purpose is that if &kalarm; were started
4992 without any command line parameters and then sent &DBus; requests, it
4993 would start in its default graphical mode, which is clearly undesirable
4994 for an inter-program request.</para>
4995 
4996 <note><para>Programs should first check whether &kalarm; is already
4997 running; if it is, they should instead use &DBus; calls to request these
4998 operations.</para></note>
4999 
5000 <para>The command line options for scheduling a new alarm are as
5001 described in the chapter <link linkend="cmdline-operation">Command Line
5002 Operation</link>. The options for triggering and canceling scheduled
5003 alarms are as follows:</para>
5004 
5005 <note><para>Normal users may also if they wish use these command line
5006 options (assuming that they can supply the necessary parameter
5007 information).</para></note>
5008 
5009 <informaltable>
5010 <tgroup cols="2">
5011 <thead>
5012 <row>
5013   <entry>Option</entry>
5014   <entry>Description</entry>
5015 </row>
5016 </thead>
5017 <tbody>
5018 <row>
5019   <entry><option>--cancelEvent <replaceable>eventID</replaceable></option></entry>
5020   <entry>Cancel the alarm with the specified event ID. The event ID is
5021   the unique ID of the event, optionally prefixed by the ID of the
5022   resource containing the event, in the format
5023   <replaceable>[resourceID:]eventUID</replaceable>.
5024   The action taken is the same as for the
5025   <link linkend="cancelEvent">cancelEvent()</link> &DBus; call.
5026   <option>--triggerEvent</option> cannot be specified with this
5027   option.</entry>
5028 </row>
5029 <row>
5030   <entry><option>--triggerEvent <replaceable>eventID</replaceable></option></entry>
5031   <entry>Trigger the alarm with the specified event ID. The event ID is
5032   the unique ID of the event, optionally prefixed by the ID of the
5033   resource containing the event, in the format
5034   <replaceable>[resourceID:]eventUID</replaceable>.
5035   The action taken is the same as for the
5036   <link linkend="triggerEvent">triggerEvent()</link> &DBus; call.
5037   <option>--cancelEvent</option> cannot be specified with this
5038   option.</entry>
5039 </row>
5040 </tbody>
5041 </tgroup>
5042 </informaltable>
5043 
5044 <para>Examples are:</para>
5045 
5046 <informalexample><screen>
5047 <prompt>%</prompt> <userinput><command>kalarm</command> <option>--triggerEvent <replaceable>&kalarm;-387486299.702</replaceable></option></userinput>
5048 <prompt>%</prompt> <userinput><command>kalarm</command> <option>--cancelEvent <replaceable>&kalarm;-388886299.793</replaceable></option></userinput>
5049 </screen>
5050 </informalexample>
5051 
5052 </sect1>
5053 </chapter>
5054 
5055 
5056 <chapter id="faq">
5057 <title>Questions and Answers</title>
5058 
5059 <qandaset id="faqlist">
5060 <qandaentry>
5061 <question>
5062 <para>What configuration files does &kalarm; use?</para>
5063 </question>
5064 <answer>
5065 <para>&kalarm;'s configuration is held in the following files in the folder
5066 <command>qtpaths --paths GenericConfigLocation</command> :</para>
5067 
5068 <itemizedlist>
5069 <listitem>
5070 <simpara><filename>kalarmrc</filename> holds your &kalarm;
5071 preferences.</simpara>
5072 </listitem>
5073 
5074 <listitem>
5075 <simpara><filename>kalarmresources</filename> holds the list of alarm
5076 calendars currently used by &kalarm;.</simpara>
5077 </listitem>
5078 </itemizedlist>
5079 </answer>
5080 </qandaentry>
5081 
5082 <qandaentry>
5083 <question>
5084 <para>Where does &kalarm; store its alarms?</para>
5085 </question>
5086 <answer>
5087 
5088 <para>When &kalarm; is run the first time, it creates the following
5089 alarm calendars in the folder
5090 <command>qtpaths --paths GenericDataLocation</command> :</para>
5091 
5092 <itemizedlist>
5093 <listitem>
5094 <simpara><filename>kalarm/calendar.ics</filename>, which holds active
5095 alarms.</simpara>
5096 </listitem>
5097 
5098 <listitem>
5099 <simpara><filename>kalarm/expired.ics</filename>, which holds archived
5100 alarms.</simpara>
5101 </listitem>
5102 
5103 <listitem>
5104 <simpara><filename>kalarm/template.ics</filename>, which holds alarm
5105 templates.</simpara>
5106 </listitem>
5107 
5108 <listitem>
5109 <simpara><filename>kalarm/displaying.ics</filename>, which is a special
5110 calendar file to hold details of alarms currently being displayed,
5111 which allows &kalarm;, when it is restarted, to redisplay alarms which
5112 were being displayed when it last stopped.</simpara>
5113 </listitem>
5114 </itemizedlist>
5115 
5116 <para>You can subsequently replace these calendars, except
5117 <filename>displaying.ics</filename>, or create
5118 additional alarm calendars in any location which you choose. You can
5119 find out which calendar files are currently in use by viewing each
5120 calendar's details in the alarm calendars list.</para>
5121 </answer>
5122 </qandaentry>
5123 
5124 <qandaentry>
5125 <question>
5126 <para>What format are alarms stored in?</para>
5127 </question>
5128 <answer>
5129 <para>The calendar files in which &kalarm; stores its alarms are text
5130 files whose format is defined by the document
5131 <ulink url="http://www.w3.org/2002/12/cal/rfc2445.html">RFC2445 -
5132 Internet Calendaring and Scheduling Core Object Specification
5133 (iCalendar)</ulink>. This is the standard format used by all kdepim
5134 applications. &kalarm; uses certain non-standard properties, in
5135 conformance with RFC2445. These are documented in the
5136 <filename>DESIGN-kalarmcalendar.html</filename> file which is
5137 distributed with &kalarm;.</para>
5138 </answer>
5139 </qandaentry>
5140 
5141 <qandaentry id="akonadi-plugin">
5142 <question>
5143 <para>What is the function of &kalarm;'s Akonadi plugin?</para>
5144 </question>
5145 <answer>
5146 <para>&kalarm; uses its Akonadi plugin to provide all features which
5147 depend on &akonadi; (the &kde; &PIM; cross-desktop storage service).
5148 If this plugin is not installed and enabled, &kalarm; will lack the
5149 following features:
5150 <itemizedlist>
5151 <listitem>
5152 <simpara>Sending emails via &kmail;, leaving &Sendmail; as the only
5153 option to send emails (see
5154 <link linkend="preferences-email">Email preferences</link>).</simpara>
5155 </listitem>
5156 <listitem>
5157 <simpara>Drag and drop of emails.</simpara>
5158 </listitem>
5159 <listitem>
5160 <simpara>Selection of email addresses from &kaddressbook;.</simpara>
5161 </listitem>
5162 <listitem>
5163 <simpara>Import of birthdays from &kaddressbook;.</simpara>
5164 </listitem>
5165 <listitem>
5166 <simpara>Migration of &akonadi; alarm calendar resources on the first
5167 run of a new version of &kalarm;.</simpara>
5168 </listitem>
5169 </itemizedlist>
5170 </para>
5171 <para>If the plugin is installed, it can be enabled or disabled in the
5172 <link linkend="preferences-general">General</link> tab of the
5173 Configuration dialog.</para>
5174 </answer>
5175 </qandaentry>
5176 
5177 <qandaentry>
5178 <question>
5179 <para>What is the program <application>kalarmautostart</application>?</para>
5180 </question>
5181 <answer>
5182 <para><application>kalarmautostart</application> is a little helper
5183 program whose function is to autostart &kalarm; at login.</para>
5184 
5185 <para>&kalarm; is usually restored by the session manager at login
5186 (to redisplay its windows in the same state as they were when you
5187 logged off). But if it was not running when you logged off, it would
5188 not be started by the session manager and therefore needs to be
5189 autostarted. The problem is that when an application is both session
5190 managed and autostarted, there is no guarantee as to which will occur
5191 first. If autostart gets in first, it will prevent the session manager
5192 from restoring the application's state.</para>
5193 
5194 <para>To avoid this problem,
5195 <application>kalarmautostart</application> is autostarted at login
5196 instead of &kalarm;. All it does is wait for a short time (to ensure
5197 that the session manager has time to do its job) before starting
5198 &kalarm;, at which point it terminates.</para>
5199 </answer>
5200 </qandaentry>
5201 
5202 <qandaentry>
5203 <question>
5204 <para>How can I use &kalarm; on a non-&plasma; desktop?</para>
5205 </question>
5206 <answer>
5207 <para>To run &kalarm; on a non-&plasma; desktop, the main requirement is
5208 to ensure that &kalarm; is run automatically whenever you log in. More
5209 detailed instructions are contained in the
5210 <filename>INSTALL</filename> file which is distributed with
5211 &kalarm;.</para>
5212 </answer>
5213 </qandaentry>
5214 
5215 </qandaset>
5216 </chapter>
5217 
5218 
5219 <chapter id="credits">
5220 
5221 <title>Credits and License</title>
5222 
5223 <para>
5224 &kalarm;
5225 </para>
5226 <para>
5227 Program copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 &David.Jarvie; &David.Jarvie.mail;
5228 </para>
5229 
5230 <para>
5231 Documentation copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2016, 2018, 2019, 2020, 2021, 2022, 2023, 2024 &David.Jarvie; &David.Jarvie.mail;
5232 </para>
5233 
5234 <!-- TRANS:CREDIT_FOR_TRANSLATORS -->
5235 
5236 &underFDL;               <!-- FDL: do not remove -->
5237 
5238 &underGPL;               <!-- GPL License -->
5239 
5240 <para>Thanks go to the author of the &kde; 1 KAlarm application,
5241 Stefan Nikolaus <email>stefan.nikolaus@stuco.uni-oldenburg.de</email>,
5242 who kindly agreed to allow the name &kalarm; to be used by this
5243 application, which has been available for &kde; 2 onwards.
5244 </para>
5245 
5246 </chapter>
5247 
5248 &documentation.index;
5249 </book>
5250 <!--
5251 Local Variables:
5252 mode: sgml
5253 sgml-minimize-attributes:nil
5254 sgml-general-insert-case:lower
5255 sgml-indent-step:0
5256 sgml-indent-data:nil
5257 End:
5258 -->
5259