예제 #1
0
파일: animators.cpp 프로젝트: 5UN5H1N3/vlc
DelegateAnimationHelper::DelegateAnimationHelper( QAbstractItemView *view_,
                                                  BasicAnimator *animator_ )
    : QObject( view_ ), view( view_ ), animator( animator_ )
{
    if ( !animator )
    {
        animator = new BasicAnimator( this );
        animator->setFps( 15 );
        animator->setLoopCount( -1 );
    }
    setIndex( QModelIndex() );
    CONNECT( animator, frameChanged(), this, updateDelegate() );
}
예제 #2
0
void rBootHttpUpdate::applyUpdate() {
	timer.stop();
	items.clear();
	if (romSlot == NO_ROM_SWITCH) {
		debugf("Firmware updated.");
		if (updateDelegate) updateDelegate(true);
	} else {
		// set to boot new rom and then reboot
		debugf("Firmware updated, rebooting to rom %d...\r\n", romSlot);
		rboot_set_current_rom(romSlot);
		System.restart();
	}
	return;
}
예제 #3
0
void rBootHttpUpdate::updateFailed() {
	timer.stop();
	items.clear();
	debugf("\r\nFirmware download failed..");
	if (updateDelegate) updateDelegate(false);
}