Name

editNew — Display the Alarm Edit dialog to edit a new alarm.

Synopsis

bool editNew(int type)
bool editNew(const QString& templateName)

Parameters

type

Specifies the alarm type. The permissible values are DISPLAY, COMMAND, EMAIL, AUDIO. These are defined in class KAlarmIface in kalarmiface.h.

templateName

Specifies the name of an alarm template to base the new alarm on.

Return value

false if type has an invalid value, or if no template with the name templateName can be found; true otherwise.

Description

editNew() is a D-Bus call to display the Alarm Edit dialog to edit a new alarm. If an alarm type is specified as a parameter, a blank dialog is displayed. Alternatively, if an alarm template name is specified as a parameter, the dialog is preset with details from the template.