Tizen Native API  3.0

The calendar reminder API provides the interface to set/unset reminder callback.

Required Header

#include <calendar.h>

Functions

int calendar_reminder_add_cb (calendar_reminder_cb callback, void *user_data)
 Adds a callback to get a notification when an alarm gives an alert.
int calendar_reminder_remove_cb (calendar_reminder_cb callback, void *user_data)
 Removes a callback to get a notification when an alarm gives an alert.

Typedefs

typedef void(* calendar_reminder_cb )(const char *param, void *user_data)
 Called when an alarm is alerted.

Typedef Documentation

typedef void(* calendar_reminder_cb)(const char *param, void *user_data)

Called when an alarm is alerted.

Since :
3.0
Parameters:
[in]paramValue string like id=value&time=value&tick=value&unit=value&type=value
[in]user_dataThe user data passed from the callback registration function
See also:
calendar_reminder_add_cb()

Function Documentation

int calendar_reminder_add_cb ( calendar_reminder_cb  callback,
void *  user_data 
)

Adds a callback to get a notification when an alarm gives an alert.

Since :
3.0
Privilege Level:
public
Privilege:
http://tizen.org/privilege/calendar.read
Parameters:
[in]callbackThe callback to be added
[in]user_dataThe user data
Returns:
0 on success, otherwise a negative error value
Return values:
CALENDAR_ERROR_NONESuccessful
CALENDAR_ERROR_OUT_OF_MEMORYOut of memory
CALENDAR_ERROR_NOT_PERMITTEDOperation not permitted
CALENDAR_ERROR_IPCUnknown IPC error
See also:
calendar_reminder_remove_cb()
int calendar_reminder_remove_cb ( calendar_reminder_cb  callback,
void *  user_data 
)

Removes a callback to get a notification when an alarm gives an alert.

Since :
3.0
Parameters:
[in]callbackThe callback to be removed
[in]user_dataThe user data
Returns:
0 on success, otherwise a negative error value
Return values:
CALENDAR_ERROR_NONESuccessful
CALENDAR_ERROR_DB_FAILEDDatabase operation failure
See also:
calendar_reminder_add_cb()