asshddefs.h File Reference

KMaxAlarmMessageLength

const TIntKMaxAlarmMessageLength

Maximum length of an alarm message. The message is usually displayed by the alarm UI.

KMaxAlarmSoundNameLength

const TIntKMaxAlarmSoundNameLength

Maximum length of the filename of the sound played when an alarm expires.

Typedef TAlarmId

typedef TInt TAlarmId

A unique identifier allocated to each new alarm by the alarm server, so that the client can identify them. By default, KNullAlarmId.

Typedef TAlarmCategory

typedef TUid TAlarmCategory

A unique identifier that can optionally be used by clients to group alarms into categories, for instance alarms associated with a particular application or application engine. The alarm server ignores the category. It is relevant to the client alone.

Typedef TAlarmCharacteristicsFlags

typedef TBitFlags8 TAlarmCharacteristicsFlags

Flags that define an alarm's characteristics.

See also: TAlarmCharacteristics

Typedef TDeleteType

typedef TInt TDeleteType

A type to identify what kind of alarms should be deleted when using the API RASCliSession::AlarmDeleteByCategory()

See also: TTDeleteTypeEnum

Typedef TAlarmMessage

typedef TBuf< KMaxAlarmMessageLength >TAlarmMessage

Stores the text message associated with an alarm.

Typedef TAlarmSoundName

typedef TBuf< KMaxAlarmSoundNameLength >TAlarmSoundName

Stores the name of a sound file which is played when an alarm activates.

KNullAlarmId

const TAlarmIdKNullAlarmId

Defines a null alarm identifier.

KDefaultSoundPlayOffsetInSeconds

const TIntKDefaultSoundPlayOffsetInSeconds

Defines the length in seconds of an alarm sound offset.

KDefaultSoundPlayDurationInSeconds

const TIntKDefaultSoundPlayDurationInSeconds

Defines the length in seconds of an alarm sound duration.

KASCliCategoryClock

const TAlarmCategoryKASCliCategoryClock

A category that can be assigned to identify clock alarms to the client. The server does not distinguish between alarm types.

Enum TAlarmStatus

Defines whether an alarm is enabled or disabled:

An enabled alarm activates at a specified time.

A disabled alarm remains in the alarm server queue but is not active.

You can get or set an alarm's status using the RASCliSession class.

EnumeratorValueDescription
EAlarmStatusEnabled0

The alarm is currently enabled.

EAlarmStatusDisabled

The alarm is currently disabled, and will not expire.

Enum TAlarmState

Represents an alarm's state. Alarms can have only one state.

EnumeratorValueDescription
EAlarmStateInPreparation-1

The alarm state is not currently known by the alarm server.

EAlarmStateQueued0

The alarm is waiting for its expiry time to be reached.

EAlarmStateSnoozed

The alarm is snoozed. When the snooze period is over, the alarm expires again.

EAlarmStateWaitingToNotify

The alarm is waiting to be notified.

This state occurs when an alarm expires while another is being notified. When this happens, the alarm being notified changes state to EAlarmStateWaitingToNotify. This means that if it is set to be the next alarm to be notified, notification will happen after the newly expired alarm has been notified and dismissed.

EAlarmStateNotifying

The alarm is currently notifying.

EAlarmStateNotified

The alarm has already notified and has been dismissed. Any alarm which remains in this state is dead.

Enum TAlarmDayOrTimed

Defines an alarm session type as timed or untimed. This property is ignored by the alarm server, and is for use by the client only.

EnumeratorValueDescription
EASShdAlarmTypeTimed0

Timed alarm type (default). This alarm belongs to a timed event. This is an event with a defined start and finish time. The alarm notification time is specified as an offset from the event's start time, so that when the event time changes, so does the alarm time.

EASShdAlarmTypeDay

Day alarm type. This alarm belongs to untimed events; these do not have a defined start and finish time, but have an activation time.

Enum TAlarmGlobalSoundState

Defines the sound state of the global alarm server .

EnumeratorValueDescription
EAlarmGlobalSoundStateOn0

When an alarm expires, the alarm sound is played.

EAlarmGlobalSoundStateOff

When an alarm expires, no sound plays.

Enum TAlarmRepeatDefinition

Defines how an alarm is to be repeated.

EnumeratorValueDescription
EAlarmRepeatDefintionRepeatOnce0

The alarm expires only once, and is then deleted from the alarm server. By default, all alarms behave this way.

Standard repeat-once alarms are date relative, that is, they occur on a fixed date and point in time.

If the user changes the system date or time so that the new time is in the future, and the new time is after the previously calculated expiry time:

By less than 12 hours, the alarm expires immediately.

By more than 12 horus, the alarm is silently discarded.

If the user changes the system date or time so that the new time is before the next calculated expiry time, the alarm type continues to be a "Repeat once" alarm

EAlarmRepeatDefintionRepeatNext24Hours

When initially scheduling the alarm, the date is always within the next 24 hours. For example:

The current time is 15:00, and the alarm time specified is 14:00. The alarm expires tomorrow at 14:00.

The current time is 15:00, and the alarm time specified is 16:00. The alarm expires today at 16:00.

If the alarm is missed, i.e. because the alarm server is inactive, then the alarm changes its type from "Repeat in the next 24 Hours" to "Repeat once".

If the user changes the system date or time so that the new time is in the future, and the new time is after the previously calculated expiry time:

By less than 12 hours, the alarm expires immediately.

By more than 12 horus, the alarm is silently discarded.

If the user changes the system date or time so that the new time is before the next calculated expiry time:

By less than 12 hours, no change in alarm type, and the alarm remains queued.

By greater than 12 hours, the alarm changes its type from "Repeat in the next 24 Hours" to "Repeat once". Subsequent changes in system time result in the behaviour described by the EAlarmRepeatDefintionRepeatOnce characteristic.

EAlarmRepeatDefintionRepeatDaily

The alarm repeats every day at the same time. If the user changes the system date or time, this alarm behaves in the same way as a "Repeat once" alarm, except that the alarm is not deleted, but rescheduled for the next available time.

If the user changes the system date or time to a point in the past, there are no phantom alarm expiries.

EAlarmRepeatDefintionRepeatWorkday

The alarm repeats every work day at the same time. If the user changes the system date or time, this alarm behaves in the same way as a "Repeat once" alarm, except that the alarm is not deleted, but rescheduled for the next available time.

If the user changes the system date or time to a point in the past, there are no phantom alarm expiries.

EAlarmRepeatDefintionRepeatWeekly

The alarm repeats every week, on the same day at the same time. If the user changes the system date or time, this alarm behaves in the same way as a "Repeat once" alarm, except that the alarm is not deleted, but rescheduled for the next available time.

If the user changes the system date or time to a point in the past, there are no phantom alarm expiries.

Enum TAlarmCharacteristics

Defines various alarm characteristics.

EnumeratorValueDescription
EAlarmCharacteristicsSessionSpecific0

Sets an alarm to be session-only. This alarm only exists as long as a session is maintained with the alarm server. Session alarms are removed from the alarm queue when the originating session disconnects from the server. By default, all alarms are persistent and remain so, even after the initiating session has disconnected.

EAlarmCharacteristicsDoNotNotifyAlarmAlertServer1

Do not display a screen. By default, all alarms result in a suitable screen being displayed, depending on the device. Use this flag to disable this default behaviour.

EAlarmCharacteristicsIsFixed2

Sets an alarm to be floating - floating alarms expire at the current local time, regardless of the current locale or DST rules.

EAlarmCharacteristicsDeQueueIfDueTimeInPast3

Do not notify if its due time is in the past.

EAlarmCharacteristicsLast

Enum TAlarmChangeEvent

This enumeration defines the events that can be reported by the alarm server.

These events are channelled to the client using the RASCliSession::NotifyChange() method.

See also: TAlarmState

EnumeratorValueDescription
EAlarmChangeEventState1

An alarm has changed state.

See also: TAlarmState

EAlarmChangeEventStatus2

An alarm has changed status.

See also: TAlarmStatus

EAlarmChangeEventCharacteristics3

An alarm has changed characteristics.

See also: TAlarmCharacteristics

EAlarmChangeEventAlarmDeletion4

An alarm has been deleted from the queue of alarms.

EAlarmChangeEventAlarmAddition5

An alarm has been added to the queue of alarms.

EAlarmChangeEventTimerExpired6

An alarm has expired.

EAlarmChangeEventSoundPlaying7

The sound for an alarm has just started playing.

EAlarmChangeEventSoundStopped8

The sound for an alarm has just stopped playing.

EAlarmChangeEventPlayIntervalsChanged9

The sound intervals associated with sound timing have changed.

EAlarmChangeEventGlobalSoundStateChanged10

The global sound state (on/off) has changed.

EAlarmChangeEventHeadQueueItemChanged11

The next alarm at the head of the alarm queue has changed.

EAlarmChangeEventSystemDateTimeChanged12

The system date or time has changed, or the days defined as workdays have changed.

EAlarmChangeEventAlarmUIVisible13

The alarm alert server has been instructed to show the 'alarm expired' display.

EAlarmChangeEventAlarmUIInvisible14

The alarm alert server has been instructed to hide the 'alarm expired' display.

EAlarmChangeEventSoundSilence15

Alarm sounds have been temporarily silenced, the current alarm has been paused or re-enabled.

EAlarmChangeEventAlarmData16

The data associated with an alarm has changed.

EAlarmChangeEventRestoreStarted17

A restore from backup of the alarm server has started. Alarms cannot be added/deleted until this has finished.

EAlarmChangeEventRestoreFailed18

A restore from backup of the alarm server has failed. Alarms can be added/deleted again.

EAlarmChangeEventRestoreCompleted19

A restore from backup of the alarm server has completed. The alarm queue has changed.

EAlarmChangeEventLast

Last change event (anchor). This is always at the end of the list.

EAlarmChangeEventUndefined0

An undefined alarm event has occurred.

Enum TAlarmServerInitiatedClientPanic

Identifies server-initiated panics relating to the client session.

EnumeratorValueDescription
EAlarmServerInitiatedClientPanicInsufficientRoomForAlarmData0

This panic occurs when the client requests a copy of any data attached to an alarm, but does not supply enough buffer space to contain the data.

EAlarmServerInitiatedClientPanicBadDescriptor1

This panic usually occurs when a client method tries to write to a descriptor (sometimes asynchronously), and the client-supplied descriptor is not valid.

EAlarmServerInitiatedClientPanicChangeNotificationAlreadyOutstanding2

This panic occurs when a client already has an outstanding notification request, but attempts to request another.

EAlarmServerInitiatedClientPanicInvalidOperation3

This panic occurs when a client tries to perform an invalid operation.

EAlarmServerInitiatedClientPanicBadPreAllocatedAlarmId4

This panic occurs when a request to add an alarm contains a null alarm identiifer. In the case of alarms with notifications, the client should pre-allocate the alarm identifier before requesting the notification.

Enum TDeleteTypeEnum

Identifies what kind of alarms the client wants to delete.

EnumeratorValueDescription
EAllAlarms0

All type of alarms.

EFuture1

Alarms future of the current time

EActive2

Alarms in the past of the current time but notifying, or waiting to notify, or snoozed by, the user

EExpired4

alarms that has been dismissed by the user