2014-06-26 11:37:40 -07:00
|
|
|
class Ecore.Poller (Eo.Base)
|
2014-03-23 06:32:06 -07:00
|
|
|
{
|
2014-08-27 07:01:09 -07:00
|
|
|
methods {
|
2014-09-01 07:53:35 -07:00
|
|
|
constructor {
|
2014-08-27 07:01:09 -07:00
|
|
|
/*@ Constructor with parameters for Ecore Poller. */
|
|
|
|
legacy: null;
|
2014-03-23 06:32:06 -07:00
|
|
|
params {
|
|
|
|
@in Ecore_Poller_Type type;
|
|
|
|
@in int interval;
|
|
|
|
@in Ecore_Task_Cb func;
|
2014-06-26 02:52:17 -07:00
|
|
|
@in const(void)* data;
|
2014-03-23 06:32:06 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property interval {
|
2014-03-23 06:32:06 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
@brief Changes the polling interval rate of @p poller.
|
|
|
|
@return Returns true on success, false on failure.
|
|
|
|
|
|
|
|
This allows the changing of a poller's polling interval. It is useful when
|
|
|
|
you want to alter a poll rate without deleting and re-creating a poller. */
|
2014-08-07 08:58:45 -07:00
|
|
|
legacy: ecore_poller_poller_interval_set;
|
|
|
|
return: bool;
|
2014-03-23 06:32:06 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Gets the polling interval rate of @p poller.
|
|
|
|
@return Returns the interval, in ticks, that @p poller polls at.
|
|
|
|
|
|
|
|
This returns a poller's polling interval, or 0 on error. */
|
2014-08-07 08:58:45 -07:00
|
|
|
legacy: ecore_poller_poller_interval_get;
|
2014-03-23 06:32:06 -07:00
|
|
|
}
|
|
|
|
values {
|
|
|
|
int interval; /*@ The tick interval to set; must be a power of 2 and <= 32768. */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 03:14:59 -07:00
|
|
|
Eo.Base.destructor;
|
2014-03-23 06:32:06 -07:00
|
|
|
}
|
2014-09-01 07:53:35 -07:00
|
|
|
constructors {
|
|
|
|
.constructor;
|
|
|
|
}
|
2014-06-26 11:37:40 -07:00
|
|
|
}
|