void UploadProgressModel::clear() { setAdmin(false); setShowOK(false); setShowError(false); setShowArchive(false); setShowUploading(false); setShowCopying(false); setIsPaused(false); qDeleteAll(m_Collection.keys()); m_Collection.clear(); }
void UploadProgressModel::setConnect(bool _connect, const Credentials& _c) { if(_connect) { setAdmin(_c.admin()); setShowOK(true); setShowError(true); setShowArchive(false); setShowUploading(true); setShowCopying(true); setIsPaused(false); setVisiblePause(_c.admin()); } else { clear(); } }
void Controller::togglePause() { setIsPaused(!getIsPaused()); }
void GameLayer::gameOver() { this->unschedule(schedule_selector(GameLayer::mainUpdate)); setIsPaused(true); CCMessageBox("Where is a will, There is a way!", "Game over"); }
void GameLayer::countdonwDone() { setTouchEnabled(true); setIsPaused(false); this->schedule(schedule_selector(GameLayer::mainUpdate), 0.016f); }
void GameLayer::preCountdown() { setTouchEnabled(false); setIsPaused(true); }