class CCalAlarm : public CBase;
Description
Class representing an alarm. contains associated data extensions
This can be assigned to a calendar entry.
Derivation
CBase
-
Base class for all classes to be instantiated on the heap.
CCalAlarm
- Class representing an alarm. contains associated data extensions
Members
Defined in CCalAlarm
:
Inherited from CBase
:
Construction and destruction
IMPORT_C static CCalAlarm* NewL();
Description
Creates a new calendar alarm with no alarm sound name and an alarm time offset of 0 minutes, and no extended alarm action
Return value
IMPORT_C ~CCalAlarm();
Description
A calendar alarm destructor.
IMPORT_C static CCalAlarm* NewL();
Description
Return value
IMPORT_C ~CCalAlarm();
Description
SetTimeOffset(TTimeIntervalMinutes)
IMPORT_C void SetTimeOffset(TTimeIntervalMinutes aOffset);
Description
Sets a time offset for an alarm to occur prior to a scheduled event.
The time offset is calculated as the number of minutes before the instance time of the event.
-
For todo entries, the instance time is the end date (the due date).
-
For non-todo entries, the instance time is the start date.
It is possible to have a negative offset provided that the alarm is on the same day (in local time) as the instance time;
this means the alarm occurs after the event. Fixed entries cannot have negative alarm offsets, since then the current day
will change depending on the time zone.
Parameters
IMPORT_C TTimeIntervalMinutes TimeOffset() const;
Description
Gets the time offset for the alarm to occur prior to an event.
Return value
SetAlarmSoundNameL(const TDesC &)
IMPORT_C void SetAlarmSoundNameL(const TDesC &aAlarmSoundName);
Description
Sets the name of the alarm sound.
Note: if the length of the new alarm sound name is greater than KMaxAlarmSoundName characters, it will be ignored.
Parameters
const TDesC16 &aAlarmSoundName |
The name of the alarm sound.
|
|
IMPORT_C const TDesC& AlarmSoundNameL() const;
Description
Gets a descripter of the alarm sound name.
If there is no name set, KNullDesC will be returned.
Return value
const TDesC16 & |
CCalAlarm descriptor reference
|
|
SetAlarmAction(CCalContent *)
IMPORT_C void SetAlarmAction(CCalContent *aAlarmAction);
Description
Associates an action with the alarm. The action could be a link to an Internet radio station, or it could be a small animated
icon. This class takes ownership of the alarm action. Any existing alarm action is deleted.
Parameters
See also:
CCalContent
This class holds in memory 8-bit data of any type, or a link to 8-bit data such ...
SetTimeOffset(TTimeIntervalMinutes)
IMPORT_C void SetTimeOffset(TTimeIntervalMinutes aOffset);
Description
Parameters
IMPORT_C CCalContent* AlarmAction() const;
Description
Returns the action associated with the alarm. For example, the action could be a link to an Internet radio station, or it
could be a small animated icon.
Return value
CCalContent *
|
The alarm action or a NULL pointer if there is no alarm action.
|
|
See also:
CCalContent
This class holds in memory 8-bit data of any type, or a link to 8-bit data such ...
IMPORT_C TTimeIntervalMinutes TimeOffset() const;
Description
Return value
SetAlarmSoundNameL(const TDesC &)
IMPORT_C void SetAlarmSoundNameL(const TDesC &aAlarmSoundName);
Description
Parameters
IMPORT_C const TDesC& AlarmSoundNameL() const;
Description
Return value
SetAlarmAction(CCalContent *)
IMPORT_C void SetAlarmAction(CCalContent *aAlarmAction);
Description
Parameters
IMPORT_C CCalContent* AlarmAction() const;
Description
Return value