void AsyncTask::_complete() { log::messageln("AsyncTask::_complete %d - %s", getObjectID(), typeid(*this).name()); _status = status_completed; _onFinal(false); _finalize(false); _onComplete(); _dispatchComplete(); }
void Countimer::countUp() { if (_currentCountTime < _countTime) { _callback(); _currentCountTime += _interval; } else { stop(); if (_onComplete != NULL) _onComplete(); } }
void Countimer::countDown() { if (_currentCountTime > 0) { _callback(); _currentCountTime -= _interval; } else { stop(); if (_onComplete != NULL) _onComplete(); } }