hlVoid FileProgressCallback(HLDirectoryItem *pFile, hlUInt uiBytesExtracted, hlUInt uiBytesTotal, hlBool *pCancel) { #if 0 PyEval_RestoreThread(g_extract_save); if( pUpdateFunc == Py_None ) ProgressUpdate((hlULongLong)uiBytesExtracted, (hlULongLong)uiBytesTotal); else PyEval_CallFunction(pUpdateFunc, "II", uiBytesExtracted, uiBytesTotal); g_extract_save = PyEval_SaveThread(); #endif // 0 }
void CAxialFor3DView::ProgressUpdateFunc( itk::Object * caller, const itk::EventObject & event ) { itk::ProcessObject::Pointer process = dynamic_cast< itk::ProcessObject *>( caller ); if( typeid( itk::EndEvent ) == typeid( event ) ) { m_nProgress=0; } if( typeid( itk::ProgressEvent ) == typeid( event ) ) { m_nProgress = (int) (process->GetProgress()*100); } emit ProgressUpdate(m_nProgress); }
virtual void __fastcall Execute() { try { ProgressUpdate(PROGFN_INITIALISE, 0, 0); if (FGenerator->KeyType == ktDSA) { dsa_generate(FGenerator->FDSSKey, FGenerator->KeySize, KeyGenerationProgressUpdate, this); } else { rsa_generate(FGenerator->FRSAKey, FGenerator->KeySize, KeyGenerationProgressUpdate, this); } Progress.Complete = kgSuccess; } catch(...) { Progress.Complete = kgFailure; } Synchronize(DistributeProgressUpdate); }
void CExportConsole::ProgressInc(){ ProgressUpdate(fStatusProgress+1); }
void CExportConsole::ProgressEnd(){ ProgressUpdate(0); }
//---------------------------------------------------- void CExportConsole::ProgressStart(float max_val, const char* text){ fMaxVal=max_val; fStatusProgress=0; Msg(text?text:""); ProgressUpdate(0); }
hlVoid DefragmentProgressCallback(HLDirectoryItem *pFile, hlUInt uiFilesDefragmented, hlUInt uiFilesTotal, hlULongLong uiBytesDefragmented, hlULongLong uiBytesTotal, hlBool *pCancel) { ProgressUpdate(uiBytesDefragmented, uiBytesTotal); }
hlVoid FileProgressCallback(HLDirectoryItem *pFile, hlUInt uiBytesExtracted, hlUInt uiBytesTotal, hlBool *pCancel) { ProgressUpdate((hlULongLong)uiBytesExtracted, (hlULongLong)uiBytesTotal); }