Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Types of alarms

The alarm server supports three types of alarms; clock alarms, session alarms, orphaned alarms and agenda alarms. There are several other categories of alarms, but these are sub-categories of the main types.

Each of the alarm types is discussed in detail in the following sections.


Clock alarms

The alarm server can store up to 8 clock alarms which, once set, are independent of the client that set them. Because they are managed solely by the server, they are serviced even if the application that entered them is not running.

Any client can set any of the clock alarms. These are accessible to the end user through the Time application.

[Top]


Session alarms

Session alarms are handled on behalf of a session with the alarm server, and fulfil the requirements of PIM applications. Each session is able to set only one session alarm; the server notifies the session when it should set its next alarm.

When a session disconnects from the server, its session alarm is cancelled. The session must specifically orphan its alarm to keep it in the pending alarm queue after disconnection—see below for discussion of orphan alarms.

There are two types of session alarms:

[Top]


Orphaned alarms

A session can orphan its session alarm, and thereby relinquish control of it to the alarm server. The alarm is then stored in the server’s orphaned alarm array. It has no session owner, and no session is notified when the alarm is due.

When a session closes its connection to the alarm server, it may choose to orphan its session alarm—thereby allowing the alarm to be serviced after the session closes. An application can regain control of an orphaned alarm by setting an alarm with the same parameters, e.g. time, date, etc.

After orphaning an alarm, a session is allocated enough memory for another session alarm—which it can also orphan. Sessions can orphan as many alarms as memory allows. The server removes all orphaned alarms when the system time is changed or the alarm server is re-started.

Snoozed alarms are those which have been deferred after activation. When any alarm is snoozed, it is also orphaned.

[Top]


Other alarm categories

Other alarm categories are: