kb_machblue_core_reminder.c
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:7k
- #include "machblue_defines.h"
- #include "machblue_tv_customer.h"
- #include "machblue_tv_defines.h"
- #include "kb_machblue_client.h"
- #if MB_PLAYER_1_2
- /**
- * @brief This function retrieves the number of TV reminders.
- *
- * This function retrieves the number of TV reminders that would currently be
- * returned by a call to mb_tv_reminders_get().
- * @return @li MB_SUCCESS on success. @li MB_FAILURE on failure.
- */
- mb_error_t mb_tv_reminder_count_get
- (
- int *reminder_count /**< - The pointer to the integer to store the reminder count. */
- )
- {
- return MB_SUCCESS;
- }
- /**
- * @brief This function asynchronously retrieves the list of scheduled TV reminders.
- *
- * This function asynchronously retrieves the list of scheduled TV reminders from the system.
- * The list should only include non-deleted, non-elapsed reminders.
- * The system should send an
- * #MB_TV_NR_REMINDERS_GET notification once the request has been completed.
- * @see #MB_TV_NR_REMINDERS_GET
- * @return @li MB_SUCCESS on success. @li MB_FAILURE on failure.
- */
- mb_error_t mb_tv_reminders_get
- (
- int first_reminder_pos, /**< - The position of the first reminders to get (0 based). */
- int *reminder_count, /**< - The pointer to the number of scheduled tasks to retrieve. This
- pointer should be updated with the number of reminders
- actually retrieved. */
- mb_tv_reminder_t *reminder_list /**< - The pointer to the list of reminders to update. */
- )
- {
- return MB_SUCCESS;
- }
- /**
- * @brief This function asynchronously retrieves a specific reminder from its unique ID.
- *
- * This function asynchronously retrieves a specific reminder from the system from its unique ID.
- * The system will try to retrieve the requested descriptor, even if it would not
- * normally be included in the list retrieved by mb_tv_reminders_get().
- * The system should send an
- * #MB_TV_NR_REMINDER_GET notification once the request has been completed.
- * @see MB_TV_NR_REMINDER_GET
- * @return @li MB_SUCCESS on success. @li MB_FAILURE on failure.
- */
- mb_error_t mb_tv_reminder_get_from_id
- (
- int id, /**< - The unique ID of the reminder to get. */
- mb_tv_reminder_t *reminder /**< - The pointer to the reminder value to update. */
- )
- {
- return MB_SUCCESS;
- }
- /**
- * @brief This function releases a reminder object.
- *
- * This function releases a reminder object.
- * @return @li MB_SUCCESS on success. @li MB_FAILURE on failure.
- */
- mb_error_t mb_tv_reminder_release
- (
- mb_tv_reminder_t reminder /**< - The reminder object to release. */
- )
- {
- return MB_SUCCESS;
- }
- /**
- * @brief This function retrieves reminder attributes.
- *
- * This function retrieves reminder attributes.
- * @return @li MB_SUCCESS on success. @li MB_FAILURE on failure.
- */
- mb_error_t mb_tv_reminder_attributes_get
- (
- mb_tv_reminder_t reminder, /**< - The reminder object to query. */
- mb_tv_reminder_attributes_t *reminder_attrib /**< - The reminder attribute structure to update. */
- )
- {
- return MB_SUCCESS;
- }
- /**
- * @brief This function deletes a reminder.
- *
- * This function deletes a reminder.
- * @note The descriptor stays
- * valid as long as mb_tv_reminder_release() has not been called on it.
- * @return @li MB_SUCCESS on success. @li MB_FAILURE on failure.
- */
- mb_error_t mb_tv_reminder_delete
- (
- mb_tv_reminder_t reminder /**< - The reminder object to delete. */
- )
- {
- return MB_SUCCESS;
- }
- /**
- * @brief This function schedules a reminder on the specified event.
- *
- * This function schedules a reminder on the specified event.
- * This function is asynchronous. The system should send an
- * #MB_TV_NR_EVENT_REMINDER_SCHEDULED notification once the request is
- * completed.
- * @see MB_TV_NR_EVENT_REMINDER_SCHEDULED
- * @return @li MB_SUCCESS on success. @li MB_FAILURE on failure.
- */
- mb_error_t mb_tv_event_reminder_schedule
- (
- mb_tv_event_t event, /**< - The event to schedule reminder on. */
- mb_tv_reminder_action_type_t action_type, /**< - The type of reminder to schedule (e.g. reminder, auto-tune, etc.). */
- mb_tv_periodicity_t periodicity, /**< - The reminder periodicity (e.g. if the event belongs to a
- series, how often to trigger the reminder). */
- int warning_delay, /**< - The delay between the #MB_TV_NR_REMINDER_WARNING notification
- and triggering. */
- mb_tv_reminder_t *reminder /**< - The pointer to the newly created reminder object to update. */
- )
- {
- return MB_SUCCESS;
- }
- /**
- * @brief This function asynchronously sets a reminder on the specified service.
- *
- * This function asynchronously sets a reminder on the specified service.
- * The system should send an
- * #MB_TV_NR_SERVICE_REMINDER_SCHEDULED notification once the request
- * has been completed.
- * @see #MB_TV_NR_SERVICE_REMINDER_SCHEDULED
- * @return @li MB_SUCCESS on success. @li MB_FAILURE on failure.
- */
- mb_error_t mb_tv_service_reminder_schedule
- (
- mb_tv_service_t service, /**< - The service to set reminder on. */
- mb_tv_reminder_action_type_t action_type, /**< - The type of reminder to schedule (e.g. reminder, auto-tune, etc.). */
- mb_time_t time, /**< - The reminder activation time, in seconds, since January 1st, 1970 (UTC). */
- mb_tv_periodicity_t periodicity, /**< - The reminder periodicity (e.g. should we repeat this
- manual reminder daily, weekly, etc.). */
- int warning_delay, /**< - The delay between #MB_TV_NR_REMINDER_WARNING notification
- and triggering. */
- mb_tv_reminder_t *reminder /**< - The pointer to the newly created reminder to update. */
- )
- {
- return MB_SUCCESS;
- }
- /**
- * @brief This function retrieves the service on which a reminder was set.
- *
- * This function retrieves the service on which a reminder was set.
- * @return @li MB_SUCCESS on success. @li MB_FAILURE if the
- * reminder has a target type other than #MB_TV_REMINDER_TGT_SERVICE and the returned
- * service value is #MB_TV_INVALID_SERVICE.
- */
- mb_error_t mb_tv_reminder_service_get
- (
- mb_tv_reminder_t reminder, /**< - The reminder to query. */
- mb_tv_service_t *service /**< - The pointer to the service to update. */
- )
- {
- return MB_SUCCESS;
- }
- /**
- * @brief This function retrieves the program event on which a reminder was set.
- *
- * This function retrieves the program event on which a reminder was set.
- * @return @li MB_SUCCESS on success. @li MB_FAILURE if the
- * reminder has a target type other than #MB_TV_REMINDER_TGT_PROGRAM_EVENT and the returned
- * service value is #MB_TV_INVALID_EVENT.
- */
- mb_error_t mb_tv_reminder_event_get
- (
- mb_tv_reminder_t reminder, /**< - The reminder to query. */
- mb_tv_event_t *event /**< - The pointer to the program event to update. */
- )
- {
- return MB_SUCCESS;
- }
- #endif