CCIMXDesktop
 
Loading...
Searching...
No Matches
TimerHandleServer Class Reference
Inheritance diagram for TimerHandleServer:

Signals

void server_status_changed (bool st)
 
void timer_alert ()
 
void server_shutdown ()
 
void server_finished ()
 
void server_ready_destroyed ()
 

Public Member Functions

 TimerHandleServer (const QString &name, const ServerRunner &runner, const int timer_interval, QObject *parent=nullptr)
 
 TimerHandleServer (QString &&name, ServerRunner &&runner, const int timer_interval, QObject *parent=nullptr)
 
 Q_DISABLE_COPY (TimerHandleServer)
 
void setAsRunOnce (bool ifSelfDeleted=true)
 setAsRunOnce set the timer handle sever running once only
 
void resetServer ()
 resetServer reset the server to the plain type
 
const TimerServerProperty serverProperty () const noexcept
 
void setState (bool should_run)
 setState
 
void adjust_timer_interval (const int new_interval, bool request_immediate=true)
 adjust_timer_interval
 
void quit_self ()
 
void restart_timer ()
 restart_timer will reset the count of timer to the cnt 0, which can be using in time resets
 
const ServerID id () const noexcept
 
const QString server_name () const noexcept
 

Member Function Documentation

◆ adjust_timer_interval()

void TimerHandleServer::adjust_timer_interval ( const int  new_interval,
bool  request_immediate = true 
)

adjust_timer_interval

Parameters
new_interval
request_immediaterequest these or next session

◆ setAsRunOnce()

void TimerHandleServer::setAsRunOnce ( bool  ifSelfDeleted = true)

setAsRunOnce set the timer handle sever running once only

Parameters
ifSelfDeletedif true, after call the server will destroy himself and dead

◆ setState()

void TimerHandleServer::setState ( bool  should_run)

setState

Parameters
should_runset the status of should we run session

The documentation for this class was generated from the following files: