Ejemplo n.º 1
0
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() );
}
Ejemplo n.º 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;
}
Ejemplo n.º 3
0
void rBootHttpUpdate::updateFailed() {
	timer.stop();
	items.clear();
	debugf("\r\nFirmware download failed..");
	if (updateDelegate) updateDelegate(false);
}