void AsyncTask::_complete()
    {
        log::messageln("AsyncTask::_complete %d - %s", getObjectID(), typeid(*this).name());

        _status = status_completed;
        _onFinal(false);
        _finalize(false);
        _onComplete();

        _dispatchComplete();
    }
Beispiel #2
0
void Countimer::countUp()
{
	if (_currentCountTime < _countTime)
	{
		_callback();
		_currentCountTime += _interval;
	}
	else
	{
		stop();

		if (_onComplete != NULL)
			_onComplete();
	}
}
Beispiel #3
0
void Countimer::countDown()
{
	if (_currentCountTime > 0)
	{
		_callback();
		_currentCountTime -= _interval;
	}
	else
	{
		stop();

		if (_onComplete != NULL)
			_onComplete();
	}
}