/** Stop the action. * * Turn off an action. * * @param id The ID of the core animation. * * @return One of the following values: * \li \b true was playing (now stopped) * \li \b false if already not playing *****************************************************************************/ bool CalMixer::stopAction( int coreAnimationId ) { CalAnimationAction * aa = animationActionFromCoreAnimationId( coreAnimationId ); if( !aa ) return false; m_listAnimationAction.remove( aa ); aa->destroy(); delete aa; return true; }
void CalMixer::destroy() { // destroy all active animation actions while(!m_listAnimationAction.empty()) { CalAnimationAction *pAnimationAction; pAnimationAction = m_listAnimationAction.front(); m_listAnimationAction.pop_front(); pAnimationAction->destroy(); delete pAnimationAction; } m_pModel = 0; }