17 #ifndef __NUGU_TIMER_INTERFACE_H__
18 #define __NUGU_TIMER_INTERFACE_H__
25 namespace NuguClientKit {
39 #define NUGU_TIMER_UNIT_SEC 1000
82 virtual void start(
unsigned int msec = 0) = 0;
87 virtual void restart(
unsigned int msec = 0) = 0;
nugu timer interface
Definition: nugu_timer_interface.hh:44
virtual void restart(unsigned int msec=0)=0
Request re-start timer with new interval.
virtual void stop()=0
Request stop timer.
virtual void start(unsigned int msec=0)=0
Request start timer with new interval.
virtual unsigned int getInterval()=0
Get timer's timeout interval.
virtual void setSingleShot(bool singleshot)=0
Set timer running single shot.
virtual void setCallback(timer_callback cb)=0
Request set timeout callback.
virtual void setInterval(unsigned int msec)=0
Set timer's timeout interval.
virtual bool getSingleShot()=0
Get timer single shot property.
std::function< void()> timer_callback
Timer Callback.
Definition: nugu_timer_interface.hh:49