#ifndef _ECORE_TIMER_EO_H_
#define _ECORE_TIMER_EO_H_

#ifndef _ECORE_TIMER_EO_CLASS_TYPE
#define _ECORE_TIMER_EO_CLASS_TYPE

typedef Eo Ecore_Timer;

#endif

#ifndef _ECORE_TIMER_EO_TYPES
#define _ECORE_TIMER_EO_TYPES


#endif
/**
 * @brief Timers are objects that will call a given callback at some point in
 * the future.
 *
 * They may also optionall repeat themselves if the timer callback returns
 * @c true. If it does not they will be automatically deleted and never called
 * again. Timers require the ecore mainloop to be running and functioning
 * properly. They do not guarantee exact timing, but try to work on a "best
 * effort basis.
 *
 * @ingroup Ecore_Timer
 */
#define ECORE_TIMER_CLASS ecore_timer_class_get()

EAPI const Eo_Class *ecore_timer_class_get(void) EINA_CONST;

/**
 * @brief Changes the interval the timer ticks off. If set during a timer call,
 * this will affect the next interval.
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @param[in] in The new interval in seconds
 *
 * @ingroup Ecore_Timer
 */
EOAPI void  ecore_obj_timer_interval_set(double in);

/**
 * @brief Gets the interval the timer ticks on.
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @return The new interval in seconds
 *
 * @ingroup Ecore_Timer
 */
EOAPI double  ecore_obj_timer_interval_get(void);

/**
 * @brief Gets the pending time regarding a timer.
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @ingroup Ecore_Timer
 */
EOAPI double  ecore_obj_timer_pending_get(void);

/**
 * @brief Creates a timer to call in a given time from now
 *
 * @param[in] func The callback function to call when the timer goes off
 * @param[in] data A pointer to pass to the callback function as its data
 * pointer
 *
 * @ingroup Ecore_Timer
 */
EOAPI void  ecore_obj_timer_loop_constructor(double in, Ecore_Task_Cb func, const void *data);

/**
 * @brief Creates a timer to call in a given time from when the mainloop woke
 * up from sleep
 *
 * @param[in] func The callback function to call when the timer goes off
 * @param[in] data A pointer to pass to the callback function as its data
 * pointer
 *
 * @ingroup Ecore_Timer
 */
EOAPI void  ecore_obj_timer_constructor(double in, Ecore_Task_Cb func, const void *data);

/**
 * @brief Resets a timer to its full interval. This effectively makes the timer
 * start ticking off from zero now.
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @since 1.2
 *
 * @ingroup Ecore_Timer
 */
EOAPI void  ecore_obj_timer_reset(void);

/**
 * @brief Adds some delay for the next occurrence of a timer. This doesn't
 * affect the interval of a timer.
 *
 * @if MOBILE @since_tizen 2.3 @elseif WEARABLE @since_tizen 2.3.1 @endif
 *
 * @param[in] add The amount of time to delay the timer by in seconds
 *
 * @ingroup Ecore_Timer
 */
EOAPI void  ecore_obj_timer_delay(double add);


#endif
